Socket
Socket
Sign inDemoInstall

code-red

Package Overview
Dependencies
6
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc