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.10.5 to 1.10.6

17

lib/index.js

@@ -9,10 +9,11 @@ "use strict";

var _a, _b, _c, _d, _e, _f;
const opts = options == null ? {} : options;
const opts = options !== null && options !== void 0 ? options : {};
opts.esModuleInterop = (_a = opts.esModuleInterop) !== null && _a !== void 0 ? _a : true;
const moduleType = (_b = options === null || options === void 0 ? void 0 : options.module) !== null && _b !== void 0 ? _b : 'commonjs';
return {
filename: path,
jsc: ((_b = options === null || options === void 0 ? void 0 : options.swc) === null || _b === void 0 ? void 0 : _b.swcrc)
jsc: ((_c = options === null || options === void 0 ? void 0 : options.swc) === null || _c === void 0 ? void 0 : _c.swcrc)
? undefined
: {
target: (_c = opts.target) !== null && _c !== void 0 ? _c : DEFAULT_ES_TARGET,
target: (_d = opts.target) !== null && _d !== void 0 ? _d : DEFAULT_ES_TARGET,
externalHelpers: jest ? true : Boolean(opts.externalHelpers),

@@ -40,7 +41,11 @@ parser: {

isModule: true,
module: ((_d = options === null || options === void 0 ? void 0 : options.swc) === null || _d === void 0 ? void 0 : _d.swcrc)
module: ((_e = options === null || options === void 0 ? void 0 : options.swc) === null || _e === void 0 ? void 0 : _e.swcrc)
? undefined
: {
type: (_e = options === null || options === void 0 ? void 0 : options.module) !== null && _e !== void 0 ? _e : 'commonjs',
noInterop: !opts.esModuleInterop,
type: moduleType,
...(moduleType === 'commonjs' || moduleType === 'umd' || moduleType === 'amd'
? {
noInterop: !opts.esModuleInterop,
}
: undefined),
},

@@ -47,0 +52,0 @@ sourceMaps: jest || typeof opts.sourcemap === 'undefined' ? 'inline' : opts.sourcemap,

{
"name": "@swc-node/core",
"version": "1.10.5",
"version": "1.10.6",
"description": "Faster swc nodejs binding",

@@ -53,3 +53,3 @@ "keywords": [

},
"gitHead": "9f674cd67091192b1fe62befd13cf4b61a6377e5"
"gitHead": "cc3d1da4f732e21c64e749766328705d4f6cfad5"
}

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