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.
@@ -11632,7 +11632,7 @@ var ParentSocket = class extends CustomSocket {
11632
11632
  incompleteData = ``;
11633
11633
  unprocessedEvents = [];
11634
11634
  relays;
11635
- relayServices;
11635
+ initRelay;
11636
11636
  proc;
11637
11637
  id = `#####`;
11638
11638
  log(...args2) {
@@ -11658,7 +11658,9 @@ var ParentSocket = class extends CustomSocket {
11658
11658
  this.proc = proc;
11659
11659
  this.proc.stdin.resume();
11660
11660
  this.relays = /* @__PURE__ */ new Map;
11661
- this.relayServices = [];
11661
+ this.initRelay = () => {
11662
+ this.logger.info(`\uD83D\uDD17`, `nothing to relay`);
11663
+ };
11662
11664
  this.proc.stdin.on(`data`, (buffer) => {
11663
11665
  const pieces = buffer.toString().split(`\x03`);
11664
11666
  const initialMaybeWellFormed = pieces[0];
@@ -11713,15 +11715,13 @@ var ParentSocket = class extends CustomSocket {
11713
11715
  if (this.proc.pid)
11714
11716
  this.id = this.proc.pid?.toString();
11715
11717
  this.on(`user-joins`, (userKey) => {
11716
- this.logger.info(`\uD83D\uDC64`, `user`, userKey, `joined`);
11718
+ this.logger.info(`\uD83D\uDC64`, userKey, `joined`);
11717
11719
  const relay = new SubjectSocket(userKey);
11718
11720
  this.relays.set(userKey, relay);
11719
- this.logger.info(`\uD83D\uDD17`, `attaching services:`, `[${[...this.relayServices.keys()].join(`, `)}]`);
11720
- for (const attachRelay of this.relayServices) {
11721
- const cleanupRelay = attachRelay(relay, userKey);
11722
- if (cleanupRelay)
11723
- relay.disposalFunctions.push(cleanupRelay);
11724
- }
11721
+ this.logger.info(`\uD83D\uDD17`, `attaching services for user`, userKey);
11722
+ const cleanupRelay = this.initRelay(relay, userKey);
11723
+ if (cleanupRelay)
11724
+ relay.disposalFunctions.push(cleanupRelay);
11725
11725
  this.on(userKey, (...data) => {
11726
11726
  relay.in.next(data);
11727
11727
  });
@@ -11741,7 +11741,7 @@ var ParentSocket = class extends CustomSocket {
11741
11741
  }
11742
11742
  receiveRelay(attachServices) {
11743
11743
  this.logger.info(`\uD83D\uDD17`, `running relay method`);
11744
- this.relayServices.push(attachServices);
11744
+ this.initRelay = attachServices;
11745
11745
  }
11746
11746
  };
11747
11747
  var ChildSocket = class extends CustomSocket {
@@ -11937,7 +11937,7 @@ import { createServer as createHttpServer } from "http";
11937
11937
  import { createServer as createSecureServer } from "https";
11938
11938
  import { resolve } from "path";
11939
11939
 
11940
- // ../../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
11940
+ // ../../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
11941
11941
  function ensureSynchronous(value2, message) {
11942
11942
  if (value2 instanceof Promise)
11943
11943
  throw new Error(message);
@@ -11962,17 +11962,21 @@ function parseWithDictionary(dictionary, value2) {
11962
11962
  return { issues };
11963
11963
  return { value: result };
11964
11964
  }
11965
+
11966
+ // ../../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
11965
11967
  function createEnv(opts) {
11966
11968
  const runtimeEnv = opts.runtimeEnvStrict ?? opts.runtimeEnv ?? process.env;
11967
- const emptyStringAsUndefined = opts.emptyStringAsUndefined ?? false;
11968
- if (emptyStringAsUndefined) {
11969
+ if (opts.emptyStringAsUndefined ?? false) {
11969
11970
  for (const [key, value2] of Object.entries(runtimeEnv))
11970
11971
  if (value2 === "")
11971
11972
  delete runtimeEnv[key];
11972
11973
  }
11973
- const skip = !!opts.skipValidation;
11974
- if (skip)
11974
+ if (!!opts.skipValidation) {
11975
+ if (opts.extends)
11976
+ for (const preset of opts.extends)
11977
+ preset.skipValidation = true;
11975
11978
  return runtimeEnv;
11979
+ }
11976
11980
  const _client = typeof opts.client === "object" ? opts.client : {};
11977
11981
  const _server = typeof opts.server === "object" ? opts.server : {};
11978
11982
  const _shared = typeof opts.shared === "object" ? opts.shared : {};
@@ -11985,7 +11989,7 @@ function createEnv(opts) {
11985
11989
  ..._client,
11986
11990
  ..._shared
11987
11991
  };
11988
- const parsed2 = opts.createFinalSchema?.(finalSchemaShape, isServer)["~standard"].validate(runtimeEnv) ?? parseWithDictionary(finalSchemaShape, runtimeEnv);
11992
+ const parsed2 = opts.createFinalSchema?.(finalSchemaShape, isServer)?.["~standard"].validate(runtimeEnv) ?? parseWithDictionary(finalSchemaShape, runtimeEnv);
11989
11993
  ensureSynchronous(parsed2, "Validation must be synchronous");
11990
11994
  const onValidationError = opts.onValidationError ?? ((issues) => {
11991
11995
  console.error("\u274C Invalid environment variables:", issues);
@@ -12011,7 +12015,7 @@ function createEnv(opts) {
12011
12015
  return Object.assign(acc, curr);
12012
12016
  }, {});
12013
12017
  const fullObj = Object.assign(extendedObj, parsed2.value);
12014
- const env2 = new Proxy(fullObj, { get(target, prop2) {
12018
+ return new Proxy(fullObj, { get(target, prop2) {
12015
12019
  if (typeof prop2 !== "string")
12016
12020
  return;
12017
12021
  if (ignoreProp(prop2))
@@ -12020,7 +12024,6 @@ function createEnv(opts) {
12020
12024
  return onInvalidAccess(prop2);
12021
12025
  return Reflect.get(target, prop2);
12022
12026
  } });
12023
- return env2;
12024
12027
  }
12025
12028
 
12026
12029
  // src/library/env.ts
@@ -5598,7 +5598,7 @@ async function migrate(db, config) {
5598
5598
  await db.dialect.migrate(migrations, db.session, config);
5599
5599
  }
5600
5600
 
5601
- // ../../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
5601
+ // ../../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
5602
5602
  function ensureSynchronous(value, message) {
5603
5603
  if (value instanceof Promise)
5604
5604
  throw new Error(message);
@@ -5623,17 +5623,21 @@ function parseWithDictionary(dictionary, value) {
5623
5623
  return { issues };
5624
5624
  return { value: result };
5625
5625
  }
5626
+
5627
+ // ../../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
5626
5628
  function createEnv(opts) {
5627
5629
  const runtimeEnv = opts.runtimeEnvStrict ?? opts.runtimeEnv ?? process.env;
5628
- const emptyStringAsUndefined = opts.emptyStringAsUndefined ?? false;
5629
- if (emptyStringAsUndefined) {
5630
+ if (opts.emptyStringAsUndefined ?? false) {
5630
5631
  for (const [key, value] of Object.entries(runtimeEnv))
5631
5632
  if (value === "")
5632
5633
  delete runtimeEnv[key];
5633
5634
  }
5634
- const skip = !!opts.skipValidation;
5635
- if (skip)
5635
+ if (!!opts.skipValidation) {
5636
+ if (opts.extends)
5637
+ for (const preset of opts.extends)
5638
+ preset.skipValidation = true;
5636
5639
  return runtimeEnv;
5640
+ }
5637
5641
  const _client = typeof opts.client === "object" ? opts.client : {};
5638
5642
  const _server = typeof opts.server === "object" ? opts.server : {};
5639
5643
  const _shared = typeof opts.shared === "object" ? opts.shared : {};
@@ -5646,7 +5650,7 @@ function createEnv(opts) {
5646
5650
  ..._client,
5647
5651
  ..._shared
5648
5652
  };
5649
- const parsed = opts.createFinalSchema?.(finalSchemaShape, isServer)["~standard"].validate(runtimeEnv) ?? parseWithDictionary(finalSchemaShape, runtimeEnv);
5653
+ const parsed = opts.createFinalSchema?.(finalSchemaShape, isServer)?.["~standard"].validate(runtimeEnv) ?? parseWithDictionary(finalSchemaShape, runtimeEnv);
5650
5654
  ensureSynchronous(parsed, "Validation must be synchronous");
5651
5655
  const onValidationError = opts.onValidationError ?? ((issues) => {
5652
5656
  console.error("\u274C Invalid environment variables:", issues);
@@ -5672,7 +5676,7 @@ function createEnv(opts) {
5672
5676
  return Object.assign(acc, curr);
5673
5677
  }, {});
5674
5678
  const fullObj = Object.assign(extendedObj, parsed.value);
5675
- const env = new Proxy(fullObj, { get(target, prop) {
5679
+ return new Proxy(fullObj, { get(target, prop) {
5676
5680
  if (typeof prop !== "string")
5677
5681
  return;
5678
5682
  if (ignoreProp(prop))
@@ -5681,7 +5685,6 @@ function createEnv(opts) {
5681
5685
  return onInvalidAccess(prop);
5682
5686
  return Reflect.get(target, prop);
5683
5687
  } });
5684
- return env;
5685
5688
  }
5686
5689
 
5687
5690
  // ../../node_modules/.pnpm/@ark+util@0.56.0/node_modules/@ark/util/out/arrays.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tempest.games",
3
- "version": "0.2.96",
3
+ "version": "0.2.97",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -28,7 +28,7 @@
28
28
  "@floating-ui/react": "0.27.16",
29
29
  "@js-temporal/polyfill": "0.5.1",
30
30
  "@react-email/components": "1.0.1",
31
- "@t3-oss/env-core": "0.13.8",
31
+ "@t3-oss/env-core": "0.13.10",
32
32
  "@trpc/client": "11.8.0",
33
33
  "@trpc/server": "11.8.0",
34
34
  "arktype": "2.1.29",
@@ -45,7 +45,7 @@
45
45
  "safegen": "0.8.2",
46
46
  "socket.io": "4.8.1",
47
47
  "socket.io-client": "4.8.1",
48
- "atom.io": "0.46.4",
48
+ "atom.io": "0.46.5",
49
49
  "safedeposit": "0.1.2",
50
50
  "treetrunks": "0.1.5"
51
51
  },
@@ -69,7 +69,7 @@
69
69
  "sass-embedded": "1.96.0",
70
70
  "vite": "7.2.7",
71
71
  "vitest": "4.0.15",
72
- "flightdeck": "0.3.24",
72
+ "flightdeck": "0.3.25",
73
73
  "varmint": "0.5.11"
74
74
  },
75
75
  "scripts": {