@awesome-ecs/abstract 0.15.0 → 0.18.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/components/index.cjs +35 -0
- package/dist/components/index.cjs.map +1 -0
- package/dist/components/index.d.cts +2 -0
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +7 -17
- package/dist/components/index.js.map +1 -1
- package/dist/entities/index.cjs +36 -0
- package/dist/entities/index.cjs.map +1 -0
- package/dist/entities/index.d.cts +17 -0
- package/dist/entities/index.d.ts +17 -7
- package/dist/entities/index.js +8 -22
- package/dist/entities/index.js.map +1 -1
- package/dist/entity-repository-Bu6rH-m5.d.ts +119 -0
- package/dist/entity-repository-awW_H993.d.cts +119 -0
- package/dist/factories/index.cjs +18 -0
- package/dist/factories/index.cjs.map +1 -0
- package/dist/factories/index.d.cts +27 -0
- package/dist/factories/index.d.ts +27 -2
- package/dist/factories/index.js +0 -18
- package/dist/factories/index.js.map +1 -1
- package/dist/index-BPDsRt_F.d.ts +117 -0
- package/dist/index-DK2CXVZ8.d.cts +117 -0
- package/dist/{utils/performance-timer.d.ts → performance-timer-XvdCbcAE.d.cts} +5 -3
- package/dist/performance-timer-XvdCbcAE.d.ts +13 -0
- package/dist/pipeline-BowCAITe.d.cts +83 -0
- package/dist/pipeline-D43CXxWG.d.ts +83 -0
- package/dist/pipelines/index.cjs +38 -0
- package/dist/pipelines/index.cjs.map +1 -0
- package/dist/pipelines/index.d.cts +44 -0
- package/dist/pipelines/index.d.ts +44 -4
- package/dist/pipelines/index.js +10 -19
- package/dist/pipelines/index.js.map +1 -1
- package/dist/systems/index.cjs +38 -0
- package/dist/systems/index.cjs.map +1 -0
- package/dist/systems/index.d.cts +55 -0
- package/dist/systems/index.d.ts +55 -13
- package/dist/systems/index.js +10 -28
- package/dist/systems/index.js.map +1 -1
- package/dist/systems-runtime-context-Cq4vxbHX.d.cts +163 -0
- package/dist/systems-runtime-context-DjppCqs4.d.ts +163 -0
- package/dist/types-BNwBqRWY.d.cts +22 -0
- package/dist/types-BNwBqRWY.d.ts +22 -0
- package/dist/utils/index.cjs +38 -0
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/index.d.cts +32 -0
- package/dist/utils/index.d.ts +32 -4
- package/dist/utils/index.js +10 -19
- package/dist/utils/index.js.map +1 -1
- package/package.json +61 -23
- package/dist/components/component.d.ts +0 -36
- package/dist/components/component.js +0 -3
- package/dist/components/component.js.map +0 -1
- package/dist/components/identity-component.d.ts +0 -24
- package/dist/components/identity-component.js +0 -8
- package/dist/components/identity-component.js.map +0 -1
- package/dist/entities/entity-events.d.ts +0 -52
- package/dist/entities/entity-events.js +0 -3
- package/dist/entities/entity-events.js.map +0 -1
- package/dist/entities/entity-proxies.d.ts +0 -25
- package/dist/entities/entity-proxies.js +0 -3
- package/dist/entities/entity-proxies.js.map +0 -1
- package/dist/entities/entity-queue.d.ts +0 -31
- package/dist/entities/entity-queue.js +0 -12
- package/dist/entities/entity-queue.js.map +0 -1
- package/dist/entities/entity-repository.d.ts +0 -16
- package/dist/entities/entity-repository.js +0 -3
- package/dist/entities/entity-repository.js.map +0 -1
- package/dist/entities/entity-scheduler.d.ts +0 -11
- package/dist/entities/entity-scheduler.js +0 -3
- package/dist/entities/entity-scheduler.js.map +0 -1
- package/dist/entities/entity-snapshot.d.ts +0 -24
- package/dist/entities/entity-snapshot.js +0 -3
- package/dist/entities/entity-snapshot.js.map +0 -1
- package/dist/entities/entity.d.ts +0 -33
- package/dist/entities/entity.js +0 -3
- package/dist/entities/entity.js.map +0 -1
- package/dist/factories/context-factory.d.ts +0 -9
- package/dist/factories/context-factory.js +0 -3
- package/dist/factories/context-factory.js.map +0 -1
- package/dist/factories/pipeline-factory.d.ts +0 -11
- package/dist/factories/pipeline-factory.js +0 -3
- package/dist/factories/pipeline-factory.js.map +0 -1
- package/dist/pipelines/middleware-result.d.ts +0 -5
- package/dist/pipelines/middleware-result.js +0 -3
- package/dist/pipelines/middleware-result.js.map +0 -1
- package/dist/pipelines/middleware-stop.d.ts +0 -5
- package/dist/pipelines/middleware-stop.js +0 -3
- package/dist/pipelines/middleware-stop.js.map +0 -1
- package/dist/pipelines/middleware.d.ts +0 -25
- package/dist/pipelines/middleware.js +0 -3
- package/dist/pipelines/middleware.js.map +0 -1
- package/dist/pipelines/pipeline.d.ts +0 -21
- package/dist/pipelines/pipeline.js +0 -3
- package/dist/pipelines/pipeline.js.map +0 -1
- package/dist/runtime/index.d.ts +0 -3
- package/dist/runtime/index.js +0 -20
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime/runtime-pipeline.d.ts +0 -11
- package/dist/runtime/runtime-pipeline.js +0 -3
- package/dist/runtime/runtime-pipeline.js.map +0 -1
- package/dist/runtime/runtime-result.d.ts +0 -20
- package/dist/runtime/runtime-result.js +0 -3
- package/dist/runtime/runtime-result.js.map +0 -1
- package/dist/runtime/runtime-status.d.ts +0 -7
- package/dist/runtime/runtime-status.js +0 -12
- package/dist/runtime/runtime-status.js.map +0 -1
- package/dist/systems/context/system-context-entity.d.ts +0 -8
- package/dist/systems/context/system-context-entity.js +0 -3
- package/dist/systems/context/system-context-entity.js.map +0 -1
- package/dist/systems/context/system-context-events.d.ts +0 -65
- package/dist/systems/context/system-context-events.js +0 -3
- package/dist/systems/context/system-context-events.js.map +0 -1
- package/dist/systems/context/system-context-proxies.d.ts +0 -12
- package/dist/systems/context/system-context-proxies.js +0 -3
- package/dist/systems/context/system-context-proxies.js.map +0 -1
- package/dist/systems/context/system-context-repository.d.ts +0 -15
- package/dist/systems/context/system-context-repository.js +0 -3
- package/dist/systems/context/system-context-repository.js.map +0 -1
- package/dist/systems/context/system-context-scheduler.d.ts +0 -9
- package/dist/systems/context/system-context-scheduler.js +0 -3
- package/dist/systems/context/system-context-scheduler.js.map +0 -1
- package/dist/systems/context/system-context-snapshot.d.ts +0 -14
- package/dist/systems/context/system-context-snapshot.js +0 -3
- package/dist/systems/context/system-context-snapshot.js.map +0 -1
- package/dist/systems/runtime/systems-runtime-context.d.ts +0 -20
- package/dist/systems/runtime/systems-runtime-context.js +0 -3
- package/dist/systems/runtime/systems-runtime-context.js.map +0 -1
- package/dist/systems/runtime/systems-runtime-middleware.d.ts +0 -8
- package/dist/systems/runtime/systems-runtime-middleware.js +0 -3
- package/dist/systems/runtime/systems-runtime-middleware.js.map +0 -1
- package/dist/systems/system-context.d.ts +0 -26
- package/dist/systems/system-context.js +0 -3
- package/dist/systems/system-context.js.map +0 -1
- package/dist/systems/system-middleware.d.ts +0 -8
- package/dist/systems/system-middleware.js +0 -3
- package/dist/systems/system-middleware.js.map +0 -1
- package/dist/systems/system-type.d.ts +0 -10
- package/dist/systems/system-type.js +0 -15
- package/dist/systems/system-type.js.map +0 -1
- package/dist/systems/systems-module.d.ts +0 -22
- package/dist/systems/systems-module.js +0 -3
- package/dist/systems/systems-module.js.map +0 -1
- package/dist/systems/systems-runtime.d.ts +0 -16
- package/dist/systems/systems-runtime.js +0 -3
- package/dist/systems/systems-runtime.js.map +0 -1
- package/dist/utils/json-serializer.d.ts +0 -7
- package/dist/utils/json-serializer.js +0 -4
- package/dist/utils/json-serializer.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -19
- package/dist/utils/logger.js +0 -11
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/performance-timer.js +0 -3
- package/dist/utils/performance-timer.js.map +0 -1
- package/dist/utils/types.d.ts +0 -21
- package/dist/utils/types.js +0 -3
- package/dist/utils/types.js.map +0 -1
- package/runtime.d.ts +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/index.ts
|
|
20
|
+
var components_exports = {};
|
|
21
|
+
__export(components_exports, {
|
|
22
|
+
BasicComponentType: () => BasicComponentType
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(components_exports);
|
|
25
|
+
|
|
26
|
+
// src/components/identity-component.ts
|
|
27
|
+
var BasicComponentType = /* @__PURE__ */ ((BasicComponentType2) => {
|
|
28
|
+
BasicComponentType2["identity"] = "identity";
|
|
29
|
+
return BasicComponentType2;
|
|
30
|
+
})(BasicComponentType || {});
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
BasicComponentType
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/index.ts","../../src/components/identity-component.ts"],"sourcesContent":["export * from \"./component\";\nexport * from \"./identity-component\";\n","import { IComponent } from \"./component\";\nimport { EntityTypeUid, IEntityModel } from \"../entities/entity\";\nimport { Immutable } from \"../utils/types\";\n\nexport enum BasicComponentType {\n identity = \"identity\",\n}\n\n/**\n * The `IdentityComponent` contains basic information regarding what makes the current Entity unique.\n */\nexport interface IdentityComponent<TModel extends IEntityModel> extends IComponent {\n /**\n * The Entity Type that defines what Category type the Entity is part of. There can be multiple Entities sharing the same EntityType.\n */\n readonly entityType: EntityTypeUid;\n\n /**\n * The Model is the basic information needed to create an `IEntity` when it's first initialized.\n * It provides a first snapshot of information needed for the successful creation of an Entity instance.\n */\n readonly model: Immutable<TModel>;\n\n /**\n * Keeps track when the Entity's systems have ran last. Useful to calculate the `DeltaTime` between runs.\n */\n readonly lastUpdated?: Date;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIO,IAAK,qBAAL,kBAAKA,wBAAL;AACL,EAAAA,oBAAA,cAAW;AADD,SAAAA;AAAA,GAAA;","names":["BasicComponentType"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export { B as BasicComponentType, C as ComponentTypeUid, g as IComponent, f as IdentityComponent } from '../index-BPDsRt_F.js';
|
|
2
|
+
import '../types-BNwBqRWY.js';
|
package/dist/components/index.js
CHANGED
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
1
|
+
// src/components/identity-component.ts
|
|
2
|
+
var BasicComponentType = /* @__PURE__ */ ((BasicComponentType2) => {
|
|
3
|
+
BasicComponentType2["identity"] = "identity";
|
|
4
|
+
return BasicComponentType2;
|
|
5
|
+
})(BasicComponentType || {});
|
|
6
|
+
export {
|
|
7
|
+
BasicComponentType
|
|
15
8
|
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./component"), exports);
|
|
18
|
-
__exportStar(require("./identity-component"), exports);
|
|
19
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/components/identity-component.ts"],"sourcesContent":["import { IComponent } from \"./component\";\nimport { EntityTypeUid, IEntityModel } from \"../entities/entity\";\nimport { Immutable } from \"../utils/types\";\n\nexport enum BasicComponentType {\n identity = \"identity\",\n}\n\n/**\n * The `IdentityComponent` contains basic information regarding what makes the current Entity unique.\n */\nexport interface IdentityComponent<TModel extends IEntityModel> extends IComponent {\n /**\n * The Entity Type that defines what Category type the Entity is part of. There can be multiple Entities sharing the same EntityType.\n */\n readonly entityType: EntityTypeUid;\n\n /**\n * The Model is the basic information needed to create an `IEntity` when it's first initialized.\n * It provides a first snapshot of information needed for the successful creation of an Entity instance.\n */\n readonly model: Immutable<TModel>;\n\n /**\n * Keeps track when the Entity's systems have ran last. Useful to calculate the `DeltaTime` between runs.\n */\n readonly lastUpdated?: Date;\n}\n"],"mappings":";AAIO,IAAK,qBAAL,kBAAKA,wBAAL;AACL,EAAAA,oBAAA,cAAW;AADD,SAAAA;AAAA,GAAA;","names":["BasicComponentType"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/entities/index.ts
|
|
20
|
+
var entities_exports = {};
|
|
21
|
+
__export(entities_exports, {
|
|
22
|
+
EntityUpdateType: () => EntityUpdateType
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(entities_exports);
|
|
25
|
+
|
|
26
|
+
// src/entities/entity-queue.ts
|
|
27
|
+
var EntityUpdateType = /* @__PURE__ */ ((EntityUpdateType2) => {
|
|
28
|
+
EntityUpdateType2["update"] = "update";
|
|
29
|
+
EntityUpdateType2["remove"] = "remove";
|
|
30
|
+
return EntityUpdateType2;
|
|
31
|
+
})(EntityUpdateType || {});
|
|
32
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
33
|
+
0 && (module.exports = {
|
|
34
|
+
EntityUpdateType
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/entities/index.ts","../../src/entities/entity-queue.ts"],"sourcesContent":["export * from \"./entity\";\nexport * from \"./entity-events\";\nexport * from \"./entity-proxies\";\nexport * from \"./entity-queue\";\nexport * from \"./entity-repository\";\nexport * from \"./entity-scheduler\";\nexport * from \"./entity-snapshot\";\n","import { IEntityModel } from \"./entity\";\nimport { IEntityProxy } from \"./entity-proxies\";\nimport { IEntitySnapshot } from \"./entity-snapshot\";\n\n/**\n * The `EntityUpdateType` specifies whether the current should `update` or `remove` the Entity.\n */\nexport enum EntityUpdateType {\n update = \"update\",\n remove = \"remove\",\n}\n\n/**\n * The `IEntityUpdate` represents an Entity update that should be applied over an (existing) Entity.\n */\nexport interface IEntityUpdate {\n type: EntityUpdateType;\n entity: IEntityProxy;\n model?: IEntityModel;\n snapshot?: IEntitySnapshot;\n}\n\n/**\n * The `IEntityUpdateQueue` is the main mechanism to queue and retrieve `EntityUpdate` instances.\n *\n * The interface can be implemented using a simple queue mechanism, or perhaps, a Priority Queue.\n */\nexport interface IEntityUpdateQueue {\n readonly size: number;\n\n enqueue(change: IEntityUpdate): void;\n dequeue(): IEntityUpdate;\n\n peek(): IEntityUpdate;\n clear(): void;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACOO,IAAK,mBAAL,kBAAKA,sBAAL;AACL,EAAAA,kBAAA,YAAS;AACT,EAAAA,kBAAA,YAAS;AAFC,SAAAA;AAAA,GAAA;","names":["EntityUpdateType"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { I as IEntityProxy } from '../index-DK2CXVZ8.cjs';
|
|
2
|
+
export { d as EntityProxy, E as EntityTypeUid, a as EntityUid, c as IEntity, b as IEntityModel, e as IEntityProxiesManager } from '../index-DK2CXVZ8.cjs';
|
|
3
|
+
export { a as EntityEventSubscriptionFilter, E as EntityEventUid, e as EntityUpdateType, b as IEntityEvent, d as IEntityEventsDispatcher, c as IEntityEventsManager, h as IEntityRepository, i as IEntitySnapshot, j as IEntitySnapshotProvider, f as IEntityUpdate, g as IEntityUpdateQueue, I as IEventData } from '../entity-repository-awW_H993.cjs';
|
|
4
|
+
import '../types-BNwBqRWY.cjs';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The `IEntityScheduler` is the main way of queuing `IEntityUpdate` instances on an Interval (based on time or a custom implementation).
|
|
8
|
+
*
|
|
9
|
+
* It usually reads the Entities from the `IEntityRepository`, and uses the `IEntityUpdateQueue` to enqueue Entity updates.
|
|
10
|
+
*/
|
|
11
|
+
interface IEntityScheduler {
|
|
12
|
+
schedule(entityProxy: IEntityProxy, intervalMs?: number): void;
|
|
13
|
+
remove(entityProxy: IEntityProxy): void;
|
|
14
|
+
has(entityProxy: IEntityProxy): boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { IEntityProxy, type IEntityScheduler };
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { I as IEntityProxy } from '../index-BPDsRt_F.js';
|
|
2
|
+
export { d as EntityProxy, E as EntityTypeUid, a as EntityUid, c as IEntity, b as IEntityModel, e as IEntityProxiesManager } from '../index-BPDsRt_F.js';
|
|
3
|
+
export { a as EntityEventSubscriptionFilter, E as EntityEventUid, e as EntityUpdateType, b as IEntityEvent, d as IEntityEventsDispatcher, c as IEntityEventsManager, h as IEntityRepository, i as IEntitySnapshot, j as IEntitySnapshotProvider, f as IEntityUpdate, g as IEntityUpdateQueue, I as IEventData } from '../entity-repository-Bu6rH-m5.js';
|
|
4
|
+
import '../types-BNwBqRWY.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The `IEntityScheduler` is the main way of queuing `IEntityUpdate` instances on an Interval (based on time or a custom implementation).
|
|
8
|
+
*
|
|
9
|
+
* It usually reads the Entities from the `IEntityRepository`, and uses the `IEntityUpdateQueue` to enqueue Entity updates.
|
|
10
|
+
*/
|
|
11
|
+
interface IEntityScheduler {
|
|
12
|
+
schedule(entityProxy: IEntityProxy, intervalMs?: number): void;
|
|
13
|
+
remove(entityProxy: IEntityProxy): void;
|
|
14
|
+
has(entityProxy: IEntityProxy): boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { IEntityProxy, type IEntityScheduler };
|
package/dist/entities/index.js
CHANGED
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
1
|
+
// src/entities/entity-queue.ts
|
|
2
|
+
var EntityUpdateType = /* @__PURE__ */ ((EntityUpdateType2) => {
|
|
3
|
+
EntityUpdateType2["update"] = "update";
|
|
4
|
+
EntityUpdateType2["remove"] = "remove";
|
|
5
|
+
return EntityUpdateType2;
|
|
6
|
+
})(EntityUpdateType || {});
|
|
7
|
+
export {
|
|
8
|
+
EntityUpdateType
|
|
15
9
|
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./entity"), exports);
|
|
18
|
-
__exportStar(require("./entity-events"), exports);
|
|
19
|
-
__exportStar(require("./entity-proxies"), exports);
|
|
20
|
-
__exportStar(require("./entity-queue"), exports);
|
|
21
|
-
__exportStar(require("./entity-repository"), exports);
|
|
22
|
-
__exportStar(require("./entity-scheduler"), exports);
|
|
23
|
-
__exportStar(require("./entity-snapshot"), exports);
|
|
24
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/entities/entity-queue.ts"],"sourcesContent":["import { IEntityModel } from \"./entity\";\nimport { IEntityProxy } from \"./entity-proxies\";\nimport { IEntitySnapshot } from \"./entity-snapshot\";\n\n/**\n * The `EntityUpdateType` specifies whether the current should `update` or `remove` the Entity.\n */\nexport enum EntityUpdateType {\n update = \"update\",\n remove = \"remove\",\n}\n\n/**\n * The `IEntityUpdate` represents an Entity update that should be applied over an (existing) Entity.\n */\nexport interface IEntityUpdate {\n type: EntityUpdateType;\n entity: IEntityProxy;\n model?: IEntityModel;\n snapshot?: IEntitySnapshot;\n}\n\n/**\n * The `IEntityUpdateQueue` is the main mechanism to queue and retrieve `EntityUpdate` instances.\n *\n * The interface can be implemented using a simple queue mechanism, or perhaps, a Priority Queue.\n */\nexport interface IEntityUpdateQueue {\n readonly size: number;\n\n enqueue(change: IEntityUpdate): void;\n dequeue(): IEntityUpdate;\n\n peek(): IEntityUpdate;\n clear(): void;\n}\n"],"mappings":";AAOO,IAAK,mBAAL,kBAAKA,sBAAL;AACL,EAAAA,kBAAA,YAAS;AACT,EAAAA,kBAAA,YAAS;AAFC,SAAAA;AAAA,GAAA;","names":["EntityUpdateType"]}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { I as IEntityProxy, f as IdentityComponent, b as IEntityModel, g as IComponent, c as IEntity, E as EntityTypeUid } from './index-BPDsRt_F.js';
|
|
2
|
+
|
|
3
|
+
type EntityEventUid = string | number;
|
|
4
|
+
type EntityEventSubscriptionFilter = (event: IEntityEvent<IEventData>) => boolean;
|
|
5
|
+
/**
|
|
6
|
+
* The `IEventData` contains the event-specific state. At the very least, it contains the `Event Unique Identifier`.
|
|
7
|
+
*/
|
|
8
|
+
interface IEventData {
|
|
9
|
+
uid: EntityEventUid;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The `IEntityEvent` represents the basic building block for a Pub/Sub pattern, to synchronize state between multiple Entities.
|
|
13
|
+
*
|
|
14
|
+
* The Events are scheduled as part of the `EntityUpdate` model. Systems subscribe and receive updates with the Events included in their `SystemContext`.
|
|
15
|
+
*/
|
|
16
|
+
interface IEntityEvent<TEventData extends IEventData> {
|
|
17
|
+
origin: IEntityProxy;
|
|
18
|
+
target?: IEntityProxy;
|
|
19
|
+
data: TEventData;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The `IEntityEventsManager` represents the Pub/Sub broker for `IEntityEvent` instances.
|
|
23
|
+
* It keeps track of Entity Subscriptions (as part of the Observer design-pattern).
|
|
24
|
+
*/
|
|
25
|
+
interface IEntityEventsManager {
|
|
26
|
+
subscribe(uid: EntityEventUid, entity: IEntityProxy, filter?: EntityEventSubscriptionFilter): void;
|
|
27
|
+
unsubscribe(uid: EntityEventUid, entity: IEntityProxy): void;
|
|
28
|
+
getSubscriptions(event: IEntityEvent<IEventData>): IEntityProxy[];
|
|
29
|
+
/**
|
|
30
|
+
* Removes all Subscriptions for all Entities.
|
|
31
|
+
*/
|
|
32
|
+
clearSubscriptions(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Removes all Subscriptions for the given Event.
|
|
35
|
+
* @param uid The Event UID to remove all Subscribers from.
|
|
36
|
+
*/
|
|
37
|
+
clearSubscriptionsForEvent(uid: EntityEventUid): void;
|
|
38
|
+
/**
|
|
39
|
+
* Removes all Event Subscriptions for the given Entity.
|
|
40
|
+
* @param entity The Entity to remove all of it's Event Subscriptions.
|
|
41
|
+
*/
|
|
42
|
+
clearSubscriptionsForEntity(entity: IEntityProxy): void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The `IEntityEventsDispatcher` is the main access point for dispatching events to Entities.
|
|
46
|
+
*
|
|
47
|
+
* It can leverage the `IEntityEventsManager` to find Subscribers, and the `IEntityUpdateQueue` to register events
|
|
48
|
+
* into each Observer Entity's next update.
|
|
49
|
+
*/
|
|
50
|
+
interface IEntityEventsDispatcher {
|
|
51
|
+
dispatchEvent(event: IEntityEvent<IEventData>, ...targets: IEntityProxy[]): void;
|
|
52
|
+
dispatchEvents(events: IEntityEvent<IEventData>[], ...targets: IEntityProxy[]): void;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The `IEntitySnapshot` contains the full or partial serializable state of an Entity.
|
|
57
|
+
*
|
|
58
|
+
* It can be used to capture Entity state changes (deltas) or update existing Entity with changes coming from a remote source (e.g. server or other peers).
|
|
59
|
+
*/
|
|
60
|
+
interface IEntitySnapshot {
|
|
61
|
+
readonly identity?: Readonly<IdentityComponent<IEntityModel>>;
|
|
62
|
+
readonly components?: IComponent[];
|
|
63
|
+
readonly proxies?: IEntityProxy[];
|
|
64
|
+
readonly events?: IEntityEvent<IEventData>[];
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The `IEntitySnapshotProvider` is the main provider for both creating snapshots for an Entity,
|
|
68
|
+
* as well as updating Entity state based off an `IEntitySnapshot`.
|
|
69
|
+
*/
|
|
70
|
+
interface IEntitySnapshotProvider {
|
|
71
|
+
applySnapshot(entity: IEntity, snapshot: IEntitySnapshot): void;
|
|
72
|
+
createSnapshot(entity: IEntity): IEntitySnapshot;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The `EntityUpdateType` specifies whether the current should `update` or `remove` the Entity.
|
|
77
|
+
*/
|
|
78
|
+
declare enum EntityUpdateType {
|
|
79
|
+
update = "update",
|
|
80
|
+
remove = "remove"
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The `IEntityUpdate` represents an Entity update that should be applied over an (existing) Entity.
|
|
84
|
+
*/
|
|
85
|
+
interface IEntityUpdate {
|
|
86
|
+
type: EntityUpdateType;
|
|
87
|
+
entity: IEntityProxy;
|
|
88
|
+
model?: IEntityModel;
|
|
89
|
+
snapshot?: IEntitySnapshot;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The `IEntityUpdateQueue` is the main mechanism to queue and retrieve `EntityUpdate` instances.
|
|
93
|
+
*
|
|
94
|
+
* The interface can be implemented using a simple queue mechanism, or perhaps, a Priority Queue.
|
|
95
|
+
*/
|
|
96
|
+
interface IEntityUpdateQueue {
|
|
97
|
+
readonly size: number;
|
|
98
|
+
enqueue(change: IEntityUpdate): void;
|
|
99
|
+
dequeue(): IEntityUpdate;
|
|
100
|
+
peek(): IEntityUpdate;
|
|
101
|
+
clear(): void;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* The `IEntityRepository` is the central storage for keeping track of existing Entities.
|
|
106
|
+
* It provides basic CRUD functionality.
|
|
107
|
+
*/
|
|
108
|
+
interface IEntityRepository {
|
|
109
|
+
readonly size: number;
|
|
110
|
+
has(proxy: IEntityProxy): boolean;
|
|
111
|
+
get<TEntity extends IEntity>(proxy: IEntityProxy): TEntity;
|
|
112
|
+
getAll<TEntity extends IEntity>(entityType: EntityTypeUid): TEntity[];
|
|
113
|
+
listAll(): IEntity[];
|
|
114
|
+
set(entity: IEntity): void;
|
|
115
|
+
delete(proxy: IEntityProxy): void;
|
|
116
|
+
clear(entityType: EntityTypeUid): void;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export { type EntityEventUid as E, type IEventData as I, type EntityEventSubscriptionFilter as a, type IEntityEvent as b, type IEntityEventsManager as c, type IEntityEventsDispatcher as d, EntityUpdateType as e, type IEntityUpdate as f, type IEntityUpdateQueue as g, type IEntityRepository as h, type IEntitySnapshot as i, type IEntitySnapshotProvider as j };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { I as IEntityProxy, f as IdentityComponent, b as IEntityModel, g as IComponent, c as IEntity, E as EntityTypeUid } from './index-DK2CXVZ8.cjs';
|
|
2
|
+
|
|
3
|
+
type EntityEventUid = string | number;
|
|
4
|
+
type EntityEventSubscriptionFilter = (event: IEntityEvent<IEventData>) => boolean;
|
|
5
|
+
/**
|
|
6
|
+
* The `IEventData` contains the event-specific state. At the very least, it contains the `Event Unique Identifier`.
|
|
7
|
+
*/
|
|
8
|
+
interface IEventData {
|
|
9
|
+
uid: EntityEventUid;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The `IEntityEvent` represents the basic building block for a Pub/Sub pattern, to synchronize state between multiple Entities.
|
|
13
|
+
*
|
|
14
|
+
* The Events are scheduled as part of the `EntityUpdate` model. Systems subscribe and receive updates with the Events included in their `SystemContext`.
|
|
15
|
+
*/
|
|
16
|
+
interface IEntityEvent<TEventData extends IEventData> {
|
|
17
|
+
origin: IEntityProxy;
|
|
18
|
+
target?: IEntityProxy;
|
|
19
|
+
data: TEventData;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The `IEntityEventsManager` represents the Pub/Sub broker for `IEntityEvent` instances.
|
|
23
|
+
* It keeps track of Entity Subscriptions (as part of the Observer design-pattern).
|
|
24
|
+
*/
|
|
25
|
+
interface IEntityEventsManager {
|
|
26
|
+
subscribe(uid: EntityEventUid, entity: IEntityProxy, filter?: EntityEventSubscriptionFilter): void;
|
|
27
|
+
unsubscribe(uid: EntityEventUid, entity: IEntityProxy): void;
|
|
28
|
+
getSubscriptions(event: IEntityEvent<IEventData>): IEntityProxy[];
|
|
29
|
+
/**
|
|
30
|
+
* Removes all Subscriptions for all Entities.
|
|
31
|
+
*/
|
|
32
|
+
clearSubscriptions(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Removes all Subscriptions for the given Event.
|
|
35
|
+
* @param uid The Event UID to remove all Subscribers from.
|
|
36
|
+
*/
|
|
37
|
+
clearSubscriptionsForEvent(uid: EntityEventUid): void;
|
|
38
|
+
/**
|
|
39
|
+
* Removes all Event Subscriptions for the given Entity.
|
|
40
|
+
* @param entity The Entity to remove all of it's Event Subscriptions.
|
|
41
|
+
*/
|
|
42
|
+
clearSubscriptionsForEntity(entity: IEntityProxy): void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The `IEntityEventsDispatcher` is the main access point for dispatching events to Entities.
|
|
46
|
+
*
|
|
47
|
+
* It can leverage the `IEntityEventsManager` to find Subscribers, and the `IEntityUpdateQueue` to register events
|
|
48
|
+
* into each Observer Entity's next update.
|
|
49
|
+
*/
|
|
50
|
+
interface IEntityEventsDispatcher {
|
|
51
|
+
dispatchEvent(event: IEntityEvent<IEventData>, ...targets: IEntityProxy[]): void;
|
|
52
|
+
dispatchEvents(events: IEntityEvent<IEventData>[], ...targets: IEntityProxy[]): void;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The `IEntitySnapshot` contains the full or partial serializable state of an Entity.
|
|
57
|
+
*
|
|
58
|
+
* It can be used to capture Entity state changes (deltas) or update existing Entity with changes coming from a remote source (e.g. server or other peers).
|
|
59
|
+
*/
|
|
60
|
+
interface IEntitySnapshot {
|
|
61
|
+
readonly identity?: Readonly<IdentityComponent<IEntityModel>>;
|
|
62
|
+
readonly components?: IComponent[];
|
|
63
|
+
readonly proxies?: IEntityProxy[];
|
|
64
|
+
readonly events?: IEntityEvent<IEventData>[];
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The `IEntitySnapshotProvider` is the main provider for both creating snapshots for an Entity,
|
|
68
|
+
* as well as updating Entity state based off an `IEntitySnapshot`.
|
|
69
|
+
*/
|
|
70
|
+
interface IEntitySnapshotProvider {
|
|
71
|
+
applySnapshot(entity: IEntity, snapshot: IEntitySnapshot): void;
|
|
72
|
+
createSnapshot(entity: IEntity): IEntitySnapshot;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The `EntityUpdateType` specifies whether the current should `update` or `remove` the Entity.
|
|
77
|
+
*/
|
|
78
|
+
declare enum EntityUpdateType {
|
|
79
|
+
update = "update",
|
|
80
|
+
remove = "remove"
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The `IEntityUpdate` represents an Entity update that should be applied over an (existing) Entity.
|
|
84
|
+
*/
|
|
85
|
+
interface IEntityUpdate {
|
|
86
|
+
type: EntityUpdateType;
|
|
87
|
+
entity: IEntityProxy;
|
|
88
|
+
model?: IEntityModel;
|
|
89
|
+
snapshot?: IEntitySnapshot;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The `IEntityUpdateQueue` is the main mechanism to queue and retrieve `EntityUpdate` instances.
|
|
93
|
+
*
|
|
94
|
+
* The interface can be implemented using a simple queue mechanism, or perhaps, a Priority Queue.
|
|
95
|
+
*/
|
|
96
|
+
interface IEntityUpdateQueue {
|
|
97
|
+
readonly size: number;
|
|
98
|
+
enqueue(change: IEntityUpdate): void;
|
|
99
|
+
dequeue(): IEntityUpdate;
|
|
100
|
+
peek(): IEntityUpdate;
|
|
101
|
+
clear(): void;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* The `IEntityRepository` is the central storage for keeping track of existing Entities.
|
|
106
|
+
* It provides basic CRUD functionality.
|
|
107
|
+
*/
|
|
108
|
+
interface IEntityRepository {
|
|
109
|
+
readonly size: number;
|
|
110
|
+
has(proxy: IEntityProxy): boolean;
|
|
111
|
+
get<TEntity extends IEntity>(proxy: IEntityProxy): TEntity;
|
|
112
|
+
getAll<TEntity extends IEntity>(entityType: EntityTypeUid): TEntity[];
|
|
113
|
+
listAll(): IEntity[];
|
|
114
|
+
set(entity: IEntity): void;
|
|
115
|
+
delete(proxy: IEntityProxy): void;
|
|
116
|
+
clear(entityType: EntityTypeUid): void;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export { type EntityEventUid as E, type IEventData as I, type EntityEventSubscriptionFilter as a, type IEntityEvent as b, type IEntityEventsManager as c, type IEntityEventsDispatcher as d, EntityUpdateType as e, type IEntityUpdate as f, type IEntityUpdateQueue as g, type IEntityRepository as h, type IEntitySnapshot as i, type IEntitySnapshotProvider as j };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/factories/index.ts
|
|
16
|
+
var factories_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(factories_exports);
|
|
18
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/factories/index.ts"],"sourcesContent":["export * from \"./context-factory\";\nexport * from \"./pipeline-factory\";\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { c as IEntity } from '../index-DK2CXVZ8.cjs';
|
|
2
|
+
import { I as ISystemsRuntimeContext, a as ISystemContext } from '../systems-runtime-context-Cq4vxbHX.cjs';
|
|
3
|
+
import { I as IPipelineContext, M as MiddlewareResult, a as IPipeline } from '../pipeline-BowCAITe.cjs';
|
|
4
|
+
import '../types-BNwBqRWY.cjs';
|
|
5
|
+
import '../entity-repository-awW_H993.cjs';
|
|
6
|
+
import '../utils/index.cjs';
|
|
7
|
+
import '../performance-timer-XvdCbcAE.cjs';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The IContextFactory can be used as an abstraction layer to quickly create Pipeline Contexts,
|
|
11
|
+
* without having to manually resolve all of their dependencies.
|
|
12
|
+
*/
|
|
13
|
+
interface IContextFactory {
|
|
14
|
+
createRuntimeContext<TEntity extends IEntity>(): ISystemsRuntimeContext<TEntity>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The PipelineFactory can be used as an abstraction layer to quickly create IPipeline objects,
|
|
19
|
+
* without having to manually resolve all of their dependencies.
|
|
20
|
+
*/
|
|
21
|
+
interface IPipelineFactory {
|
|
22
|
+
createPipeline<TContext extends IPipelineContext, TResult = MiddlewareResult>(name?: string): IPipeline<TContext, TResult>;
|
|
23
|
+
createSystemsPipeline<TEntity extends IEntity, TResult = MiddlewareResult>(name?: string): IPipeline<ISystemContext<TEntity>, TResult>;
|
|
24
|
+
createRuntimePipeline<TEntity extends IEntity, TResult = MiddlewareResult>(name?: string): IPipeline<ISystemsRuntimeContext<TEntity>, TResult>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type { IContextFactory, IPipelineFactory };
|
|
@@ -1,2 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { c as IEntity } from '../index-BPDsRt_F.js';
|
|
2
|
+
import { I as ISystemsRuntimeContext, a as ISystemContext } from '../systems-runtime-context-DjppCqs4.js';
|
|
3
|
+
import { I as IPipelineContext, M as MiddlewareResult, a as IPipeline } from '../pipeline-D43CXxWG.js';
|
|
4
|
+
import '../types-BNwBqRWY.js';
|
|
5
|
+
import '../entity-repository-Bu6rH-m5.js';
|
|
6
|
+
import '../utils/index.js';
|
|
7
|
+
import '../performance-timer-XvdCbcAE.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The IContextFactory can be used as an abstraction layer to quickly create Pipeline Contexts,
|
|
11
|
+
* without having to manually resolve all of their dependencies.
|
|
12
|
+
*/
|
|
13
|
+
interface IContextFactory {
|
|
14
|
+
createRuntimeContext<TEntity extends IEntity>(): ISystemsRuntimeContext<TEntity>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The PipelineFactory can be used as an abstraction layer to quickly create IPipeline objects,
|
|
19
|
+
* without having to manually resolve all of their dependencies.
|
|
20
|
+
*/
|
|
21
|
+
interface IPipelineFactory {
|
|
22
|
+
createPipeline<TContext extends IPipelineContext, TResult = MiddlewareResult>(name?: string): IPipeline<TContext, TResult>;
|
|
23
|
+
createSystemsPipeline<TEntity extends IEntity, TResult = MiddlewareResult>(name?: string): IPipeline<ISystemContext<TEntity>, TResult>;
|
|
24
|
+
createRuntimePipeline<TEntity extends IEntity, TResult = MiddlewareResult>(name?: string): IPipeline<ISystemsRuntimeContext<TEntity>, TResult>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type { IContextFactory, IPipelineFactory };
|
package/dist/factories/index.js
CHANGED
|
@@ -1,19 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./context-factory"), exports);
|
|
18
|
-
__exportStar(require("./pipeline-factory"), exports);
|
|
19
1
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|