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

@parcel/source-map

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/source-map - npm Package Compare versions

Comparing version 2.0.0-alpha.4.4 to 2.0.0-alpha.4.5

dist/wasm.js

6

dist/node.js

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

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