@graphql-yoga/subscription 0.2.0-canary-e1dfc9e.0 → 0.2.0-canary-3e484b9.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/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -9,7 +9,7 @@ const resolveGlobalConfig = (api = globalThis) => {
|
|
|
9
9
|
throw new Error(`
|
|
10
10
|
[@graphql-yoga/subscription] 'createPubSub' uses the Event and EventTarget APIs.
|
|
11
11
|
|
|
12
|
-
In modern JavaScript environments those are part of the global scope. However, if you are using an older version of Node.js (
|
|
12
|
+
In modern JavaScript environments those are part of the global scope. However, if you are using an older version of Node.js (< 16.x.x), those APIs must be polyfilled.
|
|
13
13
|
You can provide polyfills to the 'createPubSub' function:
|
|
14
14
|
|
|
15
15
|
\`\`\`
|
package/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ const resolveGlobalConfig = (api = globalThis) => {
|
|
|
6
6
|
throw new Error(`
|
|
7
7
|
[@graphql-yoga/subscription] 'createPubSub' uses the Event and EventTarget APIs.
|
|
8
8
|
|
|
9
|
-
In modern JavaScript environments those are part of the global scope. However, if you are using an older version of Node.js (
|
|
9
|
+
In modern JavaScript environments those are part of the global scope. However, if you are using an older version of Node.js (< 16.x.x), those APIs must be polyfilled.
|
|
10
10
|
You can provide polyfills to the 'createPubSub' function:
|
|
11
11
|
|
|
12
12
|
\`\`\`
|