Comparing version 0.0.3 to 0.0.4
# code-red changelog | ||
## 0.0.4 | ||
* Use fork of astring | ||
## 0.0.3 | ||
@@ -4,0 +8,0 @@ |
@@ -35,2 +35,25 @@ (function (global, factory) { | ||
const generator = Object.assign({}, astring.baseGenerator, { | ||
handle( node, state) { | ||
if (Array.isArray(node)) { | ||
for (let i = 0; i < node.length; i += 1) { | ||
this.handle(node[i], state); | ||
if (i < node.length - 1) { | ||
state.write(state.lineEnd); | ||
state.write(state.indent); | ||
} | ||
} | ||
return; | ||
} | ||
if (!node.type) { | ||
console.log(`missing type: `, node); | ||
} | ||
if (!this[node.type]) { | ||
throw new Error(`Not implemented: ${node.type}`); | ||
} | ||
this[node.type](node, state); | ||
}, | ||
AwaitExpression( node, state) { | ||
@@ -37,0 +60,0 @@ state.write('await '); |
{ | ||
"name": "code-red", | ||
"description": "code-red", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"repository": "Rich-Harris/code-red", | ||
@@ -35,3 +35,3 @@ "main": "dist/code-red.js", | ||
"acorn": "^7.0.0", | ||
"astring": "^1.4.1", | ||
"astring": "github:Rich-Harris/astring#generic-handler", | ||
"estree-walker": "^0.6.1", | ||
@@ -38,0 +38,0 @@ "is-reference": "^1.1.3", |
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
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
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
13319
321
1
- Removedastring@1.9.0(transitive)