@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 +1 -0
- package/dist/index.js +1 -0
- package/dist/runtime/globals.d.ts +10 -1
- package/dist/runtime/globals.js +2 -2
- package/dist-cjs/index.d.ts +1 -0
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/runtime/globals.d.ts +10 -1
- package/dist-cjs/runtime/globals.js +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
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
|
-
|
|
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;
|
package/dist/runtime/globals.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Type-safe globalThis property access.
|
|
6
|
-
* @
|
|
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
|
-
* @
|
|
13
|
+
* @public
|
|
14
14
|
*/
|
|
15
15
|
export function setGlobalPolyfill(key, value) {
|
|
16
16
|
;
|
package/dist-cjs/index.d.ts
CHANGED
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
|
-
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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.
|
|
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": "
|
|
36
|
+
"commit": "9d0cc3ae3ae3f717a56275731d6bc478bc48fb67"
|
|
37
37
|
}
|