alchemy 0.43.3 → 0.43.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.
package/bin/alchemy.mjs CHANGED
@@ -6738,7 +6738,6 @@ var require_schemas = __commonJS({
6738
6738
  exports2.$ZodType = core.$constructor("$ZodType", (inst, def) => {
6739
6739
  var _a;
6740
6740
  inst ?? (inst = {});
6741
- util2.defineLazy(inst._zod, "id", () => def.type + "_" + util2.randomString(10));
6742
6741
  inst._zod.def = def;
6743
6742
  inst._zod.bag = inst._zod.bag || {};
6744
6743
  inst._zod.version = versions_js_1.version;
@@ -6880,7 +6879,9 @@ var require_schemas = __commonJS({
6880
6879
  exports2.$ZodStringFormat.init(inst, def);
6881
6880
  inst._zod.check = (payload) => {
6882
6881
  try {
6883
- const url = new URL(payload.value);
6882
+ const orig = payload.value;
6883
+ const url = new URL(orig);
6884
+ const href = url.href;
6884
6885
  if (def.hostname) {
6885
6886
  def.hostname.lastIndex = 0;
6886
6887
  if (!def.hostname.test(url.hostname)) {
@@ -6909,6 +6910,11 @@ var require_schemas = __commonJS({
6909
6910
  });
6910
6911
  }
6911
6912
  }
6913
+ if (!orig.endsWith("/") && href.endsWith("/")) {
6914
+ payload.value = href.slice(0, -1);
6915
+ } else {
6916
+ payload.value = href;
6917
+ }
6912
6918
  return;
6913
6919
  } catch (_3) {
6914
6920
  payload.issues.push({
@@ -7222,6 +7228,8 @@ var require_schemas = __commonJS({
7222
7228
  exports2.$ZodType.init(inst, def);
7223
7229
  inst._zod.pattern = regexes.undefined;
7224
7230
  inst._zod.values = /* @__PURE__ */ new Set([void 0]);
7231
+ inst._zod.optin = "optional";
7232
+ inst._zod.optout = "optional";
7225
7233
  inst._zod.parse = (payload, _ctx) => {
7226
7234
  const input2 = payload.value;
7227
7235
  if (typeof input2 === "undefined")
@@ -7414,8 +7422,9 @@ var require_schemas = __commonJS({
7414
7422
  };
7415
7423
  doc.write(`const input = payload.value;`);
7416
7424
  const ids = /* @__PURE__ */ Object.create(null);
7425
+ let counter = 0;
7417
7426
  for (const key of normalized.keys) {
7418
- ids[key] = util2.randomString(15);
7427
+ ids[key] = `key_${counter++}`;
7419
7428
  }
7420
7429
  doc.write(`const newResult = {}`);
7421
7430
  for (const key of normalized.keys) {
@@ -7552,6 +7561,8 @@ var require_schemas = __commonJS({
7552
7561
  }
7553
7562
  exports2.$ZodUnion = core.$constructor("$ZodUnion", (inst, def) => {
7554
7563
  exports2.$ZodType.init(inst, def);
7564
+ util2.defineLazy(inst._zod, "optin", () => def.options.some((o3) => o3._zod.optin === "optional") ? "optional" : void 0);
7565
+ util2.defineLazy(inst._zod, "optout", () => def.options.some((o3) => o3._zod.optout === "optional") ? "optional" : void 0);
7555
7566
  util2.defineLazy(inst._zod, "values", () => {
7556
7567
  if (def.options.every((o3) => o3._zod.values)) {
7557
7568
  return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
@@ -8170,7 +8181,7 @@ var require_schemas = __commonJS({
8170
8181
  });
8171
8182
  exports2.$ZodCatch = core.$constructor("$ZodCatch", (inst, def) => {
8172
8183
  exports2.$ZodType.init(inst, def);
8173
- util2.defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
8184
+ inst._zod.optin = "optional";
8174
8185
  util2.defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
8175
8186
  util2.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
8176
8187
  inst._zod.parse = (payload, ctx) => {
@@ -8242,6 +8253,7 @@ var require_schemas = __commonJS({
8242
8253
  exports2.$ZodReadonly = core.$constructor("$ZodReadonly", (inst, def) => {
8243
8254
  exports2.$ZodType.init(inst, def);
8244
8255
  util2.defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
8256
+ util2.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
8245
8257
  util2.defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
8246
8258
  util2.defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
8247
8259
  inst._zod.parse = (payload, ctx) => {
@@ -9491,6 +9503,160 @@ var require_en = __commonJS({
9491
9503
  }
9492
9504
  });
9493
9505
 
9506
+ // ../node_modules/zod/v4/locales/eo.cjs
9507
+ var require_eo = __commonJS({
9508
+ "../node_modules/zod/v4/locales/eo.cjs"(exports2) {
9509
+ "use strict";
9510
+ var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m2, k3, k22) {
9511
+ if (k22 === void 0) k22 = k3;
9512
+ var desc = Object.getOwnPropertyDescriptor(m2, k3);
9513
+ if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
9514
+ desc = { enumerable: true, get: function() {
9515
+ return m2[k3];
9516
+ } };
9517
+ }
9518
+ Object.defineProperty(o3, k22, desc);
9519
+ } : function(o3, m2, k3, k22) {
9520
+ if (k22 === void 0) k22 = k3;
9521
+ o3[k22] = m2[k3];
9522
+ });
9523
+ var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v3) {
9524
+ Object.defineProperty(o3, "default", { enumerable: true, value: v3 });
9525
+ } : function(o3, v3) {
9526
+ o3["default"] = v3;
9527
+ });
9528
+ var __importStar2 = exports2 && exports2.__importStar || function(mod) {
9529
+ if (mod && mod.__esModule) return mod;
9530
+ var result2 = {};
9531
+ if (mod != null) {
9532
+ for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding2(result2, mod, k3);
9533
+ }
9534
+ __setModuleDefault2(result2, mod);
9535
+ return result2;
9536
+ };
9537
+ Object.defineProperty(exports2, "__esModule", { value: true });
9538
+ exports2.parsedType = void 0;
9539
+ exports2.default = default_1;
9540
+ var util2 = __importStar2(require_util());
9541
+ var parsedType = (data) => {
9542
+ const t2 = typeof data;
9543
+ switch (t2) {
9544
+ case "number": {
9545
+ return Number.isNaN(data) ? "NaN" : "nombro";
9546
+ }
9547
+ case "object": {
9548
+ if (Array.isArray(data)) {
9549
+ return "tabelo";
9550
+ }
9551
+ if (data === null) {
9552
+ return "senvalora";
9553
+ }
9554
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
9555
+ return data.constructor.name;
9556
+ }
9557
+ }
9558
+ }
9559
+ return t2;
9560
+ };
9561
+ exports2.parsedType = parsedType;
9562
+ var error = () => {
9563
+ const Sizable = {
9564
+ string: { unit: "karaktrojn", verb: "havi" },
9565
+ file: { unit: "bajtojn", verb: "havi" },
9566
+ array: { unit: "elementojn", verb: "havi" },
9567
+ set: { unit: "elementojn", verb: "havi" }
9568
+ };
9569
+ function getSizing(origin) {
9570
+ return Sizable[origin] ?? null;
9571
+ }
9572
+ const Nouns = {
9573
+ regex: "enigo",
9574
+ email: "retadreso",
9575
+ url: "URL",
9576
+ emoji: "emo\u011Dio",
9577
+ uuid: "UUID",
9578
+ uuidv4: "UUIDv4",
9579
+ uuidv6: "UUIDv6",
9580
+ nanoid: "nanoid",
9581
+ guid: "GUID",
9582
+ cuid: "cuid",
9583
+ cuid2: "cuid2",
9584
+ ulid: "ULID",
9585
+ xid: "XID",
9586
+ ksuid: "KSUID",
9587
+ datetime: "ISO-datotempo",
9588
+ date: "ISO-dato",
9589
+ time: "ISO-tempo",
9590
+ duration: "ISO-da\u016Dro",
9591
+ ipv4: "IPv4-adreso",
9592
+ ipv6: "IPv6-adreso",
9593
+ cidrv4: "IPv4-rango",
9594
+ cidrv6: "IPv6-rango",
9595
+ base64: "64-ume kodita karaktraro",
9596
+ base64url: "URL-64-ume kodita karaktraro",
9597
+ json_string: "JSON-karaktraro",
9598
+ e164: "E.164-nombro",
9599
+ jwt: "JWT",
9600
+ template_literal: "enigo"
9601
+ };
9602
+ return (issue) => {
9603
+ switch (issue.code) {
9604
+ case "invalid_type":
9605
+ return `Nevalida enigo: atendi\u011Dis ${issue.expected}, ricevi\u011Dis ${(0, exports2.parsedType)(issue.input)}`;
9606
+ case "invalid_value":
9607
+ if (issue.values.length === 1)
9608
+ return `Nevalida enigo: atendi\u011Dis ${util2.stringifyPrimitive(issue.values[0])}`;
9609
+ return `Nevalida opcio: atendi\u011Dis unu el ${util2.joinValues(issue.values, "|")}`;
9610
+ case "too_big": {
9611
+ const adj = issue.inclusive ? "<=" : "<";
9612
+ const sizing = getSizing(issue.origin);
9613
+ if (sizing)
9614
+ return `Tro granda: atendi\u011Dis ke ${issue.origin ?? "valoro"} havu ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementojn"}`;
9615
+ return `Tro granda: atendi\u011Dis ke ${issue.origin ?? "valoro"} havu ${adj}${issue.maximum.toString()}`;
9616
+ }
9617
+ case "too_small": {
9618
+ const adj = issue.inclusive ? ">=" : ">";
9619
+ const sizing = getSizing(issue.origin);
9620
+ if (sizing) {
9621
+ return `Tro malgranda: atendi\u011Dis ke ${issue.origin} havu ${adj}${issue.minimum.toString()} ${sizing.unit}`;
9622
+ }
9623
+ return `Tro malgranda: atendi\u011Dis ke ${issue.origin} estu ${adj}${issue.minimum.toString()}`;
9624
+ }
9625
+ case "invalid_format": {
9626
+ const _issue = issue;
9627
+ if (_issue.format === "starts_with")
9628
+ return `Nevalida karaktraro: devas komenci\u011Di per "${_issue.prefix}"`;
9629
+ if (_issue.format === "ends_with")
9630
+ return `Nevalida karaktraro: devas fini\u011Di per "${_issue.suffix}"`;
9631
+ if (_issue.format === "includes")
9632
+ return `Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`;
9633
+ if (_issue.format === "regex")
9634
+ return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`;
9635
+ return `Nevalida ${Nouns[_issue.format] ?? issue.format}`;
9636
+ }
9637
+ case "not_multiple_of":
9638
+ return `Nevalida nombro: devas esti oblo de ${issue.divisor}`;
9639
+ case "unrecognized_keys":
9640
+ return `Nekonata${issue.keys.length > 1 ? "j" : ""} \u015Dlosilo${issue.keys.length > 1 ? "j" : ""}: ${util2.joinValues(issue.keys, ", ")}`;
9641
+ case "invalid_key":
9642
+ return `Nevalida \u015Dlosilo en ${issue.origin}`;
9643
+ case "invalid_union":
9644
+ return "Nevalida enigo";
9645
+ case "invalid_element":
9646
+ return `Nevalida valoro en ${issue.origin}`;
9647
+ default:
9648
+ return `Nevalida enigo`;
9649
+ }
9650
+ };
9651
+ };
9652
+ function default_1() {
9653
+ return {
9654
+ localeError: error()
9655
+ };
9656
+ }
9657
+ }
9658
+ });
9659
+
9494
9660
  // ../node_modules/zod/v4/locales/es.cjs
9495
9661
  var require_es = __commonJS({
9496
9662
  "../node_modules/zod/v4/locales/es.cjs"(exports2) {
@@ -14301,7 +14467,7 @@ var require_locales = __commonJS({
14301
14467
  return mod && mod.__esModule ? mod : { "default": mod };
14302
14468
  };
14303
14469
  Object.defineProperty(exports2, "__esModule", { value: true });
14304
- exports2.zhTW = exports2.zhCN = exports2.vi = exports2.ur = exports2.ua = exports2.tr = exports2.th = exports2.ta = exports2.sv = exports2.sl = exports2.ru = exports2.pt = exports2.pl = exports2.ps = exports2.ota = exports2.no = exports2.nl = exports2.ms = exports2.mk = exports2.ko = exports2.kh = exports2.ja = exports2.it = exports2.id = exports2.hu = exports2.he = exports2.frCA = exports2.fr = exports2.fi = exports2.fa = exports2.es = exports2.en = exports2.de = exports2.cs = exports2.ca = exports2.be = exports2.az = exports2.ar = void 0;
14470
+ exports2.zhTW = exports2.zhCN = exports2.vi = exports2.ur = exports2.ua = exports2.tr = exports2.th = exports2.ta = exports2.sv = exports2.sl = exports2.ru = exports2.pt = exports2.pl = exports2.ps = exports2.ota = exports2.no = exports2.nl = exports2.ms = exports2.mk = exports2.ko = exports2.kh = exports2.ja = exports2.it = exports2.id = exports2.hu = exports2.he = exports2.frCA = exports2.fr = exports2.fi = exports2.fa = exports2.es = exports2.eo = exports2.en = exports2.de = exports2.cs = exports2.ca = exports2.be = exports2.az = exports2.ar = void 0;
14305
14471
  var ar_js_1 = require_ar();
14306
14472
  Object.defineProperty(exports2, "ar", { enumerable: true, get: function() {
14307
14473
  return __importDefault2(ar_js_1).default;
@@ -14330,6 +14496,10 @@ var require_locales = __commonJS({
14330
14496
  Object.defineProperty(exports2, "en", { enumerable: true, get: function() {
14331
14497
  return __importDefault2(en_js_1).default;
14332
14498
  } });
14499
+ var eo_js_1 = require_eo();
14500
+ Object.defineProperty(exports2, "eo", { enumerable: true, get: function() {
14501
+ return __importDefault2(eo_js_1).default;
14502
+ } });
14333
14503
  var es_js_1 = require_es();
14334
14504
  Object.defineProperty(exports2, "es", { enumerable: true, get: function() {
14335
14505
  return __importDefault2(es_js_1).default;
@@ -15665,7 +15835,7 @@ var require_to_json_schema = __commonJS({
15665
15835
  }
15666
15836
  return seen.schema;
15667
15837
  }
15668
- const result2 = { schema: {}, count: 1, cycle: void 0 };
15838
+ const result2 = { schema: {}, count: 1, cycle: void 0, path: _params.path };
15669
15839
  this.seen.set(schema, result2);
15670
15840
  const overrideSchema = schema._zod.toJSONSchema?.();
15671
15841
  if (overrideSchema) {
@@ -15764,11 +15934,6 @@ var require_to_json_schema = __commonJS({
15764
15934
  }
15765
15935
  break;
15766
15936
  }
15767
- case "undefined": {
15768
- const json = _json;
15769
- json.type = "null";
15770
- break;
15771
- }
15772
15937
  case "null": {
15773
15938
  _json.type = "null";
15774
15939
  break;
@@ -15779,6 +15944,7 @@ var require_to_json_schema = __commonJS({
15779
15944
  case "unknown": {
15780
15945
  break;
15781
15946
  }
15947
+ case "undefined":
15782
15948
  case "never": {
15783
15949
  _json.not = {};
15784
15950
  break;
@@ -16214,7 +16380,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16214
16380
  if (!seen.isParent)
16215
16381
  this.override({
16216
16382
  zodSchema,
16217
- jsonSchema: schema2
16383
+ jsonSchema: schema2,
16384
+ path: seen.path ?? []
16218
16385
  });
16219
16386
  };
16220
16387
  for (const entry of [...this.seen.entries()].reverse()) {
@@ -20705,49 +20872,6 @@ var require_external = __commonJS({
20705
20872
  }
20706
20873
  });
20707
20874
 
20708
- // ../node_modules/zod/v3/index.cjs
20709
- var require_v3 = __commonJS({
20710
- "../node_modules/zod/v3/index.cjs"(exports2) {
20711
- "use strict";
20712
- var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m2, k3, k22) {
20713
- if (k22 === void 0) k22 = k3;
20714
- var desc = Object.getOwnPropertyDescriptor(m2, k3);
20715
- if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
20716
- desc = { enumerable: true, get: function() {
20717
- return m2[k3];
20718
- } };
20719
- }
20720
- Object.defineProperty(o3, k22, desc);
20721
- } : function(o3, m2, k3, k22) {
20722
- if (k22 === void 0) k22 = k3;
20723
- o3[k22] = m2[k3];
20724
- });
20725
- var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v3) {
20726
- Object.defineProperty(o3, "default", { enumerable: true, value: v3 });
20727
- } : function(o3, v3) {
20728
- o3["default"] = v3;
20729
- });
20730
- var __importStar2 = exports2 && exports2.__importStar || function(mod) {
20731
- if (mod && mod.__esModule) return mod;
20732
- var result2 = {};
20733
- if (mod != null) {
20734
- for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding2(result2, mod, k3);
20735
- }
20736
- __setModuleDefault2(result2, mod);
20737
- return result2;
20738
- };
20739
- var __exportStar2 = exports2 && exports2.__exportStar || function(m2, exports3) {
20740
- for (var p2 in m2) if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p2)) __createBinding2(exports3, m2, p2);
20741
- };
20742
- Object.defineProperty(exports2, "__esModule", { value: true });
20743
- exports2.z = void 0;
20744
- var z3 = __importStar2(require_external());
20745
- exports2.z = z3;
20746
- __exportStar2(require_external(), exports2);
20747
- exports2.default = z3;
20748
- }
20749
- });
20750
-
20751
20875
  // ../node_modules/zod/index.cjs
20752
20876
  var require_zod = __commonJS({
20753
20877
  "../node_modules/zod/index.cjs"(exports2) {
@@ -20784,9 +20908,9 @@ var require_zod = __commonJS({
20784
20908
  };
20785
20909
  Object.defineProperty(exports2, "__esModule", { value: true });
20786
20910
  exports2.z = void 0;
20787
- var z3 = __importStar2(require_v3());
20911
+ var z3 = __importStar2(require_external());
20788
20912
  exports2.z = z3;
20789
- __exportStar2(require_v3(), exports2);
20913
+ __exportStar2(require_external(), exports2);
20790
20914
  exports2.default = z3;
20791
20915
  }
20792
20916
  });
@@ -42469,8 +42593,9 @@ var __filename = fileURLToPath3(import.meta.url);
42469
42593
  var distPath = path8.dirname(__filename);
42470
42594
  var PKG_ROOT = path8.join(distPath, "../");
42471
42595
  var dependencyVersionMap = {
42472
- alchemy: getPackageVersion()
42596
+ alchemy: process.env.NODE_ENV === "test" ? `file:${path8.resolve(PKG_ROOT)}` : getPackageVersion()
42473
42597
  };
42598
+ console.log({ dependencyVersionMap });
42474
42599
 
42475
42600
  // bin/services/dependencies.ts
42476
42601
  var import_fs_extra2 = __toESM(require_lib(), 1);
@@ -42592,120 +42717,6 @@ async function handleRwsdkPostInstall(context) {
42592
42717
  }
42593
42718
  }
42594
42719
 
42595
- // ../node_modules/zod/v3/index.js
42596
- var v3_exports = {};
42597
- __export(v3_exports, {
42598
- BRAND: () => BRAND,
42599
- DIRTY: () => DIRTY,
42600
- EMPTY_PATH: () => EMPTY_PATH,
42601
- INVALID: () => INVALID,
42602
- NEVER: () => NEVER,
42603
- OK: () => OK,
42604
- ParseStatus: () => ParseStatus,
42605
- Schema: () => ZodType,
42606
- ZodAny: () => ZodAny,
42607
- ZodArray: () => ZodArray,
42608
- ZodBigInt: () => ZodBigInt,
42609
- ZodBoolean: () => ZodBoolean,
42610
- ZodBranded: () => ZodBranded,
42611
- ZodCatch: () => ZodCatch,
42612
- ZodDate: () => ZodDate,
42613
- ZodDefault: () => ZodDefault,
42614
- ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
42615
- ZodEffects: () => ZodEffects,
42616
- ZodEnum: () => ZodEnum,
42617
- ZodError: () => ZodError,
42618
- ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
42619
- ZodFunction: () => ZodFunction,
42620
- ZodIntersection: () => ZodIntersection,
42621
- ZodIssueCode: () => ZodIssueCode,
42622
- ZodLazy: () => ZodLazy,
42623
- ZodLiteral: () => ZodLiteral,
42624
- ZodMap: () => ZodMap,
42625
- ZodNaN: () => ZodNaN,
42626
- ZodNativeEnum: () => ZodNativeEnum,
42627
- ZodNever: () => ZodNever,
42628
- ZodNull: () => ZodNull,
42629
- ZodNullable: () => ZodNullable,
42630
- ZodNumber: () => ZodNumber,
42631
- ZodObject: () => ZodObject,
42632
- ZodOptional: () => ZodOptional,
42633
- ZodParsedType: () => ZodParsedType,
42634
- ZodPipeline: () => ZodPipeline,
42635
- ZodPromise: () => ZodPromise,
42636
- ZodReadonly: () => ZodReadonly,
42637
- ZodRecord: () => ZodRecord,
42638
- ZodSchema: () => ZodType,
42639
- ZodSet: () => ZodSet,
42640
- ZodString: () => ZodString,
42641
- ZodSymbol: () => ZodSymbol,
42642
- ZodTransformer: () => ZodEffects,
42643
- ZodTuple: () => ZodTuple,
42644
- ZodType: () => ZodType,
42645
- ZodUndefined: () => ZodUndefined,
42646
- ZodUnion: () => ZodUnion,
42647
- ZodUnknown: () => ZodUnknown,
42648
- ZodVoid: () => ZodVoid,
42649
- addIssueToContext: () => addIssueToContext,
42650
- any: () => anyType,
42651
- array: () => arrayType,
42652
- bigint: () => bigIntType,
42653
- boolean: () => booleanType,
42654
- coerce: () => coerce,
42655
- custom: () => custom,
42656
- date: () => dateType,
42657
- datetimeRegex: () => datetimeRegex,
42658
- default: () => v3_default,
42659
- defaultErrorMap: () => en_default,
42660
- discriminatedUnion: () => discriminatedUnionType,
42661
- effect: () => effectsType,
42662
- enum: () => enumType,
42663
- function: () => functionType,
42664
- getErrorMap: () => getErrorMap,
42665
- getParsedType: () => getParsedType,
42666
- instanceof: () => instanceOfType,
42667
- intersection: () => intersectionType,
42668
- isAborted: () => isAborted,
42669
- isAsync: () => isAsync,
42670
- isDirty: () => isDirty,
42671
- isValid: () => isValid,
42672
- late: () => late,
42673
- lazy: () => lazyType,
42674
- literal: () => literalType,
42675
- makeIssue: () => makeIssue,
42676
- map: () => mapType,
42677
- nan: () => nanType,
42678
- nativeEnum: () => nativeEnumType,
42679
- never: () => neverType,
42680
- null: () => nullType,
42681
- nullable: () => nullableType,
42682
- number: () => numberType,
42683
- object: () => objectType,
42684
- objectUtil: () => objectUtil,
42685
- oboolean: () => oboolean,
42686
- onumber: () => onumber,
42687
- optional: () => optionalType,
42688
- ostring: () => ostring,
42689
- pipeline: () => pipelineType,
42690
- preprocess: () => preprocessType,
42691
- promise: () => promiseType,
42692
- quotelessJson: () => quotelessJson,
42693
- record: () => recordType,
42694
- set: () => setType,
42695
- setErrorMap: () => setErrorMap,
42696
- strictObject: () => strictObjectType,
42697
- string: () => stringType,
42698
- symbol: () => symbolType,
42699
- transformer: () => effectsType,
42700
- tuple: () => tupleType,
42701
- undefined: () => undefinedType,
42702
- union: () => unionType,
42703
- unknown: () => unknownType,
42704
- util: () => util,
42705
- void: () => voidType,
42706
- z: () => external_exports
42707
- });
42708
-
42709
42720
  // ../node_modules/zod/v3/external.js
42710
42721
  var external_exports = {};
42711
42722
  __export(external_exports, {
@@ -46747,9 +46758,6 @@ var coerce = {
46747
46758
  };
46748
46759
  var NEVER = INVALID;
46749
46760
 
46750
- // ../node_modules/zod/v3/index.js
46751
- var v3_default = external_exports;
46752
-
46753
46761
  // bin/types.ts
46754
46762
  var TEMPLATE_DEFINITIONS = [
46755
46763
  { name: "typescript", description: "TypeScript Worker" },
@@ -46762,9 +46770,9 @@ var TEMPLATE_DEFINITIONS = [
46762
46770
  { name: "nuxt", description: "Nuxt.js" }
46763
46771
  ];
46764
46772
  var templateNames = TEMPLATE_DEFINITIONS.map((t2) => t2.name);
46765
- var TemplateSchema = v3_exports.enum(templateNames).describe("Project template type");
46766
- var PackageManagerSchema = v3_exports.enum(["bun", "npm", "pnpm", "yarn"]).describe("Package manager");
46767
- var ProjectNameSchema = v3_exports.string().min(1, "Project name cannot be empty").max(255, "Project name must be less than 255 characters").refine(
46773
+ var TemplateSchema = external_exports.enum(templateNames).describe("Project template type");
46774
+ var PackageManagerSchema = external_exports.enum(["bun", "npm", "pnpm", "yarn"]).describe("Package manager");
46775
+ var ProjectNameSchema = external_exports.string().min(1, "Project name cannot be empty").max(255, "Project name must be less than 255 characters").refine(
46768
46776
  (name) => name === "." || !name.startsWith("."),
46769
46777
  "Project name cannot start with a dot (except for '.')"
46770
46778
  ).refine(
package/bin/constants.ts CHANGED
@@ -7,7 +7,11 @@ const distPath = path.dirname(__filename);
7
7
  export const PKG_ROOT = path.join(distPath, "../");
8
8
 
9
9
  export const dependencyVersionMap = {
10
- alchemy: getPackageVersion(),
10
+ alchemy:
11
+ process.env.NODE_ENV === "test"
12
+ ? `file:${path.resolve(PKG_ROOT)}`
13
+ : getPackageVersion(),
11
14
  } as const;
15
+ console.log({ dependencyVersionMap });
12
16
 
13
17
  export type DependencyVersionMap = keyof typeof dependencyVersionMap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alchemy",
3
- "version": "0.43.3",
3
+ "version": "0.43.5",
4
4
  "type": "module",
5
5
  "module": "./lib/index.js",
6
6
  "license": "Apache-2.0",
@@ -0,0 +1 @@
1
+ ALCHEMY_PASSWORD=change-me
@@ -0,0 +1 @@
1
+ ALCHEMY_PASSWORD=change-me
@@ -0,0 +1 @@
1
+ ALCHEMY_PASSWORD=change-me
@@ -0,0 +1 @@
1
+ ALCHEMY_PASSWORD=change-me