@graphql-codegen/urql-introspection 2.1.1-alpha-e04750ad3.0 → 2.1.1
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.d.ts +7 -7
- package/package.json +5 -4
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { PluginFunction, PluginValidateFn } from '@graphql-codegen/plugin-helper
|
|
|
2
2
|
/**
|
|
3
3
|
* @description This plugin generates an introspection file for Schema Awareness feature of Urql Cache Exchange
|
|
4
4
|
*
|
|
5
|
-
* You can read more about it in `urql` documentation: https://formidable.com/open-source/urql/docs/graphcache/schema-awareness
|
|
5
|
+
* You can read more about it in `urql` documentation: https://formidable.com/open-source/urql/docs/graphcache/schema-awareness.
|
|
6
6
|
*
|
|
7
7
|
* Urql Introspection plugin accepts a TypeScript / JavaScript or a JSON file as an output _(`.ts, .tsx, .js, .jsx, .json`)_.
|
|
8
8
|
*
|
|
@@ -12,17 +12,17 @@ import { PluginFunction, PluginValidateFn } from '@graphql-codegen/plugin-helper
|
|
|
12
12
|
*/
|
|
13
13
|
export interface UrqlIntrospectionConfig {
|
|
14
14
|
/**
|
|
15
|
-
* @description Compatible only with JSON extension, allow you to choose the export type, either `module.exports` or `export default`.
|
|
15
|
+
* @description Compatible only with JSON extension, allow you to choose the export type, either `module.exports` or `export default`. Allowed values are: `commonjs`, `es2015`.
|
|
16
16
|
* @default es2015
|
|
17
17
|
*
|
|
18
18
|
* @exampleMarkdown
|
|
19
19
|
* ```yml
|
|
20
20
|
* generates:
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
21
|
+
* path/to/file.json:
|
|
22
|
+
* plugins:
|
|
23
|
+
* - urql-introspection
|
|
24
|
+
* config:
|
|
25
|
+
* module: commonjs
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
28
|
module?: 'commonjs' | 'es2015';
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/urql-introspection",
|
|
3
|
-
"version": "2.1.1
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "graphql-code-generate plugin for generating fragments matcher introspection file",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
|
|
6
|
+
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@graphql-codegen/plugin-helpers": "2.2
|
|
10
|
-
"@urql/introspection": "0.3.
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "^2.3.2",
|
|
10
|
+
"@urql/introspection": "0.3.1",
|
|
11
11
|
"tslib": "~2.3.0"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"definition": "index.d.ts"
|
|
24
24
|
},
|
|
25
25
|
"exports": {
|
|
26
|
+
"./package.json": "./package.json",
|
|
26
27
|
".": {
|
|
27
28
|
"require": "./index.js",
|
|
28
29
|
"import": "./index.mjs"
|