@envelop/on-resolve 7.1.1 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +3 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
- package/typings/index.d.cts +2 -2
- package/typings/index.d.ts +2 -2
package/LICENSE
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2020
|
|
3
|
+
Copyright (c) 2018-2020 Graphcool
|
|
4
|
+
Copyright (c) 2020-2021 Prisma
|
|
5
|
+
Copyright (c) 2021- The Guild
|
|
4
6
|
|
|
5
7
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
8
|
of this software and associated documentation files (the "Software"), to deal
|
package/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defaultFieldResolver, isIntrospectionType, isObjectType
|
|
1
|
+
import { defaultFieldResolver, isIntrospectionType, isObjectType } from 'graphql';
|
|
2
2
|
import { handleMaybePromise, mapMaybePromise } from '@whatwg-node/promise-helpers';
|
|
3
3
|
/**
|
|
4
4
|
* Wraps the provided schema by hooking into the resolvers of every field.
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/on-resolve",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
7
|
-
"@envelop/core": "^5.
|
|
6
|
+
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
|
|
7
|
+
"@envelop/core": "^5.6.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@whatwg-node/promise-helpers": "^1.0.0"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "https://github.com/graphql-hive/
|
|
15
|
-
"directory": "packages/plugins/on-resolve"
|
|
14
|
+
"url": "https://github.com/graphql-hive/graphql-yoga.git",
|
|
15
|
+
"directory": "packages/envelop/plugins/on-resolve"
|
|
16
16
|
},
|
|
17
17
|
"author": "Denis Badurina <badurinadenis@gmail.com>",
|
|
18
18
|
"license": "MIT",
|
package/typings/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import type { GraphQLResolveInfo } from 'graphql';
|
|
2
2
|
import type { Plugin } from '@envelop/core';
|
|
3
|
-
import { MaybePromise } from '@whatwg-node/promise-helpers';
|
|
3
|
+
import type { MaybePromise } from '@whatwg-node/promise-helpers';
|
|
4
4
|
export type Resolver<Context = unknown> = (root: unknown, args: Record<string, unknown>, context: Context, info: GraphQLResolveInfo) => MaybePromise<unknown>;
|
|
5
5
|
export type AfterResolver = (options: {
|
|
6
6
|
result: unknown;
|
package/typings/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import type { GraphQLResolveInfo } from 'graphql';
|
|
2
2
|
import type { Plugin } from '@envelop/core';
|
|
3
|
-
import { MaybePromise } from '@whatwg-node/promise-helpers';
|
|
3
|
+
import type { MaybePromise } from '@whatwg-node/promise-helpers';
|
|
4
4
|
export type Resolver<Context = unknown> = (root: unknown, args: Record<string, unknown>, context: Context, info: GraphQLResolveInfo) => MaybePromise<unknown>;
|
|
5
5
|
export type AfterResolver = (options: {
|
|
6
6
|
result: unknown;
|