@parcel/source-map
Advanced tools
Comparing version 2.0.0-alpha.4.4 to 2.0.0-alpha.4.5
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = void 0; | ||
exports.init = exports.default = void 0; | ||
@@ -93,2 +93,4 @@ var _path = _interopRequireDefault(require("path")); | ||
exports.default = SourceMap; | ||
exports.default = SourceMap; | ||
const init = Promise.resolve(); | ||
exports.init = init; |
{ | ||
"name": "@parcel/source-map", | ||
"version": "2.0.0-alpha.4.4", | ||
"version": "2.0.0-alpha.4.5", | ||
"main": "./dist/node.js", | ||
"browser": "./dist/wasm.js", | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "mocha ./test/*.test.js", | ||
"benchmark": "node ./bench/run", | ||
"compile": "babel ./src/*.js --out-dir ./dist && flow-copy-source -v src dist", | ||
"test": "npm run test-node && npm run test-wasm", | ||
"test-node": "cross-env BACKEND=node mocha ./test/*.test.js", | ||
"test-wasm": "cross-env BACKEND=wasm mocha ./test/*.test.js", | ||
"benchmark": "npm run benchmark-node && npm run benchmark-wasm", | ||
"benchmark-node": "cross-env BACKEND=node node ./bench/run", | ||
"benchmark-wasm": "cross-env BACKEND=wasm node ./bench/run", | ||
"transpile": "babel ./src/*.js --out-dir ./dist && flow-copy-source -v src dist", | ||
"compile-wasm": "make", | ||
"prebuild": "prebuildify --napi --strip --tag-libc", | ||
@@ -14,12 +20,13 @@ "build:dev": "node-gyp rebuild --debug", | ||
"postinstall": "node-gyp-build", | ||
"prepublish": "npm run compile", | ||
"prepublish": "npm run transpile", | ||
"typecheck": "flow" | ||
}, | ||
"files": [ | ||
"src", | ||
"binding.gyp", | ||
"wasm", | ||
"dist", | ||
"package.json", | ||
"prebuilds", | ||
"package.json", | ||
"binding.gyp", | ||
"README.md" | ||
"README.md", | ||
"src" | ||
], | ||
@@ -40,2 +47,3 @@ "binary": { | ||
"@babel/preset-flow": "^7.9.0", | ||
"cross-env": "^7.0.2", | ||
"flow-bin": "^0.121.0", | ||
@@ -42,0 +50,0 @@ "flow-copy-source": "^2.0.9", |
@@ -13,2 +13,3 @@ // @flow | ||
const bindings = require("node-gyp-build")(path.join(__dirname, "..")); | ||
export default class SourceMap { | ||
@@ -30,3 +31,3 @@ sourceMapInstance: any; | ||
} | ||
addEmptyMap( | ||
@@ -97,3 +98,3 @@ sourceName: string, | ||
findClosestMapping(line: number, column: number): IndexedMapping<number> { | ||
findClosestMapping(line: number, column: number): ?IndexedMapping<number> { | ||
return this.sourceMapInstance.findClosestMapping(line, column); | ||
@@ -124,1 +125,3 @@ } | ||
} | ||
export const init = Promise.resolve(); |
@@ -50,3 +50,5 @@ // @flow | ||
let stringifiedMap = JSON.stringify(map); | ||
return format === "inline" ? generateInlineMap(stringifiedMap) : stringifiedMap; | ||
return format === "inline" | ||
? generateInlineMap(stringifiedMap) | ||
: stringifiedMap; | ||
} | ||
@@ -53,0 +55,0 @@ |
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
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
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
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
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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1996160
40
719
10
3
2
17