@contello/store 3.0.0 → 3.0.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.
@@ -1,3 +1,4 @@
1
+ //#region src/fragments.d.ts
1
2
  /**
2
3
  * resolved absolute paths to the `.gql` fragment files that store-backed
3
4
  * codegen should include. combines media's primitives with store's own
@@ -5,5 +6,6 @@
5
6
  * codegen `documents` config.
6
7
  */
7
8
  declare const fragments: string[];
8
-
9
+ //#endregion
9
10
  export { fragments };
11
+ //# sourceMappingURL=fragments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fragments.d.ts","names":[],"sources":["../src/fragments.ts"],"mappings":";;AAYA;;;;AAIC;cAJY,SAAA"}
package/dist/fragments.js CHANGED
@@ -1,12 +1,19 @@
1
- // src/fragments.ts
2
- import { fileURLToPath } from "url";
3
- import { fragments as mediaFragments } from "@contello/media/fragments";
4
- var packageRoot = fileURLToPath(new URL("..", import.meta.url));
5
- var fragments = [
6
- ...mediaFragments,
7
- `${packageRoot}fragments/asset.gql`,
8
- `${packageRoot}fragments/route.gql`
1
+ import { fileURLToPath } from "node:url";
2
+ import { fragments as fragments$1 } from "@contello/media/fragments";
3
+ //#region src/fragments.ts
4
+ const packageRoot = fileURLToPath(new URL("..", import.meta.url));
5
+ /**
6
+ * resolved absolute paths to the `.gql` fragment files that store-backed
7
+ * codegen should include. combines media's primitives with store's own
8
+ * `StoreAsset` / `StoreRoute` fragments. intended for use in a project's
9
+ * codegen `documents` config.
10
+ */
11
+ const fragments = [
12
+ ...fragments$1,
13
+ `${packageRoot}fragments/asset.gql`,
14
+ `${packageRoot}fragments/route.gql`
9
15
  ];
10
- export {
11
- fragments
12
- };
16
+ //#endregion
17
+ export { fragments };
18
+
19
+ //# sourceMappingURL=fragments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fragments.js","names":["mediaFragments"],"sources":["../src/fragments.ts"],"sourcesContent":["import { fileURLToPath } from 'node:url';\n\nimport { fragments as mediaFragments } from '@contello/media/fragments';\n\nconst packageRoot = fileURLToPath(new URL('..', import.meta.url));\n\n/**\n * resolved absolute paths to the `.gql` fragment files that store-backed\n * codegen should include. combines media's primitives with store's own\n * `StoreAsset` / `StoreRoute` fragments. intended for use in a project's\n * codegen `documents` config.\n */\nexport const fragments: string[] = [\n ...mediaFragments,\n `${packageRoot}fragments/asset.gql`,\n `${packageRoot}fragments/route.gql`,\n];\n"],"mappings":";;;AAIA,MAAM,cAAc,cAAc,IAAI,IAAI,MAAM,OAAO,KAAK,GAAG,CAAC;;;;;;;AAQhE,MAAa,YAAsB;CACjC,GAAGA;CACH,GAAG,YAAY;CACf,GAAG,YAAY;AACjB"}