@driveflux/cms 1.4.10 → 1.4.12

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/config.js CHANGED
@@ -14,11 +14,11 @@ export const getConfig = ()=>ConfigValidation.parse({
14
14
  projectApi: process.env.GRAPHCMS_PROJECT_API
15
15
  }
16
16
  });
17
- export let config = initSingleton('backendConfig', ()=>getConfig());
17
+ export let config = initSingleton('fluxCmsConfug', ()=>getConfig());
18
18
  export const setConfig = (key, value)=>{
19
19
  config[key] = value;
20
20
  };
21
21
  export const resetConfig = ()=>{
22
- config = initSingleton('backendConfig', ()=>getConfig(), true);
22
+ config = initSingleton('fluxCmsConfug', ()=>getConfig(), true);
23
23
  return config;
24
24
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hygraph/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAG3C,eAAO,MAAM,UAAU,aAAc,OAAO,WAAW,MAAM,KAAG,SAE/D,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hygraph/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,UAAU,aAAc,OAAO,WAAW,MAAM,KAAG,SAE/D,CAAA"}
@@ -1,6 +1,5 @@
1
1
  import { config } from '../config.js';
2
2
  import { GraphCMS } from './drivers/graphcms.js';
3
- // TODO dublicate code in hygrpah.ts in the same folder
4
3
  export const getHygraph = (preview, locale)=>{
5
4
  return new GraphCMS(config.graphCms, preview, locale);
6
5
  };
package/package.json CHANGED
@@ -1,15 +1,11 @@
1
1
  {
2
2
  "name": "@driveflux/cms",
3
- "version": "1.4.10",
3
+ "version": "1.4.12",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
8
8
  "import": "./dist/index.js"
9
- },
10
- "./hygraph": {
11
- "types": "./dist/hygraph/index.d.ts",
12
- "import": "./dist/hygraph/index.js"
13
9
  }
14
10
  },
15
11
  "files": [
@@ -17,7 +13,7 @@
17
13
  ],
18
14
  "dependencies": {
19
15
  "@driveflux/singleton": "1.5.0",
20
- "@driveflux/utils": "3.3.2",
16
+ "@driveflux/utils": "4.0.0",
21
17
  "@graphcms/rich-text-types": "^0.5.1",
22
18
  "p-throttle": "^6.2.0",
23
19
  "zod": "^3.23.8"
@@ -1,6 +0,0 @@
1
- import { config } from '../config.js';
2
- import { GraphCMS } from './drivers/graphcms.js';
3
- // TODO dublicate code in index.ts in the same folder
4
- export const getHygraph = (preview, locale)=>{
5
- return new GraphCMS(config.graphCms, preview, locale);
6
- };