hytopia 0.14.11 → 0.14.13

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/bin/scripts.js CHANGED
@@ -375,7 +375,7 @@ async function packageProject() {
375
375
 
376
376
  const entryFile = path.join(sourceDir, 'index.mjs');
377
377
  const child = spawn(process.execPath, [entryFile], {
378
- stdio: 'pipe',
378
+ stdio: ['ignore', 'pipe', 'inherit'], // stdin ignored, stdout piped (to check for ready), stderr inherited (shows warnings/errors)
379
379
  shell: false,
380
380
  cwd: sourceDir,
381
381
  });
@@ -384,7 +384,7 @@ async function packageProject() {
384
384
  child.stdout.on('data', data => {
385
385
  process.stdout.write(data);
386
386
 
387
- if (data.toString().includes('Server running')) {
387
+ if (data.toString().toLowerCase().includes('server running')) {
388
388
  child.kill();
389
389
  resolve();
390
390
  }
@@ -9,5 +9,5 @@ The path to the assets library package. Null if assets library is not available.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- readonly assetsLibraryPath: string | null;
12
+ static readonly assetsLibraryPath: string | null;
13
13
  ```
@@ -58,6 +58,8 @@ Description
58
58
 
59
59
  </td><td>
60
60
 
61
+ `static`
62
+
61
63
  `readonly`
62
64
 
63
65
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.14.11",
3
+ "version": "0.14.13",
4
4
  "description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./server.mjs",
package/server.api.json CHANGED
@@ -191,12 +191,12 @@
191
191
  "members": [
192
192
  {
193
193
  "kind": "Property",
194
- "canonicalReference": "server!AssetsLibrary#assetsLibraryPath:member",
194
+ "canonicalReference": "server!AssetsLibrary.assetsLibraryPath:member",
195
195
  "docComment": "/**\n * The path to the assets library package. Null if assets library is not available.\n */\n",
196
196
  "excerptTokens": [
197
197
  {
198
198
  "kind": "Content",
199
- "text": "readonly assetsLibraryPath: "
199
+ "text": "static readonly assetsLibraryPath: "
200
200
  },
201
201
  {
202
202
  "kind": "Content",
@@ -215,7 +215,7 @@
215
215
  "startIndex": 1,
216
216
  "endIndex": 2
217
217
  },
218
- "isStatic": false,
218
+ "isStatic": true,
219
219
  "isProtected": false,
220
220
  "isAbstract": false
221
221
  },
package/server.d.ts CHANGED
@@ -38,7 +38,7 @@ export declare class AssetsLibrary {
38
38
  /** The global AssetsLibrary instance as a singleton. */
39
39
  static readonly instance: AssetsLibrary;
40
40
  /** The path to the assets library package. Null if assets library is not available. */
41
- readonly assetsLibraryPath: string | null;
41
+ static readonly assetsLibraryPath: string | null;
42
42
  /**
43
43
  * Synchronizes an asset from the assets library to the local assets directory.
44
44
  *