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

code-red

Package Overview
Dependencies
Maintainers
2
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.2.0 to 0.2.1

2

package.json
{
"name": "code-red",
"description": "code-red",
"version": "0.2.0",
"version": "0.2.1",
"repository": "Rich-Harris/code-red",

@@ -6,0 +6,0 @@ "main": "dist/code-red.cjs",

@@ -177,3 +177,9 @@ import * as acorn from 'acorn';

re.lastIndex = 0;
node.value = node.value.replace(re, (m, i) => +i in values ? values[+i] : m);
const new_value = node.value.replace(re, (m, i) => +i in values ? values[+i] : m);
const has_changed = new_value !== node.value;
node.value = new_value;
if (has_changed && node.raw) {
// preserve the quotes
node.raw = `${node.raw[0]}${JSON.stringify(node.value).slice(1, -1)}${node.raw[node.raw.length - 1]}`;
}
}

@@ -180,0 +186,0 @@ }

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