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 1.0.0 to 1.0.1

7

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

@@ -13,3 +13,2 @@ "exports": {

"src",
"dist",
"types"

@@ -37,3 +36,3 @@ ],

},
"packageManager": "pnpm@7.28.0"
}
"packageManager": "pnpm@8.6.0"
}

@@ -1315,14 +1315,31 @@ // heavily based on https://github.com/davidbonnet/astring

const args = node.arguments.map((arg) => handle(arg, state));
const args = node.arguments.map((arg) => {
const chunks = [];
while (state.comments.length) {
const comment = state.comments.shift();
chunks.push(c(comment.type === 'Block'
? `/*${comment.value}*/ `
: `//${comment.value}`));
}
push_array(chunks, handle(arg, state));
return chunks;
});
const multiple_lines = args.slice(0, -1).some(has_newline); // TODO or length exceeds 80
if (multiple_lines) {
// need to handle args again. TODO find alternative approach?
const args = node.arguments.map((arg) =>
handle(arg, {
const args = node.arguments.map((arg) => {
const chunks = [];
while (state.comments.length) {
const comment = state.comments.shift();
chunks.push(c(comment.type === 'Block'
? `/*${comment.value}*/ `
: `//${comment.value}`));
}
push_array(chunks, handle(arg, {
...state,
indent: `${state.indent}\t`
})
);
}));
return chunks;
});

@@ -1329,0 +1346,0 @@ chunks.push(c(`(\n${state.indent}\t`));

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