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.20 to 0.0.21

5

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

8

dist/code-red.js

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

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