Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.1.0 to 1.2.0

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

# [1.2.0](https://github.com/Brooooooklyn/swc-node/compare/@swc-node/register@1.1.0...@swc-node/register@1.2.0) (2021-04-28)
### Features
- **core:** expose inline and both config for sourcemap ([780f2bb](https://github.com/Brooooooklyn/swc-node/commit/780f2bb81053af6fc6af865a979059ffff470eac))
# [1.1.0](https://github.com/Brooooooklyn/swc-node/compare/@swc-node/register@1.0.5...@swc-node/register@1.1.0) (2021-04-21)

@@ -8,0 +14,0 @@

15

lib/register.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.register = void 0;
exports.createSourcemapOption = exports.register = void 0;
const tslib_1 = require("tslib");

@@ -83,3 +83,3 @@ const os_1 = require("os");

module: toModule((_b = options.module) !== null && _b !== void 0 ? _b : ts.ModuleKind.ES2015),
sourcemap: options.sourceMap !== false,
sourcemap: createSourcemapOption(options),
jsx: filename.endsWith('.tsx') || filename.endsWith('.jsx') || Boolean(options.jsx),

@@ -112,2 +112,13 @@ react: options.jsxFactory || options.jsxFragmentFactory

exports.register = register;
// @internal
function createSourcemapOption(options) {
return options.sourceMap !== false
? options.inlineSourceMap
? 'both'
: true
: options.inlineSourceMap
? 'inline'
: false;
}
exports.createSourcemapOption = createSourcemapOption;
//# sourceMappingURL=register.js.map

12

package.json
{
"name": "@swc-node/register",
"version": "1.1.0",
"version": "1.2.0",
"description": "SWC node register",

@@ -41,5 +41,5 @@ "keywords": [

"dependencies": {
"@swc-node/core": "^1.3.0",
"@swc-node/core": "^1.4.0",
"@swc-node/sourcemap-support": "^0.1.8",
"chalk": "^4.1.0",
"chalk": "^4.1.1",
"debug": "^4.3.1",

@@ -51,3 +51,7 @@ "pirates": "^4.0.1"

},
"gitHead": "66d45d1e6c6d9d704de4491ea2b517d6dce3b0c8"
"funding": {
"type": "github",
"url": "https://github.com/sponsors/Brooooooklyn"
},
"gitHead": "2737279e210f0104cb7094a6c0906a1bb6f4c3df"
}

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