Comparing version 0.0.20 to 0.0.21
# code-red changelog | ||
## 0.0.21 | ||
* Deconflict #-identifiers in function names ([#10](https://github.com/Rich-Harris/code-red/issues/10)) | ||
* Fix object expression with string literal key matching value ([#9](https://github.com/Rich-Harris/code-red/pull/9)) | ||
## 0.0.20 | ||
@@ -4,0 +9,0 @@ |
@@ -497,3 +497,3 @@ (function (global, factory) { | ||
chunks.push(c(node.generator ? 'function* ' : 'function ')); | ||
if (node.id) chunks.push(c(node.id.name, node.id)); | ||
if (node.id) chunks.push(...handle(node.id, state)); | ||
chunks.push(c('(')); | ||
@@ -957,3 +957,3 @@ | ||
if (key.length === 1 && value.length === 1 && key[0].content === value[0].content) { | ||
if (key.length === 1 && value.length === 1 && node.key.type === 'Identifier' && key[0].content === value[0].content) { | ||
return value; | ||
@@ -992,6 +992,2 @@ } | ||
if (key.length === 1 && value.length === 1 && key[0].content === value[0].content) { | ||
return value; | ||
} | ||
return [ | ||
@@ -998,0 +994,0 @@ ...key, |
{ | ||
"name": "code-red", | ||
"description": "code-red", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"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
78146
2750