@dcl/ecs 7.19.1-21654129874.commit-4307fca → 7.19.1-21670829283.commit-e132905
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 +12 -2
- package/dist/runtime/globals.js +4 -3
- package/dist-cjs/index.d.ts +1 -0
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/runtime/globals.d.ts +12 -2
- package/dist-cjs/runtime/globals.js +4 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './schemas';
|
|
|
3
3
|
export * from './runtime/initialization';
|
|
4
4
|
export * from './runtime/types';
|
|
5
5
|
export * from './runtime/helpers';
|
|
6
|
+
export * from './runtime/globals';
|
|
6
7
|
export { cyclicParentingChecker } from './systems/cyclicParentingChecker';
|
|
7
8
|
export * from './systems/events';
|
|
8
9
|
export * from './systems/raycast';
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ export * from './schemas';
|
|
|
4
4
|
export * from './runtime/initialization';
|
|
5
5
|
export * from './runtime/types';
|
|
6
6
|
export * from './runtime/helpers';
|
|
7
|
+
export * from './runtime/globals';
|
|
7
8
|
export { cyclicParentingChecker } from './systems/cyclicParentingChecker';
|
|
8
9
|
export * from './systems/events';
|
|
9
10
|
export * from './systems/raycast';
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Utilities for standardized globalThis access.
|
|
3
|
+
* @public
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Type-safe globalThis property access.
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare function getGlobal<T>(key: string): T | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export declare function setGlobalPolyfill<T>(key: string, value: T): void;
|
package/dist/runtime/globals.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Utilities for standardized globalThis access.
|
|
3
|
+
* @public
|
|
3
4
|
*/
|
|
4
5
|
/**
|
|
5
6
|
* Type-safe globalThis property access.
|
|
6
|
-
* @
|
|
7
|
+
* @public
|
|
7
8
|
*/
|
|
8
9
|
export function getGlobal(key) {
|
|
9
10
|
return globalThis[key];
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
13
|
-
* @
|
|
14
|
+
* @public
|
|
14
15
|
*/
|
|
15
16
|
export function setGlobalPolyfill(key, value) {
|
|
16
17
|
;
|
package/dist-cjs/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './schemas';
|
|
|
3
3
|
export * from './runtime/initialization';
|
|
4
4
|
export * from './runtime/types';
|
|
5
5
|
export * from './runtime/helpers';
|
|
6
|
+
export * from './runtime/globals';
|
|
6
7
|
export { cyclicParentingChecker } from './systems/cyclicParentingChecker';
|
|
7
8
|
export * from './systems/events';
|
|
8
9
|
export * from './systems/raycast';
|
package/dist-cjs/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __exportStar(require("./schemas"), exports);
|
|
|
33
33
|
__exportStar(require("./runtime/initialization"), exports);
|
|
34
34
|
__exportStar(require("./runtime/types"), exports);
|
|
35
35
|
__exportStar(require("./runtime/helpers"), exports);
|
|
36
|
+
__exportStar(require("./runtime/globals"), exports);
|
|
36
37
|
var cyclicParentingChecker_1 = require("./systems/cyclicParentingChecker");
|
|
37
38
|
Object.defineProperty(exports, "cyclicParentingChecker", { enumerable: true, get: function () { return cyclicParentingChecker_1.cyclicParentingChecker; } });
|
|
38
39
|
__exportStar(require("./systems/events"), exports);
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Utilities for standardized globalThis access.
|
|
3
|
+
* @public
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Type-safe globalThis property access.
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare function getGlobal<T>(key: string): T | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export declare function setGlobalPolyfill<T>(key: string, value: T): void;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Utilities for standardized globalThis access.
|
|
4
|
+
* @public
|
|
4
5
|
*/
|
|
5
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
7
|
exports.setGlobalPolyfill = exports.getGlobal = void 0;
|
|
7
8
|
/**
|
|
8
9
|
* Type-safe globalThis property access.
|
|
9
|
-
* @
|
|
10
|
+
* @public
|
|
10
11
|
*/
|
|
11
12
|
function getGlobal(key) {
|
|
12
13
|
return globalThis[key];
|
|
@@ -14,7 +15,7 @@ function getGlobal(key) {
|
|
|
14
15
|
exports.getGlobal = getGlobal;
|
|
15
16
|
/**
|
|
16
17
|
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
17
|
-
* @
|
|
18
|
+
* @public
|
|
18
19
|
*/
|
|
19
20
|
function setGlobalPolyfill(key, value) {
|
|
20
21
|
;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/ecs",
|
|
3
3
|
"description": "Decentraland ECS",
|
|
4
|
-
"version": "7.19.1-
|
|
4
|
+
"version": "7.19.1-21670829283.commit-e132905",
|
|
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": "e1329052101ce1d0a78b64d83abecd61dc6efcc9"
|
|
37
37
|
}
|