@go-labs-sg/event-tech 1.0.0 → 1.1.0
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/README.md +10 -0
- package/dist/index.js +102 -66
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -99,6 +99,16 @@ et lucky-draw participants list --event-id <id> --page 1 --per-page 100
|
|
|
99
99
|
|
|
100
100
|
Commands emit deterministic JSON envelopes. Authentication credentials are never included in successful output, and bearer credentials are redacted from errors.
|
|
101
101
|
|
|
102
|
+
### Deprecated event types
|
|
103
|
+
|
|
104
|
+
Scavenger Hunt (Amazing Race) and Gardens by the Bay are deprecated and frozen.
|
|
105
|
+
Existing `event list`, `event get` and appearance commands retain their contracts
|
|
106
|
+
and can still return historical `SCAVENGER_HUNT` / `GARDENS_BY_THE_BAY` values.
|
|
107
|
+
The CLI has no event-create, duplicate, type-change or scavenger-specific commands;
|
|
108
|
+
no replacement commands or scavenger read-shape parity will be added. The server
|
|
109
|
+
blocks new creation, duplication and changes into these types, including requests
|
|
110
|
+
from older/custom clients. See the [retirement policy](../../../docs/agents/event-tech-deprecated-scavenger.md).
|
|
111
|
+
|
|
102
112
|
### Event appearance and Photo Wall display
|
|
103
113
|
|
|
104
114
|
`event appearance get` returns the canonical appearance, its optimistic-lock
|
package/dist/index.js
CHANGED
|
@@ -35,16 +35,16 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
35
35
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
36
36
|
var __require = import.meta.require;
|
|
37
37
|
|
|
38
|
-
// ../../../node_modules/.bun/dotenv@18.0.
|
|
38
|
+
// ../../../node_modules/.bun/dotenv@18.0.8/node_modules/dotenv/dist/index.cjs
|
|
39
39
|
var require_dist = __commonJS(function(exports, module) {
|
|
40
|
-
var
|
|
40
|
+
var j = (e, n) => () => {
|
|
41
41
|
try {
|
|
42
42
|
return n || e((n = { exports: {} }).exports, n), n.exports;
|
|
43
43
|
} catch (t) {
|
|
44
44
|
throw n = 0, t;
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
var
|
|
47
|
+
var k = j((xe, U) => {
|
|
48
48
|
function G(e) {
|
|
49
49
|
return typeof e == "string" ? !["false", "0", "no", "off", ""].includes(e.toLowerCase()) : !!e;
|
|
50
50
|
}
|
|
@@ -58,8 +58,8 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
58
58
|
}
|
|
59
59
|
U.exports = { parseBoolean: G, optionsFromEnv: Y };
|
|
60
60
|
});
|
|
61
|
-
var N =
|
|
62
|
-
var z = __require("fs"),
|
|
61
|
+
var N = j((ye, x) => {
|
|
62
|
+
var z = __require("fs"), I = __require("path"), Z = __require("os"), { URL: ee, fileURLToPath: te } = __require("url"), { parseBoolean: $, optionsFromEnv: B } = k(), re = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg, b = new Uint8Array(256);
|
|
63
63
|
for (let e = 48;e <= 57; e++)
|
|
64
64
|
b[e] = 1;
|
|
65
65
|
for (let e = 65;e <= 90; e++)
|
|
@@ -124,7 +124,7 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
124
124
|
r++;
|
|
125
125
|
continue;
|
|
126
126
|
}
|
|
127
|
-
let
|
|
127
|
+
let h = t.slice(l, r), f = r;
|
|
128
128
|
if (r >= o && (d = 0), w(d))
|
|
129
129
|
do
|
|
130
130
|
r++, d = r < o ? t.charCodeAt(r) : 0;
|
|
@@ -141,8 +141,8 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
141
141
|
let c = r, a = r;
|
|
142
142
|
for (;a < o && w(t.charCodeAt(a)); )
|
|
143
143
|
a++;
|
|
144
|
-
let
|
|
145
|
-
if (
|
|
144
|
+
let g = t.charCodeAt(a), p, y = false;
|
|
145
|
+
if (g === 39 || g === 34 || g === 96) {
|
|
146
146
|
let v = t[a], u = t.indexOf(v, a + 1), m = -1, C = -1;
|
|
147
147
|
for (;u !== -1; ) {
|
|
148
148
|
let O = t.charCodeAt(u - 1) === 92, E = u + 1;
|
|
@@ -153,7 +153,7 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
153
153
|
u = t.indexOf(v, u + 1);
|
|
154
154
|
}
|
|
155
155
|
if (m !== -1) {
|
|
156
|
-
if (
|
|
156
|
+
if (p = t.slice(a + 1, m), r = C, t.charCodeAt(r) === 35)
|
|
157
157
|
for (;r < o && !q(t.charCodeAt(r)); )
|
|
158
158
|
r++;
|
|
159
159
|
y = true;
|
|
@@ -175,12 +175,12 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
175
175
|
for (;C > m && w(t.charCodeAt(C - 1)); )
|
|
176
176
|
C--;
|
|
177
177
|
let O = t.charCodeAt(m);
|
|
178
|
-
if (C - m >= 2 && (O === 39 || O === 34 || O === 96) && t.charCodeAt(C - 1) === O
|
|
178
|
+
if (p = t.slice(m, C), p.includes("\u2028") || p.includes("\u2029") ? p = p.replace(/^(['"`])([\s\S]*)\1$/mg, "$2") : C - m >= 2 && (O === 39 || O === 34 || O === 96) && t.charCodeAt(C - 1) === O && (p = t.slice(m + 1, C - 1)), r = u, u < v)
|
|
179
179
|
for (;r < o && !q(t.charCodeAt(r)); )
|
|
180
180
|
r++;
|
|
181
181
|
}
|
|
182
|
-
|
|
183
|
-
`).replace(/\\r/g, "\r")), n[
|
|
182
|
+
g === 34 && (y || a < r) && p.indexOf("\\") !== -1 && (p = p.replace(/\\n/g, `
|
|
183
|
+
`).replace(/\\r/g, "\r")), n[h] = p;
|
|
184
184
|
}
|
|
185
185
|
return n;
|
|
186
186
|
}
|
|
@@ -194,7 +194,7 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
194
194
|
console.error(`\u25C7 ${e}`);
|
|
195
195
|
}
|
|
196
196
|
function V(e) {
|
|
197
|
-
return e[0] === "~" ?
|
|
197
|
+
return e[0] === "~" ? I.join(Z.homedir(), e.slice(1)) : e;
|
|
198
198
|
}
|
|
199
199
|
function ce(e = {}) {
|
|
200
200
|
let n = { ...e };
|
|
@@ -204,7 +204,7 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
204
204
|
}
|
|
205
205
|
function ae(e) {
|
|
206
206
|
e = ce(e);
|
|
207
|
-
let n =
|
|
207
|
+
let n = I.resolve(process.cwd(), ".env"), t = "utf8", o = process.env;
|
|
208
208
|
e && e.processEnv != null && (o = e.processEnv);
|
|
209
209
|
let r = $(e && e.debug);
|
|
210
210
|
e && e.encoding ? t = e.encoding : r && T("no encoding is specified (UTF-8 is used by default)");
|
|
@@ -225,15 +225,15 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
225
225
|
} catch (a) {
|
|
226
226
|
r && T(`failed to load ${c} ${a.message}`), i = a;
|
|
227
227
|
}
|
|
228
|
-
let
|
|
228
|
+
let h = A.populate(o, l, e), f = $(Object.prototype.hasOwnProperty.call(e, "quiet") ? e.quiet : B(o).quiet);
|
|
229
229
|
if (r || !f) {
|
|
230
|
-
let c = Object.keys(
|
|
231
|
-
for (let
|
|
230
|
+
let c = Object.keys(h).length, a = [];
|
|
231
|
+
for (let g of s)
|
|
232
232
|
try {
|
|
233
|
-
let
|
|
234
|
-
a.push(
|
|
235
|
-
} catch (
|
|
236
|
-
r && T(`failed to load ${
|
|
233
|
+
let p = I.relative(process.cwd(), g instanceof ee ? te(g) : g);
|
|
234
|
+
a.push(p);
|
|
235
|
+
} catch (p) {
|
|
236
|
+
r && T(`failed to load ${g} ${p.message}`), i = p;
|
|
237
237
|
}
|
|
238
238
|
ie(`injected env (${c}) from ${a.join(",")}`);
|
|
239
239
|
}
|
|
@@ -259,7 +259,7 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
259
259
|
x.exports.populate = A.populate;
|
|
260
260
|
x.exports = A;
|
|
261
261
|
});
|
|
262
|
-
var M =
|
|
262
|
+
var M = j((Te, W) => {
|
|
263
263
|
var _ = __require("child_process"), ue = __require("fs"), L = __require("path");
|
|
264
264
|
function de(e) {
|
|
265
265
|
let n = ['"'], t = 0;
|
|
@@ -291,10 +291,10 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
291
291
|
let o = (P(n, "PATHEXT") || ".COM;.EXE;.BAT;.CMD").split(";").filter(Boolean), s = o.some((l) => e.toLowerCase().endsWith(l.toLowerCase())) ? ["", ...o] : [...o, ""], i = /[\\/]/.test(e) ? [t] : [t, ...(P(n, "PATH") || "").split(";")];
|
|
292
292
|
for (let l of i)
|
|
293
293
|
for (let d of s) {
|
|
294
|
-
let
|
|
294
|
+
let h = L.resolve(t, l.replace(/^"|"$/g, ""), e + d);
|
|
295
295
|
try {
|
|
296
|
-
if (ue.statSync(
|
|
297
|
-
return
|
|
296
|
+
if (ue.statSync(h).isFile())
|
|
297
|
+
return h;
|
|
298
298
|
} catch {}
|
|
299
299
|
}
|
|
300
300
|
}
|
|
@@ -312,18 +312,18 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
312
312
|
}
|
|
313
313
|
W.exports = he;
|
|
314
314
|
});
|
|
315
|
-
var X =
|
|
316
|
-
var ge = __require("fs"), me = __require("os"), Q = __require("path"), ve = __require("child_process"), Ce = M(), R = N(), { optionsFromEnv: J } =
|
|
315
|
+
var X = j(($e, F) => {
|
|
316
|
+
var ge = __require("fs"), me = __require("os"), Q = __require("path"), ve = __require("child_process"), Ce = M(), R = N(), { optionsFromEnv: J } = k();
|
|
317
317
|
function D() {
|
|
318
318
|
console.log(["Usage: dotenv run [--help] [-q|--quiet] [--debug] [--override] [--fast] [-f|--file <paths>] [--] <command> [args...]", "", "Run a command with environment variables from a .env file.", "Place dotenv options before the command; all following arguments go to the command.", "", "Options:", " -f, --file <paths> .env paths, comma-separated or repeated (default: .env)", " -q, --quiet suppress the injected env message", " --debug enable debug logging", " --override override existing environment variables", " --fast use the faster character-scanner parser", "", "Environment variables (DOTENV_CONFIG_* names remain as fallbacks):", " DOTENV_PATH, DOTENV_ENCODING, DOTENV_QUIET,", " DOTENV_DEBUG, DOTENV_OVERRIDE,", " DOTENV_FAST"].join(`
|
|
319
319
|
`));
|
|
320
320
|
}
|
|
321
321
|
function we(e) {
|
|
322
322
|
let n = [], t = false, o, r, s, i, l = -1;
|
|
323
|
-
for (let
|
|
324
|
-
let f = e[
|
|
323
|
+
for (let h = 0;h < e.length; h++) {
|
|
324
|
+
let f = e[h];
|
|
325
325
|
if (f === "--") {
|
|
326
|
-
l =
|
|
326
|
+
l = h + 1;
|
|
327
327
|
break;
|
|
328
328
|
}
|
|
329
329
|
if (f === "--help" || f === "-h")
|
|
@@ -345,18 +345,18 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
345
345
|
continue;
|
|
346
346
|
}
|
|
347
347
|
if (f === "-f" || f === "--file" || f.startsWith("-f=") || f.startsWith("--file=")) {
|
|
348
|
-
let c = f.indexOf("="), a = c === -1 ? f : f.slice(0, c),
|
|
349
|
-
if (!
|
|
348
|
+
let c = f.indexOf("="), a = c === -1 ? f : f.slice(0, c), g = c === -1 ? e[++h] : f.slice(c + 1);
|
|
349
|
+
if (!g || g === "--")
|
|
350
350
|
return { error: `${a} requires a path` };
|
|
351
|
-
let
|
|
352
|
-
if (
|
|
351
|
+
let p = g.split(",").map((y) => y.trim()).filter(Boolean);
|
|
352
|
+
if (p.length === 0)
|
|
353
353
|
return { error: `${a} requires a path` };
|
|
354
|
-
n.push(...
|
|
354
|
+
n.push(...p), t = true;
|
|
355
355
|
continue;
|
|
356
356
|
}
|
|
357
357
|
if (f.startsWith("-"))
|
|
358
358
|
return { error: `unknown option: ${f}` };
|
|
359
|
-
l =
|
|
359
|
+
l = h;
|
|
360
360
|
break;
|
|
361
361
|
}
|
|
362
362
|
let d = l === -1 ? [] : e.slice(l);
|
|
@@ -410,15 +410,15 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
410
410
|
try {
|
|
411
411
|
let c = be(o);
|
|
412
412
|
if (!(o.quiet == null ? J().quiet : o.quiet)) {
|
|
413
|
-
let
|
|
414
|
-
c.loadedPaths.length > 0 && (
|
|
413
|
+
let g = `\u25C7 injected env (${Object.keys(c.injected).length})`;
|
|
414
|
+
c.loadedPaths.length > 0 && (g += ` from ${c.loadedPaths.join(", ")}`), console.error(g);
|
|
415
415
|
}
|
|
416
416
|
} catch (c) {
|
|
417
417
|
console.error(`dotenv: ${c.message}`), process.exitCode = 1;
|
|
418
418
|
return;
|
|
419
419
|
}
|
|
420
420
|
let r = !!process.stdin.isTTY, s = process.platform !== "win32" && !r, i = Ce(t.command[0], t.command.slice(1), { stdio: "inherit", detached: s }), l = new Map, d = 0;
|
|
421
|
-
function
|
|
421
|
+
function h(c) {
|
|
422
422
|
if (!(!i.pid || i.exitCode !== null || i.signalCode !== null)) {
|
|
423
423
|
if (process.platform === "win32") {
|
|
424
424
|
ve.spawnSync("taskkill", ["/pid", String(i.pid), "/T", "/F"], { stdio: "ignore" });
|
|
@@ -442,11 +442,11 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
442
442
|
if (d++, r && process.platform !== "win32" && d === 1)
|
|
443
443
|
return;
|
|
444
444
|
if (d > 1) {
|
|
445
|
-
|
|
445
|
+
h(d === 2 ? "SIGTERM" : "SIGKILL");
|
|
446
446
|
return;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
|
|
449
|
+
h(c);
|
|
450
450
|
};
|
|
451
451
|
l.set(c, a), process.on(c, a);
|
|
452
452
|
}
|
|
@@ -459,13 +459,13 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
459
459
|
F.exports = K;
|
|
460
460
|
F === __require.main && K(process.argv.slice(2));
|
|
461
461
|
});
|
|
462
|
-
var
|
|
462
|
+
var S = N();
|
|
463
463
|
var qe = X();
|
|
464
|
-
module.exports =
|
|
465
|
-
module.exports.config =
|
|
466
|
-
module.exports.configDotenv =
|
|
467
|
-
module.exports.parse =
|
|
468
|
-
module.exports.populate =
|
|
464
|
+
module.exports = S;
|
|
465
|
+
module.exports.config = S.config;
|
|
466
|
+
module.exports.configDotenv = S.configDotenv;
|
|
467
|
+
module.exports.parse = S.parse;
|
|
468
|
+
module.exports.populate = S.populate;
|
|
469
469
|
});
|
|
470
470
|
|
|
471
471
|
// src/load-env.ts
|
|
@@ -512,7 +512,7 @@ var createPkcePair = () => {
|
|
|
512
512
|
verifier
|
|
513
513
|
};
|
|
514
514
|
};
|
|
515
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
515
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/util.js
|
|
516
516
|
function getEnumValues(entries) {
|
|
517
517
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
518
518
|
const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -858,6 +858,18 @@ function prefixIssues(path, issues) {
|
|
|
858
858
|
function unwrapMessage(message) {
|
|
859
859
|
return typeof message === "string" ? message : message?.message;
|
|
860
860
|
}
|
|
861
|
+
function sizeCaps(defChecks) {
|
|
862
|
+
const caps = [];
|
|
863
|
+
for (const ch of defChecks ?? []) {
|
|
864
|
+
const d = ch._zod.def;
|
|
865
|
+
if (!/_(length|size)$|_equals$/.test(d.check))
|
|
866
|
+
break;
|
|
867
|
+
const max = d.maximum ?? d.length ?? d.size;
|
|
868
|
+
if (max >= 0)
|
|
869
|
+
caps.push([max, ch]);
|
|
870
|
+
}
|
|
871
|
+
return caps;
|
|
872
|
+
}
|
|
861
873
|
function attachSchema(issues, start, inst) {
|
|
862
874
|
var _a;
|
|
863
875
|
for (let i = start;i < issues.length; i++) {
|
|
@@ -1055,7 +1067,7 @@ function constantCatch(value) {
|
|
|
1055
1067
|
return fn;
|
|
1056
1068
|
}
|
|
1057
1069
|
|
|
1058
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
1070
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/core.js
|
|
1059
1071
|
var _a;
|
|
1060
1072
|
var _zodDesc = { value: undefined, enumerable: false };
|
|
1061
1073
|
var _E = "captureStackTrace" in Error ? Error : null;
|
|
@@ -1173,7 +1185,7 @@ function config2(newConfig) {
|
|
|
1173
1185
|
Object.assign(globalConfig, newConfig);
|
|
1174
1186
|
return globalConfig;
|
|
1175
1187
|
}
|
|
1176
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
1188
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/errors.js
|
|
1177
1189
|
function _getMessage() {
|
|
1178
1190
|
const internals = this._zod;
|
|
1179
1191
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -1288,7 +1300,7 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
1288
1300
|
return fieldErrors;
|
|
1289
1301
|
}
|
|
1290
1302
|
|
|
1291
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
1303
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/parse.js
|
|
1292
1304
|
function finalizeParams(callee, params) {
|
|
1293
1305
|
return { callee: params?.callee ?? callee, Err: params?.Err };
|
|
1294
1306
|
}
|
|
@@ -1435,7 +1447,7 @@ var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1435
1447
|
var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1436
1448
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
1437
1449
|
};
|
|
1438
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
1450
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/regexes.js
|
|
1439
1451
|
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
1440
1452
|
var cuid2 = /^[0-9a-z]+$/;
|
|
1441
1453
|
var ulid = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
@@ -1493,7 +1505,7 @@ var _null = /^null$/i;
|
|
|
1493
1505
|
var lowercase = /^[^A-Z]*$/;
|
|
1494
1506
|
var uppercase = /^[^a-z]*$/;
|
|
1495
1507
|
|
|
1496
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
1508
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/checks.js
|
|
1497
1509
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1498
1510
|
var _a;
|
|
1499
1511
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1809,7 +1821,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
1809
1821
|
};
|
|
1810
1822
|
});
|
|
1811
1823
|
|
|
1812
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
1824
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/doc.js
|
|
1813
1825
|
class Doc {
|
|
1814
1826
|
constructor(args = [], closed = {}) {
|
|
1815
1827
|
this.content = [];
|
|
@@ -1851,14 +1863,14 @@ ${content.join(`
|
|
|
1851
1863
|
}
|
|
1852
1864
|
}
|
|
1853
1865
|
|
|
1854
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
1866
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/versions.js
|
|
1855
1867
|
var version = {
|
|
1856
1868
|
major: 4,
|
|
1857
1869
|
minor: 6,
|
|
1858
|
-
patch:
|
|
1870
|
+
patch: 7
|
|
1859
1871
|
};
|
|
1860
1872
|
|
|
1861
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
1873
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/schemas.js
|
|
1862
1874
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1863
1875
|
var _a;
|
|
1864
1876
|
inst ?? (inst = {});
|
|
@@ -2424,6 +2436,29 @@ var $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
|
2424
2436
|
return payload;
|
|
2425
2437
|
};
|
|
2426
2438
|
});
|
|
2439
|
+
function capSize(inst, size) {
|
|
2440
|
+
const caps = sizeCaps(inst._zod.def.checks);
|
|
2441
|
+
if (!caps.length)
|
|
2442
|
+
return;
|
|
2443
|
+
const cap = Math.min(...caps.map((c) => c[0]));
|
|
2444
|
+
const parse = inst._zod.parse;
|
|
2445
|
+
inst._zod.parse = (payload, ctx) => {
|
|
2446
|
+
const n = size(payload.value);
|
|
2447
|
+
if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
|
|
2448
|
+
for (const [max, ch] of sizeCaps(inst._zod.def.checks)) {
|
|
2449
|
+
if (n > max && ch._zod.def.when(payload)) {
|
|
2450
|
+
const start = payload.issues.length;
|
|
2451
|
+
ch._zod.check(payload);
|
|
2452
|
+
payload.issues[start].continue = false;
|
|
2453
|
+
attachSchema(payload.issues, start, inst);
|
|
2454
|
+
return payload;
|
|
2455
|
+
}
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
return parse(payload, ctx);
|
|
2459
|
+
};
|
|
2460
|
+
}
|
|
2461
|
+
var arraySize = (input) => Array.isArray(input) ? input.length : -1;
|
|
2427
2462
|
function handleArrayResult(result, final, index) {
|
|
2428
2463
|
if (result.issues.length) {
|
|
2429
2464
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
@@ -2467,6 +2502,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
2467
2502
|
}
|
|
2468
2503
|
return payload;
|
|
2469
2504
|
};
|
|
2505
|
+
capSize(inst, arraySize);
|
|
2470
2506
|
});
|
|
2471
2507
|
function handlePropertyResult(result, final, key, input, optin, optout) {
|
|
2472
2508
|
const isPresent = key in input;
|
|
@@ -3249,7 +3285,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3249
3285
|
payload.issues.push(issue(_iss));
|
|
3250
3286
|
}
|
|
3251
3287
|
}
|
|
3252
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
3288
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/memoizer.js
|
|
3253
3289
|
class $ZodCyclicError extends Error {
|
|
3254
3290
|
constructor() {
|
|
3255
3291
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -3518,7 +3554,7 @@ function isBackEdge(ctx, value) {
|
|
|
3518
3554
|
const backEdges = ctx[STATE]?.backEdges;
|
|
3519
3555
|
return backEdges !== undefined && isRef(value) && backEdges.has(value);
|
|
3520
3556
|
}
|
|
3521
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
3557
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/locales/en.js
|
|
3522
3558
|
var error = () => {
|
|
3523
3559
|
const Sizable = {
|
|
3524
3560
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -3640,7 +3676,7 @@ function en_default() {
|
|
|
3640
3676
|
localeError: error()
|
|
3641
3677
|
};
|
|
3642
3678
|
}
|
|
3643
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
3679
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/registries.js
|
|
3644
3680
|
var _a2;
|
|
3645
3681
|
class $ZodRegistry {
|
|
3646
3682
|
constructor() {
|
|
@@ -3687,7 +3723,7 @@ function registry() {
|
|
|
3687
3723
|
}
|
|
3688
3724
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
3689
3725
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
3690
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
3726
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/api.js
|
|
3691
3727
|
function snapshotChecks(def) {
|
|
3692
3728
|
if (def.checks)
|
|
3693
3729
|
def.checks = [...def.checks];
|
|
@@ -4141,7 +4177,7 @@ function _check(fn, params) {
|
|
|
4141
4177
|
ch._zod.check = fn;
|
|
4142
4178
|
return ch;
|
|
4143
4179
|
}
|
|
4144
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
4180
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/to-json-schema.js
|
|
4145
4181
|
function assignProps(target, ...sources) {
|
|
4146
4182
|
for (const source of sources) {
|
|
4147
4183
|
for (const key of Reflect.ownKeys(source)) {
|
|
@@ -4664,7 +4700,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
4664
4700
|
extractDefs(ctx, schema);
|
|
4665
4701
|
return finalize(ctx, schema);
|
|
4666
4702
|
};
|
|
4667
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
4703
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/json-schema-processors.js
|
|
4668
4704
|
var narrowMin = (agg, key, value) => {
|
|
4669
4705
|
if (agg[key] === undefined || value > agg[key])
|
|
4670
4706
|
agg[key] = value;
|
|
@@ -5093,7 +5129,7 @@ var optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
5093
5129
|
const seen = ctx.seen.get(schema);
|
|
5094
5130
|
seen.ref = def.innerType;
|
|
5095
5131
|
};
|
|
5096
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
5132
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/errors.js
|
|
5097
5133
|
var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
5098
5134
|
function _lazyMethod(proto, key, make) {
|
|
5099
5135
|
Object.defineProperty(proto, key, {
|
|
@@ -5138,7 +5174,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, undefi
|
|
|
5138
5174
|
Parent: Error
|
|
5139
5175
|
});
|
|
5140
5176
|
|
|
5141
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
5177
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/parse.js
|
|
5142
5178
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
5143
5179
|
var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
5144
5180
|
var safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -5152,7 +5188,7 @@ var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
5152
5188
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
5153
5189
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
5154
5190
|
|
|
5155
|
-
// ../../../node_modules/.bun/zod@4.6.
|
|
5191
|
+
// ../../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/schemas.js
|
|
5156
5192
|
function _ensureDefaultLocale() {
|
|
5157
5193
|
if (!globalConfig.localeError)
|
|
5158
5194
|
config2(en_default());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@go-labs-sg/event-tech",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Event Tech CLI for managing Event Tech resources through the Go Labs API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@trpc/client": "^11.19.0",
|
|
20
|
-
"dotenv": "^18.0.
|
|
20
|
+
"dotenv": "^18.0.8",
|
|
21
21
|
"superjson": "^2.2.6"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|