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.41 to 0.0.42

292

bin/traceur-runtime.js

@@ -14,3 +14,2 @@ (function(global) {

var $getOwnPropertyNames = $Object.getOwnPropertyNames;
var $getPrototypeOf = $Object.getPrototypeOf;
var $keys = $Object.keys;

@@ -202,39 +201,2 @@ var $hasOwnProperty = $Object.prototype.hasOwnProperty;

Object.getOwnPropertySymbols = getOwnPropertySymbols;
function is(left, right) {
if (left === right)
return left !== 0 || 1 / left === 1 / right;
return left !== left && right !== right;
}
$defineProperty(Object, 'is', method(is));
function assign(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
var props = $keys(source);
var p,
length = props.length;
for (p = 0; p < length; p++) {
var name = props[p];
if (privateNames[name])
continue;
target[name] = source[name];
}
}
return target;
}
$defineProperty(Object, 'assign', method(assign));
function mixin(target, source) {
var props = $getOwnPropertyNames(source);
var p,
descriptor,
length = props.length;
for (p = 0; p < length; p++) {
var name = props[p];
if (privateNames[name])
continue;
descriptor = $getOwnPropertyDescriptor(source, props[p]);
$defineProperty(target, props[p], descriptor);
}
return target;
}
$defineProperty(Object, 'mixin', method(mixin));
}

@@ -273,2 +235,29 @@ function exportStar(object) {

}
function setupGlobals(global) {
global.Symbol = Symbol;
polyfillObject(global.Object);
}
setupGlobals(global);
global.$traceurRuntime = {
assertObject: assertObject,
createPrivateName: createPrivateName,
exportStar: exportStar,
getOwnHashObject: getOwnHashObject,
privateNames: privateNames,
setProperty: setProperty,
setupGlobals: setupGlobals,
toObject: toObject,
toProperty: toProperty,
type: types,
typeof: typeOf,
defineProperties: $defineProperties,
defineProperty: $defineProperty,
getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
getOwnPropertyNames: $getOwnPropertyNames,
keys: $keys
};
})(typeof global !== 'undefined' ? global : this);
(function() {
'use strict';
var toObject = $traceurRuntime.toObject;
function spread() {

@@ -285,2 +274,14 @@ var rv = [],

}
$traceurRuntime.spread = spread;
})();
(function() {
'use strict';
var $Object = Object;
var $TypeError = TypeError;
var $create = $Object.create;
var $defineProperties = $traceurRuntime.defineProperties;
var $defineProperty = $traceurRuntime.defineProperty;
var $getOwnPropertyDescriptor = $traceurRuntime.getOwnPropertyDescriptor;
var $getOwnPropertyNames = $traceurRuntime.getOwnPropertyNames;
var $getPrototypeOf = Object.getPrototypeOf;
function superDescriptor(homeObject, name) {

@@ -354,3 +355,3 @@ var proto = $getPrototypeOf(homeObject);

return null;
throw new TypeError();
throw new $TypeError();
}

@@ -361,2 +362,23 @@ function defaultSuperCall(self, homeObject, args) {

}
$traceurRuntime.createClass = createClass;
$traceurRuntime.defaultSuperCall = defaultSuperCall;
$traceurRuntime.superCall = superCall;
$traceurRuntime.superGet = superGet;
$traceurRuntime.superSet = superSet;
})();
(function() {
'use strict';
var createPrivateName = $traceurRuntime.createPrivateName;
var $defineProperties = $traceurRuntime.defineProperties;
var $defineProperty = $traceurRuntime.defineProperty;
var $create = Object.create;
var $TypeError = TypeError;
function nonEnum(value) {
return {
configurable: true,
enumerable: false,
value: value,
writable: true
};
}
var ST_NEWBORN = 0;

@@ -441,2 +463,8 @@ var ST_EXECUTING = 1;

case ST_CLOSED:
if (action == 'next') {
return {
value: undefined,
done: true
};
}
throw new Error(("\"" + action + "\" on closed generator"));

@@ -485,3 +513,3 @@ case ST_NEWBORN:

});
defineProperty(GeneratorFunctionPrototype.prototype, Symbol.iterator, nonEnum(function() {
Object.defineProperty(GeneratorFunctionPrototype.prototype, Symbol.iterator, nonEnum(function() {
return this;

@@ -511,3 +539,3 @@ }));

}
AsyncFunctionContext.prototype = Object.create(GeneratorContext.prototype);
AsyncFunctionContext.prototype = $create(GeneratorContext.prototype);
AsyncFunctionContext.prototype.end = function() {

@@ -567,28 +595,6 @@ switch (this.state) {

}
function setupGlobals(global) {
global.Symbol = Symbol;
polyfillObject(global.Object);
}
setupGlobals(global);
global.$traceurRuntime = {
assertObject: assertObject,
asyncWrap: asyncWrap,
createClass: createClass,
defaultSuperCall: defaultSuperCall,
exportStar: exportStar,
initGeneratorFunction: initGeneratorFunction,
createGeneratorInstance: createGeneratorInstance,
getOwnHashObject: getOwnHashObject,
setProperty: setProperty,
setupGlobals: setupGlobals,
spread: spread,
superCall: superCall,
superGet: superGet,
superSet: superSet,
toObject: toObject,
toProperty: toProperty,
type: types,
typeof: typeOf
};
})(typeof global !== 'undefined' ? global : this);
$traceurRuntime.asyncWrap = asyncWrap;
$traceurRuntime.initGeneratorFunction = initGeneratorFunction;
$traceurRuntime.createGeneratorInstance = createGeneratorInstance;
})();
(function() {

@@ -872,5 +878,5 @@ function buildFromEncodedParts(opt_scheme, opt_userInfo, opt_domain, opt_port, opt_path, opt_queryData, opt_fragment) {

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

@@ -920,6 +926,6 @@ function toUint32(x) {

});
System.register("traceur-runtime@0.0.41/src/runtime/polyfills/Array", [], function() {
System.register("traceur-runtime@0.0.42/src/runtime/polyfills/Array", [], function() {
"use strict";
var __moduleName = "traceur-runtime@0.0.41/src/runtime/polyfills/Array";
var $__3 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/utils")),
var __moduleName = "traceur-runtime@0.0.42/src/runtime/polyfills/Array";
var $__3 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.42/src/runtime/polyfills/utils")),
toInteger = $__3.toInteger,

@@ -982,7 +988,7 @@ toLength = $__3.toLength,

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

@@ -1061,6 +1067,6 @@ toUint32 = $__6.toUint32;

});
System.register("traceur-runtime@0.0.41/src/runtime/polyfills/Map", [], function() {
System.register("traceur-runtime@0.0.42/src/runtime/polyfills/Map", [], function() {
"use strict";
var __moduleName = "traceur-runtime@0.0.41/src/runtime/polyfills/Map";
var isObject = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/utils")).isObject;
var __moduleName = "traceur-runtime@0.0.42/src/runtime/polyfills/Map";
var isObject = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.42/src/runtime/polyfills/utils")).isObject;
var getOwnHashObject = $traceurRuntime.getOwnHashObject;

@@ -1185,5 +1191,65 @@ var $hasOwnProperty = Object.prototype.hasOwnProperty;

});
System.register("traceur-runtime@0.0.41/node_modules/rsvp/lib/rsvp/asap", [], function() {
System.register("traceur-runtime@0.0.42/src/runtime/polyfills/Object", [], function() {
"use strict";
var __moduleName = "traceur-runtime@0.0.41/node_modules/rsvp/lib/rsvp/asap";
var __moduleName = "traceur-runtime@0.0.42/src/runtime/polyfills/Object";
var $__11 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.42/src/runtime/polyfills/utils")),
toInteger = $__11.toInteger,
toLength = $__11.toLength,
toObject = $__11.toObject,
isCallable = $__11.isCallable;
var $__11 = $traceurRuntime.assertObject($traceurRuntime),
defineProperty = $__11.defineProperty,
getOwnPropertyDescriptor = $__11.getOwnPropertyDescriptor,
getOwnPropertyNames = $__11.getOwnPropertyNames,
keys = $__11.keys,
privateNames = $__11.privateNames;
function is(left, right) {
if (left === right)
return left !== 0 || 1 / left === 1 / right;
return left !== left && right !== right;
}
function assign(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
var props = keys(source);
var p,
length = props.length;
for (p = 0; p < length; p++) {
var name = props[p];
if (privateNames[name])
continue;
target[name] = source[name];
}
}
return target;
}
function mixin(target, source) {
var props = getOwnPropertyNames(source);
var p,
descriptor,
length = props.length;
for (p = 0; p < length; p++) {
var name = props[p];
if (privateNames[name])
continue;
descriptor = getOwnPropertyDescriptor(source, props[p]);
defineProperty(target, props[p], descriptor);
}
return target;
}
return {
get is() {
return is;
},
get assign() {
return assign;
},
get mixin() {
return mixin;
}
};
});
System.register("traceur-runtime@0.0.42/node_modules/rsvp/lib/rsvp/asap", [], function() {
"use strict";
var __moduleName = "traceur-runtime@0.0.42/node_modules/rsvp/lib/rsvp/asap";
var $__default = function asap(callback, arg) {

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

});
System.register("traceur-runtime@0.0.41/src/runtime/polyfills/Promise", [], function() {
System.register("traceur-runtime@0.0.42/src/runtime/polyfills/Promise", [], function() {
"use strict";
var __moduleName = "traceur-runtime@0.0.41/src/runtime/polyfills/Promise";
var async = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/node_modules/rsvp/lib/rsvp/asap")).default;
var __moduleName = "traceur-runtime@0.0.42/src/runtime/polyfills/Promise";
var async = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.42/node_modules/rsvp/lib/rsvp/asap")).default;
var promiseRaw = {};

@@ -1476,5 +1542,5 @@ function isPromise(x) {

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

@@ -1648,23 +1714,27 @@ var $indexOf = String.prototype.indexOf;

});
System.register("traceur-runtime@0.0.41/src/runtime/polyfills/polyfills", [], function() {
System.register("traceur-runtime@0.0.42/src/runtime/polyfills/polyfills", [], function() {
"use strict";
var __moduleName = "traceur-runtime@0.0.41/src/runtime/polyfills/polyfills";
var Map = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/Map")).Map;
var Promise = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/Promise")).Promise;
var $__13 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/String")),
codePointAt = $__13.codePointAt,
contains = $__13.contains,
endsWith = $__13.endsWith,
fromCodePoint = $__13.fromCodePoint,
repeat = $__13.repeat,
raw = $__13.raw,
startsWith = $__13.startsWith;
var $__13 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/Array")),
fill = $__13.fill,
find = $__13.find,
findIndex = $__13.findIndex;
var $__13 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/ArrayIterator")),
entries = $__13.entries,
keys = $__13.keys,
values = $__13.values;
var __moduleName = "traceur-runtime@0.0.42/src/runtime/polyfills/polyfills";
var Map = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.42/src/runtime/polyfills/Map")).Map;
var Promise = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.42/src/runtime/polyfills/Promise")).Promise;
var $__14 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.42/src/runtime/polyfills/String")),
codePointAt = $__14.codePointAt,
contains = $__14.contains,
endsWith = $__14.endsWith,
fromCodePoint = $__14.fromCodePoint,
repeat = $__14.repeat,
raw = $__14.raw,
startsWith = $__14.startsWith;
var $__14 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.42/src/runtime/polyfills/Array")),
fill = $__14.fill,
find = $__14.find,
findIndex = $__14.findIndex;
var $__14 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.42/src/runtime/polyfills/ArrayIterator")),
entries = $__14.entries,
keys = $__14.keys,
values = $__14.values;
var $__14 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.42/src/runtime/polyfills/Object")),
assign = $__14.assign,
is = $__14.is,
mixin = $__14.mixin;
function maybeDefineMethod(object, name, value) {

@@ -1710,2 +1780,5 @@ if (!(name in object)) {

}
function polyfillObject(Object) {
maybeAddFunctions(Object, ['assign', assign, 'is', is, 'mixin', mixin]);
}
function polyfill(global) {

@@ -1716,2 +1789,3 @@ polyfillPromise(global);

polyfillArray(global.Array, global.Symbol);
polyfillObject(global.Object);
}

@@ -1726,8 +1800,8 @@ polyfill(this);

});
System.register("traceur-runtime@0.0.41/src/runtime/polyfill-import", [], function() {
System.register("traceur-runtime@0.0.42/src/runtime/polyfill-import", [], function() {
"use strict";
var __moduleName = "traceur-runtime@0.0.41/src/runtime/polyfill-import";
var $__15 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/polyfills"));
var __moduleName = "traceur-runtime@0.0.42/src/runtime/polyfill-import";
var $__16 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.42/src/runtime/polyfills/polyfills"));
return {};
});
System.get("traceur-runtime@0.0.41/src/runtime/polyfill-import" + '');
System.get("traceur-runtime@0.0.42/src/runtime/polyfill-import" + '');
{
"name": "traceur",
"version": "0.0.41",
"version": "0.0.42",
"description": "ES6 to ES5 compiler",

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

"semver": "2.2.1",
"traceur": "0.0.40",
"traceur": "0.0.41",
"promises-aplus-tests": "~2.0.4"

@@ -51,0 +51,0 @@ },

@@ -83,2 +83,4 @@ // Copyright 2013 Traceur Authors.

moduleName = path.relative(options.cwd, moduleName).replace(/\\/g,'/');
}
if (moduleName) {
transformer = new AttachModuleNameTransformer(moduleName);

@@ -85,0 +87,0 @@ tree = transformer.transformAny(tree);

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