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 2.0.2 to 2.0.3

2

lib/coffeescript/browser.js

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

// Generated by CoffeeScript 2.0.2
// Generated by CoffeeScript 2.0.3
(function() {

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

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

// Generated by CoffeeScript 2.0.2
// Generated by CoffeeScript 2.0.3
(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.0.2
// Generated by CoffeeScript 2.0.3
(function() {

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

exports.compile = compile = withPrettyErrors(function(code, options = {}) {
var currentColumn, currentLine, encoded, filename, fragment, fragments, generateSourceMap, header, i, j, js, len, len1, map, newLines, ref, ref1, sourceMapDataURI, sourceURL, token, tokens, transpiler, transpilerOutput, v3SourceMap;
var currentColumn, currentLine, encoded, filename, fragment, fragments, generateSourceMap, header, i, j, js, len, len1, map, newLines, ref, ref1, sourceMapDataURI, sourceURL, token, tokens, transpiler, transpilerOptions, transpilerOutput, v3SourceMap;
// Clone `options`, to avoid mutating the `options` object passed in.

@@ -181,9 +181,10 @@ options = Object.assign({}, options);

delete options.transpile.transpile;
transpilerOptions = Object.assign({}, options.transpile);
// See https://github.com/babel/babel/issues/827#issuecomment-77573107:
// Babel can take a v3 source map object as input in `inputSourceMap`
// and it will return an *updated* v3 source map object in its output.
if (v3SourceMap && (options.transpile.inputSourceMap == null)) {
options.transpile.inputSourceMap = v3SourceMap;
if (v3SourceMap && (transpilerOptions.inputSourceMap == null)) {
transpilerOptions.inputSourceMap = v3SourceMap;
}
transpilerOutput = transpiler(js, options.transpile);
transpilerOutput = transpiler(js, transpilerOptions);
js = transpilerOutput.code;

@@ -190,0 +191,0 @@ if (v3SourceMap && transpilerOutput.map) {

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

// Generated by CoffeeScript 2.0.2
// Generated by CoffeeScript 2.0.3
(function() {

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

var compile, jsDir, sourceMapPath;
sourceMapPath = outputPath(sourcePath, base, ".js.map");
sourceMapPath = `${jsPath}.map`;
jsDir = path.dirname(jsPath);

@@ -540,0 +540,0 @@ compile = function() {

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

// Generated by CoffeeScript 2.0.2
// Generated by CoffeeScript 2.0.3
(function() {

@@ -825,2 +825,6 @@ // The CoffeeScript parser is generated by [Jison](https://github.com/zaach/jison)

}),
o('EXPORT DEFAULT INDENT Object OUTDENT',
function() {
return new ExportDefaultDeclaration(new Value($4));
}),
o('EXPORT EXPORT_ALL FROM String',

@@ -827,0 +831,0 @@ function() {

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

// Generated by CoffeeScript 2.0.2
// Generated by CoffeeScript 2.0.3
(function() {

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

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

// Generated by CoffeeScript 2.0.2
// Generated by CoffeeScript 2.0.3
(function() {

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

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

// Generated by CoffeeScript 2.0.2
// Generated by CoffeeScript 2.0.3
(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 2.0.2
// Generated by CoffeeScript 2.0.3
(function() {

@@ -3,0 +3,0 @@ var CoffeeScript, Module, binary, child_process, ext, findExtension, fork, getRootModule, helpers, i, len, loadFile, path, ref;

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

// Generated by CoffeeScript 2.0.2
// Generated by CoffeeScript 2.0.3
(function() {

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

eval: function(input, context, filename, cb) {
var Assign, Block, Call, Code, Literal, Value, ast, err, isAsync, js, referencedVars, result, token, tokens;
var Assign, Block, Call, Code, Literal, Value, ast, err, isAsync, js, ref, ref1, referencedVars, result, token, tokens;
// XXX: multiline hack.

@@ -47,2 +47,9 @@ input = input.replace(/\uFF00/g, '\n');

tokens = CoffeeScript.tokens(input);
// Filter out tokens generated just to hold comments.
if (tokens.length >= 2 && tokens[0].generated && ((ref = tokens[0].comments) != null ? ref.length : void 0) !== 0 && tokens[0][1] === '' && tokens[1][0] === 'TERMINATOR') {
tokens = tokens.slice(2);
}
if (tokens.length >= 1 && tokens[tokens.length - 1].generated && ((ref1 = tokens[tokens.length - 1].comments) != null ? ref1.length : void 0) !== 0 && tokens[tokens.length - 1][1] === '') {
tokens.pop();
}
// Collect referenced variable names just like in `CoffeeScript.compile`.

@@ -49,0 +56,0 @@ referencedVars = (function() {

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

// Generated by CoffeeScript 2.0.2
// Generated by CoffeeScript 2.0.3
(function() {

@@ -284,3 +284,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, inImplicit, inImplicitCall, inImplicitControl, inImplicitObject, isImplicit, isImplicitCall, isImplicitObject, k, newLine, nextTag, nextToken, offset, prevTag, prevToken, ref, ref1, s, sameLine, stackIdx, stackItem, stackTag, stackTop, startIdx, startImplicitCall, startImplicitObject, startsLine, tag;
var endImplicitCall, endImplicitObject, forward, implicitObjectContinues, inImplicit, inImplicitCall, inImplicitControl, inImplicitObject, isImplicit, isImplicitCall, isImplicitObject, k, newLine, nextTag, nextToken, offset, prevTag, prevToken, ref, ref1, ref2, s, sameLine, stackIdx, stackItem, stackTag, stackTop, startIdx, startImplicitCall, startImplicitObject, startsLine, tag;
[tag] = token;

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

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

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

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

// Generated by CoffeeScript 2.0.2
// Generated by CoffeeScript 2.0.3
(function() {

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

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

// Generated by CoffeeScript 2.0.2
// Generated by CoffeeScript 2.0.3
(function() {

@@ -3,0 +3,0 @@ // Source maps allow JavaScript runtimes to match running JavaScript back to

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

"author": "Jeremy Ashkenas",
"version": "2.0.2",
"version": "2.0.3",
"license": "MIT",

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc