Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

code-red

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-red - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

4

CHANGELOG.md
# 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 ');

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc