Skip to content

Commit b96e8dd

Browse files
authored
Merge pull request #2 from deinsoftware/dev
fix readme
2 parents 5b1118f + 759bbdc commit b96e8dd

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ Fixed for any bug fixes.
99
Security to invite users to upgrade in case of vulnerabilities.
1010
-->
1111

12+
## [1.6.1] - 2022/08/04
13+
14+
### Fixed
15+
16+
- readme escape pipes for safe destructuring
17+
1218
## [1.6.0] - 2022/07/27
1319

1420
### Added

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ Below is a list of all available snippets and the triggers of each one. The **
9898
| Trigger | Description | Result JS/TS |
9999
| -------: | ------------------------------- | ---------------------------------------- |
100100
| `cod→` | const object dest | `const {prop, prop} = name█` |
101-
| `cods→` | const object dest safe | `const {prop, prop} = name || {}█` |
101+
| `cods→` | const object dest safe | `const {prop, prop} = name \|\| {}█` |
102102
| `codr→` | const object dest with rest | `const {prop, prop, ...rest} = name█` |
103103
| `cad→` | const array dest | `const [prop, prop] = name█` |
104-
| `cads→` | const array dest safe | `const [prop, prop] = name || []█` |
104+
| `cads→` | const array dest safe | `const [prop, prop] = name \|\| []█` |
105105
| `cadr→` | const array dest with rest | `const [prop, prop, ...rest] = name█` |
106106
| `pd→` | parameter object dest | `{prop, prop}█` |
107107
| `pdr→` | parameter object dest with rest | `{prop, prop, ...rest}█` |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "const-props-snippets",
33
"description": "VS Code Const & Props snippets for JS and TS",
4-
"version": "1.6.0",
4+
"version": "1.6.1",
55
"displayName": "Const & Props Snippets",
66
"publisher": "deinsoftware",
77
"icon": "images/light-icon.png",

0 commit comments

Comments
 (0)