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

bv-ui-core

Package Overview
Dependencies
Maintainers
10
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bv-ui-core - npm Package Compare versions

Comparing version 2.9.2 to 2.9.3

5

lib/bvFetch/index.js

@@ -86,3 +86,4 @@

if (canBeCached) {
const clonedResponse = response.clone()
const clonedResponse = response.clone();
const sizeCheck = response.clone();
const newHeaders = new Headers();

@@ -94,3 +95,3 @@ clonedResponse.headers.forEach((value, key) => {

// Get response text to calculate its size
clonedResponse.text().then(text => {
sizeCheck.text().then(text => {
// Calculate size of response text in bytes

@@ -97,0 +98,0 @@ const sizeInBytes = new Blob([text]).size;

2

package.json
{
"name": "bv-ui-core",
"version": "2.9.2",
"version": "2.9.3",
"license": "Apache 2.0",

@@ -5,0 +5,0 @@ "description": "Bazaarvoice UI-related JavaScript",

@@ -143,12 +143,13 @@ //Imports

// Check if response is fetched from network
expect(response).to.not.be.null;
console.log(response.body)
setTimeout(() => {
expect(response).to.not.be.null;
console.log(response.body)
// Check if caches.match was called
expect(cacheStub.calledOnce).to.be.false;
expect(cacheStub.calledOnce).to.be.false;
// Check if response is not cached
const cachedResponse = cacheStorage.get(url);
expect(cachedResponse).to.be.undefined;
const cachedResponse = cacheStorage.get(url);
expect(cachedResponse).to.be.undefined;
}, 500)
done();

@@ -155,0 +156,0 @@ })

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