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

@shopify/cypress-graphql

Package Overview
Dependencies
Maintainers
19
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/cypress-graphql - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

12

dist/utils/hasOperationName.js

@@ -6,6 +6,14 @@ "use strict";

var body = req.body;
return (
// Standard use case - operationName is included in the req body
/* eslint-disable-next-line no-prototype-builtins */
body.hasOwnProperty('operationName') && body.operationName === operationName);
if (body.hasOwnProperty('operationName')) {
return body.operationName === operationName;
}
// Edge case - some packages include API calls that don't - so check the query body instead
/* eslint-disable-next-line no-prototype-builtins */
if (body.hasOwnProperty('query')) {
return body.query.includes(operationName);
}
return false;
};
exports.hasOperationName = hasOperationName;

2

package.json
{
"name": "@shopify/cypress-graphql",
"version": "1.0.0",
"version": "1.0.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Cypress commands for stubbing, intercepting and testing graphql endpoints",

@@ -20,3 +20,3 @@ # `@shopify/cypress-graphql`

```
import '@shopify/cypress-graphql
import '@shopify/cypress-graphql';
```

@@ -23,0 +23,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