tempest.games 0.1.29 → 0.1.30
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 +7 -0
- package/app/assets/index-Bi0ww1qK.js +62 -0
- package/app/index.html +1 -1
- package/bin/backend.bun.js +34 -27
- package/bin/backend.worker.game.bun.js +14 -7
- package/bin/backend.worker.tribunal.bun.js +58 -46
- package/bin/frontend.bun.js +21 -14
- package/bin/setup-db.bun.js +75 -59
- package/package.json +27 -27
- package/app/assets/index-CWk69Ui7.js +0 -55
package/bin/setup-db.bun.js
CHANGED
|
@@ -1955,7 +1955,7 @@ function osUsername() {
|
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
1957
|
|
|
1958
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
1958
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/entity.js
|
|
1959
1959
|
var entityKind = Symbol.for("drizzle:entityKind");
|
|
1960
1960
|
var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
|
1961
1961
|
function is(value, type) {
|
|
@@ -1980,7 +1980,7 @@ function is(value, type) {
|
|
|
1980
1980
|
return false;
|
|
1981
1981
|
}
|
|
1982
1982
|
|
|
1983
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
1983
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/logger.js
|
|
1984
1984
|
class ConsoleLogWriter {
|
|
1985
1985
|
static [entityKind] = "ConsoleLogWriter";
|
|
1986
1986
|
write(message) {
|
|
@@ -2013,7 +2013,7 @@ class NoopLogger {
|
|
|
2013
2013
|
}
|
|
2014
2014
|
}
|
|
2015
2015
|
|
|
2016
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2016
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/query-promise.js
|
|
2017
2017
|
class QueryPromise {
|
|
2018
2018
|
static [entityKind] = "QueryPromise";
|
|
2019
2019
|
[Symbol.toStringTag] = "QueryPromise";
|
|
@@ -2034,7 +2034,7 @@ class QueryPromise {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
}
|
|
2036
2036
|
|
|
2037
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2037
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/column.js
|
|
2038
2038
|
class Column {
|
|
2039
2039
|
constructor(table, config) {
|
|
2040
2040
|
this.table = table;
|
|
@@ -2084,20 +2084,20 @@ class Column {
|
|
|
2084
2084
|
}
|
|
2085
2085
|
}
|
|
2086
2086
|
|
|
2087
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2087
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/table.utils.js
|
|
2088
2088
|
var TableName = Symbol.for("drizzle:Name");
|
|
2089
2089
|
|
|
2090
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2090
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/tracing-utils.js
|
|
2091
2091
|
function iife(fn, ...args) {
|
|
2092
2092
|
return fn(...args);
|
|
2093
2093
|
}
|
|
2094
2094
|
|
|
2095
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2095
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/unique-constraint.js
|
|
2096
2096
|
function uniqueKeyName(table, columns) {
|
|
2097
2097
|
return `${table[TableName]}_${columns.join("_")}_unique`;
|
|
2098
2098
|
}
|
|
2099
2099
|
|
|
2100
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2100
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/common.js
|
|
2101
2101
|
class PgColumn extends Column {
|
|
2102
2102
|
constructor(table, config) {
|
|
2103
2103
|
if (!config.uniqueName) {
|
|
@@ -2146,7 +2146,7 @@ class ExtraConfigColumn extends PgColumn {
|
|
|
2146
2146
|
}
|
|
2147
2147
|
}
|
|
2148
2148
|
|
|
2149
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2149
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/enum.js
|
|
2150
2150
|
var isPgEnumSym = Symbol.for("drizzle:isPgEnum");
|
|
2151
2151
|
function isPgEnum(obj) {
|
|
2152
2152
|
return !!obj && typeof obj === "function" && isPgEnumSym in obj && obj[isPgEnumSym] === true;
|
|
@@ -2164,7 +2164,7 @@ class PgEnumColumn extends PgColumn {
|
|
|
2164
2164
|
}
|
|
2165
2165
|
}
|
|
2166
2166
|
|
|
2167
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2167
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/subquery.js
|
|
2168
2168
|
class Subquery {
|
|
2169
2169
|
static [entityKind] = "Subquery";
|
|
2170
2170
|
constructor(sql, selection, alias, isWith = false) {
|
|
@@ -2182,10 +2182,10 @@ class WithSubquery extends Subquery {
|
|
|
2182
2182
|
static [entityKind] = "WithSubquery";
|
|
2183
2183
|
}
|
|
2184
2184
|
|
|
2185
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2186
|
-
var version = "0.39.
|
|
2185
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/version.js
|
|
2186
|
+
var version = "0.39.3";
|
|
2187
2187
|
|
|
2188
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2188
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/tracing.js
|
|
2189
2189
|
var otel;
|
|
2190
2190
|
var rawTracer;
|
|
2191
2191
|
var tracer = {
|
|
@@ -2212,10 +2212,10 @@ var tracer = {
|
|
|
2212
2212
|
}
|
|
2213
2213
|
};
|
|
2214
2214
|
|
|
2215
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2215
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/view-common.js
|
|
2216
2216
|
var ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
2217
2217
|
|
|
2218
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2218
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/table.js
|
|
2219
2219
|
var Schema = Symbol.for("drizzle:Schema");
|
|
2220
2220
|
var Columns = Symbol.for("drizzle:Columns");
|
|
2221
2221
|
var ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
|
|
@@ -2259,7 +2259,7 @@ function getTableUniqueName(table) {
|
|
|
2259
2259
|
return `${table[Schema] ?? "public"}.${table[TableName]}`;
|
|
2260
2260
|
}
|
|
2261
2261
|
|
|
2262
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2262
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/sql/sql.js
|
|
2263
2263
|
function isSQLWrapper(value) {
|
|
2264
2264
|
return value !== null && value !== undefined && typeof value.getSQL === "function";
|
|
2265
2265
|
}
|
|
@@ -2632,7 +2632,7 @@ Subquery.prototype.getSQL = function() {
|
|
|
2632
2632
|
return new SQL([this]);
|
|
2633
2633
|
};
|
|
2634
2634
|
|
|
2635
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2635
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/alias.js
|
|
2636
2636
|
class ColumnAliasProxyHandler {
|
|
2637
2637
|
constructor(table) {
|
|
2638
2638
|
this.table = table;
|
|
@@ -2711,7 +2711,7 @@ function mapColumnsInSQLToAlias(query, alias) {
|
|
|
2711
2711
|
}));
|
|
2712
2712
|
}
|
|
2713
2713
|
|
|
2714
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2714
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/selection-proxy.js
|
|
2715
2715
|
class SelectionProxyHandler {
|
|
2716
2716
|
static [entityKind] = "SelectionProxyHandler";
|
|
2717
2717
|
config;
|
|
@@ -2763,7 +2763,7 @@ class SelectionProxyHandler {
|
|
|
2763
2763
|
}
|
|
2764
2764
|
}
|
|
2765
2765
|
|
|
2766
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2766
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/utils.js
|
|
2767
2767
|
function mapResultRow(columns, row, joinsNotNullableMap) {
|
|
2768
2768
|
const nullifyMap = {};
|
|
2769
2769
|
const result = columns.reduce((result2, { path, field }, columnIndex) => {
|
|
@@ -2908,7 +2908,7 @@ function isConfig(data) {
|
|
|
2908
2908
|
return false;
|
|
2909
2909
|
}
|
|
2910
2910
|
|
|
2911
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2911
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/delete.js
|
|
2912
2912
|
class PgDeleteBase extends QueryPromise {
|
|
2913
2913
|
constructor(table, session, dialect, withList) {
|
|
2914
2914
|
super();
|
|
@@ -2964,7 +2964,7 @@ class PgDeleteBase extends QueryPromise {
|
|
|
2964
2964
|
}
|
|
2965
2965
|
}
|
|
2966
2966
|
|
|
2967
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
2967
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/casing.js
|
|
2968
2968
|
function toSnakeCase(input) {
|
|
2969
2969
|
const words = input.replace(/['\u2019]/g, "").match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g) ?? [];
|
|
2970
2970
|
return words.map((word) => word.toLowerCase()).join("_");
|
|
@@ -3017,7 +3017,7 @@ class CasingCache {
|
|
|
3017
3017
|
}
|
|
3018
3018
|
}
|
|
3019
3019
|
|
|
3020
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
3020
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/errors.js
|
|
3021
3021
|
class DrizzleError extends Error {
|
|
3022
3022
|
static [entityKind] = "DrizzleError";
|
|
3023
3023
|
constructor({ message, cause }) {
|
|
@@ -3034,7 +3034,7 @@ class TransactionRollbackError extends DrizzleError {
|
|
|
3034
3034
|
}
|
|
3035
3035
|
}
|
|
3036
3036
|
|
|
3037
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
3037
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/date.js
|
|
3038
3038
|
class PgDate extends PgColumn {
|
|
3039
3039
|
static [entityKind] = "PgDate";
|
|
3040
3040
|
getSQLType() {
|
|
@@ -3054,7 +3054,7 @@ class PgDateString extends PgColumn {
|
|
|
3054
3054
|
}
|
|
3055
3055
|
}
|
|
3056
3056
|
|
|
3057
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
3057
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/json.js
|
|
3058
3058
|
class PgJson extends PgColumn {
|
|
3059
3059
|
static [entityKind] = "PgJson";
|
|
3060
3060
|
constructor(table, config) {
|
|
@@ -3078,7 +3078,7 @@ class PgJson extends PgColumn {
|
|
|
3078
3078
|
}
|
|
3079
3079
|
}
|
|
3080
3080
|
|
|
3081
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
3081
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/jsonb.js
|
|
3082
3082
|
class PgJsonb extends PgColumn {
|
|
3083
3083
|
static [entityKind] = "PgJsonb";
|
|
3084
3084
|
constructor(table, config) {
|
|
@@ -3102,7 +3102,7 @@ class PgJsonb extends PgColumn {
|
|
|
3102
3102
|
}
|
|
3103
3103
|
}
|
|
3104
3104
|
|
|
3105
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
3105
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/numeric.js
|
|
3106
3106
|
class PgNumeric extends PgColumn {
|
|
3107
3107
|
static [entityKind] = "PgNumeric";
|
|
3108
3108
|
precision;
|
|
@@ -3123,7 +3123,7 @@ class PgNumeric extends PgColumn {
|
|
|
3123
3123
|
}
|
|
3124
3124
|
}
|
|
3125
3125
|
|
|
3126
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
3126
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/time.js
|
|
3127
3127
|
class PgTime extends PgColumn {
|
|
3128
3128
|
static [entityKind] = "PgTime";
|
|
3129
3129
|
withTimezone;
|
|
@@ -3139,7 +3139,7 @@ class PgTime extends PgColumn {
|
|
|
3139
3139
|
}
|
|
3140
3140
|
}
|
|
3141
3141
|
|
|
3142
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
3142
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/timestamp.js
|
|
3143
3143
|
class PgTimestamp extends PgColumn {
|
|
3144
3144
|
static [entityKind] = "PgTimestamp";
|
|
3145
3145
|
withTimezone;
|
|
@@ -3175,7 +3175,7 @@ class PgTimestampString extends PgColumn {
|
|
|
3175
3175
|
}
|
|
3176
3176
|
}
|
|
3177
3177
|
|
|
3178
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
3178
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/uuid.js
|
|
3179
3179
|
class PgUUID extends PgColumn {
|
|
3180
3180
|
static [entityKind] = "PgUUID";
|
|
3181
3181
|
getSQLType() {
|
|
@@ -3183,7 +3183,7 @@ class PgUUID extends PgColumn {
|
|
|
3183
3183
|
}
|
|
3184
3184
|
}
|
|
3185
3185
|
|
|
3186
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
3186
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/table.js
|
|
3187
3187
|
var InlineForeignKeys = Symbol.for("drizzle:PgInlineForeignKeys");
|
|
3188
3188
|
var EnableRLS = Symbol.for("drizzle:EnableRLS");
|
|
3189
3189
|
|
|
@@ -3198,7 +3198,7 @@ class PgTable extends Table {
|
|
|
3198
3198
|
[Table.Symbol.ExtraConfigBuilder] = undefined;
|
|
3199
3199
|
}
|
|
3200
3200
|
|
|
3201
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
3201
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/primary-keys.js
|
|
3202
3202
|
class PrimaryKeyBuilder {
|
|
3203
3203
|
static [entityKind] = "PgPrimaryKeyBuilder";
|
|
3204
3204
|
columns;
|
|
@@ -3226,7 +3226,7 @@ class PrimaryKey {
|
|
|
3226
3226
|
}
|
|
3227
3227
|
}
|
|
3228
3228
|
|
|
3229
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
3229
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/sql/expressions/conditions.js
|
|
3230
3230
|
function bindIfParam(value, column) {
|
|
3231
3231
|
if (isDriverValueEncoder(column) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column) && !is(value, Table) && !is(value, View)) {
|
|
3232
3232
|
return new Param(value, column);
|
|
@@ -3331,7 +3331,7 @@ function notIlike(column, value) {
|
|
|
3331
3331
|
return sql`${column} not ilike ${value}`;
|
|
3332
3332
|
}
|
|
3333
3333
|
|
|
3334
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
3334
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/sql/expressions/select.js
|
|
3335
3335
|
function asc(column) {
|
|
3336
3336
|
return sql`${column} asc`;
|
|
3337
3337
|
}
|
|
@@ -3339,7 +3339,7 @@ function desc(column) {
|
|
|
3339
3339
|
return sql`${column} desc`;
|
|
3340
3340
|
}
|
|
3341
3341
|
|
|
3342
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
3342
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/relations.js
|
|
3343
3343
|
class Relation {
|
|
3344
3344
|
constructor(sourceTable, referencedTable, relationName) {
|
|
3345
3345
|
this.sourceTable = sourceTable;
|
|
@@ -3559,12 +3559,12 @@ function mapRelationalRow(tablesConfig, tableConfig, row, buildQueryResultSelect
|
|
|
3559
3559
|
return result;
|
|
3560
3560
|
}
|
|
3561
3561
|
|
|
3562
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
3562
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/view-base.js
|
|
3563
3563
|
class PgViewBase extends View {
|
|
3564
3564
|
static [entityKind] = "PgViewBase";
|
|
3565
3565
|
}
|
|
3566
3566
|
|
|
3567
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
3567
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/dialect.js
|
|
3568
3568
|
class PgDialect {
|
|
3569
3569
|
static [entityKind] = "PgDialect";
|
|
3570
3570
|
casing;
|
|
@@ -4121,7 +4121,7 @@ class PgDialect {
|
|
|
4121
4121
|
}
|
|
4122
4122
|
}
|
|
4123
4123
|
|
|
4124
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
4124
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/query-builders/query-builder.js
|
|
4125
4125
|
class TypedQueryBuilder {
|
|
4126
4126
|
static [entityKind] = "TypedQueryBuilder";
|
|
4127
4127
|
getSelectedFields() {
|
|
@@ -4129,7 +4129,7 @@ class TypedQueryBuilder {
|
|
|
4129
4129
|
}
|
|
4130
4130
|
}
|
|
4131
4131
|
|
|
4132
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
4132
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/select.js
|
|
4133
4133
|
class PgSelectBuilder {
|
|
4134
4134
|
static [entityKind] = "PgSelectBuilder";
|
|
4135
4135
|
fields;
|
|
@@ -4418,7 +4418,7 @@ var intersectAll = createSetOperator("intersect", true);
|
|
|
4418
4418
|
var except = createSetOperator("except", false);
|
|
4419
4419
|
var exceptAll = createSetOperator("except", true);
|
|
4420
4420
|
|
|
4421
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
4421
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
|
|
4422
4422
|
class QueryBuilder {
|
|
4423
4423
|
static [entityKind] = "PgQueryBuilder";
|
|
4424
4424
|
dialect;
|
|
@@ -4496,7 +4496,7 @@ class QueryBuilder {
|
|
|
4496
4496
|
}
|
|
4497
4497
|
}
|
|
4498
4498
|
|
|
4499
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
4499
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/insert.js
|
|
4500
4500
|
class PgInsertBuilder {
|
|
4501
4501
|
constructor(table, session, dialect, withList, overridingSystemValue_) {
|
|
4502
4502
|
this.table = table;
|
|
@@ -4615,7 +4615,7 @@ class PgInsertBase extends QueryPromise {
|
|
|
4615
4615
|
}
|
|
4616
4616
|
}
|
|
4617
4617
|
|
|
4618
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
4618
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
|
|
4619
4619
|
class PgRefreshMaterializedView extends QueryPromise {
|
|
4620
4620
|
constructor(view, session, dialect) {
|
|
4621
4621
|
super();
|
|
@@ -4666,7 +4666,7 @@ class PgRefreshMaterializedView extends QueryPromise {
|
|
|
4666
4666
|
};
|
|
4667
4667
|
}
|
|
4668
4668
|
|
|
4669
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
4669
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/update.js
|
|
4670
4670
|
class PgUpdateBuilder {
|
|
4671
4671
|
constructor(table, session, dialect, withList) {
|
|
4672
4672
|
this.table = table;
|
|
@@ -4816,7 +4816,7 @@ class PgUpdateBase extends QueryPromise {
|
|
|
4816
4816
|
}
|
|
4817
4817
|
}
|
|
4818
4818
|
|
|
4819
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
4819
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/count.js
|
|
4820
4820
|
class PgCountBuilder extends SQL {
|
|
4821
4821
|
constructor(params) {
|
|
4822
4822
|
super(PgCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
|
@@ -4857,7 +4857,7 @@ class PgCountBuilder extends SQL {
|
|
|
4857
4857
|
}
|
|
4858
4858
|
}
|
|
4859
4859
|
|
|
4860
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
4860
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/query.js
|
|
4861
4861
|
class RelationalQueryBuilder {
|
|
4862
4862
|
constructor(fullSchema, schema, tableNamesMap, table, tableConfig, dialect, session) {
|
|
4863
4863
|
this.fullSchema = fullSchema;
|
|
@@ -4940,7 +4940,7 @@ class PgRelationalQuery extends QueryPromise {
|
|
|
4940
4940
|
}
|
|
4941
4941
|
}
|
|
4942
4942
|
|
|
4943
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
4943
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/raw.js
|
|
4944
4944
|
class PgRaw extends QueryPromise {
|
|
4945
4945
|
constructor(execute, sql2, query, mapBatchResult) {
|
|
4946
4946
|
super();
|
|
@@ -4967,7 +4967,7 @@ class PgRaw extends QueryPromise {
|
|
|
4967
4967
|
}
|
|
4968
4968
|
}
|
|
4969
4969
|
|
|
4970
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
4970
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/db.js
|
|
4971
4971
|
class PgDatabase {
|
|
4972
4972
|
constructor(dialect, session, schema) {
|
|
4973
4973
|
this.dialect = dialect;
|
|
@@ -5091,7 +5091,7 @@ class PgDatabase {
|
|
|
5091
5091
|
}
|
|
5092
5092
|
}
|
|
5093
5093
|
|
|
5094
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
5094
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/pg-core/session.js
|
|
5095
5095
|
class PgPreparedQuery {
|
|
5096
5096
|
constructor(query) {
|
|
5097
5097
|
this.query = query;
|
|
@@ -5161,7 +5161,7 @@ class PgTransaction extends PgDatabase {
|
|
|
5161
5161
|
}
|
|
5162
5162
|
}
|
|
5163
5163
|
|
|
5164
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
5164
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/postgres-js/session.js
|
|
5165
5165
|
class PostgresJsPreparedQuery extends PgPreparedQuery {
|
|
5166
5166
|
constructor(client, queryString, params, logger, fields, _isResponseInArrayMode, customResultMapper) {
|
|
5167
5167
|
super({ sql: queryString, params });
|
|
@@ -5269,7 +5269,7 @@ class PostgresJsTransaction extends PgTransaction {
|
|
|
5269
5269
|
}
|
|
5270
5270
|
}
|
|
5271
5271
|
|
|
5272
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
5272
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/postgres-js/driver.js
|
|
5273
5273
|
class PostgresJsDatabase extends PgDatabase {
|
|
5274
5274
|
static [entityKind] = "PostgresJsDatabase";
|
|
5275
5275
|
}
|
|
@@ -5333,7 +5333,7 @@ function drizzle(...params) {
|
|
|
5333
5333
|
drizzle2.mock = mock;
|
|
5334
5334
|
})(drizzle || (drizzle = {}));
|
|
5335
5335
|
|
|
5336
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
5336
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/migrator.js
|
|
5337
5337
|
import crypto2 from "crypto";
|
|
5338
5338
|
import fs2 from "fs";
|
|
5339
5339
|
function readMigrationFiles(config) {
|
|
@@ -5365,13 +5365,13 @@ function readMigrationFiles(config) {
|
|
|
5365
5365
|
return migrationQueries;
|
|
5366
5366
|
}
|
|
5367
5367
|
|
|
5368
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.39.
|
|
5368
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.39.3_bun-types@1.2.2_postgres@3.4.5/node_modules/drizzle-orm/postgres-js/migrator.js
|
|
5369
5369
|
async function migrate(db, config) {
|
|
5370
5370
|
const migrations = readMigrationFiles(config);
|
|
5371
5371
|
await db.dialect.migrate(migrations, db.session, config);
|
|
5372
5372
|
}
|
|
5373
5373
|
|
|
5374
|
-
// ../../node_modules/.pnpm/@t3-oss+env-core@0.12.0_typescript@5.7.3_zod@3.24.
|
|
5374
|
+
// ../../node_modules/.pnpm/@t3-oss+env-core@0.12.0_typescript@5.7.3_zod@3.24.2/node_modules/@t3-oss/env-core/dist/index.js
|
|
5375
5375
|
function parseWithDictionary(dictionary, value) {
|
|
5376
5376
|
const result = {};
|
|
5377
5377
|
const issues = [];
|
|
@@ -5468,7 +5468,7 @@ function createEnv(opts) {
|
|
|
5468
5468
|
return env;
|
|
5469
5469
|
}
|
|
5470
5470
|
|
|
5471
|
-
// ../../node_modules/.pnpm/zod@3.24.
|
|
5471
|
+
// ../../node_modules/.pnpm/zod@3.24.2/node_modules/zod/lib/index.mjs
|
|
5472
5472
|
var util;
|
|
5473
5473
|
(function(util2) {
|
|
5474
5474
|
util2.assertEqual = (val) => val;
|
|
@@ -9235,16 +9235,32 @@ ZodReadonly.create = (type, params) => {
|
|
|
9235
9235
|
...processCreateParams(params)
|
|
9236
9236
|
});
|
|
9237
9237
|
};
|
|
9238
|
-
function
|
|
9238
|
+
function cleanParams(params, data) {
|
|
9239
|
+
const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
|
|
9240
|
+
const p2 = typeof p === "string" ? { message: p } : p;
|
|
9241
|
+
return p2;
|
|
9242
|
+
}
|
|
9243
|
+
function custom(check, _params = {}, fatal) {
|
|
9239
9244
|
if (check)
|
|
9240
9245
|
return ZodAny.create().superRefine((data, ctx) => {
|
|
9241
9246
|
var _a, _b;
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
+
const r = check(data);
|
|
9248
|
+
if (r instanceof Promise) {
|
|
9249
|
+
return r.then((r2) => {
|
|
9250
|
+
var _a2, _b2;
|
|
9251
|
+
if (!r2) {
|
|
9252
|
+
const params = cleanParams(_params, data);
|
|
9253
|
+
const _fatal = (_b2 = (_a2 = params.fatal) !== null && _a2 !== undefined ? _a2 : fatal) !== null && _b2 !== undefined ? _b2 : true;
|
|
9254
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
9255
|
+
}
|
|
9256
|
+
});
|
|
9247
9257
|
}
|
|
9258
|
+
if (!r) {
|
|
9259
|
+
const params = cleanParams(_params, data);
|
|
9260
|
+
const _fatal = (_b = (_a = params.fatal) !== null && _a !== undefined ? _a : fatal) !== null && _b !== undefined ? _b : true;
|
|
9261
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
9262
|
+
}
|
|
9263
|
+
return;
|
|
9248
9264
|
});
|
|
9249
9265
|
return ZodAny.create();
|
|
9250
9266
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tempest.games",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,46 +26,46 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@t3-oss/env-core": "0.12.0",
|
|
29
|
-
"cron": "
|
|
30
|
-
"drizzle-orm": "0.39.
|
|
31
|
-
"openai": "4.
|
|
29
|
+
"cron": "4.0.0",
|
|
30
|
+
"drizzle-orm": "0.39.3",
|
|
31
|
+
"openai": "4.85.3",
|
|
32
32
|
"postgres": "3.4.5",
|
|
33
33
|
"react": "19.0.0",
|
|
34
34
|
"react-dom": "19.0.0",
|
|
35
|
-
"safegen": "0.2.
|
|
35
|
+
"safegen": "0.2.11",
|
|
36
36
|
"socket.io": "4.8.1",
|
|
37
37
|
"socket.io-client": "4.8.1",
|
|
38
|
-
"zod": "3.24.
|
|
39
|
-
"zod-to-json-schema": "3.24.
|
|
40
|
-
"atom.io": "0.
|
|
38
|
+
"zod": "3.24.2",
|
|
39
|
+
"zod-to-json-schema": "3.24.2",
|
|
40
|
+
"atom.io": "0.31.0",
|
|
41
41
|
"safedeposit": "0.1.0",
|
|
42
42
|
"treetrunks": "0.0.4"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@eslint/js": "9.
|
|
46
|
-
"@types/node": "22.13.
|
|
47
|
-
"@types/react": "19.0.
|
|
48
|
-
"@types/react-dom": "19.0.
|
|
49
|
-
"@vitejs/plugin-react-swc": "3.
|
|
45
|
+
"@eslint/js": "9.20.0",
|
|
46
|
+
"@types/node": "22.13.4",
|
|
47
|
+
"@types/react": "19.0.10",
|
|
48
|
+
"@types/react-dom": "19.0.4",
|
|
49
|
+
"@vitejs/plugin-react-swc": "3.8.0",
|
|
50
50
|
"bun-types": "1.2.2",
|
|
51
51
|
"concurrently": "9.1.2",
|
|
52
52
|
"cross-env": "7.0.3",
|
|
53
53
|
"dotenv": "16.4.7",
|
|
54
54
|
"dotenv-cli": "8.0.0",
|
|
55
55
|
"drizzle-kit": "0.30.4",
|
|
56
|
-
"eslint": "9.
|
|
57
|
-
"eslint-plugin-react-refresh": "0.4.
|
|
58
|
-
"globals": "
|
|
56
|
+
"eslint": "9.20.1",
|
|
57
|
+
"eslint-plugin-react-refresh": "0.4.19",
|
|
58
|
+
"globals": "16.0.0",
|
|
59
59
|
"rimraf": "6.0.1",
|
|
60
|
-
"sass-embedded": "1.
|
|
61
|
-
"tsx": "4.19.
|
|
60
|
+
"sass-embedded": "1.85.0",
|
|
61
|
+
"tsx": "4.19.3",
|
|
62
62
|
"typescript": "5.7.3",
|
|
63
|
-
"typescript-eslint": "8.
|
|
64
|
-
"vite": "6.
|
|
63
|
+
"typescript-eslint": "8.24.1",
|
|
64
|
+
"vite": "6.1.1",
|
|
65
65
|
"vite-tsconfig-paths": "5.1.4",
|
|
66
|
-
"vitest": "3.0.
|
|
67
|
-
"flightdeck": "0.2.
|
|
68
|
-
"varmint": "0.
|
|
66
|
+
"vitest": "3.0.6",
|
|
67
|
+
"flightdeck": "0.2.15",
|
|
68
|
+
"varmint": "0.4.2"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"dev": "bun run env:dev && concurrently \"bun:dev:*\"",
|
|
@@ -81,13 +81,13 @@
|
|
|
81
81
|
"env:pre": "[ -f .env.preview ] && echo '.env.preview already present' || cp .env.defaults .env.preview",
|
|
82
82
|
"env:test": "[ -f .env.test ] && echo '.env.test already present' || cp .env.defaults .env.test",
|
|
83
83
|
"env:prod": "[ -f .env.production ] && echo '.env.production already present' || echo 'VITE_BACKEND_ORIGIN=https://realtime.tempest.games' >> .env.production",
|
|
84
|
-
"test": "bun
|
|
85
|
-
"test:once": "bun
|
|
84
|
+
"test": "bun env:test && vitest",
|
|
85
|
+
"test:once": "bun env:test && varmint track && vitest run; varmint clean --ci-flag=CI",
|
|
86
86
|
"lint:biome": "biome check -- .",
|
|
87
87
|
"lint:eslint": "eslint -- .",
|
|
88
88
|
"lint:types": "tsc --noEmit",
|
|
89
|
-
"
|
|
90
|
-
"lint": "
|
|
89
|
+
"watch:types": "tsc --watch --noEmit",
|
|
90
|
+
"lint": "concurrently \"bun:lint:*\"",
|
|
91
91
|
"db:dev": "dotenv -e .env.development -- ./__scripts__/interactive-db.bun.ts",
|
|
92
92
|
"db:gen": "dotenv -e .env.development -- drizzle-kit generate",
|
|
93
93
|
"db:nuke": "./__scripts__/destroy-db.bun.ts",
|