bv-ui-core
Advanced tools
Comparing version 0.14.2 to 0.14.3
@@ -65,3 +65,3 @@ # logger | ||
##Bookmarklet | ||
## Bookmarklet | ||
@@ -68,0 +68,0 @@ You can use the following bookmarklet in a browser to specify your loglevel. Save the below script as a bookmark and click on it when you want to modify the stored cookie value. |
@@ -24,11 +24,13 @@ /** | ||
// whatwg-fetch does some internal support checks for. | ||
global.self = { | ||
URLSearchParams: global.URLSearchParams, | ||
Symbol: global.Symbol, | ||
FileReader: global.FileReader, | ||
Blob: global.Blob, | ||
FormData: global.FormData, | ||
ArrayBuffer: global.ArrayBuffer, | ||
}; | ||
global.self = {}; | ||
// whatwg-fetch uses 'in' checks which breaks on undefined properties, so we | ||
// should check for existence and only add the ones that we know we have. | ||
var names = ['URLSearchParams', 'FileReader', 'Blob', 'FormData', 'ArrayBuffer']; | ||
names.forEach(function (name) { | ||
if (global[name]) { | ||
global.self[name] = global[name]; | ||
} | ||
}); | ||
// Require whatwg-fetch, which will search for 'self' and attach to it. | ||
@@ -35,0 +37,0 @@ require('whatwg-fetch'); |
@@ -34,7 +34,7 @@ # Polyfills! | ||
new webpack.ProvidePlugin({ | ||
Promise: 'bv-ui-core/lib/polyfill/promise', | ||
fetch: ['bv-ui-core/lib/polyfill/fetch', 'fetch'], | ||
Headers: ['bv-ui-core/lib/polyfill/fetch', 'Headers'], | ||
Promise: 'bv-ui-core/lib/polyfills/promise', | ||
fetch: ['bv-ui-core/lib/polyfills/fetch', 'fetch'], | ||
Headers: ['bv-ui-core/lib/polyfills/fetch', 'Headers'], | ||
}) | ||
] | ||
``` | ||
``` |
{ | ||
"name": "bv-ui-core", | ||
"version": "0.14.2", | ||
"version": "0.14.3", | ||
"license": "Apache 2.0", | ||
@@ -5,0 +5,0 @@ "description": "Bazaarvoice UI-related JavaScript", |
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
201848
4717