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

@bolt/polyfills

Package Overview
Dependencies
Maintainers
5
Versions
343
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bolt/polyfills - npm Package Compare versions

Comparing version 2.14.0-canary.11359.5.0 to 2.14.0-canary.11372.5.0

modern.js

2

CHANGELOG.md

@@ -6,3 +6,3 @@ # Change Log

# [2.14.0-canary.11359.5.0](https://github.com/boltdesignsystem/bolt/compare/v2.13.1...v2.14.0-canary.11359.5.0) (2019-12-18)
# [2.14.0-canary.11372.5.0](https://github.com/boltdesignsystem/bolt/compare/v2.13.1...v2.14.0-canary.11372.5.0) (2019-12-18)

@@ -9,0 +9,0 @@ **Note:** Version bump only for package @bolt/polyfills

@@ -17,2 +17,3 @@ /**

import 'regenerator-runtime/runtime';
import '@webcomponents/custom-elements/src/native-shim.js';
import 'core-js/modules/es.array.find';

@@ -30,1 +31,42 @@ import '@bolt/polyfills/platform/remove-polyfill.js';

import '@bolt/polyfills/platform/unresolved';
import 'element-closest';
import 'whatwg-fetch';
import 'mdn-polyfills/Node.prototype.prepend';
import 'mdn-polyfills/Node.prototype.replaceWith'; // used in dropdown
import 'core-js/modules/es.array.iterator';
import 'core-js/modules/es.array.from';
import 'core-js/modules/es.string.starts-with';
import 'core-js/modules/es.array.includes';
import 'core-js/modules/es.array.for-each';
import 'core-js/modules/es.object.assign';
import 'core-js/modules/es.string.includes';
import 'core-js/modules/es.string.repeat';
import WeakSet from '@ungap/weakset';
window.WeakSet = WeakSet;
import smoothscroll from 'smoothscroll-polyfill';
// kick off the polyfill!
smoothscroll.polyfill();
/**
* closest() polyfill
* @link https://developer.mozilla.org/en-US/docs/Web/API/Element/closest#Polyfill
*/
if (window.Element && !Element.prototype.closest) {
Element.prototype.closest = function(s) {
var matches = (this.document || this.ownerDocument).querySelectorAll(s),
i,
el = this;
do {
i = matches.length;
while (--i >= 0 && matches.item(i) !== el) {}
} while (i < 0 && (el = el.parentElement));
return el;
};
}
if (window.NodeList && !NodeList.prototype.forEach) {
NodeList.prototype.forEach = Array.prototype.forEach;
}
{
"name": "@bolt/polyfills",
"version": "2.14.0-canary.11359.5.0",
"version": "2.14.0-canary.11372.5.0",
"description": "Bolt Web Component Polyfills",

@@ -26,3 +26,3 @@ "main": "index.js",

},
"gitHead": "a2db8ef4c51325cc6cc42676bf82f66d5d8def96"
"gitHead": "050e6f808f443efc03fb07ef84be64e2e618e2a0"
}
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