Comparing version 0.1.0 to 0.1.1
# code-red changelog | ||
## 0.1.1 | ||
* Wrap arrow functions in parens as appropriate ([#31](https://github.com/Rich-Harris/code-red/issues/31)) | ||
* Throw on invalid expressions ([#31](https://github.com/Rich-Harris/code-red/issues/31)) | ||
## 0.1.0 | ||
@@ -4,0 +9,0 @@ |
@@ -134,3 +134,2 @@ (function (global, factory) { | ||
AwaitExpression: 17, | ||
ArrowFunctionExpression: 17, | ||
ClassExpression: 17, | ||
@@ -144,2 +143,3 @@ FunctionExpression: 17, | ||
ConditionalExpression: 4, | ||
ArrowFunctionExpression: 3, | ||
AssignmentExpression: 3, | ||
@@ -1699,2 +1699,6 @@ YieldExpression: 2, | ||
const expression = acorn.parseExpressionAt(str, 0, acorn_opts(comments, str)) ; | ||
const match = /\S+/.exec(str.slice((expression ).end)); | ||
if (match) { | ||
throw new Error(`Unexpected token '${match[0]}'`); | ||
} | ||
@@ -1701,0 +1705,0 @@ inject(str, expression, values, comments); |
{ | ||
"name": "code-red", | ||
"description": "code-red", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"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
84580
2902