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

@swc/cli

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swc/cli - npm Package Compare versions

Comparing version 0.1.20 to 0.1.21

2

lib/package.json
{
"name": "@swc/cli",
"version": "0.1.20",
"version": "0.1.21",
"description": "CLI for the swc project",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -102,22 +102,24 @@ "use strict";

};
for (const cfg of opts.config) {
const i = cfg.indexOf('=');
let key, value;
if (i === -1) {
key = cfg;
value = true;
}
else {
key = cfg.substring(0, i);
value = cfg.substring(i + 1);
}
let obj = swcOptions;
const ks = key.split('.');
for (const k of ks.slice(0, ks.length - 1)) {
if (!obj[k]) {
obj[k] = {};
if (opts.config) {
for (const cfg of opts.config) {
const i = cfg.indexOf('=');
let key, value;
if (i === -1) {
key = cfg;
value = true;
}
obj = obj[k];
else {
key = cfg.substring(0, i);
value = cfg.substring(i + 1);
}
let obj = swcOptions;
const ks = key.split('.');
for (const k of ks.slice(0, ks.length - 1)) {
if (!obj[k]) {
obj[k] = {};
}
obj = obj[k];
}
obj[ks[ks.length - 1]] = value;
}
obj[ks[ks.length - 1]] = value;
}

@@ -124,0 +126,0 @@ let cliOptions = {

{
"name": "@swc/cli",
"version": "0.1.20",
"version": "0.1.21",
"description": "CLI for the swc project",

@@ -5,0 +5,0 @@ "main": "index.js",

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