tempest.games 0.2.96 → 0.2.97

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/app/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>TEMPEST</title>
8
- <script type="module" crossorigin src="/assets/index-BcXfHqjT.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-I1lJb6h3.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-DZ_4vJcE.css">
10
10
  </head>
11
11
  <body>
@@ -51560,7 +51560,7 @@ import { createServer as createHttpServer } from "http";
51560
51560
  import { createServer as createSecureServer } from "https";
51561
51561
  import { resolve } from "path";
51562
51562
 
51563
- // ../../node_modules/.pnpm/@t3-oss+env-core@0.13.8_arktype@2.1.29_typescript@5.9.3_zod@4.1.13/node_modules/@t3-oss/env-core/dist/src-Bb3GbGAa.js
51563
+ // ../../node_modules/.pnpm/@t3-oss+env-core@0.13.10_arktype@2.1.29_typescript@5.9.3_zod@4.2.0/node_modules/@t3-oss/env-core/dist/standard.js
51564
51564
  function ensureSynchronous(value, message) {
51565
51565
  if (value instanceof Promise)
51566
51566
  throw new Error(message);
@@ -51585,17 +51585,21 @@ function parseWithDictionary(dictionary, value) {
51585
51585
  return { issues };
51586
51586
  return { value: result };
51587
51587
  }
51588
+
51589
+ // ../../node_modules/.pnpm/@t3-oss+env-core@0.13.10_arktype@2.1.29_typescript@5.9.3_zod@4.2.0/node_modules/@t3-oss/env-core/dist/index.js
51588
51590
  function createEnv(opts) {
51589
51591
  const runtimeEnv = opts.runtimeEnvStrict ?? opts.runtimeEnv ?? process.env;
51590
- const emptyStringAsUndefined = opts.emptyStringAsUndefined ?? false;
51591
- if (emptyStringAsUndefined) {
51592
+ if (opts.emptyStringAsUndefined ?? false) {
51592
51593
  for (const [key, value] of Object.entries(runtimeEnv))
51593
51594
  if (value === "")
51594
51595
  delete runtimeEnv[key];
51595
51596
  }
51596
- const skip = !!opts.skipValidation;
51597
- if (skip)
51597
+ if (!!opts.skipValidation) {
51598
+ if (opts.extends)
51599
+ for (const preset of opts.extends)
51600
+ preset.skipValidation = true;
51598
51601
  return runtimeEnv;
51602
+ }
51599
51603
  const _client = typeof opts.client === "object" ? opts.client : {};
51600
51604
  const _server = typeof opts.server === "object" ? opts.server : {};
51601
51605
  const _shared = typeof opts.shared === "object" ? opts.shared : {};
@@ -51608,7 +51612,7 @@ function createEnv(opts) {
51608
51612
  ..._client,
51609
51613
  ..._shared
51610
51614
  };
51611
- const parsed = opts.createFinalSchema?.(finalSchemaShape, isServer)["~standard"].validate(runtimeEnv) ?? parseWithDictionary(finalSchemaShape, runtimeEnv);
51615
+ const parsed = opts.createFinalSchema?.(finalSchemaShape, isServer)?.["~standard"].validate(runtimeEnv) ?? parseWithDictionary(finalSchemaShape, runtimeEnv);
51612
51616
  ensureSynchronous(parsed, "Validation must be synchronous");
51613
51617
  const onValidationError = opts.onValidationError ?? ((issues) => {
51614
51618
  console.error("\u274C Invalid environment variables:", issues);
@@ -51634,7 +51638,7 @@ function createEnv(opts) {
51634
51638
  return Object.assign(acc, curr);
51635
51639
  }, {});
51636
51640
  const fullObj = Object.assign(extendedObj, parsed.value);
51637
- const env = new Proxy(fullObj, { get(target, prop) {
51641
+ return new Proxy(fullObj, { get(target, prop) {
51638
51642
  if (typeof prop !== "string")
51639
51643
  return;
51640
51644
  if (ignoreProp(prop))
@@ -51643,7 +51647,6 @@ function createEnv(opts) {
51643
51647
  return onInvalidAccess(prop);
51644
51648
  return Reflect.get(target, prop);
51645
51649
  } });
51646
- return env;
51647
51650
  }
51648
51651
 
51649
51652
  // ../../node_modules/.pnpm/@ark+util@0.56.0/node_modules/@ark/util/out/arrays.js
@@ -60092,7 +60095,7 @@ var ParentSocket = class extends CustomSocket {
60092
60095
  incompleteData = ``;
60093
60096
  unprocessedEvents = [];
60094
60097
  relays;
60095
- relayServices;
60098
+ initRelay;
60096
60099
  proc;
60097
60100
  id = `#####`;
60098
60101
  log(...args2) {
@@ -60118,7 +60121,9 @@ var ParentSocket = class extends CustomSocket {
60118
60121
  this.proc = proc;
60119
60122
  this.proc.stdin.resume();
60120
60123
  this.relays = /* @__PURE__ */ new Map;
60121
- this.relayServices = [];
60124
+ this.initRelay = () => {
60125
+ this.logger.info(`\uD83D\uDD17`, `nothing to relay`);
60126
+ };
60122
60127
  this.proc.stdin.on(`data`, (buffer) => {
60123
60128
  const pieces = buffer.toString().split(`\x03`);
60124
60129
  const initialMaybeWellFormed = pieces[0];
@@ -60173,15 +60178,13 @@ var ParentSocket = class extends CustomSocket {
60173
60178
  if (this.proc.pid)
60174
60179
  this.id = this.proc.pid?.toString();
60175
60180
  this.on(`user-joins`, (userKey) => {
60176
- this.logger.info(`\uD83D\uDC64`, `user`, userKey, `joined`);
60181
+ this.logger.info(`\uD83D\uDC64`, userKey, `joined`);
60177
60182
  const relay = new SubjectSocket(userKey);
60178
60183
  this.relays.set(userKey, relay);
60179
- this.logger.info(`\uD83D\uDD17`, `attaching services:`, `[${[...this.relayServices.keys()].join(`, `)}]`);
60180
- for (const attachRelay of this.relayServices) {
60181
- const cleanupRelay = attachRelay(relay, userKey);
60182
- if (cleanupRelay)
60183
- relay.disposalFunctions.push(cleanupRelay);
60184
- }
60184
+ this.logger.info(`\uD83D\uDD17`, `attaching services for user`, userKey);
60185
+ const cleanupRelay = this.initRelay(relay, userKey);
60186
+ if (cleanupRelay)
60187
+ relay.disposalFunctions.push(cleanupRelay);
60185
60188
  this.on(userKey, (...data) => {
60186
60189
  relay.in.next(data);
60187
60190
  });
@@ -60201,7 +60204,7 @@ var ParentSocket = class extends CustomSocket {
60201
60204
  }
60202
60205
  receiveRelay(attachServices) {
60203
60206
  this.logger.info(`\uD83D\uDD17`, `running relay method`);
60204
- this.relayServices.push(attachServices);
60207
+ this.initRelay = attachServices;
60205
60208
  }
60206
60209
  };
60207
60210
  var ChildSocket = class extends CustomSocket {
@@ -3063,7 +3063,7 @@ var ParentSocket = class extends CustomSocket {
3063
3063
  incompleteData = ``;
3064
3064
  unprocessedEvents = [];
3065
3065
  relays;
3066
- relayServices;
3066
+ initRelay;
3067
3067
  proc;
3068
3068
  id = `#####`;
3069
3069
  log(...args) {
@@ -3089,7 +3089,9 @@ var ParentSocket = class extends CustomSocket {
3089
3089
  this.proc = proc;
3090
3090
  this.proc.stdin.resume();
3091
3091
  this.relays = /* @__PURE__ */ new Map;
3092
- this.relayServices = [];
3092
+ this.initRelay = () => {
3093
+ this.logger.info(`\uD83D\uDD17`, `nothing to relay`);
3094
+ };
3093
3095
  this.proc.stdin.on(`data`, (buffer) => {
3094
3096
  const pieces = buffer.toString().split(`\x03`);
3095
3097
  const initialMaybeWellFormed = pieces[0];
@@ -3144,15 +3146,13 @@ var ParentSocket = class extends CustomSocket {
3144
3146
  if (this.proc.pid)
3145
3147
  this.id = this.proc.pid?.toString();
3146
3148
  this.on(`user-joins`, (userKey) => {
3147
- this.logger.info(`\uD83D\uDC64`, `user`, userKey, `joined`);
3149
+ this.logger.info(`\uD83D\uDC64`, userKey, `joined`);
3148
3150
  const relay = new SubjectSocket(userKey);
3149
3151
  this.relays.set(userKey, relay);
3150
- this.logger.info(`\uD83D\uDD17`, `attaching services:`, `[${[...this.relayServices.keys()].join(`, `)}]`);
3151
- for (const attachRelay of this.relayServices) {
3152
- const cleanupRelay = attachRelay(relay, userKey);
3153
- if (cleanupRelay)
3154
- relay.disposalFunctions.push(cleanupRelay);
3155
- }
3152
+ this.logger.info(`\uD83D\uDD17`, `attaching services for user`, userKey);
3153
+ const cleanupRelay = this.initRelay(relay, userKey);
3154
+ if (cleanupRelay)
3155
+ relay.disposalFunctions.push(cleanupRelay);
3156
3156
  this.on(userKey, (...data) => {
3157
3157
  relay.in.next(data);
3158
3158
  });
@@ -3172,7 +3172,7 @@ var ParentSocket = class extends CustomSocket {
3172
3172
  }
3173
3173
  receiveRelay(attachServices) {
3174
3174
  this.logger.info(`\uD83D\uDD17`, `running relay method`);
3175
- this.relayServices.push(attachServices);
3175
+ this.initRelay = attachServices;
3176
3176
  }
3177
3177
  };
3178
3178
  var ChildSocket = class extends CustomSocket {