Socket
Socket
Sign inDemoInstall

graphql-codegen-persisted-query-ids

Package Overview
Dependencies
13
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

9

lib/index.js

@@ -165,3 +165,10 @@ "use strict";

exports.plugin = function (_schema, documents, config) {
var queries = generateQueryIds(documents.map(function (doc) { return doc.content; }), config);
var queries = generateQueryIds(documents.map(function (doc) {
// graphql-code-generator moved from .content to .document at some point.
// Try to work with both. Must use any since the tests can only have
// one version of the typings
var anyDoc = doc;
var docNode = anyDoc.content || anyDoc.document;
return docNode;
}), config);
var out = {};

@@ -168,0 +175,0 @@ if (config.output === "client") {

18

package.json
{
"name": "graphql-codegen-persisted-query-ids",
"version": "0.1.1",
"version": "0.1.2",
"description": "Generate persisted query ids",

@@ -17,12 +17,12 @@ "main": "lib/index.js",

"@types/graphql": "^14.5.0",
"@types/jest": "^24.0.18",
"@types/node": "^12.7.5",
"jest": "^24.9.0",
"prettier": "^1.18.2",
"ts-jest": "^24.1.0",
"typescript": "^3.6.3"
"@types/jest": "^25.2.1",
"@types/node": "^13.11.0",
"jest": "^25.2.7",
"prettier": "^2.0.4",
"ts-jest": "^25.3.1",
"typescript": "^3.8.3"
},
"dependencies": {
"@graphql-codegen/plugin-helpers": "1.7.x",
"graphql": "^14.5.4"
"@graphql-codegen/plugin-helpers": "^1.13.2",
"graphql": "^14.0.0"
},

@@ -29,0 +29,0 @@ "files": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc