You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@swc-node/sourcemap-support

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swc-node/sourcemap-support - npm Package Compare versions

Comparing version
0.1.7
to
0.1.8
+8
CHANGELOG.md
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.1.8](https://github.com/Brooooooklyn/node-swc/compare/@swc-node/sourcemap-support@0.1.7...@swc-node/sourcemap-support@0.1.8) (2020-08-31)
**Note:** Version bump only for package @swc-node/sourcemap-support
export declare const SourcemapMap: Map<any, any>;
export declare function installSourceMapSupport(): void;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.installSourceMapSupport = exports.SourcemapMap = void 0;
const tslib_1 = require("tslib");
const source_map_support_1 = tslib_1.__importDefault(require("source-map-support"));
exports.SourcemapMap = new Map();
function installSourceMapSupport() {
source_map_support_1.default.install({
handleUncaughtExceptions: false,
environment: 'node',
retrieveSourceMap(file) {
if (exports.SourcemapMap.has(file)) {
return {
url: file,
map: exports.SourcemapMap.get(file),
};
}
return null;
},
});
}
exports.installSourceMapSupport = installSourceMapSupport;
//# sourceMappingURL=index.js.map
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;AAAA,oFAAiD;AAEpC,QAAA,YAAY,GAAG,IAAI,GAAG,EAAE,CAAA;AAErC,SAAgB,uBAAuB;IACrC,4BAAgB,CAAC,OAAO,CAAC;QACvB,wBAAwB,EAAE,KAAK;QAC/B,WAAW,EAAE,MAAM;QACnB,iBAAiB,CAAC,IAAI;YACpB,IAAI,oBAAY,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBAC1B,OAAO;oBACL,GAAG,EAAE,IAAI;oBACT,GAAG,EAAE,oBAAY,CAAC,GAAG,CAAC,IAAI,CAAC;iBAC5B,CAAA;aACF;YACD,OAAO,IAAI,CAAA;QACb,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAdD,0DAcC"}

Sorry, the diff of this file is not supported yet

+9
-7
{
"name": "@swc-node/sourcemap-support",
"version": "0.1.7",
"version": "0.1.8",
"description": "Runtime sourcemap support in NodeJS",

@@ -19,9 +19,8 @@ "keywords": [

"license": "MIT",
"main": "index.js",
"types": "index.d.ts",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"index.js",
"lib",
"README.md",
"LICENSE",
"index.d.ts"
"LICENSE"
],

@@ -42,3 +41,6 @@ "publishConfig": {

},
"gitHead": "c1eb391e550486021fd09d5538021c6ef1662588"
"devDependencies": {
"@types/source-map-support": "^0.5.3"
},
"gitHead": "0f52c62ef3cf6c5989ee4a9274badbd9ffa35ac8"
}
export function installSourceMapSupport(): void
export const SourcemapMap: Map<string, string>
const sourceMapSupport = require('source-map-support')
const SourcemapMap = new Map()
function installSourceMapSupport() {
sourceMapSupport.install({
handleUncaughtExceptions: false,
environment: 'node',
retrieveSourceMap(file) {
if (SourcemapMap.has(file)) {
return {
url: file,
map: SourcemapMap.get(file),
}
}
return null
},
})
}
module.exports.SourcemapMap = SourcemapMap
module.exports.installSourceMapSupport = installSourceMapSupport