Comparing version 0.0.27 to 0.0.28
@@ -728,5 +728,5 @@ (function(global) { | ||
})(typeof global !== 'undefined' ? global : this); | ||
System.register("traceur-runtime@0.0.26/src/runtime/polyfills/utils", [], function() { | ||
System.register("traceur-runtime@0.0.28/src/runtime/polyfills/utils", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.26/src/runtime/polyfills/utils"; | ||
var __moduleName = "traceur-runtime@0.0.28/src/runtime/polyfills/utils"; | ||
var toObject = $traceurRuntime.toObject; | ||
@@ -745,7 +745,7 @@ function toUint32(x) { | ||
}); | ||
System.register("traceur-runtime@0.0.26/src/runtime/polyfills/ArrayIterator", [], function() { | ||
System.register("traceur-runtime@0.0.28/src/runtime/polyfills/ArrayIterator", [], function() { | ||
"use strict"; | ||
var $__4; | ||
var __moduleName = "traceur-runtime@0.0.26/src/runtime/polyfills/ArrayIterator"; | ||
var $__5 = System.get("traceur-runtime@0.0.26/src/runtime/polyfills/utils"), | ||
var __moduleName = "traceur-runtime@0.0.28/src/runtime/polyfills/ArrayIterator"; | ||
var $__5 = System.get("traceur-runtime@0.0.28/src/runtime/polyfills/utils"), | ||
toObject = $__5.toObject, | ||
@@ -824,5 +824,5 @@ toUint32 = $__5.toUint32; | ||
}); | ||
System.register("traceur-runtime@0.0.26/node_modules/rsvp/lib/rsvp/asap", [], function() { | ||
System.register("traceur-runtime@0.0.28/node_modules/rsvp/lib/rsvp/asap", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.26/node_modules/rsvp/lib/rsvp/asap"; | ||
var __moduleName = "traceur-runtime@0.0.28/node_modules/rsvp/lib/rsvp/asap"; | ||
var $__default = function asap(callback, arg) { | ||
@@ -877,6 +877,6 @@ var length = queue.push([callback, arg]); | ||
}); | ||
System.register("traceur-runtime@0.0.26/src/runtime/polyfills/Promise", [], function() { | ||
System.register("traceur-runtime@0.0.28/src/runtime/polyfills/Promise", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.26/src/runtime/polyfills/Promise"; | ||
var async = System.get("traceur-runtime@0.0.26/node_modules/rsvp/lib/rsvp/asap").default; | ||
var __moduleName = "traceur-runtime@0.0.28/src/runtime/polyfills/Promise"; | ||
var async = System.get("traceur-runtime@0.0.28/node_modules/rsvp/lib/rsvp/asap").default; | ||
function isPromise(x) { | ||
@@ -1062,5 +1062,5 @@ return x && typeof x === 'object' && x.status_ !== undefined; | ||
}); | ||
System.register("traceur-runtime@0.0.26/src/runtime/polyfills/String", [], function() { | ||
System.register("traceur-runtime@0.0.28/src/runtime/polyfills/String", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.26/src/runtime/polyfills/String"; | ||
var __moduleName = "traceur-runtime@0.0.28/src/runtime/polyfills/String"; | ||
var $toString = Object.prototype.toString; | ||
@@ -1234,7 +1234,7 @@ var $indexOf = String.prototype.indexOf; | ||
}); | ||
System.register("traceur-runtime@0.0.26/src/runtime/polyfills/polyfills", [], function() { | ||
System.register("traceur-runtime@0.0.28/src/runtime/polyfills/polyfills", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.26/src/runtime/polyfills/polyfills"; | ||
var Promise = System.get("traceur-runtime@0.0.26/src/runtime/polyfills/Promise").Promise; | ||
var $__9 = System.get("traceur-runtime@0.0.26/src/runtime/polyfills/String"), | ||
var __moduleName = "traceur-runtime@0.0.28/src/runtime/polyfills/polyfills"; | ||
var Promise = System.get("traceur-runtime@0.0.28/src/runtime/polyfills/Promise").Promise; | ||
var $__9 = System.get("traceur-runtime@0.0.28/src/runtime/polyfills/String"), | ||
codePointAt = $__9.codePointAt, | ||
@@ -1247,3 +1247,3 @@ contains = $__9.contains, | ||
startsWith = $__9.startsWith; | ||
var $__9 = System.get("traceur-runtime@0.0.26/src/runtime/polyfills/ArrayIterator"), | ||
var $__9 = System.get("traceur-runtime@0.0.28/src/runtime/polyfills/ArrayIterator"), | ||
entries = $__9.entries, | ||
@@ -1301,8 +1301,8 @@ keys = $__9.keys, | ||
}); | ||
System.register("traceur-runtime@0.0.26/src/runtime/polyfill-import", [], function() { | ||
System.register("traceur-runtime@0.0.28/src/runtime/polyfill-import", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.26/src/runtime/polyfill-import"; | ||
var $__11 = System.get("traceur-runtime@0.0.26/src/runtime/polyfills/polyfills"); | ||
var __moduleName = "traceur-runtime@0.0.28/src/runtime/polyfill-import"; | ||
var $__11 = System.get("traceur-runtime@0.0.28/src/runtime/polyfills/polyfills"); | ||
return {}; | ||
}); | ||
System.get("traceur-runtime@0.0.26/src/runtime/polyfill-import" + ''); | ||
System.get("traceur-runtime@0.0.28/src/runtime/polyfill-import" + ''); |
{ | ||
"name": "traceur", | ||
"version": "0.0.27", | ||
"version": "0.0.28", | ||
"description": "Experimental ES6 to ES5 compiler", | ||
@@ -48,5 +48,5 @@ "keywords": [ | ||
"semver": "2.2.1", | ||
"traceur": "0.0.26" | ||
"traceur": "0.0.27" | ||
}, | ||
"subdomain": "traceur" | ||
} |
@@ -52,6 +52,30 @@ // Copyright 2013 Traceur Authors. | ||
// Caling process.exit when there is still characters to be flushed to stdout | ||
// makes Windows drop those characters. We therefor wait until the buffer is | ||
// empty before really exiting. | ||
// Since this makes exiting async we need to manually keep track | ||
var shouldExit = false; | ||
function processExit() { | ||
shouldExit = true; | ||
var draining = 0; | ||
function exit() { | ||
if (!draining--) | ||
process.exit(); | ||
} | ||
if (process.stdout.bufferSize) { | ||
draining += 1; | ||
process.stdout.once('drain', exit); | ||
} | ||
if (process.stderr.bufferSize) { | ||
draining += 1; | ||
process.stderr.once('drain', exit); | ||
} | ||
exit(); | ||
} | ||
flags.option('-v, --version', 'Show version and exit'); | ||
flags.on('version', function() { | ||
console.log(System.version); | ||
process.exit(); | ||
process.stdout.write(System.version); | ||
processExit(); | ||
}); | ||
@@ -161,3 +185,3 @@ | ||
if (!includes.length) { | ||
if (!shouldExit && !includes.length) { | ||
// TODO: Start trepl | ||
@@ -169,2 +193,3 @@ console.error('\n Error: At least one input file is needed'); | ||
var interpret = require('./interpreter.js'); | ||
@@ -177,14 +202,16 @@ var compiler = require('./compiler.js'); | ||
var dir = flags.dir; | ||
if (out) { | ||
var isSingleFileCompile = /\.js$/.test(out); | ||
if (isSingleFileCompile) | ||
compileToSingleFile(out, includes, flags.sourceMaps); | ||
else | ||
compileToDirectory(out, includes, flags.sourceMaps); | ||
} else if (dir) { | ||
var compileAllJsFilesInDir = require('./compile-single-file.js').compileAllJsFilesInDir; | ||
compileAllJsFilesInDir(dir, includes[0]); | ||
if (!shouldExit) { | ||
if (out) { | ||
var isSingleFileCompile = /\.js$/.test(out); | ||
if (isSingleFileCompile) | ||
compileToSingleFile(out, includes, flags.sourceMaps); | ||
else | ||
compileToDirectory(out, includes, flags.sourceMaps); | ||
} else if (dir) { | ||
var compileAllJsFilesInDir = require('./compile-single-file.js').compileAllJsFilesInDir; | ||
compileAllJsFilesInDir(dir, includes[0]); | ||
} | ||
else { | ||
interpret(path.resolve(includes[0]), includes.slice(1), argv.flags); | ||
} | ||
} | ||
else { | ||
interpret(path.resolve(includes[0]), includes.slice(1), argv.flags); | ||
} |
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
936117
23996