bv-ui-core
Advanced tools
Comparing version 0.13.0 to 0.13.1
@@ -94,3 +94,3 @@ /* global fetch */ | ||
const requestUri = `${uri}&filter=ProductId:${products.join(',')}` | ||
fetch(requestUri) | ||
return fetch(requestUri) | ||
.then(response => response.json()) | ||
@@ -97,0 +97,0 @@ .then(json => { |
@@ -34,3 +34,4 @@ /** | ||
if (typeof global.Promise === 'undefined') { | ||
// If Promise is unsupported, or is currently polyfilled, supply our own, just in case | ||
if (typeof global.Promise === 'undefined' || !global.Promise.toString().match(/\[native code]/)) { | ||
// Store setTimeout reference so promise-polyfill will be unaffected by | ||
@@ -37,0 +38,0 @@ // other code modifying setTimeout (like sinon.useFakeTimers()) |
{ | ||
"name": "bv-ui-core", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"license": "Apache 2.0", | ||
@@ -11,3 +11,3 @@ "description": "Bazaarvoice UI-related JavaScript", | ||
"engines": { | ||
"node" : ">=6.10" | ||
"node": ">=6.10" | ||
}, | ||
@@ -14,0 +14,0 @@ "scripts": { |
@@ -54,2 +54,3 @@ ![](https://travis-ci.org/bazaarvoice/bv-ui-core.svg) | ||
- [performance](./lib/performance) | ||
- [polyfills](./lib/polyfills) | ||
- [pixelsDisplayed](./lib/pixelsDisplayed) | ||
@@ -56,0 +57,0 @@ - [staticAssetLoader](./lib/staticAssetLoader) |
@@ -8,3 +8,7 @@ var api = require('../../../lib/api') | ||
oldFetch = window.fetch | ||
window.fetch = () => {} | ||
window.fetch = () => Promise.resolve({ | ||
json: () => ({ | ||
Results: [], | ||
}), | ||
}) | ||
}) | ||
@@ -11,0 +15,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
192579
4524
60
2