Socket
Socket
Sign inDemoInstall

@swc-node/core

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swc-node/core - npm Package Compare versions

Comparing version 1.13.1 to 1.13.2

11

lib/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transform = exports.transformJest = exports.transformSync = void 0;
exports.transformSync = transformSync;
exports.transformJest = transformJest;
exports.transform = transform;
const core_1 = require("@swc/core");

@@ -8,3 +10,3 @@ // Oldest LTS Node.js supported target

function transformOption(path, options, jest = false) {
var _a, _b, _c, _d, _e, _f, _g;
var _a, _b, _c, _d, _e, _f;
const opts = options !== null && options !== void 0 ? options : {};

@@ -60,3 +62,3 @@ opts.esModuleInterop = (_a = opts.esModuleInterop) !== null && _a !== void 0 ? _a : true;

swcrc: false,
...((_g = options === null || options === void 0 ? void 0 : options.swc) !== null && _g !== void 0 ? _g : {}),
...options === null || options === void 0 ? void 0 : options.swc,
};

@@ -67,11 +69,8 @@ }

}
exports.transformSync = transformSync;
function transformJest(source, path, options) {
return (0, core_1.transformSync)(source, transformOption(path, options, true));
}
exports.transformJest = transformJest;
function transform(source, path, options) {
return (0, core_1.transform)(source, transformOption(path, options));
}
exports.transform = transform;
//# sourceMappingURL=index.js.map
{
"name": "@swc-node/core",
"version": "1.13.1",
"version": "1.13.2",
"description": "Faster swc nodejs binding",

@@ -48,4 +48,4 @@ "keywords": [

"devDependencies": {
"@swc/core": "^1.4.17",
"@swc/types": "^0.1.6"
"@swc/core": "^1.6.6",
"@swc/types": "^0.1.9"
},

@@ -56,3 +56,3 @@ "funding": {

},
"gitHead": "c78ca5eadc24ec5c496d3d299ed1fd98da1ee6fb"
"gitHead": "3586b0ad22fe69514707103540edfd7e16894ba7"
}

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