polyfill-library 4.2.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -4
- package/package.json +10 -11
- package/polyfills/__dist/Array.prototype.@@iterator/meta.json +1 -1
- package/polyfills/__dist/ArrayBuffer.prototype.@@toStringTag/meta.json +1 -0
- package/polyfills/__dist/ArrayBuffer.prototype.@@toStringTag/min.js +1 -0
- package/polyfills/__dist/ArrayBuffer.prototype.@@toStringTag/raw.js +19 -0
- package/polyfills/__dist/HTMLTemplateElement/meta.json +1 -1
- package/polyfills/__dist/HTMLTemplateElement/min.js +1 -1
- package/polyfills/__dist/HTMLTemplateElement/raw.js +25 -598
- package/polyfills/__dist/Map/meta.json +1 -1
- package/polyfills/__dist/Map/min.js +1 -1
- package/polyfills/__dist/Map/raw.js +12 -0
- package/polyfills/__dist/Promise/meta.json +1 -1
- package/polyfills/__dist/Promise/min.js +1 -1
- package/polyfills/__dist/Promise/raw.js +10 -0
- package/polyfills/__dist/Set/meta.json +1 -1
- package/polyfills/__dist/Set/min.js +1 -1
- package/polyfills/__dist/Set/raw.js +12 -0
- package/polyfills/__dist/String.prototype.@@iterator/meta.json +1 -1
- package/polyfills/__dist/Symbol.toStringTag/meta.json +1 -1
- package/polyfills/__dist/TypedArray.prototype.@@iterator/meta.json +1 -0
- package/polyfills/__dist/TypedArray.prototype.@@iterator/min.js +1 -0
- package/polyfills/__dist/TypedArray.prototype.@@iterator/raw.js +22 -0
- package/polyfills/__dist/TypedArray.prototype.@@toStringTag/meta.json +1 -0
- package/polyfills/__dist/TypedArray.prototype.@@toStringTag/min.js +1 -0
- package/polyfills/__dist/TypedArray.prototype.@@toStringTag/raw.js +91 -0
- package/polyfills/__dist/TypedArray.prototype.entries/meta.json +1 -0
- package/polyfills/__dist/TypedArray.prototype.entries/min.js +1 -0
- package/polyfills/__dist/TypedArray.prototype.entries/raw.js +38 -0
- package/polyfills/__dist/TypedArray.prototype.keys/meta.json +1 -0
- package/polyfills/__dist/TypedArray.prototype.keys/min.js +1 -0
- package/polyfills/__dist/TypedArray.prototype.keys/raw.js +38 -0
- package/polyfills/__dist/TypedArray.prototype.toLocaleString/meta.json +1 -0
- package/polyfills/__dist/TypedArray.prototype.toLocaleString/min.js +1 -0
- package/polyfills/__dist/TypedArray.prototype.toLocaleString/raw.js +31 -0
- package/polyfills/__dist/TypedArray.prototype.toString/meta.json +1 -0
- package/polyfills/__dist/TypedArray.prototype.toString/min.js +1 -0
- package/polyfills/__dist/TypedArray.prototype.toString/raw.js +29 -0
- package/polyfills/__dist/TypedArray.prototype.values/meta.json +1 -0
- package/polyfills/__dist/TypedArray.prototype.values/min.js +1 -0
- package/polyfills/__dist/TypedArray.prototype.values/raw.js +43 -0
- package/polyfills/__dist/WeakMap/meta.json +1 -1
- package/polyfills/__dist/WeakSet/meta.json +1 -1
- package/polyfills/__dist/WeakSet/min.js +1 -1
- package/polyfills/__dist/WeakSet/raw.js +6 -0
- package/polyfills/__dist/_ArrayIterator/meta.json +1 -1
- package/polyfills/__dist/_ArrayIterator/min.js +1 -1
- package/polyfills/__dist/_ArrayIterator/raw.js +8 -1
- package/polyfills/__dist/_StringIterator/meta.json +1 -1
- package/polyfills/__dist/_StringIterator/min.js +1 -1
- package/polyfills/__dist/_StringIterator/raw.js +8 -1
- package/polyfills/__dist/aliases.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e){var t=Symbol("undef"),r=function e(){if(!(this instanceof e))throw new TypeError('Constructor WeakSet requires "new"');var t=OrdinaryCreateFromConstructor(this,e.prototype,{_values:[],_size:0,_es6WeakSet:!0}),r=arguments.length>0?arguments[0]:void 0;if(null===r||void 0===r)return t;var o=Get(t,"add");if(!IsCallable(o))throw new TypeError("WeakSet.prototype.add is not a function");try{for(var a=GetIterator(r);;){var n=IteratorStep(a);if(!1===n)return t;var l=IteratorValue(n);try{Call(o,t,[l])}catch(e){return IteratorClose(a,e)}}}catch(e){if(IsArray(r)||"[object Arguments]"===Object.prototype.toString.call(r)){var p
|
|
1
|
+
!function(e){var t=Symbol("undef"),r=function e(){if(!(this instanceof e))throw new TypeError('Constructor WeakSet requires "new"');var t=OrdinaryCreateFromConstructor(this,e.prototype,{_values:[],_size:0,_es6WeakSet:!0}),r=arguments.length>0?arguments[0]:void 0;if(null===r||void 0===r)return t;var o=Get(t,"add");if(!IsCallable(o))throw new TypeError("WeakSet.prototype.add is not a function");try{for(var a=GetIterator(r);;){var n=IteratorStep(a);if(!1===n)return t;var l=IteratorValue(n);try{Call(o,t,[l])}catch(e){return IteratorClose(a,e)}}}catch(e){if(IsArray(r)||"[object Arguments]"===Object.prototype.toString.call(r)){var i,p=r.length;for(i=0;i<p;i++)Call(o,t,[r[i]])}}return t};Object.defineProperty(r,"prototype",{configurable:!1,enumerable:!1,writable:!1,value:{}}),CreateMethodProperty(r.prototype,"add",function e(r){var o=this;if("object"!==Type(o))throw new TypeError("Method WeakSet.prototype.add called on incompatible receiver "+Object.prototype.toString.call(o));if(!0!==o._es6WeakSet)throw new TypeError("Method WeakSet.prototype.add called on incompatible receiver "+Object.prototype.toString.call(o));if("object"!==Type(r))throw new TypeError("Invalid value used in weak set");for(var a=o._values,n=0;n<a.length;n++){var l=a[n];if(l!==t&&SameValueZero(l,r))return o}return o._values.push(r),o}),CreateMethodProperty(r.prototype,"constructor",r),CreateMethodProperty(r.prototype,"delete",function(e){var r=this;if("object"!==Type(r))throw new TypeError("Method WeakSet.prototype.delete called on incompatible receiver "+Object.prototype.toString.call(r));if(!0!==r._es6WeakSet)throw new TypeError("Method WeakSet.prototype.delete called on incompatible receiver "+Object.prototype.toString.call(r));if("object"!==Type(e))return!1;for(var o=r._values,a=0;a<o.length;a++){var n=o[a];if(n!==t&&SameValueZero(n,e))return o[a]=t,!0}return!1}),CreateMethodProperty(r.prototype,"has",function e(r){var o=this;if("object"!==Type(o))throw new TypeError("Method WeakSet.prototype.has called on incompatible receiver "+Object.prototype.toString.call(o));if(!0!==o._es6WeakSet)throw new TypeError("Method WeakSet.prototype.has called on incompatible receiver "+Object.prototype.toString.call(o));var a=o._values;if("object"!==Type(r))return!1;for(var n=0;n<a.length;n++){var l=a[n];if(l!==t&&SameValueZero(l,r))return!0}return!1}),Object.defineProperty(r.prototype,Symbol.toStringTag,{configurable:!0,enumerable:!1,writable:!1,value:"WeakSet"}),"name"in r||Object.defineProperty(r,"name",{configurable:!0,enumerable:!1,writable:!1,value:"WeakSet"}),CreateMethodProperty(e,"WeakSet",r)}(self);
|
|
@@ -180,6 +180,12 @@
|
|
|
180
180
|
// 23.4.3.5. WeakSet.prototype [ @@toStringTag ]
|
|
181
181
|
// The initial value of the @@toStringTag property is the String value "WeakSet".
|
|
182
182
|
// This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
|
|
183
|
+
Object.defineProperty(WeakSet.prototype, Symbol.toStringTag, {
|
|
184
|
+
configurable: true,
|
|
185
|
+
enumerable: false,
|
|
186
|
+
writable: false,
|
|
187
|
+
value: 'WeakSet'
|
|
188
|
+
});
|
|
183
189
|
|
|
184
190
|
// Polyfill.io - Safari 8 implements Set.name but as a non-configurable property, which means it would throw an error if we try and configure it here.
|
|
185
191
|
if (!('name' in WeakSet)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"dependencies":["_Iterator","Object.setPrototypeOf","String.prototype.includes"],"license":"MIT","repo":"https://github.com/medikoo/es6-iterator","browsers":{"android":"*","bb":"*","chrome":"*","edge":"*","edge_mob":"*","firefox":"*","firefox_mob":"*","ie":"*","ie_mob":"*","opera":"*","op_mob":"*","op_mini":"*","safari":"*","ios_saf":"*","samsung_mob":"*"},"detectSource":"","baseDir":"_ArrayIterator","hasTests":false,"isTestable":true,"isPublic":false,"size":
|
|
1
|
+
{"dependencies":["_Iterator","Object.setPrototypeOf","String.prototype.includes"],"license":"MIT","repo":"https://github.com/medikoo/es6-iterator","browsers":{"android":"*","bb":"*","chrome":"*","edge":"*","edge_mob":"*","firefox":"*","firefox_mob":"*","ie":"*","ie_mob":"*","opera":"*","op_mob":"*","op_mini":"*","safari":"*","ios_saf":"*","samsung_mob":"*"},"detectSource":"","baseDir":"_ArrayIterator","hasTests":false,"isTestable":true,"isPublic":false,"size":914}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var ArrayIterator=function(){var e=function(t,r){if(!(this instanceof e))return new e(t,r);Iterator.call(this,t),r=r?String.prototype.includes.call(r,"key+value")?"key+value":String.prototype.includes.call(r,"key")?"key":"value":"value",Object.defineProperty(this,"__kind__",{value:r,configurable:!1,enumerable:!1,writable:!1})};return Object.setPrototypeOf&&Object.setPrototypeOf(e,Iterator.prototype),e.prototype=Object.create(Iterator.prototype,{constructor:{value:e,configurable:!0,enumerable:!1,writable:!0},_resolve:{value:function(e){return"value"===this.__kind__?this.__list__[e]:"key+value"===this.__kind__?[e,this.__list__[e]]:e},configurable:!0,enumerable:!1,writable:!0},toString:{value:function(){return"[object Array Iterator]"},configurable:!0,enumerable:!1,writable:!0}}),e}();
|
|
1
|
+
var ArrayIterator=function(){var e=function(t,r){if(!(this instanceof e))return new e(t,r);Iterator.call(this,t),r=r?String.prototype.includes.call(r,"key+value")?"key+value":String.prototype.includes.call(r,"key")?"key":"value":"value",Object.defineProperty(this,"__kind__",{value:r,configurable:!1,enumerable:!1,writable:!1})};return Object.setPrototypeOf&&Object.setPrototypeOf(e,Iterator.prototype),e.prototype=Object.create(Iterator.prototype,{constructor:{value:e,configurable:!0,enumerable:!1,writable:!0},_resolve:{value:function(e){return"value"===this.__kind__?this.__list__[e]:"key+value"===this.__kind__?[e,this.__list__[e]]:e},configurable:!0,enumerable:!1,writable:!0},toString:{value:function(){return"[object Array Iterator]"},configurable:!0,enumerable:!1,writable:!0}}),Object.defineProperty(e.prototype,Symbol.toStringTag,{value:"Array Iterator",writable:!1,enumerable:!1,configurable:!0}),e}();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
// _ArrayIterator
|
|
3
|
-
/* global Iterator */
|
|
3
|
+
/* global Iterator, Symbol */
|
|
4
4
|
// A modification of https://github.com/medikoo/es6-iterator
|
|
5
5
|
// Copyright (C) 2013-2015 Mariusz Nowak (www.medikoo.com)
|
|
6
6
|
|
|
@@ -49,5 +49,12 @@ var ArrayIterator = (function() { // eslint-disable-line no-unused-vars
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
+
Object.defineProperty(ArrayIterator.prototype, Symbol.toStringTag, {
|
|
53
|
+
value: 'Array Iterator',
|
|
54
|
+
writable: false,
|
|
55
|
+
enumerable: false,
|
|
56
|
+
configurable: true
|
|
57
|
+
});
|
|
58
|
+
|
|
52
59
|
return ArrayIterator;
|
|
53
60
|
}());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"dependencies":["_Iterator","Object.setPrototypeOf"],"license":"MIT","repo":"https://github.com/medikoo/es6-iterator","browsers":{"android":"*","bb":"*","chrome":"*","edge":"*","edge_mob":"*","firefox":"*","firefox_mob":"*","ie":"*","ie_mob":"*","opera":"*","op_mob":"*","op_mini":"*","safari":"*","ios_saf":"*","samsung_mob":"*"},"detectSource":"","baseDir":"_StringIterator","hasTests":false,"isTestable":true,"isPublic":false,"size":
|
|
1
|
+
{"dependencies":["_Iterator","Object.setPrototypeOf","Symbol.toStringTag"],"license":"MIT","repo":"https://github.com/medikoo/es6-iterator","browsers":{"android":"*","bb":"*","chrome":"*","edge":"*","edge_mob":"*","firefox":"*","firefox_mob":"*","ie":"*","ie_mob":"*","opera":"*","op_mob":"*","op_mini":"*","safari":"*","ios_saf":"*","samsung_mob":"*"},"detectSource":"","baseDir":"_StringIterator","hasTests":false,"isTestable":true,"isPublic":false,"size":1020}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var StringIterator=function(){var
|
|
1
|
+
var StringIterator=function(){var e=function(t){if(!(this instanceof e))return new e(t);t=String(t),Iterator.call(this,t),Object.defineProperty(this,"__length__",{value:t.length,configurable:!1,enumerable:!1,writable:!1})};return Object.setPrototypeOf&&Object.setPrototypeOf(e,Iterator),e.prototype=Object.create(Iterator.prototype,{constructor:{value:e,configurable:!0,enumerable:!1,writable:!0},_next:{value:function(){if(this.__list__)return this.__nextIndex__<this.__length__?this.__nextIndex__++:void this._unBind()},configurable:!0,enumerable:!1,writable:!0},_resolve:{value:function(e){var t,r=this.__list__[e];return this.__nextIndex__===this.__length__?r:(t=r.charCodeAt(0),t>=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)},configurable:!0,enumerable:!1,writable:!0},toString:{value:function(){return"[object String Iterator]"},configurable:!0,enumerable:!1,writable:!0}}),Object.defineProperty(e.prototype,Symbol.toStringTag,{value:"String Iterator",writable:!1,enumerable:!1,configurable:!0}),e}();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// A modification of https://github.com/medikoo/es6-iterator
|
|
4
4
|
// Copyright (C) 2013-2015 Mariusz Nowak (www.medikoo.com)
|
|
5
5
|
|
|
6
|
-
/* global Iterator */
|
|
6
|
+
/* global Iterator, Symbol */
|
|
7
7
|
|
|
8
8
|
var StringIterator = (function() { // eslint-disable-line no-unused-vars
|
|
9
9
|
|
|
@@ -59,5 +59,12 @@ var StringIterator = (function() { // eslint-disable-line no-unused-vars
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
|
|
62
|
+
Object.defineProperty(StringIterator.prototype, Symbol.toStringTag, {
|
|
63
|
+
value: 'String Iterator',
|
|
64
|
+
writable: false,
|
|
65
|
+
enumerable: false,
|
|
66
|
+
configurable: true
|
|
67
|
+
});
|
|
68
|
+
|
|
62
69
|
return StringIterator;
|
|
63
70
|
}());
|