Socket
Socket
Sign inDemoInstall

@swc-node/register

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swc-node/register - npm Package Compare versions

Comparing version 1.5.4 to 1.5.5

9

lib/register.js

@@ -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) {

15

package.json
{
"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

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