New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fast-sourcemap-concat

Package Overview
Dependencies
Maintainers
5
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-sourcemap-concat - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

18

lib/source-map.js

@@ -12,3 +12,2 @@ 'use strict';

const endsWith = require('./endsWith');
const validator = require('sourcemap-validator');
const logger = require('heimdalljs-logger')('fast-sourcemap-concat:');

@@ -109,20 +108,3 @@

let valid = true;
if (inputSrcMap) {
try {
// TODO: don't stringify here
validator(source, JSON.stringify(inputSrcMap));
} catch (e) {
logger.error(' invalid sourcemap for: %s', filename);
if (typeof e === 'object' && e !== null) {
logger.error(' error: ', e.message);
}
// print
valid = false;
}
}
if (inputSrcMap && valid) {
let haveLines = countNewLines(source);

@@ -129,0 +111,0 @@ source = this._addMap(filename, inputSrcMap, source, haveLines);

5

package.json
{
"name": "fast-sourcemap-concat",
"version": "2.1.0",
"version": "2.1.1",
"description": "Concatenate files while generating or propagating sourcemaps.",

@@ -23,4 +23,3 @@ "main": "lib/index.js",

"source-map": "^0.4.2",
"source-map-url": "^0.3.0",
"sourcemap-validator": "^1.1.0"
"source-map-url": "^0.3.0"
},

@@ -27,0 +26,0 @@ "devDependencies": {

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