tempest.games 0.1.34 → 0.1.36
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/CHANGELOG.md +21 -0
- package/app/assets/index-i-9D4V9Z.js +62 -0
- package/app/index.html +1 -1
- package/bin/backend.bun.js +29 -29
- package/bin/backend.worker.game.bun.js +8 -8
- package/bin/backend.worker.tribunal.bun.js +50 -50
- package/bin/frontend.bun.js +15 -15
- package/bin/interactive-db.bun.js +1 -1
- package/bin/setup-db.bun.js +82 -87
- package/package.json +24 -24
- package/app/assets/index-CMk_4lqk.js +0 -62
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @bun
|
|
3
3
|
|
|
4
4
|
// __scripts__/interactive-db.bun.ts
|
|
5
|
-
import { resolve } from "path";
|
|
5
|
+
import { resolve } from "node:path";
|
|
6
6
|
var {$ } = globalThis.Bun;
|
|
7
7
|
var applicationRoot = resolve(import.meta.dir, `..`);
|
|
8
8
|
var drizzleConfig = resolve(applicationRoot, `drizzle.config.ts`);
|
package/bin/setup-db.bun.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// @bun
|
|
3
3
|
|
|
4
4
|
// __scripts__/setup-db.bun.ts
|
|
5
|
-
import * as os2 from "os";
|
|
6
|
-
import { resolve } from "path";
|
|
5
|
+
import * as os2 from "node:os";
|
|
6
|
+
import { resolve } from "node:path";
|
|
7
7
|
|
|
8
8
|
// ../../node_modules/.pnpm/postgres@3.4.5/node_modules/postgres/src/index.js
|
|
9
|
-
import os from "os";
|
|
10
|
-
import fs from "fs";
|
|
9
|
+
import os from "node:os";
|
|
10
|
+
import fs from "node:fs";
|
|
11
11
|
|
|
12
12
|
// ../../node_modules/.pnpm/postgres@3.4.5/node_modules/postgres/src/query.js
|
|
13
13
|
var originCache = new Map;
|
|
@@ -472,11 +472,11 @@ var kebab = { ...toKebab };
|
|
|
472
472
|
kebab.column.to = fromKebab;
|
|
473
473
|
|
|
474
474
|
// ../../node_modules/.pnpm/postgres@3.4.5/node_modules/postgres/src/connection.js
|
|
475
|
-
import net from "net";
|
|
476
|
-
import tls from "tls";
|
|
477
|
-
import crypto from "crypto";
|
|
478
|
-
import Stream from "stream";
|
|
479
|
-
import { performance } from "perf_hooks";
|
|
475
|
+
import net from "node:net";
|
|
476
|
+
import tls from "node:tls";
|
|
477
|
+
import crypto from "node:crypto";
|
|
478
|
+
import Stream from "node:stream";
|
|
479
|
+
import { performance } from "node:perf_hooks";
|
|
480
480
|
|
|
481
481
|
// ../../node_modules/.pnpm/postgres@3.4.5/node_modules/postgres/src/result.js
|
|
482
482
|
class Result extends Array {
|
|
@@ -603,8 +603,7 @@ var Flush = bytes_default().H().end();
|
|
|
603
603
|
var SSLRequest = bytes_default().i32(8).i32(80877103).end(8);
|
|
604
604
|
var ExecuteUnnamed = Buffer.concat([bytes_default().E().str(bytes_default.N).i32(0).end(), Sync]);
|
|
605
605
|
var DescribeUnnamed = bytes_default().D().str("S").str(bytes_default.N).end();
|
|
606
|
-
var noop = () => {
|
|
607
|
-
};
|
|
606
|
+
var noop = () => {};
|
|
608
607
|
var retryRoutines = new Set([
|
|
609
608
|
"FetchPreparedStatement",
|
|
610
609
|
"RevalidateCachedQuery",
|
|
@@ -1191,8 +1190,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
|
|
1191
1190
|
function NoticeResponse(x) {
|
|
1192
1191
|
onnotice ? onnotice(parseError(x)) : console.log(parseError(x));
|
|
1193
1192
|
}
|
|
1194
|
-
function EmptyQueryResponse() {
|
|
1195
|
-
}
|
|
1193
|
+
function EmptyQueryResponse() {}
|
|
1196
1194
|
function FunctionCallResponse() {
|
|
1197
1195
|
errored(Errors.notSupported("FunctionCallResponse"));
|
|
1198
1196
|
}
|
|
@@ -1295,8 +1293,7 @@ function timer(fn, seconds) {
|
|
|
1295
1293
|
}
|
|
1296
1294
|
|
|
1297
1295
|
// ../../node_modules/.pnpm/postgres@3.4.5/node_modules/postgres/src/subscribe.js
|
|
1298
|
-
var noop2 = () => {
|
|
1299
|
-
};
|
|
1296
|
+
var noop2 = () => {};
|
|
1300
1297
|
function Subscribe(postgres2, options) {
|
|
1301
1298
|
const subscribers = new Map, slot = "postgresjs_" + Math.random().toString(36).slice(2), state = {};
|
|
1302
1299
|
let connection2, stream, ended = false;
|
|
@@ -1427,10 +1424,8 @@ function parse(x, state, parsers2, handle, transform) {
|
|
|
1427
1424
|
i += 4;
|
|
1428
1425
|
}
|
|
1429
1426
|
},
|
|
1430
|
-
Y: () => {
|
|
1431
|
-
},
|
|
1432
|
-
O: () => {
|
|
1433
|
-
},
|
|
1427
|
+
Y: () => {},
|
|
1428
|
+
O: () => {},
|
|
1434
1429
|
B: (x2) => {
|
|
1435
1430
|
state.date = Time(x2.readBigInt64BE(9));
|
|
1436
1431
|
state.lsn = x2.subarray(1, 9);
|
|
@@ -1470,10 +1465,8 @@ function parse(x, state, parsers2, handle, transform) {
|
|
|
1470
1465
|
old: xs && xs.row
|
|
1471
1466
|
});
|
|
1472
1467
|
},
|
|
1473
|
-
T: () => {
|
|
1474
|
-
}
|
|
1475
|
-
C: () => {
|
|
1476
|
-
}
|
|
1468
|
+
T: () => {},
|
|
1469
|
+
C: () => {}
|
|
1477
1470
|
}).reduce(char, {})[x[0]](x);
|
|
1478
1471
|
}
|
|
1479
1472
|
function tuples(x, columns, xi, transform) {
|
|
@@ -1496,7 +1489,7 @@ function parseEvent(x) {
|
|
|
1496
1489
|
}
|
|
1497
1490
|
|
|
1498
1491
|
// ../../node_modules/.pnpm/postgres@3.4.5/node_modules/postgres/src/large.js
|
|
1499
|
-
import Stream2 from "stream";
|
|
1492
|
+
import Stream2 from "node:stream";
|
|
1500
1493
|
function largeObject(sql, oid, mode = 131072 | 262144) {
|
|
1501
1494
|
return new Promise(async (resolve, reject) => {
|
|
1502
1495
|
await sql.begin(async (sql2) => {
|
|
@@ -1663,8 +1656,7 @@ function Postgres(a, b2) {
|
|
|
1663
1656
|
onclose() {
|
|
1664
1657
|
Object.entries(listen.channels).forEach(([name2, { listeners }]) => {
|
|
1665
1658
|
delete listen.channels[name2];
|
|
1666
|
-
Promise.all(listeners.map((l) => listen(name2, l.fn, l.onlisten).catch(() => {
|
|
1667
|
-
})));
|
|
1659
|
+
Promise.all(listeners.map((l) => listen(name2, l.fn, l.onlisten).catch(() => {})));
|
|
1668
1660
|
});
|
|
1669
1661
|
},
|
|
1670
1662
|
onnotify(c, x) {
|
|
@@ -1955,7 +1947,7 @@ function osUsername() {
|
|
|
1955
1947
|
}
|
|
1956
1948
|
}
|
|
1957
1949
|
|
|
1958
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
1950
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/entity.js
|
|
1959
1951
|
var entityKind = Symbol.for("drizzle:entityKind");
|
|
1960
1952
|
var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
|
1961
1953
|
function is(value, type) {
|
|
@@ -1980,7 +1972,7 @@ function is(value, type) {
|
|
|
1980
1972
|
return false;
|
|
1981
1973
|
}
|
|
1982
1974
|
|
|
1983
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
1975
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/logger.js
|
|
1984
1976
|
class ConsoleLogWriter {
|
|
1985
1977
|
static [entityKind] = "ConsoleLogWriter";
|
|
1986
1978
|
write(message) {
|
|
@@ -2009,11 +2001,10 @@ class DefaultLogger {
|
|
|
2009
2001
|
|
|
2010
2002
|
class NoopLogger {
|
|
2011
2003
|
static [entityKind] = "NoopLogger";
|
|
2012
|
-
logQuery() {
|
|
2013
|
-
}
|
|
2004
|
+
logQuery() {}
|
|
2014
2005
|
}
|
|
2015
2006
|
|
|
2016
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2007
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/query-promise.js
|
|
2017
2008
|
class QueryPromise {
|
|
2018
2009
|
static [entityKind] = "QueryPromise";
|
|
2019
2010
|
[Symbol.toStringTag] = "QueryPromise";
|
|
@@ -2034,7 +2025,7 @@ class QueryPromise {
|
|
|
2034
2025
|
}
|
|
2035
2026
|
}
|
|
2036
2027
|
|
|
2037
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2028
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/column.js
|
|
2038
2029
|
class Column {
|
|
2039
2030
|
constructor(table, config) {
|
|
2040
2031
|
this.table = table;
|
|
@@ -2084,20 +2075,20 @@ class Column {
|
|
|
2084
2075
|
}
|
|
2085
2076
|
}
|
|
2086
2077
|
|
|
2087
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2078
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/table.utils.js
|
|
2088
2079
|
var TableName = Symbol.for("drizzle:Name");
|
|
2089
2080
|
|
|
2090
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2081
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/tracing-utils.js
|
|
2091
2082
|
function iife(fn, ...args) {
|
|
2092
2083
|
return fn(...args);
|
|
2093
2084
|
}
|
|
2094
2085
|
|
|
2095
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2086
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/unique-constraint.js
|
|
2096
2087
|
function uniqueKeyName(table, columns) {
|
|
2097
2088
|
return `${table[TableName]}_${columns.join("_")}_unique`;
|
|
2098
2089
|
}
|
|
2099
2090
|
|
|
2100
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2091
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/common.js
|
|
2101
2092
|
class PgColumn extends Column {
|
|
2102
2093
|
constructor(table, config) {
|
|
2103
2094
|
if (!config.uniqueName) {
|
|
@@ -2146,7 +2137,7 @@ class ExtraConfigColumn extends PgColumn {
|
|
|
2146
2137
|
}
|
|
2147
2138
|
}
|
|
2148
2139
|
|
|
2149
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2140
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/enum.js
|
|
2150
2141
|
var isPgEnumSym = Symbol.for("drizzle:isPgEnum");
|
|
2151
2142
|
function isPgEnum(obj) {
|
|
2152
2143
|
return !!obj && typeof obj === "function" && isPgEnumSym in obj && obj[isPgEnumSym] === true;
|
|
@@ -2164,7 +2155,7 @@ class PgEnumColumn extends PgColumn {
|
|
|
2164
2155
|
}
|
|
2165
2156
|
}
|
|
2166
2157
|
|
|
2167
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2158
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/subquery.js
|
|
2168
2159
|
class Subquery {
|
|
2169
2160
|
static [entityKind] = "Subquery";
|
|
2170
2161
|
constructor(sql, selection, alias, isWith = false) {
|
|
@@ -2182,10 +2173,10 @@ class WithSubquery extends Subquery {
|
|
|
2182
2173
|
static [entityKind] = "WithSubquery";
|
|
2183
2174
|
}
|
|
2184
2175
|
|
|
2185
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2186
|
-
var version = "0.
|
|
2176
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/version.js
|
|
2177
|
+
var version = "0.41.0";
|
|
2187
2178
|
|
|
2188
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2179
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/tracing.js
|
|
2189
2180
|
var otel;
|
|
2190
2181
|
var rawTracer;
|
|
2191
2182
|
var tracer = {
|
|
@@ -2212,10 +2203,10 @@ var tracer = {
|
|
|
2212
2203
|
}
|
|
2213
2204
|
};
|
|
2214
2205
|
|
|
2215
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2206
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/view-common.js
|
|
2216
2207
|
var ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
2217
2208
|
|
|
2218
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2209
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/table.js
|
|
2219
2210
|
var Schema = Symbol.for("drizzle:Schema");
|
|
2220
2211
|
var Columns = Symbol.for("drizzle:Columns");
|
|
2221
2212
|
var ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
|
|
@@ -2259,7 +2250,7 @@ function getTableUniqueName(table) {
|
|
|
2259
2250
|
return `${table[Schema] ?? "public"}.${table[TableName]}`;
|
|
2260
2251
|
}
|
|
2261
2252
|
|
|
2262
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2253
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/sql/sql.js
|
|
2263
2254
|
function isSQLWrapper(value) {
|
|
2264
2255
|
return value !== null && value !== undefined && typeof value.getSQL === "function";
|
|
2265
2256
|
}
|
|
@@ -2632,7 +2623,7 @@ Subquery.prototype.getSQL = function() {
|
|
|
2632
2623
|
return new SQL([this]);
|
|
2633
2624
|
};
|
|
2634
2625
|
|
|
2635
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2626
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/alias.js
|
|
2636
2627
|
class ColumnAliasProxyHandler {
|
|
2637
2628
|
constructor(table) {
|
|
2638
2629
|
this.table = table;
|
|
@@ -2711,7 +2702,7 @@ function mapColumnsInSQLToAlias(query, alias) {
|
|
|
2711
2702
|
}));
|
|
2712
2703
|
}
|
|
2713
2704
|
|
|
2714
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2705
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/selection-proxy.js
|
|
2715
2706
|
class SelectionProxyHandler {
|
|
2716
2707
|
static [entityKind] = "SelectionProxyHandler";
|
|
2717
2708
|
config;
|
|
@@ -2763,7 +2754,7 @@ class SelectionProxyHandler {
|
|
|
2763
2754
|
}
|
|
2764
2755
|
}
|
|
2765
2756
|
|
|
2766
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2757
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/utils.js
|
|
2767
2758
|
function mapResultRow(columns, row, joinsNotNullableMap) {
|
|
2768
2759
|
const nullifyMap = {};
|
|
2769
2760
|
const result = columns.reduce((result2, { path, field }, columnIndex) => {
|
|
@@ -2875,13 +2866,13 @@ function isConfig(data) {
|
|
|
2875
2866
|
return true;
|
|
2876
2867
|
}
|
|
2877
2868
|
if ("schema" in data) {
|
|
2878
|
-
const type = typeof data["
|
|
2869
|
+
const type = typeof data["schema"];
|
|
2879
2870
|
if (type !== "object" && type !== "undefined")
|
|
2880
2871
|
return false;
|
|
2881
2872
|
return true;
|
|
2882
2873
|
}
|
|
2883
2874
|
if ("casing" in data) {
|
|
2884
|
-
const type = typeof data["
|
|
2875
|
+
const type = typeof data["casing"];
|
|
2885
2876
|
if (type !== "string" && type !== "undefined")
|
|
2886
2877
|
return false;
|
|
2887
2878
|
return true;
|
|
@@ -2908,7 +2899,7 @@ function isConfig(data) {
|
|
|
2908
2899
|
return false;
|
|
2909
2900
|
}
|
|
2910
2901
|
|
|
2911
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2902
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/delete.js
|
|
2912
2903
|
class PgDeleteBase extends QueryPromise {
|
|
2913
2904
|
constructor(table, session, dialect, withList) {
|
|
2914
2905
|
super();
|
|
@@ -2964,7 +2955,7 @@ class PgDeleteBase extends QueryPromise {
|
|
|
2964
2955
|
}
|
|
2965
2956
|
}
|
|
2966
2957
|
|
|
2967
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2958
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/casing.js
|
|
2968
2959
|
function toSnakeCase(input) {
|
|
2969
2960
|
const words = input.replace(/['\u2019]/g, "").match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g) ?? [];
|
|
2970
2961
|
return words.map((word) => word.toLowerCase()).join("_");
|
|
@@ -3017,7 +3008,7 @@ class CasingCache {
|
|
|
3017
3008
|
}
|
|
3018
3009
|
}
|
|
3019
3010
|
|
|
3020
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3011
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/errors.js
|
|
3021
3012
|
class DrizzleError extends Error {
|
|
3022
3013
|
static [entityKind] = "DrizzleError";
|
|
3023
3014
|
constructor({ message, cause }) {
|
|
@@ -3034,7 +3025,7 @@ class TransactionRollbackError extends DrizzleError {
|
|
|
3034
3025
|
}
|
|
3035
3026
|
}
|
|
3036
3027
|
|
|
3037
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3028
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/date.js
|
|
3038
3029
|
class PgDate extends PgColumn {
|
|
3039
3030
|
static [entityKind] = "PgDate";
|
|
3040
3031
|
getSQLType() {
|
|
@@ -3054,7 +3045,7 @@ class PgDateString extends PgColumn {
|
|
|
3054
3045
|
}
|
|
3055
3046
|
}
|
|
3056
3047
|
|
|
3057
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3048
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/json.js
|
|
3058
3049
|
class PgJson extends PgColumn {
|
|
3059
3050
|
static [entityKind] = "PgJson";
|
|
3060
3051
|
constructor(table, config) {
|
|
@@ -3078,7 +3069,7 @@ class PgJson extends PgColumn {
|
|
|
3078
3069
|
}
|
|
3079
3070
|
}
|
|
3080
3071
|
|
|
3081
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3072
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/jsonb.js
|
|
3082
3073
|
class PgJsonb extends PgColumn {
|
|
3083
3074
|
static [entityKind] = "PgJsonb";
|
|
3084
3075
|
constructor(table, config) {
|
|
@@ -3102,7 +3093,7 @@ class PgJsonb extends PgColumn {
|
|
|
3102
3093
|
}
|
|
3103
3094
|
}
|
|
3104
3095
|
|
|
3105
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3096
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/numeric.js
|
|
3106
3097
|
class PgNumeric extends PgColumn {
|
|
3107
3098
|
static [entityKind] = "PgNumeric";
|
|
3108
3099
|
precision;
|
|
@@ -3112,6 +3103,11 @@ class PgNumeric extends PgColumn {
|
|
|
3112
3103
|
this.precision = config.precision;
|
|
3113
3104
|
this.scale = config.scale;
|
|
3114
3105
|
}
|
|
3106
|
+
mapFromDriverValue(value) {
|
|
3107
|
+
if (typeof value === "string")
|
|
3108
|
+
return value;
|
|
3109
|
+
return String(value);
|
|
3110
|
+
}
|
|
3115
3111
|
getSQLType() {
|
|
3116
3112
|
if (this.precision !== undefined && this.scale !== undefined) {
|
|
3117
3113
|
return `numeric(${this.precision}, ${this.scale})`;
|
|
@@ -3123,7 +3119,7 @@ class PgNumeric extends PgColumn {
|
|
|
3123
3119
|
}
|
|
3124
3120
|
}
|
|
3125
3121
|
|
|
3126
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3122
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/time.js
|
|
3127
3123
|
class PgTime extends PgColumn {
|
|
3128
3124
|
static [entityKind] = "PgTime";
|
|
3129
3125
|
withTimezone;
|
|
@@ -3139,7 +3135,7 @@ class PgTime extends PgColumn {
|
|
|
3139
3135
|
}
|
|
3140
3136
|
}
|
|
3141
3137
|
|
|
3142
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3138
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/timestamp.js
|
|
3143
3139
|
class PgTimestamp extends PgColumn {
|
|
3144
3140
|
static [entityKind] = "PgTimestamp";
|
|
3145
3141
|
withTimezone;
|
|
@@ -3175,7 +3171,7 @@ class PgTimestampString extends PgColumn {
|
|
|
3175
3171
|
}
|
|
3176
3172
|
}
|
|
3177
3173
|
|
|
3178
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3174
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/uuid.js
|
|
3179
3175
|
class PgUUID extends PgColumn {
|
|
3180
3176
|
static [entityKind] = "PgUUID";
|
|
3181
3177
|
getSQLType() {
|
|
@@ -3183,7 +3179,7 @@ class PgUUID extends PgColumn {
|
|
|
3183
3179
|
}
|
|
3184
3180
|
}
|
|
3185
3181
|
|
|
3186
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3182
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/table.js
|
|
3187
3183
|
var InlineForeignKeys = Symbol.for("drizzle:PgInlineForeignKeys");
|
|
3188
3184
|
var EnableRLS = Symbol.for("drizzle:EnableRLS");
|
|
3189
3185
|
|
|
@@ -3199,7 +3195,7 @@ class PgTable extends Table {
|
|
|
3199
3195
|
[Table.Symbol.ExtraConfigColumns] = {};
|
|
3200
3196
|
}
|
|
3201
3197
|
|
|
3202
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3198
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/primary-keys.js
|
|
3203
3199
|
class PrimaryKeyBuilder {
|
|
3204
3200
|
static [entityKind] = "PgPrimaryKeyBuilder";
|
|
3205
3201
|
columns;
|
|
@@ -3227,7 +3223,7 @@ class PrimaryKey {
|
|
|
3227
3223
|
}
|
|
3228
3224
|
}
|
|
3229
3225
|
|
|
3230
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3226
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/sql/expressions/conditions.js
|
|
3231
3227
|
function bindIfParam(value, column) {
|
|
3232
3228
|
if (isDriverValueEncoder(column) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column) && !is(value, Table) && !is(value, View)) {
|
|
3233
3229
|
return new Param(value, column);
|
|
@@ -3332,7 +3328,7 @@ function notIlike(column, value) {
|
|
|
3332
3328
|
return sql`${column} not ilike ${value}`;
|
|
3333
3329
|
}
|
|
3334
3330
|
|
|
3335
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3331
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/sql/expressions/select.js
|
|
3336
3332
|
function asc(column) {
|
|
3337
3333
|
return sql`${column} asc`;
|
|
3338
3334
|
}
|
|
@@ -3340,7 +3336,7 @@ function desc(column) {
|
|
|
3340
3336
|
return sql`${column} desc`;
|
|
3341
3337
|
}
|
|
3342
3338
|
|
|
3343
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3339
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/relations.js
|
|
3344
3340
|
class Relation {
|
|
3345
3341
|
constructor(sourceTable, referencedTable, relationName) {
|
|
3346
3342
|
this.sourceTable = sourceTable;
|
|
@@ -3560,12 +3556,12 @@ function mapRelationalRow(tablesConfig, tableConfig, row, buildQueryResultSelect
|
|
|
3560
3556
|
return result;
|
|
3561
3557
|
}
|
|
3562
3558
|
|
|
3563
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3559
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/view-base.js
|
|
3564
3560
|
class PgViewBase extends View {
|
|
3565
3561
|
static [entityKind] = "PgViewBase";
|
|
3566
3562
|
}
|
|
3567
3563
|
|
|
3568
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3564
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/dialect.js
|
|
3569
3565
|
class PgDialect {
|
|
3570
3566
|
static [entityKind] = "PgDialect";
|
|
3571
3567
|
casing;
|
|
@@ -3721,7 +3717,7 @@ class PgDialect {
|
|
|
3721
3717
|
return sql.join(joinsArray);
|
|
3722
3718
|
}
|
|
3723
3719
|
buildFromTable(table) {
|
|
3724
|
-
if (is(table, Table) && table[Table.Symbol.
|
|
3720
|
+
if (is(table, Table) && table[Table.Symbol.IsAlias]) {
|
|
3725
3721
|
let fullName = sql`${sql.identifier(table[Table.Symbol.OriginalName])}`;
|
|
3726
3722
|
if (table[Table.Symbol.Schema]) {
|
|
3727
3723
|
fullName = sql`${sql.identifier(table[Table.Symbol.Schema])}.${fullName}`;
|
|
@@ -4122,7 +4118,7 @@ class PgDialect {
|
|
|
4122
4118
|
}
|
|
4123
4119
|
}
|
|
4124
4120
|
|
|
4125
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4121
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/query-builders/query-builder.js
|
|
4126
4122
|
class TypedQueryBuilder {
|
|
4127
4123
|
static [entityKind] = "TypedQueryBuilder";
|
|
4128
4124
|
getSelectedFields() {
|
|
@@ -4130,7 +4126,7 @@ class TypedQueryBuilder {
|
|
|
4130
4126
|
}
|
|
4131
4127
|
}
|
|
4132
4128
|
|
|
4133
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4129
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/select.js
|
|
4134
4130
|
class PgSelectBuilder {
|
|
4135
4131
|
static [entityKind] = "PgSelectBuilder";
|
|
4136
4132
|
fields;
|
|
@@ -4419,7 +4415,7 @@ var intersectAll = createSetOperator("intersect", true);
|
|
|
4419
4415
|
var except = createSetOperator("except", false);
|
|
4420
4416
|
var exceptAll = createSetOperator("except", true);
|
|
4421
4417
|
|
|
4422
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4418
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
|
|
4423
4419
|
class QueryBuilder {
|
|
4424
4420
|
static [entityKind] = "PgQueryBuilder";
|
|
4425
4421
|
dialect;
|
|
@@ -4497,7 +4493,7 @@ class QueryBuilder {
|
|
|
4497
4493
|
}
|
|
4498
4494
|
}
|
|
4499
4495
|
|
|
4500
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4496
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/insert.js
|
|
4501
4497
|
class PgInsertBuilder {
|
|
4502
4498
|
constructor(table, session, dialect, withList, overridingSystemValue_) {
|
|
4503
4499
|
this.table = table;
|
|
@@ -4616,7 +4612,7 @@ class PgInsertBase extends QueryPromise {
|
|
|
4616
4612
|
}
|
|
4617
4613
|
}
|
|
4618
4614
|
|
|
4619
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4615
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
|
|
4620
4616
|
class PgRefreshMaterializedView extends QueryPromise {
|
|
4621
4617
|
constructor(view, session, dialect) {
|
|
4622
4618
|
super();
|
|
@@ -4667,7 +4663,7 @@ class PgRefreshMaterializedView extends QueryPromise {
|
|
|
4667
4663
|
};
|
|
4668
4664
|
}
|
|
4669
4665
|
|
|
4670
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4666
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/update.js
|
|
4671
4667
|
class PgUpdateBuilder {
|
|
4672
4668
|
constructor(table, session, dialect, withList) {
|
|
4673
4669
|
this.table = table;
|
|
@@ -4817,7 +4813,7 @@ class PgUpdateBase extends QueryPromise {
|
|
|
4817
4813
|
}
|
|
4818
4814
|
}
|
|
4819
4815
|
|
|
4820
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4816
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/count.js
|
|
4821
4817
|
class PgCountBuilder extends SQL {
|
|
4822
4818
|
constructor(params) {
|
|
4823
4819
|
super(PgCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
|
@@ -4858,7 +4854,7 @@ class PgCountBuilder extends SQL {
|
|
|
4858
4854
|
}
|
|
4859
4855
|
}
|
|
4860
4856
|
|
|
4861
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4857
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/query.js
|
|
4862
4858
|
class RelationalQueryBuilder {
|
|
4863
4859
|
constructor(fullSchema, schema, tableNamesMap, table, tableConfig, dialect, session) {
|
|
4864
4860
|
this.fullSchema = fullSchema;
|
|
@@ -4941,7 +4937,7 @@ class PgRelationalQuery extends QueryPromise {
|
|
|
4941
4937
|
}
|
|
4942
4938
|
}
|
|
4943
4939
|
|
|
4944
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4940
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/raw.js
|
|
4945
4941
|
class PgRaw extends QueryPromise {
|
|
4946
4942
|
constructor(execute, sql2, query, mapBatchResult) {
|
|
4947
4943
|
super();
|
|
@@ -4968,7 +4964,7 @@ class PgRaw extends QueryPromise {
|
|
|
4968
4964
|
}
|
|
4969
4965
|
}
|
|
4970
4966
|
|
|
4971
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4967
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/db.js
|
|
4972
4968
|
class PgDatabase {
|
|
4973
4969
|
constructor(dialect, session, schema) {
|
|
4974
4970
|
this.dialect = dialect;
|
|
@@ -5092,7 +5088,7 @@ class PgDatabase {
|
|
|
5092
5088
|
}
|
|
5093
5089
|
}
|
|
5094
5090
|
|
|
5095
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
5091
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/session.js
|
|
5096
5092
|
class PgPreparedQuery {
|
|
5097
5093
|
constructor(query) {
|
|
5098
5094
|
this.query = query;
|
|
@@ -5162,7 +5158,7 @@ class PgTransaction extends PgDatabase {
|
|
|
5162
5158
|
}
|
|
5163
5159
|
}
|
|
5164
5160
|
|
|
5165
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
5161
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/postgres-js/session.js
|
|
5166
5162
|
class PostgresJsPreparedQuery extends PgPreparedQuery {
|
|
5167
5163
|
constructor(client, queryString, params, logger, fields, _isResponseInArrayMode, customResultMapper) {
|
|
5168
5164
|
super({ sql: queryString, params });
|
|
@@ -5270,13 +5266,13 @@ class PostgresJsTransaction extends PgTransaction {
|
|
|
5270
5266
|
}
|
|
5271
5267
|
}
|
|
5272
5268
|
|
|
5273
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
5269
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/postgres-js/driver.js
|
|
5274
5270
|
class PostgresJsDatabase extends PgDatabase {
|
|
5275
5271
|
static [entityKind] = "PostgresJsDatabase";
|
|
5276
5272
|
}
|
|
5277
5273
|
function construct(client, config = {}) {
|
|
5278
5274
|
const transparentParser = (val) => val;
|
|
5279
|
-
for (const type of ["1184", "1082", "1083", "1114"]) {
|
|
5275
|
+
for (const type of ["1184", "1082", "1083", "1114", "1182", "1185", "1115", "1231"]) {
|
|
5280
5276
|
client.options.parsers[type] = transparentParser;
|
|
5281
5277
|
client.options.serializers[type] = transparentParser;
|
|
5282
5278
|
}
|
|
@@ -5334,9 +5330,9 @@ function drizzle(...params) {
|
|
|
5334
5330
|
drizzle2.mock = mock;
|
|
5335
5331
|
})(drizzle || (drizzle = {}));
|
|
5336
5332
|
|
|
5337
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
5338
|
-
import crypto2 from "crypto";
|
|
5339
|
-
import fs2 from "fs";
|
|
5333
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/migrator.js
|
|
5334
|
+
import crypto2 from "node:crypto";
|
|
5335
|
+
import fs2 from "node:fs";
|
|
5340
5336
|
function readMigrationFiles(config) {
|
|
5341
5337
|
const migrationFolderTo = config.migrationsFolder;
|
|
5342
5338
|
const migrationQueries = [];
|
|
@@ -5366,7 +5362,7 @@ function readMigrationFiles(config) {
|
|
|
5366
5362
|
return migrationQueries;
|
|
5367
5363
|
}
|
|
5368
5364
|
|
|
5369
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
5365
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.7_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/postgres-js/migrator.js
|
|
5370
5366
|
async function migrate(db, config) {
|
|
5371
5367
|
const migrations = readMigrationFiles(config);
|
|
5372
5368
|
await db.dialect.migrate(migrations, db.session, config);
|
|
@@ -5473,8 +5469,7 @@ function createEnv(opts) {
|
|
|
5473
5469
|
var util;
|
|
5474
5470
|
(function(util2) {
|
|
5475
5471
|
util2.assertEqual = (val) => val;
|
|
5476
|
-
function assertIs(_arg) {
|
|
5477
|
-
}
|
|
5472
|
+
function assertIs(_arg) {}
|
|
5478
5473
|
util2.assertIs = assertIs;
|
|
5479
5474
|
function assertNever(_x) {
|
|
5480
5475
|
throw new Error;
|