New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ng-event-source

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-event-source - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

23

eventsource.js

@@ -171,2 +171,3 @@ /** @license

var timeout0 = 0;
var timeoutConnection = 0;
var charOffset = 0;

@@ -201,2 +202,6 @@ var currentState = WAITING;

}
if (timeoutConnection !== 0) {
clearTimeout(timeoutConnection);
timeoutConnection = 0;
}
that.readyState = CLOSED;

@@ -477,2 +482,10 @@ }

timeout = setTimeout(onTimeout, heartbeatTimeout);
timeoutConnection = setTimeout(function() {
if (xhr.status === 0) {
xhr.timeout = 1;
if (errorOnTimeout) {
console.log('No ack received');
}
}
}, connectionTimeout);

@@ -494,13 +507,5 @@ charOffset = 0;

}
xhr.timeout = 0;
xhr.open("GET", s, true);
if (connectionTimeout > 0) {
xhr.timeout = connectionTimeout;
xhr.ontimeout = function (e) {
if (errorOnTimeout) {
throw new Error("No ack received");
}
}
}
if ("withCredentials" in xhr) {

@@ -507,0 +512,0 @@ // withCredentials should be set after "open" for Safari and Chrome (< 19 ?)

{
"name": "ng-event-source",
"version": "1.0.7",
"version": "1.0.8",
"main": "eventsource.js",

@@ -5,0 +5,0 @@ "typings": "typings.d.ts",

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