Skip to content
This repository was archived by the owner on Apr 8, 2023. It is now read-only.

Commit c4772f3

Browse files
committed
0.6.1 Fix json stringify
1 parent 7ce021b commit c4772f3

File tree

4 files changed

+15
-24
lines changed

4 files changed

+15
-24
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this extension will be documented in this file.
44

55
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
66

7+
## [0.6.1] - 2021-08-21
8+
9+
### Fixed
10+
11+
- Mistake with json stringify.
12+
713
## [0.6.0] - 2021-08-21
814

915
### Added

README.md

+7-22
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<p align="center">
1313
<img src="https://img.shields.io/static/v1?logo=visual-studio-code&label=made%20for&message=VS%20Code&color=0000ff" alt="Made for VSCode">
1414
<img src="https://img.shields.io/visual-studio-marketplace/v/robole.javascript-snippets?logo=visual-studio-code&color=ffa500" alt="Visual Studio Marketplace Version">
15-
<img src="https://img.shields.io/static/v1?logo=visual-studio-code&label=size&message=13KB&color=008000"
15+
<img src="https://img.shields.io/static/v1?logo=visual-studio-code&label=size&message=20KB&color=008000"
1616
alt="Extension file size in bytes">
1717
<img src="https://img.shields.io/visual-studio-marketplace/r/robole.javascript-snippets?logo=visual-studio-code&color=yellow" alt="Visual Studio Marketplace Rating">
1818
<img src="https://img.shields.io/visual-studio-marketplace/d/robole.javascript-snippets?logo=visual-studio-code&color=blue" alt="downloads"/>
@@ -139,31 +139,16 @@ I didn't repeat any of the builtin JavaScript snippets (see [FAQ for more](#wher
139139
<td>destructure array</td>
140140
<td>Array destructuring</td>
141141
<td>Assign values from array elements to new variables using destructuring.</td><td><code>const [${1:variables}] = ${2:arrayName};<br>$0<br></code></td>
142-
143-
</tr><tr>
144-
<td>async function</td>
145-
<td>async function</td>
146-
<td>Create an async function. Async functions can contain zero or more await expressions.</td><td><code>async function ${1:name}(${2:parameters}){<br> $3<br>}<br>$0<br></code></td>
147-
148142
</tr><tr>
149-
<td>arrow function,=&gt;</td>
150-
<td>arrow function</td>
151-
<td>Creates an arrow function with optional parameters.</td><td><code>(${1:parameters}) =&gt; {<br> $2<br>}<br>$0<br></code></td>
152143

153-
</tr><tr>
154-
<td>prototype function</td>
155-
<td>prototype function</td>
156-
<td>Creates an prototype function with optional parameters.</td><td><code>${1:object}.prototype.${2:name} = function(${3:parameters}) {<br> $4<br>}<br>$0<br></code></td>
157-
158-
</tr><tr>
159-
<td>iife</td>
160-
<td>Immediately Invoked Function Expression (IIFE)</td>
161-
<td>An IIFE (Immediately Invoked Function Expression) is a JavaScript function that runs as soon as it is defined. It creates it's own local scope.</td><td><code>(function () {<br> $1<br>})();<br>$0<br></code></td>
144+
<td>json parse</td>
145+
<td>json parse</td>
146+
<td>Parses a JSON string and returns a JavaScript object.</td><td><code>let ${1:obj} = JSON.parse(${2:string});<br> $0</code></td>
162147

163148
</tr><tr>
164-
<td>destructure object</td>
165-
<td>Object destructuring</td>
166-
<td>Assign values from object to new variables using destructuring.</td><td><code>const {${1:variables}} = ${2:objectName};<br>$0<br></code></td>
149+
<td>json stringify</td>
150+
<td>json stringify</td>
151+
<td>Convert a JavaScript object to a JSON string.</td><td><code>let ${1:string} = JSON.parse(${2:obj});<br/>$0</code></td>
167152

168153
</tr></tbody></table>
169154

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"description": "Descriptive, easy to find JavaScript snippets, without nonsense abbreviations.",
99
"icon": "img/logo.png",
10-
"version": "0.6.0",
10+
"version": "0.6.1",
1111
"engines": {
1212
"vscode": ">=1.0.0"
1313
},

snippets/snippets.code-snippets

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
"description": "Parses a JSON string and returns a JavaScript object"
148148
},
149149
"json stringify": {
150-
"prefix": "json parse",
150+
"prefix": "json stringify",
151151
"body": ["let ${1:string} = JSON.parse(${2:obj});", "$0"],
152152
"description": "Convert a JavaScript object to a JSON string."
153153
}

0 commit comments

Comments
 (0)