@terrafirmagreg-team/dump 1.2.2 → 1.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terrafirmagreg-team/dump",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "type": "module",
5
5
  "description": "Game-dump readers and contracts",
6
6
  "license": "LGPL-3.0-only",
@@ -14,11 +14,11 @@
14
14
  "src"
15
15
  ],
16
16
  "dependencies": {
17
- "@terrafirmagreg-team/data": "1.2.1",
18
- "@terrafirmagreg-team/sites": "1.2.1",
19
- "@terrafirmagreg-team/translate": "1.2.3",
17
+ "@terrafirmagreg-team/data": "^1.2.2",
18
+ "@terrafirmagreg-team/sites": "^1.2.1",
19
+ "@terrafirmagreg-team/translate": "^1.2.5",
20
20
  "aws4fetch": "^1.0.20",
21
- "fumadocs-core": "16.17.8"
21
+ "fumadocs-core": "16.17.10"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
@@ -8,8 +8,12 @@ export type DumpLocation = {
8
8
  files?: Record<string, string>;
9
9
  };
10
10
 
11
- const dumpLocations = new Map<string, DumpLocation>();
12
- const dumpLocationListeners = new Set<() => void>();
11
+ const store = globalThis as Record<symbol, unknown>;
12
+ const dumpLocations = (store[Symbol.for('terrafirmagreg.dump.locations')] ??=
13
+ new Map<string, DumpLocation>()) as Map<string, DumpLocation>;
14
+ const dumpLocationListeners = (store[
15
+ Symbol.for('terrafirmagreg.dump.locationListeners')
16
+ ] ??= new Set<() => void>()) as Set<() => void>;
13
17
 
14
18
  export function registerDumpLocation(
15
19
  dataset: DatasetRef,