@swc-node/register
Advanced tools
Comparing version 1.5.4 to 1.5.5
@@ -39,3 +39,10 @@ "use strict"; | ||
else { | ||
const { code, map } = (0, core_1.transformSync)(sourcecode, filename, (0, read_default_tsconfig_1.tsCompilerOptionsToSwcConfig)(options, filename)); | ||
const swcRegisterConfig = (0, read_default_tsconfig_1.tsCompilerOptionsToSwcConfig)(options, filename); | ||
if (process.env.SWCRC === 'true') { | ||
// when SWCRC environment variable is set to true it will use swcrc file | ||
swcRegisterConfig.swc = { | ||
swcrc: true, | ||
}; | ||
} | ||
const { code, map } = (0, core_1.transformSync)(sourcecode, filename, swcRegisterConfig); | ||
// in case of map is undefined | ||
@@ -42,0 +49,0 @@ if (map) { |
{ | ||
"name": "@swc-node/register", | ||
"version": "1.5.4", | ||
"version": "1.5.5", | ||
"description": "SWC node register", | ||
@@ -42,8 +42,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@swc-node/core": "^1.9.1", | ||
"@swc-node/sourcemap-support": "^0.2.2", | ||
"@swc-node/core": "^1.9.2", | ||
"@swc-node/sourcemap-support": "^0.2.3", | ||
"colorette": "^2.0.19", | ||
"debug": "^4.3.4", | ||
"pirates": "^4.0.5", | ||
"tslib": "^2.4.0" | ||
"tslib": "^2.4.1" | ||
}, | ||
@@ -55,6 +55,7 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@swc/core": "^1.3.2", | ||
"@swc/core": "^1.3.24", | ||
"@types/debug": "^4.1.7", | ||
"lodash": "^4.17.21", | ||
"sinon": "^14.0.0" | ||
"sinon": "^15.0.1", | ||
"typescript": "^4.9.4" | ||
}, | ||
@@ -74,3 +75,3 @@ "funding": { | ||
}, | ||
"gitHead": "ef8f5b1f8b916a5b11fc2c5669427794b3f53f22" | ||
"gitHead": "83d5f5e771a274f854b3676307954d2d33363027" | ||
} |
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
86913
305
5
20
Updated@swc-node/core@^1.9.2
Updatedtslib@^2.4.1