@stonecrop/graphql-client 0.4.31 → 0.4.32
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/dist/graphql-client.js.map +1 -1
- package/dist/graphql-client.umd.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/src/index.d.ts +4 -3
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +6 -2
- package/src/index.ts +3 -2
package/dist/index.js
CHANGED
|
@@ -41,7 +41,7 @@ const metaParser = (obj) => {
|
|
|
41
41
|
* @returns The meta information for the doctype
|
|
42
42
|
* @public
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
const methods = {
|
|
45
45
|
getMeta: async (doctype, url) => {
|
|
46
46
|
const client = new GraphQLClient(url || '/graphql', {
|
|
47
47
|
jsonSerializer: {
|
|
@@ -56,4 +56,4 @@ export const methods = {
|
|
|
56
56
|
return getMeta;
|
|
57
57
|
},
|
|
58
58
|
};
|
|
59
|
-
export { queries, typeDefs };
|
|
59
|
+
export { queries, typeDefs, methods };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { queries } from './queries';
|
|
2
2
|
import typeDefs from './gql/schema';
|
|
3
|
-
import type {
|
|
3
|
+
import type { MetaResponse } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* Get meta information for a doctype
|
|
6
6
|
* @param doctype - The doctype to get meta information for
|
|
@@ -8,8 +8,9 @@ import type { Meta, MetaParser, MetaResponse } from './types';
|
|
|
8
8
|
* @returns The meta information for the doctype
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
declare const methods: {
|
|
12
12
|
getMeta: (doctype: string, url?: string) => Promise<MetaResponse>;
|
|
13
13
|
};
|
|
14
|
-
export { Meta, MetaParser, MetaResponse
|
|
14
|
+
export type { Meta, MetaParser, MetaResponse } from './types';
|
|
15
|
+
export { queries, typeDefs, methods };
|
|
15
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,QAAQ,MAAM,cAAc,CAAA;AACnC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,QAAQ,MAAM,cAAc,CAAA;AACnC,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,SAAS,CAAA;AAkC7D;;;;;;GAMG;AACH,QAAA,MAAM,OAAO;uBACa,MAAM,QAAQ,MAAM,KAAG,OAAO,CAAC,YAAY,CAAC;CAerE,CAAA;AAED,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/graphql-client",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.32",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
"default": "./dist/graphql-client.js"
|
|
23
23
|
},
|
|
24
24
|
"require": "./dist/graphql-client.umd.cjs"
|
|
25
|
+
},
|
|
26
|
+
"./types": {
|
|
27
|
+
"import": "./dist/src/types/index.d.ts",
|
|
28
|
+
"require": "./dist/src/types/index.d.ts"
|
|
25
29
|
}
|
|
26
30
|
},
|
|
27
31
|
"typings": "./dist/src/index.d.ts",
|
|
@@ -33,7 +37,7 @@
|
|
|
33
37
|
"decimal.js": "^10.4.3",
|
|
34
38
|
"graphql": "~16.6.0",
|
|
35
39
|
"graphql-request": "~6.0.0",
|
|
36
|
-
"@stonecrop/stonecrop": "0.4.
|
|
40
|
+
"@stonecrop/stonecrop": "0.4.32"
|
|
37
41
|
},
|
|
38
42
|
"devDependencies": {
|
|
39
43
|
"@microsoft/api-documenter": "^7.26.31",
|
package/src/index.ts
CHANGED
|
@@ -44,7 +44,7 @@ const metaParser = (obj: string): MetaParser => {
|
|
|
44
44
|
* @returns The meta information for the doctype
|
|
45
45
|
* @public
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
const methods = {
|
|
48
48
|
getMeta: async (doctype: string, url?: string): Promise<MetaResponse> => {
|
|
49
49
|
const client = new GraphQLClient(url || '/graphql', {
|
|
50
50
|
jsonSerializer: {
|
|
@@ -62,4 +62,5 @@ export const methods = {
|
|
|
62
62
|
},
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
export { Meta, MetaParser, MetaResponse
|
|
65
|
+
export type { Meta, MetaParser, MetaResponse } from './types'
|
|
66
|
+
export { queries, typeDefs, methods }
|