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
2
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 1.1.0 to 1.2.0

16

lib/source-map.js

@@ -80,5 +80,4 @@ var fs = require('fs-extra');

SourceMap.prototype.addFileSource = function(filename, source) {
SourceMap.prototype.addFileSource = function(filename, source, inputSrcMap) {
var url;
var inputSrcMap;

@@ -98,4 +97,11 @@ if (source.length === 0) {

if (typeof inputSrcMap === 'string') {
inputSrcMap = JSON.parse(inputSrcMap);
}
if (url && (inputSrcMap = this._resolveSourcemap(filename, url))) {
if (inputSrcMap === undefined && url) {
inputSrcMap = this._resolveSourcemap(filename, url);
}
if (inputSrcMap) {
source = this._addMap(filename, inputSrcMap, source);

@@ -286,3 +292,3 @@ } else {

var fullPath;
if (source.slice(0, 1) === '/') {
if (path.isAbsolute(source)) {
fullPath = source;

@@ -446,3 +452,3 @@ } else {

SourceMap.prototype._warn = function(msg) {
console.log(chalk.yellow(msg));
console.warn(chalk.yellow(msg));
};

@@ -449,0 +455,0 @@

{
"name": "fast-sourcemap-concat",
"version": "1.1.0",
"version": "1.2.0",
"description": "Concatenate files while generating or propagating sourcemaps.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -1,4 +0,7 @@

Fast Source Map Concatenation
Fast Source Map Concatenation
-----------------------------
[![Build Status](https://travis-ci.org/ef4/fast-sourcemap-concat.svg?branch=master)](https://travis-ci.org/ef4/fast-sourcemap-concat)
[![Build status](https://ci.appveyor.com/api/projects/status/0iy8on5vieoh3mp2/branch/master?svg=true)](https://ci.appveyor.com/project/embercli/fast-sourcemap-concat/branch/master)
This library lets you concatenate files (with or without their own

@@ -5,0 +8,0 @@ pre-generated sourcemaps), and get a single output file along with a

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