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

xhr-shaper

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xhr-shaper - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

2

package.json
{
"name": "xhr-shaper",
"version": "1.2.1",
"version": "1.2.2",
"description": "Shapes your XHR requests to a max emulated bandwidth and latency, randomizes frequency of progress events",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -26,3 +26,3 @@ // This will shim the XHR object in your window and add some custom functionnality on top in the Shaper object

loadEndEvent = event;
if (_onloadend && done) {
if (done && _onloadend) {
_onloadend(event);

@@ -34,3 +34,3 @@ }

loadEvent = event;
if (_onload && done) {
if (done && _onload) {
_onload(event);

@@ -95,10 +95,9 @@ }

}, Math.max(delay1, delay2));
break;
} else {
console.log('not delaying');
done = true;
triggerStateChange(event);
}
triggerStateChange(event);
break;
}
};

@@ -105,0 +104,0 @@

Sorry, the diff of this file is not supported yet

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