Socket
Socket
Sign inDemoInstall

coffeescript

Package Overview
Dependencies
0
Maintainers
3
Versions
73
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.6.1 to 2.7.0

2

lib/coffeescript/browser.js

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

// Generated by CoffeeScript 2.6.1
// Generated by CoffeeScript 2.7.0
(function() {

@@ -3,0 +3,0 @@ // This **Browser** compatibility layer extends core CoffeeScript functions

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

// Generated by CoffeeScript 2.6.1
// Generated by CoffeeScript 2.7.0
(function() {

@@ -3,0 +3,0 @@ // `cake` is a simplified version of [Make](http://www.gnu.org/software/make/)

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

// Generated by CoffeeScript 2.6.1
// Generated by CoffeeScript 2.7.0
(function() {

@@ -7,4 +7,3 @@ // CoffeeScript can be used both on the server, as a command-line compiler based

// source CoffeeScript into JavaScript.
var FILE_EXTENSIONS, Lexer, SourceMap, base64encode, checkShebangLine, compile, formatSourcePosition, getSourceMap, helpers, lexer, packageJson, parser, registerCompiled, sourceMaps, sources, withPrettyErrors,
indexOf = [].indexOf;
var FILE_EXTENSIONS, Lexer, SourceMap, base64encode, checkShebangLine, compile, getSourceMap, helpers, lexer, packageJson, parser, registerCompiled, withPrettyErrors;

@@ -31,2 +30,9 @@ ({Lexer} = require('./lexer'));

({getSourceMap, registerCompiled} = SourceMap);
// This is exported to enable an external module to implement caching of
// sourcemaps. This is used only when `patchStackTrace` has been called to adjust
// stack traces for files with cached source maps.
exports.registerCompiled = registerCompiled;
// Function that allows for btoa in both nodejs and the browser.

@@ -67,32 +73,2 @@ base64encode = function(src) {

// For each compiled file, save its source in memory in case we need to
// recompile it later. We might need to recompile if the first compilation
// didn’t create a source map (faster) but something went wrong and we need
// a stack trace. Assuming that most of the time, code isn’t throwing
// exceptions, it’s probably more efficient to compile twice only when we
// need a stack trace, rather than always generating a source map even when
// it’s not likely to be used. Save in form of `filename`: [`(source)`]
sources = {};
// Also save source maps if generated, in form of `(source)`: [`(source map)`].
sourceMaps = {};
// This is exported to enable an external module to implement caching of
// compilation results. When the compiled js source is loaded from cache, the
// original coffee code should be added with this method in order to enable the
// Error.prepareStackTrace below to correctly adjust the stack trace for the
// corresponding file (the source map will be generated on demand).
exports.registerCompiled = registerCompiled = function(filename, source, sourcemap) {
if (sources[filename] == null) {
sources[filename] = [];
}
sources[filename].push(source);
if (sourcemap != null) {
if (sourceMaps[filename] == null) {
sourceMaps[filename] = [];
}
return sourceMaps[filename].push(sourcemap);
}
};
// Compile CoffeeScript code to JavaScript, using the Coffee/Jison compiler.

@@ -109,10 +85,7 @@

exports.compile = compile = withPrettyErrors(function(code, options = {}) {
var ast, currentColumn, currentLine, encoded, filename, fragment, fragments, generateSourceMap, header, i, j, js, len, len1, map, newLines, nodes, range, ref, ref1, sourceCodeLastLine, sourceCodeNumberOfLines, sourceMapDataURI, sourceURL, token, tokens, transpiler, transpilerOptions, transpilerOutput, v3SourceMap;
var ast, currentColumn, currentLine, encoded, filename, fragment, fragments, generateSourceMap, header, i, j, js, len, len1, map, newLines, nodes, range, ref, sourceCodeLastLine, sourceCodeNumberOfLines, sourceMapDataURI, sourceURL, token, tokens, transpiler, transpilerOptions, transpilerOutput, v3SourceMap;
// Clone `options`, to avoid mutating the `options` object passed in.
options = Object.assign({}, options);
// Always generate a source map if no filename is passed in, since without a
// a filename we have no way to retrieve this source later in the event that
// we need to recompile it to get a source map for `prepareStackTrace`.
generateSourceMap = options.sourceMap || options.inlineMap || (options.filename == null);
filename = options.filename || '<anonymous>';
filename = options.filename || helpers.anonymousFileName();
checkShebangLine(filename, code);

@@ -234,3 +207,3 @@ if (generateSourceMap) {

sourceMapDataURI = `//# sourceMappingURL=data:application/json;base64,${encoded}`;
sourceURL = `//# sourceURL=${(ref1 = options.filename) != null ? ref1 : 'coffeescript'}`;
sourceURL = `//# sourceURL=${filename}`;
js = `${js}\n${sourceMapDataURI}\n${sourceURL}`;

@@ -338,106 +311,54 @@ }

// Based on http://v8.googlecode.com/svn/branches/bleeding_edge/src/messages.js
// Modified to handle sourceMap
formatSourcePosition = function(frame, getSourceMapping) {
var as, column, fileLocation, filename, functionName, isConstructor, isMethodCall, line, methodName, source, tp, typeName;
filename = void 0;
fileLocation = '';
if (frame.isNative()) {
fileLocation = "native";
} else {
if (frame.isEval()) {
filename = frame.getScriptNameOrSourceURL();
if (!filename) {
fileLocation = `${frame.getEvalOrigin()}, `;
exports.patchStackTrace = function() {
var formatSourcePosition, getSourceMapping;
// Based on http://v8.googlecode.com/svn/branches/bleeding_edge/src/messages.js
// Modified to handle sourceMap
formatSourcePosition = function(frame, getSourceMapping) {
var as, column, fileLocation, filename, functionName, isConstructor, isMethodCall, line, methodName, source, tp, typeName;
filename = void 0;
fileLocation = '';
if (frame.isNative()) {
fileLocation = "native";
} else {
if (frame.isEval()) {
filename = frame.getScriptNameOrSourceURL();
if (!filename) {
fileLocation = `${frame.getEvalOrigin()}, `;
}
} else {
filename = frame.getFileName();
}
} else {
filename = frame.getFileName();
filename || (filename = "<anonymous>");
line = frame.getLineNumber();
column = frame.getColumnNumber();
// Check for a sourceMap position
source = getSourceMapping(filename, line, column);
fileLocation = source ? `${filename}:${source[0]}:${source[1]}` : `${filename}:${line}:${column}`;
}
filename || (filename = "<anonymous>");
line = frame.getLineNumber();
column = frame.getColumnNumber();
// Check for a sourceMap position
source = getSourceMapping(filename, line, column);
fileLocation = source ? `${filename}:${source[0]}:${source[1]}` : `${filename}:${line}:${column}`;
}
functionName = frame.getFunctionName();
isConstructor = frame.isConstructor();
isMethodCall = !(frame.isToplevel() || isConstructor);
if (isMethodCall) {
methodName = frame.getMethodName();
typeName = frame.getTypeName();
if (functionName) {
tp = as = '';
if (typeName && functionName.indexOf(typeName)) {
tp = `${typeName}.`;
functionName = frame.getFunctionName();
isConstructor = frame.isConstructor();
isMethodCall = !(frame.isToplevel() || isConstructor);
if (isMethodCall) {
methodName = frame.getMethodName();
typeName = frame.getTypeName();
if (functionName) {
tp = as = '';
if (typeName && functionName.indexOf(typeName)) {
tp = `${typeName}.`;
}
if (methodName && functionName.indexOf(`.${methodName}`) !== functionName.length - methodName.length - 1) {
as = ` [as ${methodName}]`;
}
return `${tp}${functionName}${as} (${fileLocation})`;
} else {
return `${typeName}.${methodName || '<anonymous>'} (${fileLocation})`;
}
if (methodName && functionName.indexOf(`.${methodName}`) !== functionName.length - methodName.length - 1) {
as = ` [as ${methodName}]`;
}
return `${tp}${functionName}${as} (${fileLocation})`;
} else if (isConstructor) {
return `new ${functionName || '<anonymous>'} (${fileLocation})`;
} else if (functionName) {
return `${functionName} (${fileLocation})`;
} else {
return `${typeName}.${methodName || '<anonymous>'} (${fileLocation})`;
return fileLocation;
}
} else if (isConstructor) {
return `new ${functionName || '<anonymous>'} (${fileLocation})`;
} else if (functionName) {
return `${functionName} (${fileLocation})`;
} else {
return fileLocation;
}
};
getSourceMap = function(filename, line, column) {
var answer, i, map, ref, ref1, sourceLocation;
if (!(filename === '<anonymous>' || (ref = filename.slice(filename.lastIndexOf('.')), indexOf.call(FILE_EXTENSIONS, ref) >= 0))) {
// Skip files that we didn’t compile, like Node system files that appear in
// the stack trace, as they never have source maps.
return null;
}
if (filename !== '<anonymous>' && (sourceMaps[filename] != null)) {
return sourceMaps[filename][sourceMaps[filename].length - 1];
// CoffeeScript compiled in a browser or via `CoffeeScript.compile` or `.run`
// may get compiled with `options.filename` that’s missing, which becomes
// `<anonymous>`; but the runtime might request the stack trace with the
// filename of the script file. See if we have a source map cached under
// `<anonymous>` that matches the error.
} else if (sourceMaps['<anonymous>'] != null) {
ref1 = sourceMaps['<anonymous>'];
// Work backwards from the most recent anonymous source maps, until we find
// one that works. This isn’t foolproof; there is a chance that multiple
// source maps will have line/column pairs that match. But we have no other
// way to match them. `frame.getFunction().toString()` doesn’t always work,
// and it’s not foolproof either.
for (i = ref1.length - 1; i >= 0; i += -1) {
map = ref1[i];
sourceLocation = map.sourceLocation([line - 1, column - 1]);
if (((sourceLocation != null ? sourceLocation[0] : void 0) != null) && (sourceLocation[1] != null)) {
return map;
}
}
}
// If all else fails, recompile this source to get a source map. We need the
// previous section (for `<anonymous>`) despite this option, because after it
// gets compiled we will still need to look it up from
// `sourceMaps['<anonymous>']` in order to find and return it. That’s why we
// start searching from the end in the previous block, because most of the
// time the source map we want is the last one.
if (sources[filename] != null) {
answer = compile(sources[filename][sources[filename].length - 1], {
filename: filename,
sourceMap: true,
literate: helpers.isLiterate(filename)
});
return answer.sourceMap;
} else {
return null;
}
};
// Based on [michaelficarra/CoffeeScriptRedux](http://goo.gl/ZTx1p)
// NodeJS / V8 have no support for transforming positions in stack traces using
// sourceMap, so we must monkey-patch Error to display CoffeeScript source
// positions.
Error.prepareStackTrace = function(err, stack) {
var frame, frames, getSourceMapping;
};
getSourceMapping = function(filename, line, column) {

@@ -455,15 +376,23 @@ var answer, sourceMap;

};
frames = (function() {
var i, len, results;
results = [];
for (i = 0, len = stack.length; i < len; i++) {
frame = stack[i];
if (frame.getFunction() === exports.run) {
break;
// Based on [michaelficarra/CoffeeScriptRedux](http://goo.gl/ZTx1p)
// NodeJS / V8 have no support for transforming positions in stack traces using
// sourceMap, so we must monkey-patch Error to display CoffeeScript source
// positions.
return Error.prepareStackTrace = function(err, stack) {
var frame, frames;
frames = (function() {
var i, len, results;
results = [];
for (i = 0, len = stack.length; i < len; i++) {
frame = stack[i];
if (frame.getFunction() === exports.run) {
// Don’t display stack frames deeper than `CoffeeScript.run`.
break;
}
results.push(` at ${formatSourcePosition(frame, getSourceMapping)}`);
}
results.push(` at ${formatSourcePosition(frame, getSourceMapping)}`);
}
return results;
})();
return `${err.toString()}\n${frames.join('\n')}\n`;
return results;
})();
return `${err.toString()}\n${frames.join('\n')}\n`;
};
};

@@ -470,0 +399,0 @@

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

// Generated by CoffeeScript 2.6.1
// Generated by CoffeeScript 2.7.0
(function() {

@@ -698,3 +698,3 @@ // The `coffee` utility. Handles command-line compilation of CoffeeScript

jsPath,
sourceRoot: path.relative(jsDir, cwd),
sourceRoot: path.relative(jsDir, cwd) + path.sep,
sourceFiles: [path.relative(cwd, filename)],

@@ -701,0 +701,0 @@ generatedFile: helpers.baseFileName(jsPath, false, useWinPathSep)

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

// Generated by CoffeeScript 2.6.1
// Generated by CoffeeScript 2.7.0
(function() {

@@ -284,2 +284,12 @@ // This file contains the common helper functions that we'd like to share among

// Generate a unique anonymous file name so we can distinguish source map cache
// entries for any number of anonymous scripts.
exports.anonymousFileName = (function() {
var n;
n = 0;
return function() {
return `<anonymous-${n++}>`;
};
})();
// A `.coffee.md` compatible version of `basename`, that returns the file sans-extension.

@@ -341,3 +351,3 @@ exports.baseFileName = function(file, stripExt = false, useWinPathSep = false) {

syntaxErrorToString = function() {
var codeLine, colorize, colorsEnabled, end, filename, first_column, first_line, last_column, last_line, marker, ref1, ref2, ref3, start;
var codeLine, colorize, colorsEnabled, end, filename, first_column, first_line, last_column, last_line, marker, ref1, ref2, ref3, ref4, start;
if (!(this.code && this.location)) {

@@ -353,3 +363,7 @@ return Error.prototype.toString.call(this);

}
filename = this.filename || '[stdin]';
if ((ref1 = this.filename) != null ? ref1.startsWith('<anonymous') : void 0) {
filename = '[stdin]';
} else {
filename = this.filename || '[stdin]';
}
codeLine = this.code.split('\n')[first_line];

@@ -362,5 +376,5 @@ start = first_column;

if (typeof process !== "undefined" && process !== null) {
colorsEnabled = ((ref1 = process.stdout) != null ? ref1.isTTY : void 0) && !((ref2 = process.env) != null ? ref2.NODE_DISABLE_COLORS : void 0);
colorsEnabled = ((ref2 = process.stdout) != null ? ref2.isTTY : void 0) && !((ref3 = process.env) != null ? ref3.NODE_DISABLE_COLORS : void 0);
}
if ((ref3 = this.colorful) != null ? ref3 : colorsEnabled) {
if ((ref4 = this.colorful) != null ? ref4 : colorsEnabled) {
colorize = function(str) {

@@ -367,0 +381,0 @@ return `\x1B[1;31m${str}\x1B[0m`;

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

// Generated by CoffeeScript 2.6.1
// Generated by CoffeeScript 2.7.0
(function() {

@@ -54,3 +54,3 @@ // Node.js Implementation

// Set the filename.
mainModule.filename = process.argv[1] = options.filename ? fs.realpathSync(options.filename) : '<anonymous>';
mainModule.filename = process.argv[1] = options.filename ? fs.realpathSync(options.filename) : helpers.anonymousFileName();
// Clear the module cache.

@@ -63,7 +63,7 @@ mainModule.moduleCache && (mainModule.moduleCache = {});

mainModule.options = options;
options.filename = mainModule.filename;
options.inlineMap = true;
// Compile.
if (!helpers.isCoffee(mainModule.filename) || require.extensions) {
answer = CoffeeScript.compile(code, options);
code = (ref = answer.js) != null ? ref : answer;
}
answer = CoffeeScript.compile(code, options);
code = (ref = answer.js) != null ? ref : answer;
return mainModule._compile(code, mainModule.filename);

@@ -164,4 +164,3 @@ };

literate: helpers.isLiterate(filename),
sourceFiles: [filename],
inlineMap: true // Always generate a source map, so that stack traces line up.
sourceFiles: [filename]
});

@@ -215,2 +214,4 @@ try {

module.exports.patchStackTrace = CoffeeScript.patchStackTrace;
module.exports._compileRawFileContent = CoffeeScript._compileRawFileContent;

@@ -217,0 +218,0 @@

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

// Generated by CoffeeScript 2.6.1
// Generated by CoffeeScript 2.7.0
(function() {

@@ -3,0 +3,0 @@ var LONG_FLAG, MULTI_FLAG, OPTIONAL, OptionParser, SHORT_FLAG, buildRule, buildRules, normalizeArguments, repeat,

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

// Generated by CoffeeScript 2.6.1
// Generated by CoffeeScript 2.7.0
(function() {
var CoffeeScript, Module, binary, child_process, ext, findExtension, fork, getRootModule, helpers, i, len, loadFile, path, ref;
var CoffeeScript, Module, binary, cacheSourceMaps, child_process, ext, findExtension, fork, getRootModule, helpers, i, len, loadFile, nodeSourceMapsSupportEnabled, patchStackTrace, path, ref, ref1;

@@ -13,8 +13,23 @@ CoffeeScript = require('./');

({patchStackTrace} = CoffeeScript);
// Check if Node's built-in source map stack trace transformations are enabled.
nodeSourceMapsSupportEnabled = (typeof process !== "undefined" && process !== null) && (process.execArgv.includes('--enable-source-maps') || ((ref = process.env.NODE_OPTIONS) != null ? ref.includes('--enable-source-maps') : void 0));
if (!(Error.prepareStackTrace || nodeSourceMapsSupportEnabled)) {
cacheSourceMaps = true;
patchStackTrace();
}
// Load and run a CoffeeScript file for Node, stripping any `BOM`s.
loadFile = function(module, filename) {
var answer, options;
options = module.options || getRootModule(module).options;
answer = CoffeeScript._compileFile(filename, options);
return module._compile(answer, filename);
var js, options;
options = module.options || getRootModule(module).options || {};
// Currently `CoffeeScript.compile` caches all source maps if present. They
// are available in `getSourceMap` retrieved by `filename`.
if (cacheSourceMaps || nodeSourceMapsSupportEnabled) {
options.inlineMap = true;
}
js = CoffeeScript._compileFile(filename, options);
return module._compile(js, filename);
};

@@ -25,5 +40,5 @@

if (require.extensions) {
ref = CoffeeScript.FILE_EXTENSIONS;
for (i = 0, len = ref.length; i < len; i++) {
ext = ref[i];
ref1 = CoffeeScript.FILE_EXTENSIONS;
for (i = 0, len = ref1.length; i < len; i++) {
ext = ref1[i];
require.extensions[ext] = loadFile;

@@ -30,0 +45,0 @@ }

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

// Generated by CoffeeScript 2.6.1
// Generated by CoffeeScript 2.7.0
(function() {

@@ -3,0 +3,0 @@ var CoffeeScript, addHistory, addMultilineHandler, fs, getCommandId, merge, nodeREPL, path, replDefaults, runInContext, sawSIGINT, transpile, updateSyntaxError, vm;

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

// Generated by CoffeeScript 2.6.1
// Generated by CoffeeScript 2.7.0
(function() {

@@ -292,3 +292,3 @@ // The CoffeeScript language has a good deal of optional syntax, implicit syntax,

return this.scanTokens(function(token, i, tokens) {
var endImplicitCall, endImplicitObject, forward, implicitObjectContinues, implicitObjectIndent, inControlFlow, inImplicit, inImplicitCall, inImplicitControl, inImplicitObject, isImplicit, isImplicitCall, isImplicitObject, k, newLine, nextTag, nextToken, offset, preContinuationLineIndent, preObjectToken, prevTag, prevToken, ref, ref1, ref2, ref3, s, sameLine, stackIdx, stackItem, stackTag, stackTop, startIdx, startImplicitCall, startImplicitObject, startIndex, startTag, startsLine, tag;
var endImplicitCall, endImplicitObject, forward, implicitObjectContinues, implicitObjectIndent, inControlFlow, inImplicit, inImplicitCall, inImplicitControl, inImplicitObject, isImplicit, isImplicitCall, isImplicitObject, k, newLine, nextTag, nextToken, offset, preContinuationLineIndent, preObjectToken, prevTag, prevToken, ref, ref1, ref2, ref3, ref4, ref5, s, sameLine, stackIdx, stackItem, stackNext, stackTag, stackTop, startIdx, startImplicitCall, startImplicitObject, startIndex, startTag, startsLine, tag;
[tag] = token;

@@ -480,5 +480,5 @@ [prevTag] = prevToken = i > 0 ? tokens[i - 1] : [];

// which is probably always unintended.
// Furthermore don’t allow this in literal arrays, as
// that creates grammatical ambiguities.
if (indexOf.call(IMPLICIT_FUNC, tag) >= 0 && this.indexOfTag(i + 1, 'INDENT') > -1 && this.looksObjectish(i + 2) && !this.findTagsBackwards(i, ['CLASS', 'EXTENDS', 'IF', 'CATCH', 'SWITCH', 'LEADING_WHEN', 'FOR', 'WHILE', 'UNTIL'])) {
// Furthermore don’t allow this in the first line of a literal array
// or explicit object, as that creates grammatical ambiguities (#5368).
if (indexOf.call(IMPLICIT_FUNC, tag) >= 0 && this.indexOfTag(i + 1, 'INDENT') > -1 && this.looksObjectish(i + 2) && !this.findTagsBackwards(i, ['CLASS', 'EXTENDS', 'IF', 'CATCH', 'SWITCH', 'LEADING_WHEN', 'FOR', 'WHILE', 'UNTIL']) && !(((ref1 = (s = (ref2 = stackTop()) != null ? ref2[0] : void 0)) === '{' || ref1 === '[') && !isImplicit(stackTop()) && this.findTagsBackwards(i, s))) {
startImplicitCall(i + 1);

@@ -492,5 +492,5 @@ stack.push(['INDENT', i + 2]);

s = (function() {
var ref1;
var ref3;
switch (false) {
case ref1 = this.tag(i - 1), indexOf.call(EXPRESSION_END, ref1) < 0:
case ref3 = this.tag(i - 1), indexOf.call(EXPRESSION_END, ref3) < 0:
[startTag, startIndex] = start;

@@ -509,7 +509,9 @@ if (startTag === '[' && startIndex > 0 && this.tag(startIndex - 1) === '@' && !tokens[startIndex - 1].spaced) {

}).call(this);
startsLine = s <= 0 || (ref1 = this.tag(s - 1), indexOf.call(LINEBREAKS, ref1) >= 0) || tokens[s - 1].newLine;
startsLine = s <= 0 || (ref3 = this.tag(s - 1), indexOf.call(LINEBREAKS, ref3) >= 0) || tokens[s - 1].newLine;
// Are we just continuing an already declared object?
// Including the case where we indent on the line after an explicit '{'.
if (stackTop()) {
[stackTag, stackIdx] = stackTop();
if ((stackTag === '{' || stackTag === 'INDENT' && this.tag(stackIdx - 1) === '{') && (startsLine || this.tag(s - 1) === ',' || this.tag(s - 1) === '{') && (ref2 = this.tag(s - 1), indexOf.call(UNFINISHED, ref2) < 0)) {
stackNext = stack[stack.length - 2];
if ((stackTag === '{' || stackTag === 'INDENT' && (stackNext != null ? stackNext[0] : void 0) === '{' && !isImplicit(stackNext) && this.findTagsBackwards(stackIdx - 1, ['{'])) && (startsLine || this.tag(s - 1) === ',' || this.tag(s - 1) === '{') && (ref4 = this.tag(s - 1), indexOf.call(UNFINISHED, ref4) < 0)) {
return forward(1);

@@ -595,3 +597,3 @@ }

if (tag === ',' && !this.looksObjectish(i + 1) && inImplicitObject() && !((ref3 = this.tag(i + 2)) === 'FOROF' || ref3 === 'FORIN') && (nextTag !== 'TERMINATOR' || !this.looksObjectish(i + 2))) {
if (tag === ',' && !this.looksObjectish(i + 1) && inImplicitObject() && !((ref5 = this.tag(i + 2)) === 'FOROF' || ref5 === 'FORIN') && (nextTag !== 'TERMINATOR' || !this.looksObjectish(i + 2))) {
// When nextTag is OUTDENT the comma is insignificant and

@@ -598,0 +600,0 @@ // should just be ignored so embed it in the implicit object.

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

// Generated by CoffeeScript 2.6.1
// Generated by CoffeeScript 2.7.0
(function() {

@@ -3,0 +3,0 @@ // The **Scope** class regulates lexical scoping within CoffeeScript. As you

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

// Generated by CoffeeScript 2.6.1
// Generated by CoffeeScript 2.7.0
(function() {

@@ -88,2 +88,12 @@ // Source maps allow JavaScript runtimes to match running JavaScript back to

static registerCompiled(filename, source, sourcemap) {
if (sourcemap != null) {
return SourceMap.sourceMaps[filename] = sourcemap;
}
}
static getSourceMap(filename) {
return SourceMap.sourceMaps[filename];
}
// V3 SourceMap Generation

@@ -187,2 +197,10 @@ // -----------------------

// Caching
// -------
// A static source maps cache `filename`: `map`. These are used for transforming
// stack traces and are currently set in `CoffeeScript.compile` for all files
// compiled with the source maps option.
SourceMap.sourceMaps = Object.create(null);
// Base64 VLQ Encoding

@@ -189,0 +207,0 @@ // -------------------

@@ -11,3 +11,3 @@ {

"author": "Jeremy Ashkenas",
"version": "2.6.1",
"version": "2.7.0",
"license": "MIT",

@@ -44,14 +44,14 @@ "engines": {

"devDependencies": {
"@babel/core": "~7.15.5",
"@babel/preset-env": "~7.15.6",
"@babel/core": "~7.17.8",
"@babel/preset-env": "~7.16.11",
"babel-preset-minify": "~0.5.1",
"codemirror": "~5.62.3",
"docco": "~0.8.1",
"highlight.js": "~11.2.0",
"codemirror": "~5.65.2",
"docco": "~0.9.1",
"highlight.js": "~11.5.0",
"jison": "~0.4.18",
"markdown-it": "~12.2.0",
"puppeteer": "~10.2.0",
"underscore": "~1.13.1",
"webpack": "~5.53.0"
"markdown-it": "~12.3.2",
"puppeteer": "~13.5.2",
"underscore": "~1.13.2",
"webpack": "~5.71.0"
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc