New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

es6-shim

Package Overview
Dependencies
Maintainers
2
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-shim - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

es6-shim.map

3

bower.json
{
"name": "es6-shim",
"repo": "paulmillr/es6-shim",
"version": "0.11.0",
"version": "0.11.1",
"description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines",

@@ -29,1 +29,2 @@ "keywords": [

}
# es6-shim x.x.x (not yet released)
# es6-shim 0.11.1 (2 Jun 2014)
* Make sure to shim Object.assign in all environments, not just true ES5
* Now including minified file and source map
# es6-shim 0.11.0 (11 May 2014)

@@ -4,0 +8,0 @@ * Remove `Object.getOwnPropertyDescriptors`, per spec. (#234, #235)

{
"name": "es6-shim",
"repo": "paulmillr/es6-shim",
"version": "0.11.0",
"version": "0.11.1",
"description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines",

@@ -23,1 +23,2 @@ "keywords": [

}

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

// ES6-shim 0.11.0 (c) 2013-2014 Paul Miller (http://paulmillr.com)
// ES6-shim 0.11.1 (c) 2013-2014 Paul Miller (http://paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.

@@ -592,3 +592,3 @@ // For more details and documentation:

var i = this.i, array = this.array;
if (i===undefined || this.kind===undefined) {
if (i === undefined || this.kind === undefined) {
throw new TypeError('Not an ArrayIterator');

@@ -603,7 +603,5 @@ }

retval = i;
}
if (kind === "value") {
} else if (kind === "value") {
retval = array[i];
}
if (kind === "entry") {
} else if (kind === "entry") {
retval = [i, array[i]];

@@ -651,2 +649,3 @@ }

},
fill: function(value) {

@@ -738,4 +737,3 @@ var start = arguments[1], end = arguments[2]; // fill.length===1

isSafeInteger: function(value) {
return Number.isInteger(value) &&
Math.abs(value) <= Number.MAX_SAFE_INTEGER;
return Number.isInteger(value) && Math.abs(value) <= Number.MAX_SAFE_INTEGER;
},

@@ -754,5 +752,2 @@

defineProperties(Number.prototype, {
});
if (supportsDescriptors) {

@@ -785,4 +780,6 @@ defineProperties(Object, {

return result;
},
}
});
defineProperties(Object, {
// 19.1.3.1

@@ -802,8 +799,14 @@ assign: function(target, source) {

});
}
});
},
// 19.1.3.9
// shim from https://gist.github.com/WebReflection/5593554
defineProperties(Object, {
getOwnPropertyKeys: function(subject) {
return Object.keys(subject);
},
is: function(a, b) {
return ES.SameValue(a, b);
},
// 19.1.3.9
// shim from https://gist.github.com/WebReflection/5593554
setPrototypeOf: (function(Object, magic) {

@@ -882,12 +885,2 @@ var set;

defineProperties(Object, {
getOwnPropertyKeys: function(subject) {
return Object.keys(subject);
},
is: function(a, b) {
return ES.SameValue(a, b);
}
});
try {

@@ -1422,5 +1415,14 @@ Object.keys('foo');

// support to see if we have a buggy implementation.
if (!supportsSubclassing(globals.Promise, function(S) {
var promiseSupportsSubclassing = supportsSubclassing(globals.Promise, function(S) {
return S.resolve(42) instanceof S;
})) {
});
var promiseIgnoresNonFunctionThenCallbacks = (function () {
try {
Promise.reject(42).then(null,5).then(null, function () {});
return true;
} catch (ex) {
return false;
}
}());
if (!promiseSupportsSubclassing || !promiseIgnoresNonFunctionThenCallbacks) {
globals.Promise = PromiseShim;

@@ -1857,3 +1859,3 @@ }

if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
if (typeof define === 'function' && define.amd) {
define(main); // RequireJS

@@ -1864,1 +1866,2 @@ } else {

})();
{
"author": "Paul Miller (http://paulmillr.com)",
"name": "es6-shim",
"version": "0.11.0",
"version": "0.11.1",
"description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines",

@@ -25,3 +25,4 @@ "keywords": [

"scripts": {
"test": "jshint es6-shim.js && mocha test/*.js test/*/*.js"
"test": "jshint es6-shim.js && mocha test/*.js test/*/*.js",
"minify": "uglifyjs es6-shim.js --comments --source-map=es6-shim.map -m -b ascii_only=true,beautify=false > es6-shim.min.js"
},

@@ -47,8 +48,10 @@ "testling": {

"devDependencies": {
"mocha": "~1.18.2",
"mocha": "~1.20.0",
"chai": "~1.9.1",
"es5-shim": "~3.1.1",
"es5-shim": "~3.4.0",
"jshint": "~2.5.0",
"promises-aplus-tests": "~2.0.4"
"promises-aplus-tests": "~2.0.4",
"uglify-js": "~2.4.12"
}
}
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