Socket
Socket
Sign inDemoInstall

traceur

Package Overview
Dependencies
Maintainers
2
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

traceur - npm Package Compare versions

Comparing version 0.0.25 to 0.0.27

52

bin/traceur-runtime.js

@@ -25,2 +25,9 @@ (function(global) {

}
var types = {
void: function voidType() {},
any: function any() {},
string: function string() {},
number: function number() {},
boolean: function boolean() {}
};
var method = nonEnum;

@@ -250,3 +257,3 @@ var counter = 0;

descriptor.set.call(self, value);
return;
return value;
}

@@ -450,2 +457,3 @@ throw $TypeError("super has no setter '" + name + "'.");

toProperty: toProperty,
type: types,
typeof: typeOf

@@ -723,5 +731,5 @@ };

})(typeof global !== 'undefined' ? global : this);
System.register("traceur-runtime@0.0.25/src/runtime/polyfills/utils", [], function() {
System.register("traceur-runtime@0.0.26/src/runtime/polyfills/utils", [], function() {
"use strict";
var __moduleName = "traceur-runtime@0.0.25/src/runtime/polyfills/utils";
var __moduleName = "traceur-runtime@0.0.26/src/runtime/polyfills/utils";
var toObject = $traceurRuntime.toObject;

@@ -740,7 +748,7 @@ function toUint32(x) {

});
System.register("traceur-runtime@0.0.25/src/runtime/polyfills/ArrayIterator", [], function() {
System.register("traceur-runtime@0.0.26/src/runtime/polyfills/ArrayIterator", [], function() {
"use strict";
var $__4;
var __moduleName = "traceur-runtime@0.0.25/src/runtime/polyfills/ArrayIterator";
var $__5 = $traceurRuntime.getModuleImpl("traceur-runtime@0.0.25/src/runtime/polyfills/utils"),
var __moduleName = "traceur-runtime@0.0.26/src/runtime/polyfills/ArrayIterator";
var $__5 = System.get("traceur-runtime@0.0.26/src/runtime/polyfills/utils"),
toObject = $__5.toObject,

@@ -819,5 +827,5 @@ toUint32 = $__5.toUint32;

});
System.register("traceur-runtime@0.0.25/node_modules/rsvp/lib/rsvp/asap", [], function() {
System.register("traceur-runtime@0.0.26/node_modules/rsvp/lib/rsvp/asap", [], function() {
"use strict";
var __moduleName = "traceur-runtime@0.0.25/node_modules/rsvp/lib/rsvp/asap";
var __moduleName = "traceur-runtime@0.0.26/node_modules/rsvp/lib/rsvp/asap";
var $__default = function asap(callback, arg) {

@@ -872,6 +880,6 @@ var length = queue.push([callback, arg]);

});
System.register("traceur-runtime@0.0.25/src/runtime/polyfills/Promise", [], function() {
System.register("traceur-runtime@0.0.26/src/runtime/polyfills/Promise", [], function() {
"use strict";
var __moduleName = "traceur-runtime@0.0.25/src/runtime/polyfills/Promise";
var async = $traceurRuntime.getModuleImpl("traceur-runtime@0.0.25/node_modules/rsvp/lib/rsvp/asap").default;
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;
function isPromise(x) {

@@ -1057,5 +1065,5 @@ return x && typeof x === 'object' && x.status_ !== undefined;

});
System.register("traceur-runtime@0.0.25/src/runtime/polyfills/String", [], function() {
System.register("traceur-runtime@0.0.26/src/runtime/polyfills/String", [], function() {
"use strict";
var __moduleName = "traceur-runtime@0.0.25/src/runtime/polyfills/String";
var __moduleName = "traceur-runtime@0.0.26/src/runtime/polyfills/String";
var $toString = Object.prototype.toString;

@@ -1229,7 +1237,7 @@ var $indexOf = String.prototype.indexOf;

});
System.register("traceur-runtime@0.0.25/src/runtime/polyfills/polyfills", [], function() {
System.register("traceur-runtime@0.0.26/src/runtime/polyfills/polyfills", [], function() {
"use strict";
var __moduleName = "traceur-runtime@0.0.25/src/runtime/polyfills/polyfills";
var Promise = $traceurRuntime.getModuleImpl("traceur-runtime@0.0.25/src/runtime/polyfills/Promise").Promise;
var $__9 = $traceurRuntime.getModuleImpl("traceur-runtime@0.0.25/src/runtime/polyfills/String"),
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"),
codePointAt = $__9.codePointAt,

@@ -1242,3 +1250,3 @@ contains = $__9.contains,

startsWith = $__9.startsWith;
var $__9 = $traceurRuntime.getModuleImpl("traceur-runtime@0.0.25/src/runtime/polyfills/ArrayIterator"),
var $__9 = System.get("traceur-runtime@0.0.26/src/runtime/polyfills/ArrayIterator"),
entries = $__9.entries,

@@ -1296,8 +1304,8 @@ keys = $__9.keys,

});
System.register("traceur-runtime@0.0.25/src/runtime/polyfill-import", [], function() {
System.register("traceur-runtime@0.0.26/src/runtime/polyfill-import", [], function() {
"use strict";
var __moduleName = "traceur-runtime@0.0.25/src/runtime/polyfill-import";
var $__11 = $traceurRuntime.getModuleImpl("traceur-runtime@0.0.25/src/runtime/polyfills/polyfills");
var __moduleName = "traceur-runtime@0.0.26/src/runtime/polyfill-import";
var $__11 = System.get("traceur-runtime@0.0.26/src/runtime/polyfills/polyfills");
return {};
});
System.get("traceur-runtime@0.0.25/src/runtime/polyfill-import" + '');
System.get("traceur-runtime@0.0.26/src/runtime/polyfill-import" + '');
{
"name": "traceur",
"version": "0.0.25",
"version": "0.0.27",
"description": "Experimental ES6 to ES5 compiler",

@@ -19,3 +19,3 @@ "keywords": [

"engines": {
"node": ">=0.8"
"node": ">=0.10"
},

@@ -49,5 +49,5 @@ "main": "./src/node/api.js",

"semver": "2.2.1",
"traceur": "0.0.24"
"traceur": "0.0.26"
},
"subdomain": "traceur"
}
[![Build Status](https://travis-ci.org/google/traceur-compiler.png)](https://travis-ci.org/google/traceur-compiler)
<img src="logo/tc.png" alt="Traceur logo" width="200px">
## What is Traceur?

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

@@ -52,2 +52,8 @@ // Copyright 2013 Traceur Authors.

flags.option('-v, --version', 'Show version and exit');
flags.on('version', function() {
console.log(System.version);
process.exit();
});
flags.on('--help', function() {

@@ -54,0 +60,0 @@ console.log(' Examples:');

@@ -35,4 +35,6 @@ // Copyright 2013 Traceur Authors.

var tree = parser.parseModule();
var moduleName = inputFilePath.replace(/\.js$/, '');
moduleName = path.relative(__dirname, moduleName).replace(/\\/g,'/');
var moduleName = inputFilePath.replace(/\.js$/, '').replace(/\\/g,'/');
// Module naming uses ./ to signal relative names.
if (moduleName[0] !== '/')
moduleName = './' + moduleName;
var transformer = new AttachModuleNameTransformer(moduleName);

@@ -39,0 +41,0 @@ tree = transformer.transformAny(tree);

@@ -81,6 +81,6 @@ // Copyright 2012 Traceur Authors.

// The caller needs to do a chdir.
var basePath = './';
var depTarget = options && options.depTarget;
var referrerName = options && options.referrer;
var basePath;
if (referrerName) {

@@ -96,4 +96,5 @@ // The compile occurs two directories down from current directory,

basePath = path.join(__dirname, '../../');
} else {
basePath = path.resolve('./') + '/';
}
basePath = basePath.replace(/\\/g, '/');

@@ -129,3 +130,2 @@

}
var loadOptions = {referrerName: referrerName};

@@ -132,0 +132,0 @@ var codeUnit = loadFunction.call(loader, name, loadOptions).then(

@@ -25,15 +25,10 @@ // Copyright 2013 Traceur Authors.

var moduleName = filename.replace(/\\/g, '/').replace(/\.js$/,'');
System.import(moduleName).then(function() {
// TODO(jjb): Should be system loader.
function getLoader() {
var LoaderHooks = traceur.runtime.LoaderHooks;
var reporter = new traceur.util.ErrorReporter();
// Load dependencies as relative to the argument.
var loaderHooks = new LoaderHooks(reporter, moduleName, nodeLoader);
return new traceur.runtime.TraceurLoader(loaderHooks);
}
global.SystemLoader = getLoader();
global.SystemLoader.import(moduleName);
}).catch(function(err) {
console.error(err.stack || err);
process.exit(8);
});
}
module.exports = interpret;

@@ -20,5 +20,6 @@ // Copyright 2014 Traceur Authors.

var nodeLoader = require('./nodeLoader.js');
var path = require('path');
var reporter = new traceur.util.ErrorReporter();
var LoaderHooks = traceur.runtime.LoaderHooks;
var url = './';
var url = (path.resolve('./') + '/').replace(/\\/g, '/');
var loaderHooks = new LoaderHooks(reporter, url, nodeLoader);

@@ -35,3 +36,5 @@

System.map = System.semverMap(referrerName);
else
System.map = System.semverMap(System.version);
module.exports = System;

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