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

@cypress/code-coverage

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cypress/code-coverage - npm Package Compare versions

Comparing version 3.12.39 to 3.12.40

2

package.json
{
"name": "@cypress/code-coverage",
"version": "3.12.39",
"version": "3.12.40",
"description": "Saves the code coverage collected during Cypress tests",

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

@@ -69,4 +69,9 @@ /// <reference types="cypress" />

const saveCoverageObject = (win) => {
// if application code has been instrumented, the app iframe "window" has an object
const applicationSourceCoverage = win?.__coverage__
// if the application code has been instrumented, then the app iframe "win.__coverage__" will be available,
// in addition, accessing win.__coverage__ can throw when testing cross-origin code,
// because we don't control the cross-origin code, we can safely return
let applicationSourceCoverage
try {
applicationSourceCoverage = win?.__coverage__
} catch {}
if (!applicationSourceCoverage) {

@@ -73,0 +78,0 @@ return

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