@next/polyfill-module 14.1.2-canary.6 → 14.1.2
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/.turbo/turbo-build.log +3 -3
- package/dist/polyfill-module.js +1 -1
- package/package.json +1 -1
- package/src/index.js +0 -20
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
> @next/polyfill-module@14.1.2
|
|
2
|
+
> @next/polyfill-module@14.1.2 build /home/runner/work/next.js/next.js/packages/next-polyfill-module
|
|
3
3
|
> microbundle -i src/index.js -o dist/polyfill-module.js -f iife --no-sourcemap --external none --no-pkg-main
|
|
4
4
|
|
|
5
5
|
Build "@next/polyfill-module" to dist:
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
473 B: polyfill-module.js.gz
|
|
7
|
+
414 B: polyfill-module.js.br
|
package/dist/polyfill-module.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var t=/\((.*)\)/.exec(this.toString());return t?t[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(t,r){return r=this.concat.apply([],this),t>1&&r.some(Array.isArray)?r.flat(t-1):r},Array.prototype.flatMap=function(t,r){return this.map(t,r).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(t){if("function"!=typeof t)return this.then(t,t);var r=this.constructor||Promise;return this.then(function(n){return r.resolve(t()).then(function(){return n})},function(n){return r.resolve(t()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(t){return Array.from(t).reduce(function(t,r){return t[r[0]]=r[1],t},{})}),Array.prototype.at||(Array.prototype.at=function(t){var r=Math.trunc(t)||0;if(r<0&&(r+=this.length),!(r<0||r>=this.length))return this[r]})
|
|
1
|
+
"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var t=/\((.*)\)/.exec(this.toString());return t?t[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(t,r){return r=this.concat.apply([],this),t>1&&r.some(Array.isArray)?r.flat(t-1):r},Array.prototype.flatMap=function(t,r){return this.map(t,r).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(t){if("function"!=typeof t)return this.then(t,t);var r=this.constructor||Promise;return this.then(function(n){return r.resolve(t()).then(function(){return n})},function(n){return r.resolve(t()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(t){return Array.from(t).reduce(function(t,r){return t[r[0]]=r[1],t},{})}),Array.prototype.at||(Array.prototype.at=function(t){var r=Math.trunc(t)||0;if(r<0&&(r+=this.length),!(r<0||r>=this.length))return this[r]});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next/polyfill-module",
|
|
3
|
-
"version": "14.1.2
|
|
3
|
+
"version": "14.1.2",
|
|
4
4
|
"description": "A standard library polyfill for ES Modules supporting browsers (Edge 16+, Firefox 60+, Chrome 61+, Safari 10.1+)",
|
|
5
5
|
"main": "dist/polyfill-module.js",
|
|
6
6
|
"license": "MIT",
|
package/src/index.js
CHANGED
|
@@ -141,23 +141,3 @@ if (!Array.prototype.at) {
|
|
|
141
141
|
return this[i]
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Available in:
|
|
147
|
-
* Internet Explorer: never
|
|
148
|
-
* Edge: 93
|
|
149
|
-
* Firefox: 92
|
|
150
|
-
* Chrome: 93
|
|
151
|
-
* Safari: 15.4
|
|
152
|
-
*
|
|
153
|
-
* https://caniuse.com/mdn-javascript_builtins_object_hasown
|
|
154
|
-
*/
|
|
155
|
-
// Modifiled from https://github.com/tc39/proposal-accessible-object-hasownproperty/blob/main/polyfill.js
|
|
156
|
-
if (!Object.hasOwn) {
|
|
157
|
-
Object.hasOwn = function (object, property) {
|
|
158
|
-
if (object == null) {
|
|
159
|
-
throw new TypeError('Cannot convert undefined or null to object')
|
|
160
|
-
}
|
|
161
|
-
return Object.prototype.hasOwnProperty.call(Object(object), property)
|
|
162
|
-
}
|
|
163
|
-
}
|