@reventlessdev/reventless-seed 1.0.0-alpha.3 → 1.0.0-alpha.5

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.
Files changed (84) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/lib/bs/.compiler.log +2 -2
  3. package/lib/bs/.sourcedirs.json +1 -0
  4. package/lib/bs/ReventlessSeed.cmi +0 -0
  5. package/lib/bs/ReventlessSeed.cmt +0 -0
  6. package/lib/bs/ReventlessSeed.mlmap +1 -0
  7. package/lib/bs/compiler-info.json +2 -2
  8. package/lib/bs/src/Seed-ReventlessSeed.cmi +0 -0
  9. package/lib/bs/src/Seed-ReventlessSeed.cmt +0 -0
  10. package/lib/bs/src/Seed.ast +0 -0
  11. package/lib/bs/src/Seed.res +4 -2
  12. package/lib/bs/src/Seed_Client-ReventlessSeed.cmi +0 -0
  13. package/lib/bs/src/Seed_Client-ReventlessSeed.cmj +0 -0
  14. package/lib/bs/src/Seed_Client-ReventlessSeed.cmt +0 -0
  15. package/lib/bs/src/Seed_Client.ast +0 -0
  16. package/lib/bs/src/Seed_Client.res +36 -0
  17. package/lib/bs/src/Seed_Client.res.mjs +23 -0
  18. package/lib/bs/src/Seed_Connect-ReventlessSeed.cmi +0 -0
  19. package/lib/bs/src/Seed_Connect-ReventlessSeed.cmj +0 -0
  20. package/lib/bs/src/Seed_Connect-ReventlessSeed.cmt +0 -0
  21. package/lib/bs/src/Seed_Connect.ast +0 -0
  22. package/lib/bs/src/Seed_Connect.res +49 -11
  23. package/lib/bs/src/Seed_Connect.res.mjs +24 -3
  24. package/lib/bs/src/Seed_Prompt-ReventlessSeed.cmt +0 -0
  25. package/lib/bs/src/Seed_Random-ReventlessSeed.cmt +0 -0
  26. package/lib/bs/src/Seed_Runner-ReventlessSeed.cmi +0 -0
  27. package/lib/bs/src/Seed_Runner-ReventlessSeed.cmt +0 -0
  28. package/lib/bs/src/Seed_Types-ReventlessSeed.cmt +0 -0
  29. package/lib/bs/src/Seed_Upload-ReventlessSeed.cmi +0 -0
  30. package/lib/bs/src/Seed_Upload-ReventlessSeed.cmj +0 -0
  31. package/lib/bs/src/Seed_Upload-ReventlessSeed.cmt +0 -0
  32. package/lib/bs/src/Seed_Upload.ast +0 -0
  33. package/lib/bs/src/Seed_Upload.res +59 -0
  34. package/lib/bs/src/Seed_Upload.res.mjs +29 -1
  35. package/lib/bs/tests/UploadEndpointResolutionTest-ReventlessSeed.cmi +0 -0
  36. package/lib/bs/tests/UploadEndpointResolutionTest-ReventlessSeed.cmj +0 -0
  37. package/lib/bs/tests/UploadEndpointResolutionTest-ReventlessSeed.cmt +0 -0
  38. package/lib/bs/tests/UploadEndpointResolutionTest.ast +0 -0
  39. package/lib/bs/tests/UploadEndpointResolutionTest.res +101 -0
  40. package/lib/bs/tests/UploadEndpointResolutionTest.res.mjs +59 -0
  41. package/lib/ocaml/.compiler.log +2 -2
  42. package/lib/ocaml/ReventlessSeed.cmi +0 -0
  43. package/lib/ocaml/ReventlessSeed.cmt +0 -0
  44. package/lib/ocaml/ReventlessSeed.mlmap +1 -0
  45. package/lib/ocaml/Seed-ReventlessSeed.cmi +0 -0
  46. package/lib/ocaml/Seed-ReventlessSeed.cmt +0 -0
  47. package/lib/ocaml/Seed.ast +0 -0
  48. package/lib/ocaml/Seed.res +4 -2
  49. package/lib/ocaml/Seed_Client-ReventlessSeed.cmi +0 -0
  50. package/lib/ocaml/Seed_Client-ReventlessSeed.cmj +0 -0
  51. package/lib/ocaml/Seed_Client-ReventlessSeed.cmt +0 -0
  52. package/lib/ocaml/Seed_Client.ast +0 -0
  53. package/lib/ocaml/Seed_Client.res +36 -0
  54. package/lib/ocaml/Seed_Connect-ReventlessSeed.cmi +0 -0
  55. package/lib/ocaml/Seed_Connect-ReventlessSeed.cmj +0 -0
  56. package/lib/ocaml/Seed_Connect-ReventlessSeed.cmt +0 -0
  57. package/lib/ocaml/Seed_Connect.ast +0 -0
  58. package/lib/ocaml/Seed_Connect.res +49 -11
  59. package/lib/ocaml/Seed_Prompt-ReventlessSeed.cmt +0 -0
  60. package/lib/ocaml/Seed_Random-ReventlessSeed.cmt +0 -0
  61. package/lib/ocaml/Seed_Runner-ReventlessSeed.cmi +0 -0
  62. package/lib/ocaml/Seed_Runner-ReventlessSeed.cmt +0 -0
  63. package/lib/ocaml/Seed_Types-ReventlessSeed.cmt +0 -0
  64. package/lib/ocaml/Seed_Upload-ReventlessSeed.cmi +0 -0
  65. package/lib/ocaml/Seed_Upload-ReventlessSeed.cmj +0 -0
  66. package/lib/ocaml/Seed_Upload-ReventlessSeed.cmt +0 -0
  67. package/lib/ocaml/Seed_Upload.ast +0 -0
  68. package/lib/ocaml/Seed_Upload.res +59 -0
  69. package/lib/ocaml/UploadEndpointResolutionTest-ReventlessSeed.cmi +0 -0
  70. package/lib/ocaml/UploadEndpointResolutionTest-ReventlessSeed.cmj +0 -0
  71. package/lib/ocaml/UploadEndpointResolutionTest-ReventlessSeed.cmt +0 -0
  72. package/lib/ocaml/UploadEndpointResolutionTest.ast +0 -0
  73. package/lib/ocaml/UploadEndpointResolutionTest.res +101 -0
  74. package/package.json +3 -2
  75. package/rescript.json +8 -1
  76. package/src/Seed.res +4 -2
  77. package/src/Seed_Client.res +36 -0
  78. package/src/Seed_Client.res.mjs +23 -0
  79. package/src/Seed_Connect.res +49 -11
  80. package/src/Seed_Connect.res.mjs +24 -3
  81. package/src/Seed_Upload.res +59 -0
  82. package/src/Seed_Upload.res.mjs +29 -1
  83. package/tests/UploadEndpointResolutionTest.res +101 -0
  84. package/tests/UploadEndpointResolutionTest.res.mjs +59 -0
@@ -4,10 +4,14 @@ import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
4
4
  import * as Seed_Types$ReventlessSeed from "./Seed_Types.res.mjs";
5
5
  import * as Seed_Client$ReventlessSeed from "./Seed_Client.res.mjs";
6
6
  import * as Seed_Prompt$ReventlessSeed from "./Seed_Prompt.res.mjs";
7
+ import * as Seed_Upload$ReventlessSeed from "./Seed_Upload.res.mjs";
7
8
 
8
- async function make(label, endpoint, uploadEndpoint, login, localDefaultsOpt) {
9
+ async function make(label, endpoint, uploadEndpoint, uploadEndpointsOpt, login, localDefaultsOpt) {
10
+ let uploadEndpoints = uploadEndpointsOpt !== undefined ? uploadEndpointsOpt : ({});
9
11
  let localDefaults = localDefaultsOpt !== undefined ? localDefaultsOpt : false;
10
- let uploadEndpoint$1 = Stdlib_Option.isSome(Seed_Prompt$ReventlessSeed.envValue("SEED_SKIP_UPLOADS")) ? "" : uploadEndpoint;
12
+ let skip = Stdlib_Option.isSome(Seed_Prompt$ReventlessSeed.envValue("SEED_SKIP_UPLOADS"));
13
+ let uploadEndpoint$1 = skip ? "" : uploadEndpoint;
14
+ let uploadEndpoints$1 = skip ? ({}) : uploadEndpoints;
11
15
  let match = await Seed_Prompt$ReventlessSeed.credentials(localDefaults);
12
16
  let token = await login(match[0], match[1]);
13
17
  let client = Seed_Client$ReventlessSeed.make({
@@ -17,10 +21,26 @@ async function make(label, endpoint, uploadEndpoint, login, localDefaultsOpt) {
17
21
  return {
18
22
  client: client,
19
23
  uploadEndpoint: uploadEndpoint$1,
24
+ uploadEndpoints: uploadEndpoints$1,
20
25
  label: label
21
26
  };
22
27
  }
23
28
 
29
+ function uploadEndpointFor(c, store) {
30
+ let endpoint = Seed_Upload$ReventlessSeed.endpointFor(store, c.uploadEndpoint, c.uploadEndpoints);
31
+ if (endpoint !== undefined) {
32
+ return {
33
+ TAG: "Ok",
34
+ _0: endpoint
35
+ };
36
+ } else {
37
+ return {
38
+ TAG: "Error",
39
+ _0: Seed_Upload$ReventlessSeed.unresolvedReason(store, c.uploadEndpoints)
40
+ };
41
+ }
42
+ }
43
+
24
44
  function viaLoginEndpoint(loginEndpoint) {
25
45
  return async (username, password) => {
26
46
  let client = Seed_Client$ReventlessSeed.make({
@@ -50,11 +70,12 @@ function local(graphql, upload, login, param) {
50
70
  let endpoint = Stdlib_Option.getOr(graphql, Stdlib_Option.getOr(Seed_Prompt$ReventlessSeed.envValue("REVENTLESS_GRAPHQL_ENDPOINT"), "http://localhost:4000/graphql"));
51
71
  let uploadEndpoint = Stdlib_Option.getOr(upload, Stdlib_Option.getOr(Seed_Prompt$ReventlessSeed.envValue("REVENTLESS_UPLOAD_ENDPOINT"), "http://localhost:4000/__inmemory/upload"));
52
72
  let loginEndpoint = Stdlib_Option.getOr(login, Stdlib_Option.getOr(Seed_Prompt$ReventlessSeed.envValue("REVENTLESS_LOGIN_ENDPOINT"), "http://localhost:4000/__inmemory/login"));
53
- return () => make("local", endpoint, uploadEndpoint, viaLoginEndpoint(loginEndpoint), true);
73
+ return () => make("local", endpoint, uploadEndpoint, undefined, viaLoginEndpoint(loginEndpoint), true);
54
74
  }
55
75
 
56
76
  export {
57
77
  make,
78
+ uploadEndpointFor,
58
79
  viaLoginEndpoint,
59
80
  envOr,
60
81
  local,
@@ -10,6 +10,11 @@
10
10
  // absolute URL against the endpoint's origin: AWS returns an absolute presigned
11
11
  // S3 URL (unchanged), while the local route returns a same-origin relative
12
12
  // `/{prefix}/{key}` that Node's `fetch` cannot PUT to until it is made absolute.
13
+ //
14
+ // `uploadAsset` is the transport and takes a resolved endpoint. *Which* endpoint
15
+ // an asset uses — a deployment now publishes one per declared store — is
16
+ // `endpointFor` below, kept separate so the decision is testable without a
17
+ // running presign service.
13
18
 
14
19
  type fetchInit = {method: string, headers: dict<string>, body: string}
15
20
  type response
@@ -38,6 +43,60 @@ let asString = (json: JSON.t): option<string> =>
38
43
  | _ => None
39
44
  }
40
45
 
46
+ /**
47
+ * Which endpoint an asset destined for `store` uploads through:
48
+ *
49
+ * declares a store with a matching endpoint → that store's endpoint
50
+ * declares a store with no matching endpoint → the legacy single service
51
+ * declares no store → the legacy single service
52
+ * neither available → `None`
53
+ *
54
+ * `store` is the qualified `{plugin}.{store}` the platform keys its per-store
55
+ * presign endpoints by. The two middle rows are what keep a deployment predating
56
+ * per-store endpoints — and the local dev server, which serves one upload route
57
+ * — working unchanged.
58
+ *
59
+ * These are the same four rows the AutoUI renderer resolves an upload field by.
60
+ * Resolving one declaration by two different rules is how an asset lands in
61
+ * another plugin's bucket with a 2xx and a plausible-looking ref, so a missing
62
+ * key falls back to the legacy service rather than to some other store.
63
+ */
64
+ let endpointFor = (
65
+ ~store: option<string>=?,
66
+ ~uploadEndpoint: string,
67
+ ~uploadEndpoints: dict<string>,
68
+ ): option<string> => {
69
+ let legacy = uploadEndpoint == "" ? None : Some(uploadEndpoint)
70
+ switch store {
71
+ | Some(s) => uploadEndpoints->Dict.get(s)->Option.orElse(legacy)
72
+ | None => legacy
73
+ }
74
+ }
75
+
76
+ /**
77
+ * Why `endpointFor` resolved nothing — the message a data set reports when its
78
+ * upload phase skips.
79
+ *
80
+ * "no upload endpoint" states a fact about the *deployment*; when the deployment
81
+ * publishes endpoints the caller could not match, the fact is about the *client*
82
+ * and that phrasing sends a reader to the bucket, the presign service and the
83
+ * IAM policy, all of which are correct. So the three cases are distinguished and
84
+ * the unmatched one names both the store it wanted and the keys it saw.
85
+ */
86
+ let unresolvedReason = (~store: option<string>=?, ~uploadEndpoints: dict<string>): string => {
87
+ let available = uploadEndpoints->Dict.keysToArray
88
+ switch (Seed_Prompt.envValue("SEED_SKIP_UPLOADS"), store, available) {
89
+ | (Some(_), _, _) => "SEED_SKIP_UPLOADS is set"
90
+ | (None, _, []) => "this deployment publishes no upload endpoint"
91
+ | (None, Some(s), keys) =>
92
+ `this deployment publishes upload endpoints for ${keys->Array.join(", ")}, none for "${s}"`
93
+ | (None, None, keys) =>
94
+ `this deployment publishes only per-store upload endpoints (${keys->Array.join(
95
+ ", ",
96
+ )}) and this upload names no store`
97
+ }
98
+ }
99
+
41
100
  // A `fetch` that reports an unreachable endpoint as `Error` instead of throwing,
42
101
  // so the two-step upload can thread failures without exceptions.
43
102
  let tryFetch = async (url: string, init: fetchInit): result<response, string> =>
@@ -1,6 +1,7 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
3
  import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
4
+ import * as Seed_Prompt$ReventlessSeed from "./Seed_Prompt.res.mjs";
4
5
 
5
6
  function field(json, key) {
6
7
  if (typeof json === "object" && json !== null && !Array.isArray(json)) {
@@ -14,6 +15,31 @@ function asString(json) {
14
15
  }
15
16
  }
16
17
 
18
+ function endpointFor(store, uploadEndpoint, uploadEndpoints) {
19
+ let legacy = uploadEndpoint === "" ? undefined : uploadEndpoint;
20
+ if (store !== undefined) {
21
+ return Stdlib_Option.orElse(uploadEndpoints[store], legacy);
22
+ } else {
23
+ return legacy;
24
+ }
25
+ }
26
+
27
+ function unresolvedReason(store, uploadEndpoints) {
28
+ let available = Object.keys(uploadEndpoints);
29
+ let match = Seed_Prompt$ReventlessSeed.envValue("SEED_SKIP_UPLOADS");
30
+ if (match !== undefined) {
31
+ return "SEED_SKIP_UPLOADS is set";
32
+ } else if (available.length !== 0) {
33
+ if (store !== undefined) {
34
+ return `this deployment publishes upload endpoints for ` + available.join(", ") + `, none for "` + store + `"`;
35
+ } else {
36
+ return `this deployment publishes only per-store upload endpoints (` + available.join(", ") + `) and this upload names no store`;
37
+ }
38
+ } else {
39
+ return "this deployment publishes no upload endpoint";
40
+ }
41
+ }
42
+
17
43
  async function tryFetch(url, init) {
18
44
  try {
19
45
  return {
@@ -112,7 +138,9 @@ async function uploadAsset(uploadEndpoint, bytes, fileName, contentType, authTok
112
138
  export {
113
139
  field,
114
140
  asString,
141
+ endpointFor,
142
+ unresolvedReason,
115
143
  tryFetch,
116
144
  uploadAsset,
117
145
  }
118
- /* No side effect */
146
+ /* Seed_Prompt-ReventlessSeed Not a pure module */
@@ -0,0 +1,101 @@
1
+ // Which endpoint an asset uploads through once a deployment publishes one per
2
+ // declared store, and what a data set is told when none resolves.
3
+ //
4
+ // The four rows are the same ones the AutoUI renderer resolves an upload field
5
+ // by. They are pinned here because the two middle ones are what keep a
6
+ // deployment predating per-store endpoints — and the local dev server, which
7
+ // serves a single upload route — working unchanged, and because the row that
8
+ // falls back to the legacy service must never fall back to *another store*: that
9
+ // uploads into a different plugin's bucket with a 2xx and a plausible ref.
10
+
11
+ open JestGlobals
12
+
13
+ @val @scope("process") external processEnv: dict<string> = "env"
14
+
15
+ // `unresolvedReason` reads the knob, so the ambient environment has to be quiet.
16
+ let clearSkip = () => processEnv->Dict.set("SEED_SKIP_UPLOADS", "")
17
+
18
+ let perStore = Dict.fromArray([
19
+ ("Catalog.productImages", "https://catalog.example/"),
20
+ ("Ordering.invoices", "https://ordering.example/"),
21
+ ])
22
+
23
+ describe("Seed.Upload.endpointFor", () => {
24
+ testSync("a declared store with a matching endpoint uses that store's endpoint", () =>
25
+ expect(
26
+ Seed.Upload.endpointFor(
27
+ ~store="Catalog.productImages",
28
+ ~uploadEndpoint="https://legacy.example/",
29
+ ~uploadEndpoints=perStore,
30
+ ),
31
+ )->toEqual(Some("https://catalog.example/"))
32
+ )
33
+
34
+ // Not "https://ordering.example/" — a wrong guess here is a silent
35
+ // wrong-bucket write.
36
+ testSync("a declared store with no matching endpoint falls back to the legacy service", () =>
37
+ expect(
38
+ Seed.Upload.endpointFor(
39
+ ~store="Catalog.brochures",
40
+ ~uploadEndpoint="https://legacy.example/",
41
+ ~uploadEndpoints=perStore,
42
+ ),
43
+ )->toEqual(Some("https://legacy.example/"))
44
+ )
45
+
46
+ testSync("naming no store uses the legacy service", () =>
47
+ expect(
48
+ Seed.Upload.endpointFor(~uploadEndpoint="https://legacy.example/", ~uploadEndpoints=perStore),
49
+ )->toEqual(Some("https://legacy.example/"))
50
+ )
51
+
52
+ testSync("neither available resolves nothing", () =>
53
+ expect(
54
+ Seed.Upload.endpointFor(
55
+ ~store="Catalog.brochures",
56
+ ~uploadEndpoint="",
57
+ ~uploadEndpoints=Dict.make(),
58
+ ),
59
+ )->toEqual(None)
60
+ )
61
+
62
+ // The local dev server's shape: one upload route, no per-store map, and a data
63
+ // set that names its store all the same.
64
+ testSync("a single-route deployment serves a store-naming data set", () =>
65
+ expect(
66
+ Seed.Upload.endpointFor(
67
+ ~store="Catalog.productImages",
68
+ ~uploadEndpoint="http://localhost:4000/__inmemory/upload",
69
+ ~uploadEndpoints=Dict.make(),
70
+ ),
71
+ )->toEqual(Some("http://localhost:4000/__inmemory/upload"))
72
+ )
73
+ })
74
+
75
+ // "no upload endpoint" states a fact about the deployment. When the deployment
76
+ // publishes endpoints the caller could not match, the fact is about the client,
77
+ // and that phrasing sends a reader to the bucket, the presign service and the
78
+ // IAM policy — all of which are correct.
79
+ describe("Seed.Upload.unresolvedReason", () => {
80
+ beforeEach(clearSkip)
81
+
82
+ testSync("no endpoints at all reads as a fact about the deployment", () =>
83
+ expect(
84
+ Seed.Upload.unresolvedReason(~store="Catalog.productImages", ~uploadEndpoints=Dict.make()),
85
+ )->toBe("this deployment publishes no upload endpoint")
86
+ )
87
+
88
+ testSync("an unmatched store names the store and the keys that were available", () => {
89
+ let msg = Seed.Upload.unresolvedReason(~store="Catalog.brochures", ~uploadEndpoints=perStore)
90
+ expect(msg)->toContain("Catalog.brochures")
91
+ expect(msg)->toContain("Catalog.productImages")
92
+ expect(msg)->toContain("Ordering.invoices")
93
+ })
94
+
95
+ testSync("the knob outranks both, so a skipped run is never read as a broken one", () => {
96
+ processEnv->Dict.set("SEED_SKIP_UPLOADS", "1")
97
+ expect(
98
+ Seed.Upload.unresolvedReason(~store="Catalog.productImages", ~uploadEndpoints=perStore),
99
+ )->toBe("SEED_SKIP_UPLOADS is set")
100
+ })
101
+ })
@@ -0,0 +1,59 @@
1
+ // Generated by ReScript, PLEASE EDIT WITH CARE
2
+
3
+ import * as Seed_Upload$ReventlessSeed from "../src/Seed_Upload.res.mjs";
4
+
5
+ function clearSkip() {
6
+ process.env["SEED_SKIP_UPLOADS"] = "";
7
+ }
8
+
9
+ let perStore = Object.fromEntries([
10
+ [
11
+ "Catalog.productImages",
12
+ "https://catalog.example/"
13
+ ],
14
+ [
15
+ "Ordering.invoices",
16
+ "https://ordering.example/"
17
+ ]
18
+ ]);
19
+
20
+ globalThis.describe("Seed.Upload.endpointFor", () => {
21
+ globalThis.test("a declared store with a matching endpoint uses that store's endpoint", () => {
22
+ globalThis.expect(Seed_Upload$ReventlessSeed.endpointFor("Catalog.productImages", "https://legacy.example/", perStore)).toEqual("https://catalog.example/");
23
+ });
24
+ globalThis.test("a declared store with no matching endpoint falls back to the legacy service", () => {
25
+ globalThis.expect(Seed_Upload$ReventlessSeed.endpointFor("Catalog.brochures", "https://legacy.example/", perStore)).toEqual("https://legacy.example/");
26
+ });
27
+ globalThis.test("naming no store uses the legacy service", () => {
28
+ globalThis.expect(Seed_Upload$ReventlessSeed.endpointFor(undefined, "https://legacy.example/", perStore)).toEqual("https://legacy.example/");
29
+ });
30
+ globalThis.test("neither available resolves nothing", () => {
31
+ globalThis.expect(Seed_Upload$ReventlessSeed.endpointFor("Catalog.brochures", "", {})).toEqual(undefined);
32
+ });
33
+ globalThis.test("a single-route deployment serves a store-naming data set", () => {
34
+ globalThis.expect(Seed_Upload$ReventlessSeed.endpointFor("Catalog.productImages", "http://localhost:4000/__inmemory/upload", {})).toEqual("http://localhost:4000/__inmemory/upload");
35
+ });
36
+ });
37
+
38
+ globalThis.describe("Seed.Upload.unresolvedReason", () => {
39
+ globalThis.beforeEach(clearSkip);
40
+ globalThis.test("no endpoints at all reads as a fact about the deployment", () => {
41
+ globalThis.expect(Seed_Upload$ReventlessSeed.unresolvedReason("Catalog.productImages", {})).toBe("this deployment publishes no upload endpoint");
42
+ });
43
+ globalThis.test("an unmatched store names the store and the keys that were available", () => {
44
+ let msg = Seed_Upload$ReventlessSeed.unresolvedReason("Catalog.brochures", perStore);
45
+ globalThis.expect(msg).toContain("Catalog.brochures");
46
+ globalThis.expect(msg).toContain("Catalog.productImages");
47
+ globalThis.expect(msg).toContain("Ordering.invoices");
48
+ });
49
+ globalThis.test("the knob outranks both, so a skipped run is never read as a broken one", () => {
50
+ process.env["SEED_SKIP_UPLOADS"] = "1";
51
+ globalThis.expect(Seed_Upload$ReventlessSeed.unresolvedReason("Catalog.productImages", perStore)).toBe("SEED_SKIP_UPLOADS is set");
52
+ });
53
+ });
54
+
55
+ export {
56
+ clearSkip,
57
+ perStore,
58
+ }
59
+ /* perStore Not a pure module */