Comparing version 0.0.14 to 0.0.15
# code-red changelog | ||
## 0.0.15 | ||
* Flatten patterns | ||
## 0.0.13-14 | ||
@@ -4,0 +8,0 @@ |
@@ -255,6 +255,10 @@ (function (global, factory) { | ||
if (node.type === 'ObjectExpression') { | ||
if (node.type === 'ObjectExpression' || node.type === 'ObjectPattern') { | ||
node.properties = flatten_properties(node.properties, []); | ||
} | ||
if (node.type === 'ArrayExpression' || node.type === 'ArrayPattern') { | ||
node.elements = flatten(node.elements, []); | ||
} | ||
if (node.type === 'FunctionExpression' || node.type === 'FunctionDeclaration' || node.type === 'ArrowFunctionExpression') { | ||
@@ -271,6 +275,2 @@ node.params = flatten(node.params, []); | ||
} | ||
if (node.type === 'ArrayExpression') { | ||
node.elements = flatten(node.elements, []); | ||
} | ||
} | ||
@@ -277,0 +277,0 @@ }); |
{ | ||
"name": "code-red", | ||
"description": "code-red", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"repository": "Rich-Harris/code-red", | ||
@@ -6,0 +6,0 @@ "main": "dist/code-red.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21666