@croquiscom/crary-graphql
Advanced tools
Comparing version 0.16.2 to 1.0.0
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
@@ -10,3 +10,3 @@ "use strict"; | ||
const selections = nodes.reduce((current, source) => { | ||
if (source && source.selectionSet && source.selectionSet.selections) { | ||
if (source.selectionSet) { | ||
current.push(...source.selectionSet.selections); | ||
@@ -45,3 +45,3 @@ } | ||
const selections = nodes.reduce((current, source) => { | ||
if (source && source.selectionSet && source.selectionSet.selections) { | ||
if (source.selectionSet) { | ||
current.push(...source.selectionSet.selections); | ||
@@ -63,3 +63,4 @@ } | ||
} | ||
else if (node.kind === 'FragmentSpread') { | ||
else { | ||
// node.kind === 'FragmentSpread' | ||
const result = getSubFieldNode(info, [info.fragments[node.name.value]], fieldName); | ||
@@ -66,0 +67,0 @@ if (result) { |
@@ -15,3 +15,3 @@ "use strict"; | ||
const selections = nodes.reduce((current, source) => { | ||
if (source && source.selectionSet && source.selectionSet.selections) { | ||
if (source.selectionSet) { | ||
current.push(...source.selectionSet.selections); | ||
@@ -18,0 +18,0 @@ } |
import { GraphQLField, GraphQLFieldResolver, GraphQLResolveInfo } from 'graphql'; | ||
import { IGraphQLResolveInfoMethods } from '../info'; | ||
declare type ResolverHookFunction = (source: any, args: { | ||
type ResolverHookFunction = (source: any, args: { | ||
[argName: string]: any; | ||
@@ -5,0 +5,0 @@ }, context: any, info: GraphQLResolveInfo & IGraphQLResolveInfoMethods, resolve: GraphQLFieldResolver<any, any>) => any | Promise<any>; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
@@ -10,3 +10,3 @@ import { DocumentNode } from 'graphql'; | ||
*/ | ||
export declare function getOperationNameOrFirstField(query_or_document: string | DocumentNode): string | null; | ||
export declare function getOperationNameOrFirstField(query_or_document: string | DocumentNode | null): string | null; | ||
/** | ||
@@ -20,3 +20,3 @@ * GraphQL query์์ ์ฒซ๋ฒ์งธ ํ๋๋ฅผ ๋ฐํํ๋ค. | ||
*/ | ||
export declare function getFirstField(query_or_document: string | DocumentNode): string | null; | ||
export declare function getFirstField(query_or_document: string | DocumentNode | null): string | null; | ||
/** | ||
@@ -30,3 +30,3 @@ * GraphQL query์์ operation name์ ๋ฐํํ๋ค. | ||
*/ | ||
export declare function getOperationName(query_or_document: string | DocumentNode): string | null; | ||
export declare function getOperationName(query_or_document: string | DocumentNode | null): string | null; | ||
/** | ||
@@ -36,1 +36,2 @@ * GraphQL query์์ operation name์ ๋ณ๊ฒฝํ๋ค. | ||
export declare function replaceOperationName(document: DocumentNode, operation_name: string): DocumentNode; | ||
export declare function replaceOperationName(document: null, operation_name: string): null; |
@@ -83,5 +83,2 @@ "use strict"; | ||
exports.getOperationName = getOperationName; | ||
/** | ||
* GraphQL query์์ operation name์ ๋ณ๊ฒฝํ๋ค. | ||
*/ | ||
function replaceOperationName(document, operation_name) { | ||
@@ -88,0 +85,0 @@ if (!document) { |
{ | ||
"name": "@croquiscom/crary-graphql", | ||
"version": "0.16.2", | ||
"version": "1.0.0", | ||
"description": "Croquis's library - graphql extension", | ||
"engines": { | ||
"node": "^16" | ||
}, | ||
"main": "./lib", | ||
@@ -17,27 +20,28 @@ "types": "./lib/index.d.ts", | ||
"type": "git", | ||
"url": "https://github.com/croquiscom/Crary-Node.git" | ||
"url": "https://github.com/croquiscom/crary-node.git" | ||
}, | ||
"author": "", | ||
"author": "Sangmin Yoon <simon.yoon@kakaostyle.com>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/croquiscom/Crary-Node/issues" | ||
"url": "https://github.com/croquiscom/crary-node/issues" | ||
}, | ||
"homepage": "https://github.com/croquiscom/Crary-Node", | ||
"homepage": "https://github.com/croquiscom/crary-node", | ||
"dependencies": { | ||
"@graphql-tools/delegate": "^8.4.3", | ||
"@graphql-tools/utils": "^8.6.1", | ||
"graphql": "^16.3.0" | ||
"@graphql-tools/delegate": "^9.0.17", | ||
"@graphql-tools/utils": "^9.1.1", | ||
"graphql": "^16.6.0" | ||
}, | ||
"devDependencies": { | ||
"@graphql-tools/stitch": "^8.4.3", | ||
"@types/chai": "^4.3.0", | ||
"@graphql-tools/stitch": "^8.7.29", | ||
"@types/chai": "^4.3.4", | ||
"@types/graphql": "^14.5.0", | ||
"@types/mocha": "^9.1.0", | ||
"chai": "^4.3.6", | ||
"mocha": "^9.2.0", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^18.11.11", | ||
"chai": "^4.3.7", | ||
"mocha": "^10.1.0", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^10.5.0", | ||
"typescript": "^4.5.5" | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.9.3" | ||
}, | ||
"gitHead": "4100fb0f246f09f6b121fffe605189f0752acab6" | ||
"gitHead": "b3ebc5dbd93d1b87278ff51a05d65b24e9712975" | ||
} |
@@ -15,2 +15,2 @@ [](https://badge.fury.io/js/%40croquiscom%2Fcrary-graphql) | ||
MIT licenses. See [LICENSE](https://github.com/croquiscom/graphql-scalar-types/blob/master/LICENSE) for more details. | ||
MIT licenses. See [LICENSE](https://github.com/croquiscom/crary-node/blob/master/packages/graphql/LICENSE) for more details. |
{ | ||
"compilerOptions": { | ||
"target": "es2020", | ||
"module": "commonjs", | ||
"declaration": true, | ||
"experimentalDecorators": true, | ||
"target": "es2021", | ||
"noImplicitAny": true, | ||
"noImplicitThis": true, | ||
"strictNullChecks": true, | ||
"strict": true, | ||
"stripInternal": true, | ||
"declaration": true, | ||
"module": "CommonJS", | ||
"esModuleInterop": true, | ||
@@ -10,0 +12,0 @@ "lib": ["es2020", "dom", "esnext.asynciterable"] |
Sorry, the diff of this file is not supported yet
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
46826
1141
0
0
10
+ Added@graphql-tools/batch-execute@8.5.22(transitive)
+ Added@graphql-tools/delegate@9.0.35(transitive)
+ Added@graphql-tools/executor@0.0.20(transitive)
+ Added@graphql-tools/merge@8.4.2(transitive)
+ Added@graphql-tools/schema@9.0.19(transitive)
+ Added@graphql-tools/utils@9.2.1(transitive)
+ Added@graphql-typed-document-node/core@3.2.0(transitive)
+ Added@repeaterjs/repeater@3.0.6(transitive)
+ Addeddataloader@2.2.3(transitive)
+ Addedtslib@2.8.1(transitive)
+ Addedvalue-or-promise@1.0.12(transitive)
- Removed@graphql-tools/batch-execute@8.5.1(transitive)
- Removed@graphql-tools/delegate@8.8.1(transitive)
- Removed@graphql-tools/merge@8.3.1(transitive)
- Removed@graphql-tools/schema@8.5.1(transitive)
- Removed@graphql-tools/utils@8.13.18.9.0(transitive)
- Removeddataloader@2.1.0(transitive)
- Removedtslib@2.4.1(transitive)
- Removedvalue-or-promise@1.0.11(transitive)
Updated@graphql-tools/utils@^9.1.1
Updatedgraphql@^16.6.0