Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

mapcat

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mapcat - npm Package Compare versions

Comparing version
0.1.0
to
0.2.0
+5
-4
lib/index.js

@@ -1,2 +0,3 @@

var SourceMapConsumer, SourceMapGenerator, path, readFileSync, writeFileSync, _ref, _ref2;
// Generated by CoffeeScript 1.6.3
var SourceMapConsumer, SourceMapGenerator, path, readFileSync, writeFileSync, _ref, _ref1;

@@ -7,3 +8,3 @@ _ref = require('fs'), readFileSync = _ref.readFileSync, writeFileSync = _ref.writeFileSync;

_ref2 = require('source-map'), SourceMapConsumer = _ref2.SourceMapConsumer, SourceMapGenerator = _ref2.SourceMapGenerator;
_ref1 = require('source-map'), SourceMapConsumer = _ref1.SourceMapConsumer, SourceMapGenerator = _ref1.SourceMapGenerator;

@@ -22,3 +23,3 @@ exports.cat = function(inputMapFiles, outJSFile, outMapFile) {

src = readFileSync(srcPath, 'utf-8');
src = src.replace(/\/\/@\ssourceMappingURL[^\r\n]*/g, '//');
src = src.replace(/\/\/[@#]\ssourceMappingURL[^\r\n]*/g, '//');
buffer.push(src);

@@ -43,5 +44,5 @@ map.eachMapping(function(mapping) {

}
buffer.push("//@ sourceMappingURL=" + (path.relative(path.dirname(outJSFile), outMapFile)));
buffer.push("//# sourceMappingURL=" + (path.relative(path.dirname(outJSFile), outMapFile)));
writeFileSync(outJSFile, buffer.join('\n'), 'utf-8');
return writeFileSync(outMapFile, generator.toString(), 'utf-8');
};

@@ -5,3 +5,3 @@ {

"main": "lib",
"version": "0.1.0",
"version": "0.2.0",
"engines": { "node" : ">=0.4.0" },

@@ -8,0 +8,0 @@ "maintainers": [{

@@ -17,3 +17,3 @@ {readFileSync, writeFileSync} = require('fs')

src = readFileSync(srcPath, 'utf-8')
src = src.replace(/\/\/@\ssourceMappingURL[^\r\n]*/g, '//')
src = src.replace(/\/\/[@#]\ssourceMappingURL[^\r\n]*/g, '//')
buffer.push(src)

@@ -37,5 +37,5 @@

buffer.push "//@ sourceMappingURL=#{path.relative(path.dirname(outJSFile), outMapFile)}"
buffer.push "//# sourceMappingURL=#{path.relative(path.dirname(outJSFile), outMapFile)}"
writeFileSync(outJSFile, buffer.join('\n'), 'utf-8')
writeFileSync(outMapFile, generator.toString(), 'utf-8')