@bolt/polyfills
Advanced tools
Comparing version 2.14.0-canary.11359.5.0 to 2.14.0-canary.11372.5.0
@@ -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 |
42
index.js
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31657
14
813