Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mdn-polyfills

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdn-polyfills - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

Array.of.js

2

Array.prototype.filter.js

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

!function(r){function t(o){if(e[o])return e[o].exports;var n=e[o]={exports:{},id:o,loaded:!1};return r[o].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var e={};return t.m=r,t.c=e,t.p="",t(0)}([function(r,t,e){"use strict";function o(r){return r&&r.__esModule?r:{"default":r}}var n=e(1),i=o(n);Array.prototype.filter||(Array.prototype.filter=i["default"])},function(r,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(r){if(void 0===this||null===this)throw new TypeError;var t=Object(this),e=t.length>>>0;if("function"!=typeof r)throw new TypeError;for(var o=[],n=arguments.length>=2?arguments[1]:void 0,i=0;i<e;i++)if(i in t){var u=t[i];r.call(n,u,i,t)&&o.push(u)}return o}}]);
!function(r){function t(o){if(e[o])return e[o].exports;var n=e[o]={exports:{},id:o,loaded:!1};return r[o].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var e={};return t.m=r,t.c=e,t.p="",t(0)}([function(r,t,e){"use strict";function o(r){return r&&r.__esModule?r:{default:r}}var n=e(2),i=o(n);Array.prototype.filter||(Array.prototype.filter=i.default)},,function(r,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r){if(void 0===this||null===this)throw new TypeError;var t=Object(this),e=t.length>>>0;if("function"!=typeof r)throw new TypeError;for(var o=[],n=arguments.length>=2?arguments[1]:void 0,i=0;i<e;i++)if(i in t){var u=t[i];r.call(n,u,i,t)&&o.push(u)}return o}}]);

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

!function(r){function e(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return r[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var t={};return e.m=r,e.c=t,e.p="",e(0)}([function(r,e,t){"use strict";function n(r){return r&&r.__esModule?r:{"default":r}}var o=t(2),u=n(o);Array.prototype.find||(Array.prototype.find=u["default"])},,function(r,e){"use strict";function t(r){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof r)throw new TypeError("predicate must be a function");for(var e=Object(this),t=e.length>>>0,n=arguments[1],o=void 0,u=0;u<t;u++)if(o=e[u],r.call(n,o,u,e))return o}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t}]);
!function(r){function e(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return r[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var t={};return e.m=r,e.c=t,e.p="",e(0)}([function(r,e,t){"use strict";function n(r){return r&&r.__esModule?r:{default:r}}var o=t(3),u=n(o);Array.prototype.find||(Array.prototype.find=u.default)},,,function(r,e){"use strict";function t(r){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof r)throw new TypeError("predicate must be a function");for(var e=Object(this),t=e.length>>>0,n=arguments[1],o=void 0,u=0;u<t;u++)if(o=e[u],r.call(n,o,u,e))return o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=t}]);

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

!function(r){function t(o){if(e[o])return e[o].exports;var n=e[o]={exports:{},id:o,loaded:!1};return r[o].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var e={};return t.m=r,t.c=e,t.p="",t(0)}([function(r,t,e){"use strict";function o(r){return r&&r.__esModule?r:{"default":r}}var n=e(3),i=o(n);Array.prototype.forEach||(Array.prototype.forEach=i["default"])},,,function(r,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(r,t){var e,o;if(null===this)throw new TypeError(" this is null or not defined");var n=Object(this),i=n.length>>>0;if("function"!=typeof r)throw new TypeError(r+" is not a function");for(arguments.length>1&&(e=t),o=0;o<i;){var u;o in n&&(u=n[o],r.call(e,u,o,n)),o++}}}]);
!function(r){function t(o){if(e[o])return e[o].exports;var n=e[o]={exports:{},id:o,loaded:!1};return r[o].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var e={};return t.m=r,t.c=e,t.p="",t(0)}([function(r,t,e){"use strict";function o(r){return r&&r.__esModule?r:{default:r}}var n=e(4),i=o(n);Array.prototype.forEach||(Array.prototype.forEach=i.default)},,,,function(r,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,t){var e,o;if(null===this)throw new TypeError(" this is null or not defined");var n=Object(this),i=n.length>>>0;if("function"!=typeof r)throw new TypeError(r+" is not a function");for(arguments.length>1&&(e=t),o=0;o<i;){var u;o in n&&(u=n[o],r.call(e,u,o,n)),o++}}}]);

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

!function(r){function e(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return r[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var t={};return e.m=r,e.c=t,e.p="",e(0)}([function(r,e,t){"use strict";function n(r){return r&&r.__esModule?r:{"default":r}}var o=t(4),u=n(o);Array.prototype.includes||(Array.prototype.includes=u["default"])},,,,function(r,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(r){if(null==this)throw new TypeError("Array.prototype.includes called on null or undefined");var e=Object(this),t=parseInt(e.length,10)||0;if(0===t)return!1;var n,o=parseInt(arguments[1],10)||0;o>=0?n=o:(n=t+o,n<0&&(n=0));for(var u;n<t;){if(u=e[n],r===u||r!==r&&u!==u)return!0;n++}return!1}}]);
!function(r){function e(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return r[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var t={};return e.m=r,e.c=t,e.p="",e(0)}({0:function(r,e,t){"use strict";function n(r){return r&&r.__esModule?r:{default:r}}var o=t(5),u=n(o);Array.prototype.includes||(Array.prototype.includes=u.default)},5:function(r,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r){if(null==this)throw new TypeError("Array.prototype.includes called on null or undefined");var e=Object(this),t=parseInt(e.length,10)||0;if(0===t)return!1;var n,o=parseInt(arguments[1],10)||0;o>=0?n=o:(n=t+o,n<0&&(n=0));for(var u;n<t;){if(u=e[n],r===u||r!==r&&u!==u)return!0;n++}return!1}}});

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

!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}({0:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}var o=r(5),u=n(o);"function"!=typeof Object.assign&&(Object.assign=u["default"])},5:function(e,t){"use strict";function r(e){if(void 0===e||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1;r<arguments.length;r++){var n=arguments[r];if(void 0!==n&&null!==n)for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])}return t}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r}});
!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}({0:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var o=r(6),u=n(o);"function"!=typeof Object.assign&&(Object.assign=u.default)},6:function(e,t){"use strict";function r(e){if(void 0===e||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1;r<arguments.length;r++){var n=arguments[r];if(void 0!==n&&null!==n)for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r}});
{
"name": "mdn-polyfills",
"version": "2.1.2",
"version": "2.2.0",
"description": "MDN polyfills",

@@ -25,3 +25,5 @@ "scripts": {

"array.includes",
"object.assign"
"array.of",
"object.assign",
"object.create"
],

@@ -28,0 +30,0 @@ "author": "",

@@ -19,2 +19,8 @@ # Polyfills copied from MDN [![Build Status](https://travis-ci.org/msn0/mdn-polyfills.svg?branch=master)](http://travis-ci.org/msn0/mdn-polyfills)

## [Object.create](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create#Polyfill)
```js
import 'mdn-polyfills/Object.create';
```
## [Array.prototype.find](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/find?v=control#Polyfill)

@@ -50,4 +56,10 @@

## [Array.of](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/of#Polyfill)
```js
import 'mdn-polyfills/Array.of';
```
# License
MIT © [Michał Jezierski](https://github.com/msn0)

@@ -6,2 +6,3 @@ const webpack = require('webpack');

"Object.assign": "./src/Object.assign/index.js",
"Object.create": "./src/Object.create/index.js",
"Array.prototype.find": "./src/Array.prototype.find/index.js",

@@ -11,3 +12,4 @@ "Array.prototype.from": "./src/Array.prototype.from/index.js",

"Array.prototype.forEach": "./src/Array.prototype.forEach/index.js",
"Array.prototype.includes": "./src/Array.prototype.includes/index.js"
"Array.prototype.includes": "./src/Array.prototype.includes/index.js",
"Array.of": "./src/Array.of/index.js"
},

@@ -14,0 +16,0 @@ output: {

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