Socket
Socket
Sign inDemoInstall

@graphql-tools/wrap

Package Overview
Dependencies
12
Maintainers
3
Versions
1301
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.4.0 to 9.4.1-rc-20230406060306-3e692136

6

cjs/transforms/MoveRootField.js

@@ -31,5 +31,5 @@ "use strict";

const newRootFieldsMap = {
query: ((_b = (_a = rootTypeMap.get(graphql_1.OperationTypeNode.QUERY)) === null || _a === void 0 ? void 0 : _a.toConfig()) === null || _b === void 0 ? void 0 : _b.fields) || {},
mutation: ((_d = (_c = rootTypeMap.get(graphql_1.OperationTypeNode.MUTATION)) === null || _c === void 0 ? void 0 : _c.toConfig()) === null || _d === void 0 ? void 0 : _d.fields) || {},
subscription: ((_f = (_e = rootTypeMap.get(graphql_1.OperationTypeNode.SUBSCRIPTION)) === null || _e === void 0 ? void 0 : _e.toConfig()) === null || _f === void 0 ? void 0 : _f.fields) || {},
query: ((_b = (_a = rootTypeMap.get('query')) === null || _a === void 0 ? void 0 : _a.toConfig()) === null || _b === void 0 ? void 0 : _b.fields) || {},
mutation: ((_d = (_c = rootTypeMap.get('mutation')) === null || _c === void 0 ? void 0 : _c.toConfig()) === null || _d === void 0 ? void 0 : _d.fields) || {},
subscription: ((_f = (_e = rootTypeMap.get('subscription')) === null || _e === void 0 ? void 0 : _e.toConfig()) === null || _f === void 0 ? void 0 : _f.fields) || {},
};

@@ -36,0 +36,0 @@ for (const operation in this.from) {

@@ -1,2 +0,2 @@

import { GraphQLObjectType, GraphQLSchema, Kind, OperationTypeNode, visit } from 'graphql';
import { GraphQLObjectType, GraphQLSchema, Kind, visit } from 'graphql';
import { MapperKind, getRootTypeMap, mapSchema } from '@graphql-tools/utils';

@@ -28,5 +28,5 @@ const defaultRootTypeNames = {

const newRootFieldsMap = {
query: ((_b = (_a = rootTypeMap.get(OperationTypeNode.QUERY)) === null || _a === void 0 ? void 0 : _a.toConfig()) === null || _b === void 0 ? void 0 : _b.fields) || {},
mutation: ((_d = (_c = rootTypeMap.get(OperationTypeNode.MUTATION)) === null || _c === void 0 ? void 0 : _c.toConfig()) === null || _d === void 0 ? void 0 : _d.fields) || {},
subscription: ((_f = (_e = rootTypeMap.get(OperationTypeNode.SUBSCRIPTION)) === null || _e === void 0 ? void 0 : _e.toConfig()) === null || _f === void 0 ? void 0 : _f.fields) || {},
query: ((_b = (_a = rootTypeMap.get('query')) === null || _a === void 0 ? void 0 : _a.toConfig()) === null || _b === void 0 ? void 0 : _b.fields) || {},
mutation: ((_d = (_c = rootTypeMap.get('mutation')) === null || _c === void 0 ? void 0 : _c.toConfig()) === null || _d === void 0 ? void 0 : _d.fields) || {},
subscription: ((_f = (_e = rootTypeMap.get('subscription')) === null || _e === void 0 ? void 0 : _e.toConfig()) === null || _f === void 0 ? void 0 : _f.fields) || {},
};

@@ -33,0 +33,0 @@ for (const operation in this.from) {

{
"name": "@graphql-tools/wrap",
"version": "9.4.0",
"version": "9.4.1-rc-20230406060306-3e692136",
"description": "A set of utils for faster development of GraphQL tools",

@@ -5,0 +5,0 @@ "sideEffects": false,

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