Socket
Socket
Sign inDemoInstall

apollo-codegen

Package Overview
Dependencies
115
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.17.0-alpha.9 to 0.17.0-alpha.10

src/serializeToJSON.ts

12

lib/serializeToJSON.js

@@ -13,3 +13,3 @@ "use strict";

function serializeAST(ast, space) {
return JSON.stringify(ast, function (key, value) {
return JSON.stringify(ast, function (_, value) {
if (graphql_1.isType(value)) {

@@ -34,2 +34,5 @@ return String(value);

}
else {
throw new Error(`Unexpected GraphQL type: ${type}`);
}
}

@@ -58,3 +61,8 @@ function serializeEnumType(type) {

description,
fields
fields: fields.map(field => ({
name: field.name,
type: String(field.type),
description: field.description,
defaultValue: field.defaultValue
}))
};

@@ -61,0 +69,0 @@ }

2

package.json
{
"name": "apollo-codegen",
"version": "0.17.0-alpha.9",
"version": "0.17.0-alpha.10",
"description": "Generate API code or type annotations based on a GraphQL schema and query documents",

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

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