@graphql-yoga/plugin-apq 2.0.3 → 2.0.4-alpha-20230810153432-d9f7d423

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/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createGraphQLError, createLRUCache, } from 'graphql-yoga';
1
+ import { createGraphQLError, createLRUCache } from 'graphql-yoga';
2
2
  export async function hashSHA256(str, api = globalThis) {
3
3
  const { crypto, TextEncoder } = api;
4
4
  const textEncoder = new TextEncoder();
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@graphql-yoga/plugin-apq",
3
- "version": "2.0.3",
3
+ "version": "2.0.4-alpha-20230810153432-d9f7d423",
4
4
  "description": "APQ plugin for GraphQL Yoga.",
5
5
  "peerDependencies": {
6
6
  "@graphql-tools/utils": "^10.0.0",
7
- "graphql-yoga": "^4.0.3"
7
+ "graphql-yoga": "4.0.4-alpha-20230810153432-d9f7d423"
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
@@ -1,7 +1,7 @@
1
1
  import { Plugin, PromiseOrValue } from 'graphql-yoga';
2
2
  export declare function hashSHA256(str: string, api?: {
3
3
  crypto: Crypto;
4
- TextEncoder: typeof globalThis['TextEncoder'];
4
+ TextEncoder: (typeof globalThis)['TextEncoder'];
5
5
  }): Promise<string>;
6
6
  export interface APQStoreOptions {
7
7
  max?: number;
@@ -1,7 +1,7 @@
1
1
  import { Plugin, PromiseOrValue } from 'graphql-yoga';
2
2
  export declare function hashSHA256(str: string, api?: {
3
3
  crypto: Crypto;
4
- TextEncoder: typeof globalThis['TextEncoder'];
4
+ TextEncoder: (typeof globalThis)['TextEncoder'];
5
5
  }): Promise<string>;
6
6
  export interface APQStoreOptions {
7
7
  max?: number;