Socket
Socket
Sign inDemoInstall

cypress-network-idle

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-network-idle - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

2

package.json
{
"name": "cypress-network-idle",
"version": "1.3.1",
"version": "1.3.2",
"description": "A little Cypress.io plugin for waiting for network to be idle before continuing with the test",

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

@@ -43,7 +43,10 @@ /// <reference types="cypress" />

counters.lastNetworkAt = +new Date()
// console.log('out req at ', lastNetworkAt)
req.continue(() => {
// count the response timestamp
// console.log('req %s %s', req.method, req.url, counters.lastNetworkAt)
// seems using event callbacks allows the other stubs to be called
// https://github.com/bahmutov/cypress-network-idle/issues/8
req.on('response', (res) => {
counters.lastNetworkAt = +new Date()
// console.log('response at', lastNetworkAt)
// console.log('res %s %s', req.method, req.url, counters.lastNetworkAt)
// console.log(res.body)
})

@@ -109,7 +112,9 @@ })

counters.lastNetworkAt = +new Date()
// console.log('out req at ', lastNetworkAt)
req.continue(() => {
// count the response timestamp
// seems using event callbacks allows the other stubs to be called
// https://github.com/bahmutov/cypress-network-idle/issues/8
req.on('response', (res) => {
counters.lastNetworkAt = +new Date()
// console.log('response at', lastNetworkAt)
// console.log('res %s %s', req.method, req.url, counters.lastNetworkAt)
// console.log(res.body)
})

@@ -116,0 +121,0 @@ }).as(alias)

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