Socket
Socket
Sign inDemoInstall

coffeescript

Package Overview
Dependencies
Maintainers
3
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffeescript - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

5

lib/coffee-script/browser.js

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

// Generated by CoffeeScript 1.3.1
// Generated by CoffeeScript 1.3.2
(function() {

@@ -10,6 +10,7 @@ var CoffeeScript, runScripts;

CoffeeScript["eval"] = function(code, options) {
var _ref;
if (options == null) {
options = {};
}
if (options.bare == null) {
if ((_ref = options.bare) == null) {
options.bare = true;

@@ -16,0 +17,0 @@ }

2

lib/coffee-script/cake.js

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

// Generated by CoffeeScript 1.3.1
// Generated by CoffeeScript 1.3.2
(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.3.1
// Generated by CoffeeScript 1.3.2
(function() {

@@ -30,3 +30,3 @@ var Lexer, RESERVED, compile, fs, lexer, parser, path, vm, _ref,

exports.VERSION = '1.3.1';
exports.VERSION = '1.3.2';

@@ -33,0 +33,0 @@ exports.RESERVED = RESERVED;

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

// Generated by CoffeeScript 1.3.1
// Generated by CoffeeScript 1.3.2
(function() {

@@ -112,3 +112,3 @@ var BANNER, CoffeeScript, EventEmitter, SWITCHES, compileJoin, compileOptions, compilePath, compileScript, compileStdio, exec, forkNode, fs, helpers, hidden, joinTimeout, lint, loadRequires, notSources, optionParser, optparse, opts, outputPath, parseOptions, path, printLine, printTokens, printWarn, removeSource, sourceCode, sources, spawn, timeLog, unwatchDir, usage, version, wait, watch, watchDir, watchers, writeJs, _ref;

return fs.readdir(source, function(err, files) {
var file, index, _i, _len, _ref1, _ref2, _results;
var file, index, _ref1, _ref2;
if (err && err.code !== 'ENOENT') {

@@ -121,2 +121,5 @@ throw err;

index = sources.indexOf(source);
files = files.filter(function(file) {
return !hidden(file);
});
[].splice.apply(sources, [index, index - index + 1].concat(_ref1 = (function() {

@@ -134,10 +137,5 @@ var _i, _len, _results;

}))), _ref2;
_results = [];
for (_i = 0, _len = files.length; _i < _len; _i++) {
file = files[_i];
if (!hidden(file)) {
_results.push(compilePath(path.join(source, file), false, base));
}
}
return _results;
return files.forEach(function(file) {
return compilePath(path.join(source, file), false, base);
});
});

@@ -144,0 +142,0 @@ } else if (topLevel || path.extname(source) === '.coffee') {

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

// Generated by CoffeeScript 1.3.1
// Generated by CoffeeScript 1.3.2
(function() {

@@ -67,9 +67,8 @@ var Parser, alt, alternatives, grammar, name, o, operators, token, tokens, unwrap;

return new Literal($1);
}), o('UNDEFINED', function() {
return new Undefined;
}), o('NULL', function() {
return new Null;
}), o('BOOL', function() {
var val;
val = new Literal($1);
if ($1 === 'undefined') {
val.isUndefined = true;
}
return val;
return new Bool($1);
})

@@ -131,2 +130,6 @@ ],

return $1.concat($3);
}), o('ParamList OptComma TERMINATOR Param', function() {
return $1.concat($4);
}), o('ParamList OptComma INDENT ParamList OptComma OUTDENT', function() {
return $1.concat($4);
})

@@ -418,3 +421,3 @@ ],

ForValue: [
o('Identifier'), o('Array', function() {
o('Identifier'), o('ThisProperty'), o('Array', function() {
return new Value($1);

@@ -421,0 +424,0 @@ }), o('Object', function() {

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

// Generated by CoffeeScript 1.3.1
// Generated by CoffeeScript 1.3.2
(function() {

@@ -3,0 +3,0 @@ var extend, flatten;

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

// Generated by CoffeeScript 1.3.1
// Generated by CoffeeScript 1.3.2
(function() {

@@ -3,0 +3,0 @@ var key, val, _ref;

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

// Generated by CoffeeScript 1.3.1
// Generated by CoffeeScript 1.3.2
(function() {

@@ -12,4 +12,2 @@ var BOOL, CALLABLE, CODE, COFFEE_ALIASES, COFFEE_ALIAS_MAP, COFFEE_KEYWORDS, COMMENT, COMPARE, COMPOUND_ASSIGN, HEREDOC, HEREDOC_ILLEGAL, HEREDOC_INDENT, HEREGEX, HEREGEX_OMIT, IDENTIFIER, INDEXABLE, INVERSES, JSTOKEN, JS_FORBIDDEN, JS_KEYWORDS, LINE_BREAK, LINE_CONTINUER, LOGIC, Lexer, MATH, MULTILINER, MULTI_DENT, NOT_REGEX, NOT_SPACED_REGEX, NUMBER, OPERATOR, REGEX, RELATION, RESERVED, Rewriter, SHIFT, SIMPLESTR, STRICT_PROSCRIBED, TRAILING_SPACES, UNARY, WHITESPACE, compact, count, key, last, starts, _ref, _ref1,

Lexer.name = 'Lexer';
function Lexer() {}

@@ -108,4 +106,2 @@

case 'false':
case 'null':
case 'undefined':
return 'BOOL';

@@ -175,3 +171,3 @@ case 'break':

}
if (octalEsc = /^(?:\\.|[^\\])*\\[0-7]/.test(string)) {
if (octalEsc = /^(?:\\.|[^\\])*\\(?:0[0-7]|[1-7])/.test(string)) {
this.error("octal escape sequences " + string + " are not allowed");

@@ -783,5 +779,5 @@ }

BOOL = ['TRUE', 'FALSE', 'NULL', 'UNDEFINED'];
BOOL = ['TRUE', 'FALSE'];
NOT_REGEX = ['NUMBER', 'REGEX', 'BOOL', '++', '--', ']'];
NOT_REGEX = ['NUMBER', 'REGEX', 'BOOL', 'NULL', 'UNDEFINED', '++', '--', ']'];

@@ -792,3 +788,3 @@ NOT_SPACED_REGEX = NOT_REGEX.concat(')', '}', 'THIS', 'IDENTIFIER', 'STRING');

INDEXABLE = CALLABLE.concat('NUMBER', 'BOOL');
INDEXABLE = CALLABLE.concat('NUMBER', 'BOOL', 'NULL', 'UNDEFINED');

@@ -795,0 +791,0 @@ LINE_BREAK = ['INDENT', 'OUTDENT', 'TERMINATOR'];

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

// Generated by CoffeeScript 1.3.1
// Generated by CoffeeScript 1.3.2
(function() {

@@ -7,4 +7,2 @@ var LONG_FLAG, MULTI_FLAG, OPTIONAL, OptionParser, SHORT_FLAG, buildRule, buildRules, normalizeArguments;

OptionParser.name = 'OptionParser';
function OptionParser(rules, banner) {

@@ -11,0 +9,0 @@ this.banner = banner;

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

// Generated by CoffeeScript 1.3.1
// Generated by CoffeeScript 1.3.2
(function() {

@@ -44,3 +44,3 @@ var ACCESSOR, CoffeeScript, Module, REPL_PROMPT, REPL_PROMPT_CONTINUATION, REPL_PROMPT_MULTILINE, SIMPLEVAR, Script, autocomplete, backlog, completeAttribute, completeVariable, enableColours, error, getCompletions, inspect, multilineMode, pipedInput, readline, repl, run, stdin, stdout;

completeAttribute = function(text) {
var all, completions, match, obj, prefix, val;
var all, completions, key, match, obj, prefix, val;
if (match = text.match(ACCESSOR)) {

@@ -53,3 +53,10 @@ all = match[0], obj = match[1], prefix = match[2];

}
completions = getCompletions(prefix, Object.getOwnPropertyNames(Object(val)));
completions = getCompletions(prefix, (function() {
var _results;
_results = [];
for (key in Object(val)) {
_results.push(key);
}
return _results;
})());
return [completions, prefix];

@@ -103,2 +110,3 @@ }

var code, returnValue, _;
buffer = buffer.replace(/(^|[\r\n]+)(\s*)##?(?:[^#\r\n][^\r\n]*|)($|[\r\n])/, "$1$2$3");
buffer = buffer.replace(/[\r\n]+$/, "");

@@ -126,3 +134,3 @@ if (multilineMode) {

_ = global._;
returnValue = CoffeeScript["eval"]("_=(undefined\n;" + code + "\n)", {
returnValue = CoffeeScript["eval"]("_=(" + code + "\n)", {
filename: 'repl',

@@ -129,0 +137,0 @@ modulename: 'repl'

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

// Generated by CoffeeScript 1.3.1
// Generated by CoffeeScript 1.3.2
(function() {

@@ -9,4 +9,2 @@ var BALANCED_PAIRS, EXPRESSION_CLOSE, EXPRESSION_END, EXPRESSION_START, IMPLICIT_BLOCK, IMPLICIT_CALL, IMPLICIT_END, IMPLICIT_FUNC, IMPLICIT_UNSPACED_CALL, INVERSES, LINEBREAKS, SINGLE_CLOSERS, SINGLE_LINERS, left, rite, _i, _len, _ref,

Rewriter.name = 'Rewriter';
function Rewriter() {}

@@ -118,3 +116,3 @@

Rewriter.prototype.addImplicitBraces = function() {
var action, condition, sameLine, stack, start, startIndent, startsLine;
var action, condition, sameLine, stack, start, startIndent, startIndex, startsLine;
stack = [];

@@ -125,2 +123,3 @@ start = null;

startIndent = 0;
startIndex = 0;
condition = function(token, i) {

@@ -136,3 +135,3 @@ var one, tag, three, two, _ref, _ref1;

}
return (((tag === 'TERMINATOR' || tag === 'OUTDENT') || (__indexOf.call(IMPLICIT_END, tag) >= 0 && sameLine)) && ((!startsLine && this.tag(i - 1) !== ',') || !((two != null ? two[0] : void 0) === ':' || (one != null ? one[0] : void 0) === '@' && (three != null ? three[0] : void 0) === ':'))) || (tag === ',' && one && ((_ref1 = one[0]) !== 'IDENTIFIER' && _ref1 !== 'NUMBER' && _ref1 !== 'STRING' && _ref1 !== '@' && _ref1 !== 'TERMINATOR' && _ref1 !== 'OUTDENT'));
return (((tag === 'TERMINATOR' || tag === 'OUTDENT') || (__indexOf.call(IMPLICIT_END, tag) >= 0 && sameLine && !(i - startIndex === 1))) && ((!startsLine && this.tag(i - 1) !== ',') || !((two != null ? two[0] : void 0) === ':' || (one != null ? one[0] : void 0) === '@' && (three != null ? three[0] : void 0) === ':'))) || (tag === ',' && one && ((_ref1 = one[0]) !== 'IDENTIFIER' && _ref1 !== 'NUMBER' && _ref1 !== 'STRING' && _ref1 !== '@' && _ref1 !== 'TERMINATOR' && _ref1 !== 'OUTDENT'));
};

@@ -158,2 +157,3 @@ action = function(token, i) {

sameLine = true;
startIndex = i + 1;
stack.push(['{']);

@@ -340,3 +340,3 @@ idx = ago === '@' ? i - 2 : i - 1;

IMPLICIT_CALL = ['IDENTIFIER', 'NUMBER', 'STRING', 'JS', 'REGEX', 'NEW', 'PARAM_START', 'CLASS', 'IF', 'TRY', 'SWITCH', 'THIS', 'BOOL', 'UNARY', 'SUPER', '@', '->', '=>', '[', '(', '{', '--', '++'];
IMPLICIT_CALL = ['IDENTIFIER', 'NUMBER', 'STRING', 'JS', 'REGEX', 'NEW', 'PARAM_START', 'CLASS', 'IF', 'TRY', 'SWITCH', 'THIS', 'BOOL', 'NULL', 'UNDEFINED', 'UNARY', 'SUPER', '@', '->', '=>', '[', '(', '{', '--', '++'];

@@ -343,0 +343,0 @@ IMPLICIT_UNSPACED_CALL = ['+', '-'];

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

// Generated by CoffeeScript 1.3.1
// Generated by CoffeeScript 1.3.2
(function() {

@@ -9,4 +9,2 @@ var Scope, extend, last, _ref;

Scope.name = 'Scope';
Scope.root = null;

@@ -44,4 +42,11 @@

Scope.prototype.find = function(name, options) {
if (this.check(name, options)) {
Scope.prototype.namedMethod = function() {
if (this.method.name || !this.parent) {
return this.method;
}
return this.parent.namedMethod();
};
Scope.prototype.find = function(name) {
if (this.check(name)) {
return true;

@@ -60,9 +65,5 @@ }

Scope.prototype.check = function(name, immediate) {
var found, _ref1;
found = !!this.type(name);
if (found || immediate) {
return found;
}
return !!((_ref1 = this.parent) != null ? _ref1.check(name) : void 0);
Scope.prototype.check = function(name) {
var _ref1;
return !!(this.type(name) || ((_ref1 = this.parent) != null ? _ref1.check(name) : void 0));
};

@@ -69,0 +70,0 @@

@@ -6,6 +6,6 @@ {

"author": "Jeremy Ashkenas",
"version": "1.3.1",
"version": "1.3.2",
"licenses": [{
"type": "MIT",
"url": "http://github.com/jashkenas/coffee-script/raw/master/LICENSE"
"url": "https://github.com/jashkenas/coffee-script/raw/master/LICENSE"
}],

@@ -24,2 +24,3 @@ "engines": {

"homepage": "http://coffeescript.org",
"bugs": "https://github.com/jashkenas/coffee-script/issues",
"repository": {

@@ -26,0 +27,0 @@ "type": "git",

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc