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.1.0 to 0.1.1

5

CHANGELOG.md
# 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 @@

6

dist/code-red.js

@@ -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);

2

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

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