@swc-node/core
Advanced tools
Comparing version 1.13.1 to 1.13.2
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38283
96