@dcl/ecs 7.20.5-22683934262.commit-8314528 → 7.21.0

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/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './engine';
2
2
  export * from './schemas';
3
+ export * from './runtime/globals';
3
4
  export * from './runtime/initialization';
4
5
  export * from './runtime/types';
5
6
  export * from './runtime/helpers';
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  // The order of the following imports matters. Please do not auto-sort
2
2
  export * from './engine';
3
3
  export * from './schemas';
4
+ export * from './runtime/globals';
4
5
  export * from './runtime/initialization';
5
6
  export * from './runtime/types';
6
7
  export * from './runtime/helpers';
@@ -1,4 +1,13 @@
1
1
  /**
2
2
  * Internal utilities for standardized globalThis access.
3
3
  */
4
- export {};
4
+ /**
5
+ * Type-safe globalThis property access.
6
+ * @public
7
+ */
8
+ export declare function getGlobal<T>(key: string): T | undefined;
9
+ /**
10
+ * Sets a globalThis property as a polyfill (only if undefined/null).
11
+ * @public
12
+ */
13
+ export declare function setGlobalPolyfill<T>(key: string, value: T): void;
@@ -3,14 +3,14 @@
3
3
  */
4
4
  /**
5
5
  * Type-safe globalThis property access.
6
- * @internal
6
+ * @public
7
7
  */
8
8
  export function getGlobal(key) {
9
9
  return globalThis[key];
10
10
  }
11
11
  /**
12
12
  * Sets a globalThis property as a polyfill (only if undefined/null).
13
- * @internal
13
+ * @public
14
14
  */
15
15
  export function setGlobalPolyfill(key, value) {
16
16
  ;
@@ -1,5 +1,6 @@
1
1
  export * from './engine';
2
2
  export * from './schemas';
3
+ export * from './runtime/globals';
3
4
  export * from './runtime/initialization';
4
5
  export * from './runtime/types';
5
6
  export * from './runtime/helpers';
package/dist-cjs/index.js CHANGED
@@ -30,6 +30,7 @@ exports.NetworkParent = exports.NetworkEntity = exports.SyncComponents = exports
30
30
  // The order of the following imports matters. Please do not auto-sort
31
31
  __exportStar(require("./engine"), exports);
32
32
  __exportStar(require("./schemas"), exports);
33
+ __exportStar(require("./runtime/globals"), exports);
33
34
  __exportStar(require("./runtime/initialization"), exports);
34
35
  __exportStar(require("./runtime/types"), exports);
35
36
  __exportStar(require("./runtime/helpers"), exports);
@@ -1,4 +1,13 @@
1
1
  /**
2
2
  * Internal utilities for standardized globalThis access.
3
3
  */
4
- export {};
4
+ /**
5
+ * Type-safe globalThis property access.
6
+ * @public
7
+ */
8
+ export declare function getGlobal<T>(key: string): T | undefined;
9
+ /**
10
+ * Sets a globalThis property as a polyfill (only if undefined/null).
11
+ * @public
12
+ */
13
+ export declare function setGlobalPolyfill<T>(key: string, value: T): void;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.setGlobalPolyfill = exports.getGlobal = void 0;
7
7
  /**
8
8
  * Type-safe globalThis property access.
9
- * @internal
9
+ * @public
10
10
  */
11
11
  function getGlobal(key) {
12
12
  return globalThis[key];
@@ -14,7 +14,7 @@ function getGlobal(key) {
14
14
  exports.getGlobal = getGlobal;
15
15
  /**
16
16
  * Sets a globalThis property as a polyfill (only if undefined/null).
17
- * @internal
17
+ * @public
18
18
  */
19
19
  function setGlobalPolyfill(key, value) {
20
20
  ;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/ecs",
3
3
  "description": "Decentraland ECS",
4
- "version": "7.20.5-22683934262.commit-8314528",
4
+ "version": "7.21.0",
5
5
  "author": "DCL",
6
6
  "bugs": "https://github.com/decentraland/ecs/issues",
7
7
  "files": [
@@ -33,5 +33,5 @@
33
33
  },
34
34
  "types": "./dist/index.d.ts",
35
35
  "typings": "./dist/index.d.ts",
36
- "commit": "8314528ab573055b83ee38a7b93e57ea0fdefe3d"
36
+ "commit": "9d0cc3ae3ae3f717a56275731d6bc478bc48fb67"
37
37
  }