Socket
Socket
Sign inDemoInstall

coffee-script

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffee-script - npm Package Compare versions

Comparing version 1.3.3 to 1.4.0

CONTRIBUTING.md

4

lib/coffee-script/browser.js

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
(function() {

@@ -34,3 +34,3 @@ var CoffeeScript, runScripts;

var xhr;
xhr = new (window.ActiveXObject || XMLHttpRequest)('Microsoft.XMLHTTP');
xhr = window.ActiveXObject ? new window.ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest();
xhr.open('GET', url, true);

@@ -37,0 +37,0 @@ if ('overrideMimeType' in xhr) {

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
(function() {
var CoffeeScript, cakefileDirectory, fatalError, fs, helpers, missingTask, oparse, options, optparse, path, printTasks, switches, tasks;
var CoffeeScript, cakefileDirectory, existsSync, fatalError, fs, helpers, missingTask, oparse, options, optparse, path, printTasks, switches, tasks;

@@ -15,2 +15,4 @@ fs = require('fs');

existsSync = fs.existsSync || path.existsSync;
tasks = {};

@@ -102,3 +104,3 @@

var parent;
if (path.existsSync(path.join(dir, 'Cakefile'))) {
if (existsSync(path.join(dir, 'Cakefile'))) {
return dir;

@@ -105,0 +107,0 @@ }

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
(function() {
var Lexer, RESERVED, compile, fs, lexer, parser, path, vm, _ref,
var Lexer, RESERVED, compile, fs, lexer, parser, path, stripBOM, vm, _ref,
__hasProp = {}.hasOwnProperty;

@@ -16,6 +16,14 @@

stripBOM = function(content) {
if (content.charCodeAt(0) === 0xFEFF) {
return content.substring(1);
} else {
return content;
}
};
if (require.extensions) {
require.extensions['.coffee'] = function(module, filename) {
var content;
content = compile(fs.readFileSync(filename, 'utf8'), {
content = compile(stripBOM(fs.readFileSync(filename, 'utf8')), {
filename: filename

@@ -25,9 +33,5 @@ });

};
} else if (require.registerExtension) {
require.registerExtension('.coffee', function(content) {
return compile(content);
});
}
exports.VERSION = '1.3.3';
exports.VERSION = '1.4.0';

@@ -34,0 +38,0 @@ exports.RESERVED = RESERVED;

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
(function() {
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;
var BANNER, CoffeeScript, EventEmitter, SWITCHES, compileJoin, compileOptions, compilePath, compileScript, compileStdio, exec, exists, 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;

@@ -19,2 +19,4 @@ fs = require('fs');

exists = fs.exists || path.exists;
helpers.extend(CoffeeScript, new EventEmitter);

@@ -376,4 +378,4 @@

jsPath = outputPath(source, base);
return path.exists(jsPath, function(exists) {
if (exists) {
return exists(jsPath, function(itExists) {
if (itExists) {
return fs.unlink(jsPath, function(err) {

@@ -415,4 +417,4 @@ if (err && err.code !== 'ENOENT') {

};
return path.exists(jsDir, function(exists) {
if (exists) {
return exists(jsDir, function(itExists) {
if (itExists) {
return compile();

@@ -419,0 +421,0 @@ } else {

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
(function() {

@@ -3,0 +3,0 @@ var Parser, alt, alternatives, grammar, name, o, operators, token, tokens, unwrap;

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
(function() {
var extend, flatten;
var extend, flatten, _ref;

@@ -77,2 +77,13 @@ exports.starts = function(string, literal, start) {

exports.some = (_ref = Array.prototype.some) != null ? _ref : function(fn) {
var e, _i, _len;
for (_i = 0, _len = this.length; _i < _len; _i++) {
e = this[_i];
if (fn(e)) {
return true;
}
}
return false;
};
}).call(this);

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
(function() {

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

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
(function() {

@@ -220,2 +220,3 @@ 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,

this.token('JS', (script = match[0]).slice(1, -1));
this.line += count(script, '\n');
return script.length;

@@ -295,3 +296,3 @@ };

Lexer.prototype.lineToken = function() {
var diff, indent, match, noNewlines, prev, size;
var diff, indent, match, noNewlines, size;
if (!(match = MULTI_DENT.exec(this.chunk))) {

@@ -303,3 +304,2 @@ return 0;

this.seenFor = false;
prev = last(this.tokens, 1);
size = indent.length - 1 - indent.lastIndexOf('\n');

@@ -541,3 +541,3 @@ noNewlines = this.unfinished();

if (!stack.length) {
return str.slice(0, i + 1 || 9e9);
return str.slice(0, +i + 1 || 9e9);
}

@@ -720,3 +720,3 @@ end = stack[stack.length - 1];

RESERVED = ['case', 'default', 'function', 'var', 'void', 'with', 'const', 'let', 'enum', 'export', 'import', 'native', '__hasProp', '__extends', '__slice', '__bind', '__indexOf', 'implements', 'interface', 'let', 'package', 'private', 'protected', 'public', 'static', 'yield'];
RESERVED = ['case', 'default', 'function', 'var', 'void', 'with', 'const', 'let', 'enum', 'export', 'import', 'native', '__hasProp', '__extends', '__slice', '__bind', '__indexOf', 'implements', 'interface', 'package', 'private', 'protected', 'public', 'static', 'yield'];

@@ -723,0 +723,0 @@ STRICT_PROSCRIBED = ['arguments', 'eval'];

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
(function() {

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

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
(function() {
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;
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,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };

@@ -44,18 +45,25 @@ stdin = process.openStdin();

completeAttribute = function(text) {
var all, completions, key, match, obj, possibilities, prefix, val;
var all, candidates, completions, key, match, obj, prefix, _i, _len, _ref;
if (match = text.match(ACCESSOR)) {
all = match[0], obj = match[1], prefix = match[2];
try {
val = Script.runInThisContext(obj);
} catch (error) {
obj = Script.runInThisContext(obj);
} catch (e) {
return;
}
val = Object(val);
possibilities = Object.getOwnPropertyNames(val);
for (key in val) {
if (~possibilities.indexOf(val)) {
possibilities.push(key);
if (obj == null) {
return;
}
obj = Object(obj);
candidates = Object.getOwnPropertyNames(obj);
while (obj = Object.getPrototypeOf(obj)) {
_ref = Object.getOwnPropertyNames(obj);
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
key = _ref[_i];
if (__indexOf.call(candidates, key) < 0) {
candidates.push(key);
}
}
}
completions = getCompletions(prefix, possibilities);
completions = getCompletions(prefix, candidates);
return [completions, prefix];

@@ -66,3 +74,3 @@ }

completeVariable = function(text) {
var completions, free, keywords, possibilities, r, vars, _ref;
var candidates, completions, free, key, keywords, r, vars, _i, _len, _ref;
free = (_ref = text.match(SIMPLEVAR)) != null ? _ref[1] : void 0;

@@ -86,4 +94,10 @@ if (text === "") {

})();
possibilities = vars.concat(keywords);
completions = getCompletions(free, possibilities);
candidates = vars;
for (_i = 0, _len = keywords.length; _i < _len; _i++) {
key = keywords[_i];
if (__indexOf.call(candidates, key) < 0) {
candidates.push(key);
}
}
completions = getCompletions(free, candidates);
return [completions, free];

@@ -98,3 +112,3 @@ }

el = candidates[_i];
if (el.indexOf(prefix) === 0) {
if (0 === el.indexOf(prefix)) {
_results.push(el);

@@ -149,3 +163,3 @@ }

if (stdin.readable) {
if (stdin.readable && stdin.isRaw) {
pipedInput = '';

@@ -245,7 +259,8 @@ repl = {

}
if (backlog) {
if (backlog || repl.line) {
backlog = '';
repl.output.write('\n');
repl.historyIndex = -1;
repl.setPrompt(REPL_PROMPT);
return repl.prompt();
repl.output.write('\n(^C again to quit)');
return repl._line((repl.line = ''));
} else {

@@ -252,0 +267,0 @@ return repl.close();

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
(function() {

@@ -124,3 +124,3 @@ 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,

var one, tag, three, two, _ref, _ref1;
_ref = this.tokens.slice(i + 1, (i + 3) + 1 || 9e9), one = _ref[0], two = _ref[1], three = _ref[2];
_ref = this.tokens.slice(i + 1, +(i + 3) + 1 || 9e9), one = _ref[0], two = _ref[1], three = _ref[2];
if ('HERECOMMENT' === (one != null ? one[0] : void 0)) {

@@ -200,3 +200,3 @@ return false;

}
_ref = tokens.slice(i - 1, (i + 1) + 1 || 9e9), prev = _ref[0], current = _ref[1], next = _ref[2];
_ref = tokens.slice(i - 1, +(i + 1) + 1 || 9e9), prev = _ref[0], current = _ref[1], next = _ref[2];
callObject = !noCall && tag === 'INDENT' && next && next.generated && next[0] === '{' && prev && (_ref1 = prev[0], __indexOf.call(IMPLICIT_FUNC, _ref1) >= 0);

@@ -203,0 +203,0 @@ seenSingle = false;

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.4.0
(function() {

@@ -3,0 +3,0 @@ var Scope, extend, last, _ref;

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

"author": "Jeremy Ashkenas",
"version": "1.3.3",
"version": "1.4.0",
"licenses": [{

@@ -23,2 +23,5 @@ "type": "MIT",

},
"scripts": {
"test": "node ./bin/cake test"
},
"homepage": "http://coffeescript.org",

@@ -25,0 +28,0 @@ "bugs": "https://github.com/jashkenas/coffee-script/issues",

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