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.59 to 0.1.60

7

lib/swc/file.js

@@ -39,2 +39,3 @@ "use strict";

async function concatResults(file, ...results) {
let added = false;
const map = new _sourceMap.SourceMapGenerator({

@@ -49,2 +50,3 @@ file,

if (result.map) {
added = true;
const consumer = await new _sourceMap.SourceMapConsumer(result.map);

@@ -75,2 +77,7 @@ const sources = new Set();

}
if (!added) {
return {
code
};
}
return {

@@ -77,0 +84,0 @@ code,

2

lib/swcx/index.js

@@ -62,3 +62,3 @@ #!/usr/bin/env node

const { dependencies , devDependencies , } = require(cwdPackageManifestPath);
const swcCoreVersion = dependencies["@swc/core"] || devDependencies["@swc/core"];
const swcCoreVersion = (dependencies === null || dependencies === void 0 ? void 0 : dependencies["@swc/core"]) || (devDependencies === null || devDependencies === void 0 ? void 0 : devDependencies["@swc/core"]);
if (swcCoreVersion) {

@@ -65,0 +65,0 @@ return (0, _minVersion).default(swcCoreVersion);

{
"name": "@swc/cli",
"version": "0.1.59",
"version": "0.1.60",
"description": "CLI for the swc project",

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

Sorry, the diff of this file is not supported yet

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