coffee-script
Advanced tools
Comparing version 1.11.0 to 1.11.1
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.11.0 | ||
// Generated by CoffeeScript 1.11.1 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var CoffeeScript, compile, runScripts, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.11.0 | ||
// Generated by CoffeeScript 1.11.1 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var CoffeeScript, cakefileDirectory, fatalError, fs, helpers, missingTask, oparse, options, optparse, path, printTasks, switches, tasks; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.11.0 | ||
// Generated by CoffeeScript 1.11.1 | ||
(function() { | ||
@@ -20,3 +20,3 @@ var Lexer, SourceMap, base64encode, compile, ext, fn1, formatSourcePosition, fs, getSourceMap, helpers, i, len, lexer, parser, path, ref, sourceMaps, vm, withPrettyErrors, | ||
exports.VERSION = '1.11.0'; | ||
exports.VERSION = '1.11.1'; | ||
@@ -23,0 +23,0 @@ exports.FILE_EXTENSIONS = ['.coffee', '.litcoffee', '.coffee.md']; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.11.0 | ||
// Generated by CoffeeScript 1.11.1 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var BANNER, CoffeeScript, EventEmitter, SWITCHES, compileJoin, compileOptions, compilePath, compileScript, compileStdio, exec, findDirectoryIndex, forkNode, fs, helpers, hidden, joinTimeout, makePrelude, mkdirp, notSources, optionParser, optparse, opts, outputPath, parseOptions, path, printLine, printTokens, printWarn, ref, removeSource, removeSourceDir, silentUnlink, sourceCode, sources, spawn, timeLog, usage, useWinPathSep, version, wait, watch, watchDir, watchedDirs, writeJs, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.11.0 | ||
// Generated by CoffeeScript 1.11.1 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var Parser, alt, alternatives, grammar, name, o, operators, token, tokens, unwrap; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.11.0 | ||
// Generated by CoffeeScript 1.11.1 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var buildLocationData, extend, flatten, ref, repeat, syntaxErrorToString; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.11.0 | ||
// Generated by CoffeeScript 1.11.1 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var key, ref, val; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.11.0 | ||
// Generated by CoffeeScript 1.11.1 | ||
(function() { | ||
@@ -177,3 +177,3 @@ var BOM, BOOL, CALLABLE, CODE, COFFEE_ALIASES, COFFEE_ALIAS_MAP, COFFEE_KEYWORDS, COMMENT, COMPARE, COMPOUND_ASSIGN, HERECOMMENT_ILLEGAL, HEREDOC_DOUBLE, HEREDOC_INDENT, HEREDOC_SINGLE, HEREGEX, HEREGEX_OMIT, IDENTIFIER, INDENTABLE_CLOSERS, INDEXABLE, INVALID_ESCAPE, INVERSES, JSTOKEN, JS_KEYWORDS, LEADING_BLANK_LINE, LINE_BREAK, LINE_CONTINUER, LOGIC, Lexer, MATH, MULTI_DENT, NOT_REGEX, NUMBER, OPERATOR, POSSIBLY_DIVISION, REGEX, REGEX_FLAGS, REGEX_ILLEGAL, RELATION, RESERVED, Rewriter, SHIFT, SIMPLE_STRING_OMIT, STRICT_PROSCRIBED, STRING_DOUBLE, STRING_OMIT, STRING_SINGLE, STRING_START, TRAILING_BLANK_LINE, TRAILING_SPACES, UNARY, UNARY_MATH, VALID_FLAGS, WHITESPACE, compact, count, invertLiterate, isUnassignable, key, locationDataToString, ref, ref1, repeat, starts, throwSyntaxError, | ||
Lexer.prototype.numberToken = function() { | ||
var binaryLiteral, lexedLength, match, number, numberValue, octalLiteral, tag; | ||
var base, lexedLength, match, number, numberValue, ref2, tag; | ||
if (!(match = NUMBER.exec(this.chunk))) { | ||
@@ -184,27 +184,38 @@ return 0; | ||
lexedLength = number.length; | ||
if (/^0[BOX]/.test(number)) { | ||
this.error("radix prefix in '" + number + "' must be lowercase", { | ||
offset: 1 | ||
}); | ||
} else if (/E/.test(number) && !/^0x/.test(number)) { | ||
this.error("exponential notation in '" + number + "' must be indicated with a lowercase 'e'", { | ||
offset: number.indexOf('E') | ||
}); | ||
} else if (/^0\d*[89]/.test(number)) { | ||
this.error("decimal literal '" + number + "' must not be prefixed with '0'", { | ||
length: lexedLength | ||
}); | ||
} else if (/^0\d+/.test(number)) { | ||
this.error("octal literal '" + number + "' must be prefixed with '0o'", { | ||
length: lexedLength | ||
}); | ||
switch (false) { | ||
case !/^0[BOX]/.test(number): | ||
this.error("radix prefix in '" + number + "' must be lowercase", { | ||
offset: 1 | ||
}); | ||
break; | ||
case !/^(?!0x).*E/.test(number): | ||
this.error("exponential notation in '" + number + "' must be indicated with a lowercase 'e'", { | ||
offset: number.indexOf('E') | ||
}); | ||
break; | ||
case !/^0\d*[89]/.test(number): | ||
this.error("decimal literal '" + number + "' must not be prefixed with '0'", { | ||
length: lexedLength | ||
}); | ||
break; | ||
case !/^0\d+/.test(number): | ||
this.error("octal literal '" + number + "' must be prefixed with '0o'", { | ||
length: lexedLength | ||
}); | ||
} | ||
if (octalLiteral = /^0o([0-7]+)/.exec(number)) { | ||
numberValue = parseInt(octalLiteral[1], 8); | ||
base = (function() { | ||
switch (number.charAt(1)) { | ||
case 'b': | ||
return 2; | ||
case 'o': | ||
return 8; | ||
case 'x': | ||
return 16; | ||
default: | ||
return null; | ||
} | ||
})(); | ||
numberValue = base != null ? parseInt(number.slice(2), base) : parseFloat(number); | ||
if ((ref2 = number.charAt(1)) === 'b' || ref2 === 'o') { | ||
number = "0x" + (numberValue.toString(16)); | ||
} else if (binaryLiteral = /^0b([01]+)/.exec(number)) { | ||
numberValue = parseInt(binaryLiteral[1], 2); | ||
number = "0x" + (numberValue.toString(16)); | ||
} else { | ||
numberValue = parseFloat(number); | ||
} | ||
@@ -261,3 +272,3 @@ tag = numberValue === 2e308 ? 'INFINITY' : 'NUMBER'; | ||
if (indent) { | ||
indentRegex = RegExp("^" + indent, "gm"); | ||
indentRegex = RegExp("\\n" + indent, "g"); | ||
} | ||
@@ -269,2 +280,5 @@ this.mergeInterpolationTokens(tokens, { | ||
value = _this.formatString(value); | ||
if (indentRegex) { | ||
value = value.replace(indentRegex, '\n'); | ||
} | ||
if (i === 0) { | ||
@@ -276,5 +290,2 @@ value = value.replace(LEADING_BLANK_LINE, ''); | ||
} | ||
if (indentRegex) { | ||
value = value.replace(indentRegex, ''); | ||
} | ||
return value; | ||
@@ -281,0 +292,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.11.0 | ||
// Generated by CoffeeScript 1.11.1 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var LONG_FLAG, MULTI_FLAG, OPTIONAL, OptionParser, SHORT_FLAG, buildRule, buildRules, normalizeArguments, repeat; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.11.0 | ||
// Generated by CoffeeScript 1.11.1 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var CoffeeScript, Module, binary, child_process, ext, findExtension, fork, helpers, i, len, loadFile, path, ref; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.11.0 | ||
// Generated by CoffeeScript 1.11.1 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var CoffeeScript, addHistory, addMultilineHandler, fs, getCommandId, merge, nodeREPL, path, ref, replDefaults, runInContext, updateSyntaxError, vm; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.11.0 | ||
// Generated by CoffeeScript 1.11.1 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var BALANCED_PAIRS, CALL_CLOSERS, EXPRESSION_CLOSE, EXPRESSION_END, EXPRESSION_START, IMPLICIT_CALL, IMPLICIT_END, IMPLICIT_FUNC, IMPLICIT_UNSPACED_CALL, INVERSES, LINEBREAKS, SINGLE_CLOSERS, SINGLE_LINERS, generate, k, left, len, ref, rite, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.11.0 | ||
// Generated by CoffeeScript 1.11.1 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var Scope, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.11.0 | ||
// Generated by CoffeeScript 1.11.1 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var LineMap, SourceMap; |
@@ -11,3 +11,3 @@ { | ||
"author": "Jeremy Ashkenas", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"license": "MIT", | ||
@@ -14,0 +14,0 @@ "engines": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
375893
8693
4