@stonecrop/graphql-client 0.4.30 → 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/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
- export const methods = {
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 };
@@ -1,6 +1,6 @@
1
1
  import { queries } from './queries';
2
2
  import typeDefs from './gql/schema';
3
- import type { Meta, MetaParser, MetaResponse } from './types';
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
- export declare const methods: {
11
+ declare const methods: {
12
12
  getMeta: (doctype: string, url?: string) => Promise<MetaResponse>;
13
13
  };
14
- export { Meta, MetaParser, MetaResponse, queries, typeDefs };
14
+ export type { Meta, MetaParser, MetaResponse } from './types';
15
+ export { queries, typeDefs, methods };
15
16
  //# sourceMappingURL=index.d.ts.map
@@ -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,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAkC7D;;;;;;GAMG;AACH,eAAO,MAAM,OAAO;uBACM,MAAM,QAAQ,MAAM,KAAG,OAAO,CAAC,YAAY,CAAC;CAerE,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAA"}
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"}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.8"
8
+ "packageVersion": "7.52.10"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stonecrop/graphql-client",
3
- "version": "0.4.30",
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,23 +37,23 @@
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.30"
40
+ "@stonecrop/stonecrop": "0.4.32"
37
41
  },
38
42
  "devDependencies": {
39
- "@microsoft/api-documenter": "^7.26.29",
43
+ "@microsoft/api-documenter": "^7.26.31",
40
44
  "@miragejs/graphql": "^0.1.13",
41
- "@rushstack/heft": "^0.74.0",
45
+ "@rushstack/heft": "^0.74.2",
42
46
  "@typescript-eslint/eslint-plugin": "^7.18.0",
43
47
  "@typescript-eslint/parser": "^7.18.0",
44
- "@vitejs/plugin-vue": "^5.2.4",
45
- "cypress": "^14.5.1",
48
+ "@vitejs/plugin-vue": "^6.0.1",
49
+ "cypress": "^14.5.3",
46
50
  "eslint": "^8.57.1",
47
51
  "eslint-config-prettier": "^8.10.0",
48
52
  "eslint-plugin-vue": "^9.33.0",
49
53
  "miragejs": "^0.1.48",
50
54
  "typescript": "^5.8.3",
51
- "vite": "^6.3.5",
52
- "vue": "^3.5.17",
55
+ "vite": "^7.0.6",
56
+ "vue": "^3.5.18",
53
57
  "vue-router": "^4.5.1",
54
58
  "stonecrop-rig": "0.2.22"
55
59
  },
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
- export const methods = {
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, queries, typeDefs }
65
+ export type { Meta, MetaParser, MetaResponse } from './types'
66
+ export { queries, typeDefs, methods }