@wirestate/core 0.7.0-experimental.2 → 0.7.0-experimental.3
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/cjs/development/index.js +28 -26
- package/cjs/development/index.js.map +1 -1
- package/cjs/development/lib.js +233 -287
- package/cjs/development/lib.js.map +1 -1
- package/cjs/development/test-utils.js +22 -38
- package/cjs/development/test-utils.js.map +1 -1
- package/cjs/production/index.js +1 -1
- package/cjs/production/index.js.map +1 -1
- package/cjs/production/lib.js +1 -1
- package/cjs/production/lib.js.map +1 -1
- package/cjs/production/test-utils.js +1 -1
- package/cjs/production/test-utils.js.map +1 -1
- package/esm/development/bind/bind-dynamic-value.js +1 -1
- package/esm/development/bind/bind-dynamic-value.js.map +1 -1
- package/esm/development/bind/bind-entry.js +1 -4
- package/esm/development/bind/bind-entry.js.map +1 -1
- package/esm/development/bind/bind-service.js +40 -54
- package/esm/development/bind/bind-service.js.map +1 -1
- package/esm/development/commands/command-bus.js +33 -42
- package/esm/development/commands/command-bus.js.map +1 -1
- package/esm/development/commands/get-command-handler-metadata.js +3 -3
- package/esm/development/commands/get-command-handler-metadata.js.map +1 -1
- package/esm/development/commands/on-command.js +4 -4
- package/esm/development/commands/on-command.js.map +1 -1
- package/esm/development/container/create-base-container.js +2 -3
- package/esm/development/container/create-base-container.js.map +1 -1
- package/esm/development/container/create-container.js +9 -18
- package/esm/development/container/create-container.js.map +1 -1
- package/esm/development/container/wire-scope.js +41 -42
- package/esm/development/container/wire-scope.js.map +1 -1
- package/esm/development/error/error-code.js +8 -8
- package/esm/development/error/error-code.js.map +1 -1
- package/esm/development/error/wirestate-error.js +18 -17
- package/esm/development/error/wirestate-error.js.map +1 -1
- package/esm/development/events/build-event-dispatcher.js +5 -7
- package/esm/development/events/build-event-dispatcher.js.map +1 -1
- package/esm/development/events/emit-event.js +3 -3
- package/esm/development/events/emit-event.js.map +1 -1
- package/esm/development/events/event-bus.js +16 -23
- package/esm/development/events/event-bus.js.map +1 -1
- package/esm/development/events/get-event-handler-metadata.js +3 -3
- package/esm/development/events/get-event-handler-metadata.js.map +1 -1
- package/esm/development/events/on-event.js +4 -5
- package/esm/development/events/on-event.js.map +1 -1
- package/esm/development/queries/get-query-handler-metadata.js +3 -3
- package/esm/development/queries/get-query-handler-metadata.js.map +1 -1
- package/esm/development/queries/on-query.js +4 -4
- package/esm/development/queries/on-query.js.map +1 -1
- package/esm/development/queries/query-bus.js +29 -35
- package/esm/development/queries/query-bus.js.map +1 -1
- package/esm/development/registry.js +10 -10
- package/esm/development/registry.js.map +1 -1
- package/esm/development/seeds/apply-seeds.js +2 -5
- package/esm/development/seeds/apply-seeds.js.map +1 -1
- package/esm/development/seeds/tokens.js +2 -2
- package/esm/development/seeds/tokens.js.map +1 -1
- package/esm/development/seeds/unapply-seeds.js +2 -3
- package/esm/development/seeds/unapply-seeds.js.map +1 -1
- package/esm/development/service/get-activated-handler-metadata.js +3 -3
- package/esm/development/service/get-activated-handler-metadata.js.map +1 -1
- package/esm/development/service/get-deactivation-handler-metadata.js +3 -3
- package/esm/development/service/get-deactivation-handler-metadata.js.map +1 -1
- package/esm/development/service/on-activated.js +3 -3
- package/esm/development/service/on-activated.js.map +1 -1
- package/esm/development/service/on-deactivation.js +3 -3
- package/esm/development/service/on-deactivation.js.map +1 -1
- package/esm/development/test-utils/mock-bind-entry.js +4 -5
- package/esm/development/test-utils/mock-bind-entry.js.map +1 -1
- package/esm/development/test-utils/mock-bind-service.js +4 -5
- package/esm/development/test-utils/mock-bind-service.js.map +1 -1
- package/esm/development/test-utils/mock-container.js +13 -21
- package/esm/development/test-utils/mock-container.js.map +1 -1
- package/esm/development/test-utils/mock-service.js +1 -7
- package/esm/development/test-utils/mock-service.js.map +1 -1
- package/esm/production/bind/bind-dynamic-value.js +1 -1
- package/esm/production/bind/bind-dynamic-value.js.map +1 -1
- package/esm/production/bind/bind-entry.js +1 -1
- package/esm/production/bind/bind-entry.js.map +1 -1
- package/esm/production/bind/bind-service.js +1 -1
- package/esm/production/bind/bind-service.js.map +1 -1
- package/esm/production/commands/command-bus.js +1 -1
- package/esm/production/commands/command-bus.js.map +1 -1
- package/esm/production/commands/get-command-handler-metadata.js +1 -1
- package/esm/production/commands/get-command-handler-metadata.js.map +1 -1
- package/esm/production/commands/on-command.js +1 -1
- package/esm/production/commands/on-command.js.map +1 -1
- package/esm/production/container/create-base-container.js +1 -1
- package/esm/production/container/create-base-container.js.map +1 -1
- package/esm/production/container/create-container.js +1 -1
- package/esm/production/container/create-container.js.map +1 -1
- package/esm/production/container/wire-scope.js +1 -1
- package/esm/production/container/wire-scope.js.map +1 -1
- package/esm/production/error/error-code.js +1 -1
- package/esm/production/error/error-code.js.map +1 -1
- package/esm/production/error/wirestate-error.js +1 -1
- package/esm/production/error/wirestate-error.js.map +1 -1
- package/esm/production/events/build-event-dispatcher.js +1 -1
- package/esm/production/events/build-event-dispatcher.js.map +1 -1
- package/esm/production/events/emit-event.js.map +1 -1
- package/esm/production/events/event-bus.js +1 -1
- package/esm/production/events/event-bus.js.map +1 -1
- package/esm/production/events/get-event-handler-metadata.js +1 -1
- package/esm/production/events/get-event-handler-metadata.js.map +1 -1
- package/esm/production/events/on-event.js +1 -1
- package/esm/production/events/on-event.js.map +1 -1
- package/esm/production/queries/get-query-handler-metadata.js +1 -1
- package/esm/production/queries/get-query-handler-metadata.js.map +1 -1
- package/esm/production/queries/on-query.js +1 -1
- package/esm/production/queries/on-query.js.map +1 -1
- package/esm/production/queries/query-bus.js +1 -1
- package/esm/production/queries/query-bus.js.map +1 -1
- package/esm/production/registry.js +1 -1
- package/esm/production/registry.js.map +1 -1
- package/esm/production/seeds/apply-seeds.js +1 -1
- package/esm/production/seeds/apply-seeds.js.map +1 -1
- package/esm/production/seeds/tokens.js +1 -1
- package/esm/production/seeds/tokens.js.map +1 -1
- package/esm/production/seeds/unapply-seeds.js +1 -1
- package/esm/production/seeds/unapply-seeds.js.map +1 -1
- package/esm/production/service/get-activated-handler-metadata.js +1 -1
- package/esm/production/service/get-activated-handler-metadata.js.map +1 -1
- package/esm/production/service/get-deactivation-handler-metadata.js +1 -1
- package/esm/production/service/get-deactivation-handler-metadata.js.map +1 -1
- package/esm/production/service/on-activated.js +1 -1
- package/esm/production/service/on-activated.js.map +1 -1
- package/esm/production/service/on-deactivation.js +1 -1
- package/esm/production/service/on-deactivation.js.map +1 -1
- package/esm/production/test-utils/mock-bind-entry.js +1 -1
- package/esm/production/test-utils/mock-bind-entry.js.map +1 -1
- package/esm/production/test-utils/mock-bind-service.js +1 -1
- package/esm/production/test-utils/mock-bind-service.js.map +1 -1
- package/esm/production/test-utils/mock-container.js +1 -1
- package/esm/production/test-utils/mock-container.js.map +1 -1
- package/esm/production/test-utils/mock-service.js +1 -1
- package/esm/production/test-utils/mock-service.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bind-service.js","sources":["../../../../../../../../src/wirestate-core/bind/bind-service.ts"],"sourcesContent":[null],"names":["CommandBus","getCommandHandlerMetadata","WireScope","buildEventDispatcher","EventBus","getQueryHandlerMetadata","QueryBus","CONTAINER_REFS_BY_SERVICE","WIRE_SCOPES_BY_SERVICE","EVENT_UNSUBSCRIBERS_BY_SERVICE","QUERY_UNREGISTERS_BY_SERVICE","COMMAND_UNREGISTERS_BY_SERVICE","getActivatedHandlerMetadata","getDeactivationHandlerMetadata","bindService","container","entry","options","whenBind","bind","to","inSingletonScope","onActivation","context","instance","IS_DISPOSED","set","service","Service","paramTypes","Reflect","getMetadata","some","type","scopes","
|
|
1
|
+
{"version":3,"file":"bind-service.js","sources":["../../../../../../../../src/wirestate-core/bind/bind-service.ts"],"sourcesContent":[null],"names":["CommandBus","getCommandHandlerMetadata","WireScope","buildEventDispatcher","EventBus","getQueryHandlerMetadata","QueryBus","CONTAINER_REFS_BY_SERVICE","WIRE_SCOPES_BY_SERVICE","EVENT_UNSUBSCRIBERS_BY_SERVICE","QUERY_UNREGISTERS_BY_SERVICE","COMMAND_UNREGISTERS_BY_SERVICE","getActivatedHandlerMetadata","getDeactivationHandlerMetadata","bindService","container","entry","options","whenBind","bind","to","inSingletonScope","onActivation","context","instance","IS_DISPOSED","set","service","Service","paramTypes","Reflect","getMetadata","some","type","scopes","key","Object","getOwnPropertyNames","value","constructor","push","length","attachWireScopes","dispatcher","handler","bus","get","subscribe","attachEventsSubscription","queryBus","meta","method","methodName","attachQueryUnregister","register","commandBus","attachCommandUnregister","isWithIgnoreLifecycle","result","call","then","catch","error","console","name","String","onDeactivation","scope","isDisposed","delete","detachWireScopes","list","unregister","detachCommandUnregister","detachQueryUnregister","unsubscribe","detachEventSubscription"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ERROR_CODE_FAILED_TO_RESOLVE_COMMAND_HANDLER as
|
|
1
|
+
import{ERROR_CODE_FAILED_TO_RESOLVE_COMMAND_HANDLER as e}from"../error/error-code.js";import{WirestateError as t}from"../error/wirestate-error.js";import{CommandStatus as r}from"../types/commands.js";class s{handlers=new Map;clear(){this.handlers.clear()}command(s,n){const h=this.handlers.get(s);if(!h?.length)throw new t(e,`No command handler registered in container for type: '${String(s)}'.`);const o=h[h.length-1],a={task:null,status:r.PENDING};return a.task=Promise.resolve().then((()=>o(n))).then((e=>(a.status=r.SETTLED,e))).catch((e=>{throw a.status=r.ERROR,e})),a}commandOptional(e,t){const r=this.handlers.get(e);return r?.length?this.command(e,t):null}has(e){return Boolean(this.handlers.get(e)?.length)}register(e,t){let r=this.handlers.get(e);return r||(r=[],this.handlers.set(e,r)),r.push(t),()=>this.unregister(e,t)}unregister(e,t){const r=this.handlers.get(e);if(!r)return;const s=r.indexOf(t);s>=0&&r.splice(s,1),0===r.length&&this.handlers.delete(e)}}export{s as CommandBus};//# sourceMappingURL=command-bus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-bus.js","sources":["../../../../../../../../src/wirestate-core/commands/command-bus.ts"],"sourcesContent":[null],"names":["ERROR_CODE_FAILED_TO_RESOLVE_COMMAND_HANDLER","WirestateError","CommandStatus","CommandBus","
|
|
1
|
+
{"version":3,"file":"command-bus.js","sources":["../../../../../../../../src/wirestate-core/commands/command-bus.ts"],"sourcesContent":[null],"names":["ERROR_CODE_FAILED_TO_RESOLVE_COMMAND_HANDLER","WirestateError","CommandStatus","CommandBus","handlers","Map","clear","this","command","type","data","stack","get","length","String","handler","descriptor","task","status","PENDING","Promise","resolve","then","result","SETTLED","catch","error","ERROR","commandOptional","has","Boolean","register","set","push","unregister","current","index","indexOf","splice","delete"],"mappings":"uDAcAA,MAAA,kDAAAC,MAAA,sDAAAC,MAAA,6BAUaC,EAKMC,SAAoD,IAAIC,IAKlEC,QACLC,KAAKH,SAASE,OAChB,CAwBOE,QAAkCC,EAAmBC,GAC1D,MAAMC,EAAsCJ,KAAKH,SAASQ,IAAIH,GAE9D,IAAKE,GAAOE,OACV,MAAM,IAAIZ,EACRD,EACA,yDAAyDc,OAAOL,QAIpE,MAAMM,EAAUJ,EAAMA,EAAME,OAAS,GAE/BG,EAAmC,CACvCC,KAAM,KACNC,OAAQhB,EAAciB,SAgBxB,OAbCH,EAAoCC,KAAOG,QAAQC,UACjDC,MAAK,IAAMP,EAAQL,KACnBY,MAAMC,IACJP,EAAyCE,OAAShB,EAAcsB,QAE1DD,KAERE,OAAOC,IAGN,MAFCV,EAAyCE,OAAShB,EAAcyB,MAE3DD,CAAK,IAGRV,CACT,CAYOY,gBAA0CnB,EAAmBC,GAClE,MAAMC,EAAsCJ,KAAKH,SAASQ,IAAIH,GAE9D,OAAOE,GAAOE,OAASN,KAAKC,QAAcC,EAAMC,GAAQ,IAC1D,CAQOmB,IAAIpB,GACT,OAAOqB,QAAQvB,KAAKH,SAASQ,IAAIH,IAAOI,OAC1C,CAuBOkB,SAAmCtB,EAAmBM,GAO3D,IAAIJ,EAAsCJ,KAAKH,SAASQ,IAAIH,GAS5D,OAPKE,IACHA,EAAQ,GACRJ,KAAKH,SAAS4B,IAAIvB,EAAME,IAG1BA,EAAMsB,KAAKlB,GAEJ,IAAMR,KAAK2B,WAAWzB,EAAMM,EACrC,CAcOmB,WAAqCzB,EAAmBM,GAO7D,MAAMoB,EAAwC5B,KAAKH,SAASQ,IAAIH,GAEhE,IAAK0B,EACH,OAGF,MAAMC,EAAgBD,EAAQE,QAAQtB,GAElCqB,GAAS,GACXD,EAAQG,OAAOF,EAAO,GAID,IAAnBD,EAAQtB,QACVN,KAAKH,SAASmC,OAAO9B,EAEzB,SACDN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{COMMAND_HANDLER_METADATA as t}from"../registry.js";function
|
|
1
|
+
import{COMMAND_HANDLER_METADATA as t}from"../registry.js";function o(o){let e=o.constructor;const r=[];for(;"function"==typeof e&&e!==Object&&e!==Function.prototype;){const o=t.get(e);o&&o.length>0&&r.push(o),e=Object.getPrototypeOf(e)}return r.reverse().flat()}export{o as getCommandHandlerMetadata};//# sourceMappingURL=get-command-handler-metadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-command-handler-metadata.js","sources":["../../../../../../../../src/wirestate-core/commands/get-command-handler-metadata.ts"],"sourcesContent":[null],"names":["COMMAND_HANDLER_METADATA","getCommandHandlerMetadata","instance","constructor","chain","Object","Function","prototype","own","get","length","push","getPrototypeOf","reverse","flat"],"mappings":"mCAOAA,MAAA,iBAaM,SAAUC,EAA0BC,
|
|
1
|
+
{"version":3,"file":"get-command-handler-metadata.js","sources":["../../../../../../../../src/wirestate-core/commands/get-command-handler-metadata.ts"],"sourcesContent":[null],"names":["COMMAND_HANDLER_METADATA","getCommandHandlerMetadata","instance","constructor","chain","Object","Function","prototype","own","get","length","push","getPrototypeOf","reverse","flat"],"mappings":"mCAOAA,MAAA,iBAaM,SAAUC,EAA0BC,GAMxC,IAAIC,EAAuBD,EAASC,YAEpC,MAAMC,EAA8C,GAGpD,KAA8B,mBAAhBD,GAA8BA,IAAgBE,QAAUF,IAAgBG,SAASC,WAAW,CACxG,MAAMC,EAA4CR,EAAyBS,IAAIN,GAE3EK,GAAOA,EAAIE,OAAS,GACtBN,EAAMO,KAAKH,GAGbL,EAAcE,OAAOO,eAAeT,EACtC,CASA,OAAOC,EAAMS,UAAUC,MACzB,QAAAb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{COMMAND_HANDLER_METADATA as t}from"../registry.js";function
|
|
1
|
+
import{COMMAND_HANDLER_METADATA as t}from"../registry.js";function e(e){return(r,o)=>{const s=r.constructor;let n=t.get(s);n||(n=[],t.set(s,n)),n.push({methodName:o,type:e})}}export{e as OnCommand};//# sourceMappingURL=on-command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"on-command.js","sources":["../../../../../../../../src/wirestate-core/commands/on-command.ts"],"sourcesContent":[null],"names":["COMMAND_HANDLER_METADATA","OnCommand","type","target","propertyKey","constructor","list","get","set","push","methodName"],"mappings":"mCAOAA,MAAA,iBAsBM,SAAUC,EAAUC,GACxB,
|
|
1
|
+
{"version":3,"file":"on-command.js","sources":["../../../../../../../../src/wirestate-core/commands/on-command.ts"],"sourcesContent":[null],"names":["COMMAND_HANDLER_METADATA","OnCommand","type","target","propertyKey","constructor","list","get","set","push","methodName"],"mappings":"mCAOAA,MAAA,iBAsBM,SAAUC,EAAUC,GACxB,MAAO,CAACC,EAAQC,KASd,MAAMC,EAAcF,EAAOE,YAE3B,IAAIC,EAA6CN,EAAyBO,IAAIF,GAEzEC,IACHA,EAAO,GACPN,EAAyBQ,IAAIH,EAAaC,IAI5CA,EAAKG,KAAK,CAAEC,WAAYN,EAAaF,QAAO,CAEhD,QAAAD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Container as e}from"inversify";import{CommandBus as n}from"../commands/command-bus.js";import{EventBus as t}from"../events/event-bus.js";import{QueryBus as o}from"../queries/query-bus.js";import{applySeeds as s}from"../seeds/apply-seeds.js";import{SEEDS_TOKEN as r,SEED_TOKEN as a}from"../seeds/tokens.js";function i(i){
|
|
1
|
+
import{Container as e}from"inversify";import{CommandBus as n}from"../commands/command-bus.js";import{EventBus as t}from"../events/event-bus.js";import{QueryBus as o}from"../queries/query-bus.js";import{applySeeds as s}from"../seeds/apply-seeds.js";import{SEEDS_TOKEN as r,SEED_TOKEN as a}from"../seeds/tokens.js";function i(i){const m=new e({parent:i.parent,defaultScope:"Singleton"});return m.bind(t).toConstantValue(new t),m.bind(o).toConstantValue(new o),m.bind(n).toConstantValue(new n),m.bind(r).toConstantValue(new Map),m.bind(a).toConstantValue(i.seed??{}),i.seeds&&s(m,i.seeds),m}export{i as createBaseContainer};//# sourceMappingURL=create-base-container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-base-container.js","sources":["../../../../../../../../src/wirestate-core/container/create-base-container.ts"],"sourcesContent":[null],"names":["Container","CommandBus","EventBus","QueryBus","applySeeds","SEEDS_TOKEN","SEED_TOKEN","createBaseContainer","options","container","parent","defaultScope","bind","toConstantValue","Map","
|
|
1
|
+
{"version":3,"file":"create-base-container.js","sources":["../../../../../../../../src/wirestate-core/container/create-base-container.ts"],"sourcesContent":[null],"names":["Container","CommandBus","EventBus","QueryBus","applySeeds","SEEDS_TOKEN","SEED_TOKEN","createBaseContainer","options","container","parent","defaultScope","bind","toConstantValue","Map","seed","seeds"],"mappings":"oBAmCAA,MAAA,iCAAAC,MAAA,gDAAAC,MAAA,4CAAAC,MAAA,+CAAAC,MAAA,gDAAAC,gBAAAC,MAAA,qBA+BM,SAAUC,EAAoBC,GAClC,MAAMC,EAAuB,IAAIT,EAAU,CACzCU,OAAQF,EAAQE,OAChBC,aAAc,cAchB,OAXAF,EAAUG,KAAKV,GAAUW,gBAAgB,IAAIX,GAC7CO,EAAUG,KAAKT,GAAUU,gBAAgB,IAAIV,GAC7CM,EAAUG,KAAKX,GAAYY,gBAAgB,IAAIZ,GAE/CQ,EAAUG,KAAKP,GAAaQ,gBAAgB,IAAIC,KAChDL,EAAUG,KAAKN,GAAYO,gBAAgBL,EAAQO,MAAQ,IAEvDP,EAAQQ,OACVZ,EAAWK,EAAWD,EAAQQ,OAGzBP,CACT,QAAAF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createBaseContainer as e}from"./create-base-container.js";import{WireScope as
|
|
1
|
+
import{createBaseContainer as e}from"./create-base-container.js";import{WireScope as t}from"./wire-scope.js";import{Container as r}from"inversify";import{bindEntry as i}from"../bind/bind-entry.js";import{getEntryToken as o}from"../bind/get-entry-token.js";import{ERROR_CODE_VALIDATION_ERROR as n}from"../error/error-code.js";import{WirestateError as s}from"../error/wirestate-error.js";function a(a={}){if(a.activate&&a.activate.length){if(!a.entries?.length)throw new s(n,"Supplied activation list while entries for binding are not provided.");const e=a.entries.map(o);for(const t of a.activate)if(!e.includes(t))throw new s(n,`createInjectablesProvider: '${String(t)}' is listed in 'activate' but was not provided in 'entries'.`)}const c=new r({defaultScope:"Singleton",parent:e(a)});if(c.bind(t).toResolvedValue((()=>new t(c))).inTransientScope(),a.entries)for(const e of a.entries)i(c,e);if(a.activate)for(const e of a.activate)c.get(e);return c}export{a as createContainer};//# sourceMappingURL=create-container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-container.js","sources":["../../../../../../../../src/wirestate-core/container/create-container.ts"],"sourcesContent":[null],"names":["createBaseContainer","WireScope","Container","bindEntry","getEntryToken","ERROR_CODE_VALIDATION_ERROR","WirestateError","createContainer","options","activate","length","
|
|
1
|
+
{"version":3,"file":"create-container.js","sources":["../../../../../../../../src/wirestate-core/container/create-container.ts"],"sourcesContent":[null],"names":["createBaseContainer","WireScope","Container","bindEntry","getEntryToken","ERROR_CODE_VALIDATION_ERROR","WirestateError","createContainer","options","activate","length","entries","entryTokens","map","eager","includes","String","container","defaultScope","parent","bind","toResolvedValue","inTransientScope","entry","get"],"mappings":"8BAuDAA,MAAA,iDAAAC,MAAA,sCAAAC,MAAA,gCAAAC,MAAA,gDAAAC,MAAA,mEAAAC,MAAA,kDAAAC,MAAA,8BA6BM,SAAUC,EAAgBC,EAAkC,IAGhE,GAAIA,EAAQC,UAAYD,EAAQC,SAASC,OAAQ,CAC/C,IAAKF,EAAQG,SAASD,OACpB,MAAM,IAAIJ,EACRD,EACA,wEAIJ,MAAMO,EAAgDJ,EAAQG,QAAQE,IAAIT,GAE1E,IAAK,MAAMU,KAASN,EAAQC,SAC1B,IAAKG,EAAYG,SAASD,GACxB,MAAM,IAAIR,EACRD,EACA,+BAA+BW,OAAOF,iEAI9C,CAEA,MAAMG,EAAuB,IAAIf,EAAU,CACzCgB,aAAc,YACdC,OAAQnB,EAAoBQ,KAU9B,GAPAS,EACGG,KAAKnB,GACLoB,iBAAgB,IAAiB,IAAIpB,EAAUgB,KAC/CK,mBAICd,EAAQG,QACV,IAAK,MAAMY,KAASf,EAAQG,QAC1BR,EAAUc,EAAWM,GAIzB,GAAIf,EAAQC,SACV,IAAK,MAAMc,KAASf,EAAQC,SAC1BQ,EAAUO,IAAID,GAIlB,OAAON,CACT,QAAAV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__decorate as
|
|
1
|
+
import{__decorate as e,__metadata as t}from"tslib";import{injectable as r}from"inversify";import{CommandBus as n}from"../commands/command-bus.js";import{ERROR_CODE_ACCESS_AFTER_DISPOSAL as i,ERROR_CODE_ACCESS_BEFORE_ACTIVATION as o}from"../error/error-code.js";import{WirestateError as s}from"../error/wirestate-error.js";import{EventBus as a}from"../events/event-bus.js";import{QueryBus as g}from"../queries/query-bus.js";import{SEEDS_TOKEN as u,SEED_TOKEN as m}from"../seeds/tokens.js";let c=class{isDisposed=!1;constructor(e){this.container=e}getContainer(){if(this.container)return this.container;throw this.isDisposed?new s(i,"WireScope::container accessed after deactivation. Ensure service is properly disposed."):new s(o,"WireScope::container accessed before activation. Ensure service is bound to container and is properly resolved.")}resolve(e){return this.getContainer().get(e)}resolveOptional(e){const t=this.getContainer();return t.isBound(e)?t.get(e):null}emitEvent(e,t,r){this.getContainer().get(a).emit({type:e,payload:t,from:void 0===r?this:r})}subscribeToEvent(e){return this.getContainer().get(a).subscribe(e)}unsubscribeFromEvent(e){this.getContainer().get(a).unsubscribe(e)}queryData(e,t){return this.getContainer().get(g).query(e,t)}queryOptionalData(e,t){return this.getContainer().get(g).queryOptional(e,t)}registerQueryHandler(e,t){return this.getContainer().get(g).register(e,t)}unregisterQueryHandler(e,t){this.getContainer().get(g).unregister(e,t)}executeCommand(e,t){return this.getContainer().get(n).command(e,t)}executeOptionalCommand(e,t){return this.getContainer().get(n).commandOptional(e,t)}registerCommandHandler(e,t){return this.getContainer().get(n).register(e,t)}unregisterCommandHandler(e,t){this.getContainer().get(n).unregister(e,t)}getSeed(e){return e?this.getContainer().get(u).get(e)||null:this.getContainer().get(m)}};c=e([r(),t("design:paramtypes",[Object])],c);export{c as WireScope};//# sourceMappingURL=wire-scope.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire-scope.js","sources":["../../../../../../../../src/wirestate-core/container/wire-scope.ts"],"sourcesContent":[null],"names":["__decorate","__metadata","injectable","CommandBus","ERROR_CODE_ACCESS_AFTER_DISPOSAL","ERROR_CODE_ACCESS_BEFORE_ACTIVATION","WirestateError","EventBus","QueryBus","SEEDS_TOKEN","SEED_TOKEN","WireScope","
|
|
1
|
+
{"version":3,"file":"wire-scope.js","sources":["../../../../../../../../src/wirestate-core/container/wire-scope.ts"],"sourcesContent":[null],"names":["__decorate","__metadata","injectable","CommandBus","ERROR_CODE_ACCESS_AFTER_DISPOSAL","ERROR_CODE_ACCESS_BEFORE_ACTIVATION","WirestateError","EventBus","QueryBus","SEEDS_TOKEN","SEED_TOKEN","WireScope","isDisposed","constructor","container","this","getContainer","resolve","injectionId","get","resolveOptional","isBound","emitEvent","type","payload","from","emit","undefined","subscribeToEvent","handler","subscribe","unsubscribeFromEvent","unsubscribe","queryData","data","query","queryOptionalData","queryOptional","registerQueryHandler","register","unregisterQueryHandler","unregister","executeCommand","command","executeOptionalCommand","commandOptional","registerCommandHandler","unregisterCommandHandler","getSeed","seed"],"mappings":"qBAiBAA,gBAAAC,MAAA,6BAAAC,MAAA,iCAAAC,MAAA,wEAAAC,yCAAAC,MAAA,kDAAAC,MAAA,iDAAAC,MAAA,4CAAAC,MAAA,gDAAAC,gBAAAC,MAAA,qBAYO,IAAMC,EAAN,MAIWC,YAAsB,EAEtCC,YAAoCC,GAAAC,KAAAD,UAAAA,CAAiC,CAgB9DE,eACL,GAAID,KAAKD,UACP,OAAOC,KAAKD,UAGd,MAAIC,KAAKH,WACD,IAAIN,EACRF,EACA,0FAGI,IAAIE,EACRD,EACA,kHAIN,CAqBOY,QAAWC,GAMhB,OAAOH,KAAKC,eAAeG,IAAOD,EACpC,CAmBOE,gBAAmBF,GAMxB,MAAMJ,EAAuBC,KAAKC,eAElC,OAAOF,EAAUO,QAAQH,GAAeJ,EAAUK,IAAOD,GAAe,IAC1E,CAmBOI,UAA8CC,EAASC,EAAaC,GAOzEV,KAAKC,eACFG,IAAIZ,GACJmB,KAAK,CACJH,OACAC,UACAC,UAAeE,IAATF,EAAqBV,KAAOU,GAExC,CAiBOG,iBAAiBC,GAGtB,OAAOd,KAAKC,eAAeG,IAAIZ,GAAUuB,UAAUD,EACrD,CAcOE,qBAAqBF,GAG1Bd,KAAKC,eAAeG,IAAIZ,GAAUyB,YAAYH,EAChD,CAqBOI,UAAqEV,EAASW,GAGnF,OAAOnB,KAAKC,eAAeG,IAAIX,GAAU2B,MAAYZ,EAAMW,EAC7D,CAoBOE,kBACLb,EACAW,GAIA,OAAOnB,KAAKC,eAAeG,IAAIX,GAAU6B,cAAoBd,EAAMW,EACrE,CAmBOI,qBAA+Cf,EAAiBM,GAGrE,OAAOd,KAAKC,eAAeG,IAAIX,GAAU+B,SAAShB,EAAMM,EAC1D,CAkBOW,uBAAiDjB,EAAiBM,GAGvEd,KAAKC,eAAeG,IAAIX,GAAUiC,WAAWlB,EAAMM,EACrD,CAuBOa,eACLnB,EACAW,GAIA,OAAOnB,KAAKC,eAAeG,IAAIhB,GAAYwC,QAAcpB,EAAMW,EACjE,CAwBOU,uBACLrB,EACAW,GAIA,OAAOnB,KAAKC,eAAeG,IAAIhB,GAAY0C,gBAAsBtB,EAAMW,EACzE,CAqBOY,uBACLvB,EACAM,GAIA,OAAOd,KAAKC,eAAeG,IAAIhB,GAAYoC,SAAShB,EAAMM,EAC5D,CAkBOkB,yBAAmDxB,EAAmBM,GAG3Ed,KAAKC,eAAeG,IAAIhB,GAAYsC,WAAWlB,EAAMM,EACvD,CA2COmB,QAAWC,GAKhB,OAAOA,EACFlC,KAAKC,eAAeG,IAAcV,GAAaU,IAAI8B,IAAe,KACnElC,KAAKC,eAAeG,IAAOT,EACjC,GA1aWC,EAASX,EAAA,CADrBE,qCACYS,UA2aZA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const o=1,t=50,c=51,e=52,n=101,p=102,r=200,s=201;export{s as ERROR_CODE_ACCESS_AFTER_DISPOSAL,r as ERROR_CODE_ACCESS_BEFORE_ACTIVATION,e as ERROR_CODE_BINDING_SCOPE,p as ERROR_CODE_FAILED_TO_RESOLVE_COMMAND_HANDLER,n as ERROR_CODE_FAILED_TO_RESOLVE_QUERY_HANDLER,o as ERROR_CODE_GENERIC,c as ERROR_CODE_INVALID_ARGUMENTS,t as ERROR_CODE_VALIDATION_ERROR};//# sourceMappingURL=error-code.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-code.js","sources":["../../../../../../../../src/wirestate-core/error/error-code.ts"],"sourcesContent":[null],"names":["ERROR_CODE_GENERIC","ERROR_CODE_VALIDATION_ERROR","ERROR_CODE_INVALID_ARGUMENTS","ERROR_CODE_BINDING_SCOPE","ERROR_CODE_FAILED_TO_RESOLVE_QUERY_HANDLER","ERROR_CODE_FAILED_TO_RESOLVE_COMMAND_HANDLER","ERROR_CODE_ACCESS_BEFORE_ACTIVATION","ERROR_CODE_ACCESS_AFTER_DISPOSAL"],"mappings":"AAAO,
|
|
1
|
+
{"version":3,"file":"error-code.js","sources":["../../../../../../../../src/wirestate-core/error/error-code.ts"],"sourcesContent":[null],"names":["ERROR_CODE_GENERIC","ERROR_CODE_VALIDATION_ERROR","ERROR_CODE_INVALID_ARGUMENTS","ERROR_CODE_BINDING_SCOPE","ERROR_CODE_FAILED_TO_RESOLVE_QUERY_HANDLER","ERROR_CODE_FAILED_TO_RESOLVE_COMMAND_HANDLER","ERROR_CODE_ACCESS_BEFORE_ACTIVATION","ERROR_CODE_ACCESS_AFTER_DISPOSAL"],"mappings":"AAAO,MAAMA,EAA6B,EAE7BC,EAAsC,GACtCC,EAAuC,GACvCC,EAAmC,GAGnCC,EAAqD,IACrDC,EAAuD,IAEvDC,EAA8C,IAC9CC,EAA2C,WAAAA,sCAAAD,yCAAAH,8BAAAE,kDAAAD,gDAAAJ,wBAAAE,kCAAAD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ERROR_CODE_GENERIC as r}from"./error-code.js";class e extends Error{name="WirestateError";constructor(e=r,s){super(),this.code=e,this.message=s||"Wirestate error."}}export{e as WirestateError};//# sourceMappingURL=wirestate-error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirestate-error.js","sources":["../../../../../../../../src/wirestate-core/error/wirestate-error.ts"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"wirestate-error.js","sources":["../../../../../../../../src/wirestate-core/error/wirestate-error.ts"],"sourcesContent":[null],"names":["ERROR_CODE_GENERIC","WirestateError","Error","name","constructor","code","detail","super","this","message"],"mappings":"6BAEAA,MAAA,kBAqBM,MAAOC,UAAuBC,MAIlBC,KAAe,iBAgB/BC,YAAmBC,EAAeL,EAAoBM,GACpDC,QAEAC,KAAKH,KAAOA,EACZG,KAAKC,QAAUH,GAAU,kBAC3B,SACDL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getEventHandlerMetadata as
|
|
1
|
+
import{getEventHandlerMetadata as t}from"./get-event-handler-metadata.js";function e(e){const n=[];for(const o of t(e)){const t=e[o.methodName];"function"==typeof t&&n.push({types:o.types,handler:t.bind(e)})}return n.length?t=>{for(const e of n)(null===e.types||e.types.includes(t.type))&&e.handler(t)}:null}export{e as buildEventDispatcher};//# sourceMappingURL=build-event-dispatcher.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-event-dispatcher.js","sources":["../../../../../../../../src/wirestate-core/events/build-event-dispatcher.ts"],"sourcesContent":[null],"names":["getEventHandlerMetadata","buildEventDispatcher","instance","entries","
|
|
1
|
+
{"version":3,"file":"build-event-dispatcher.js","sources":["../../../../../../../../src/wirestate-core/events/build-event-dispatcher.ts"],"sourcesContent":[null],"names":["getEventHandlerMetadata","buildEventDispatcher","instance","entries","meta","method","methodName","push","types","handler","bind","length","event","entry","includes","type"],"mappings":"kCAQAA,MAAA,kCAyBM,SAAUC,EAAuCC,GAGrD,MAAMC,EAAqC,GAG3C,IAAK,MAAMC,KAAQJ,EAAwBE,GAAW,CACpD,MAAMG,EAAUH,EAAyDE,EAAKE,YAExD,mBAAXD,GACTF,EAAQI,KAAK,CACXC,MAAOJ,EAAKI,MACZC,QAAUJ,EAAwBK,KAAKR,IAG7C,CAEA,OAAIC,EAAQQ,OAOFC,IAEN,IAAK,MAAMC,KAASV,GACE,OAAhBU,EAAML,OAAkBK,EAAML,MAAMM,SAASF,EAAMG,QACrDF,EAAMJ,QAAQG,EAElB,EASK,IAEX,QAAAX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emit-event.js","sources":["../../../../../../../../src/wirestate-core/events/emit-event.ts"],"sourcesContent":[null],"names":["EventBus","emitEvent","container","type","payload","from","get","emit"],"mappings":"mBASAA,MAAA,iBAqBM,SAAUC,EAAkCC,EAAsBC,EAASC,EAAaC,GAG5FH,EAAUI,IAAIN,GAAUO,KAAK,CAAEJ,
|
|
1
|
+
{"version":3,"file":"emit-event.js","sources":["../../../../../../../../src/wirestate-core/events/emit-event.ts"],"sourcesContent":[null],"names":["EventBus","emitEvent","container","type","payload","from","get","emit"],"mappings":"mBASAA,MAAA,iBAqBM,SAAUC,EAAkCC,EAAsBC,EAASC,EAAaC,GAG5FH,EAAUI,IAAIN,GAAUO,KAAK,CAAEJ,OAAMC,UAASC,QAChD,QAAAJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
class e{handlers=new Set;emit(e){const r=Array.from(this.handlers);for(const s of r)try{s(e)}catch(e){console.error("[wirestate] Event handler threw:",e)}}subscribe(e){return this.handlers.add(e),()=>this.unsubscribe(e)}unsubscribe(e){this.handlers.delete(e)}has(){return this.handlers.size>0}clear(){this.handlers.clear()}}export{e as EventBus};//# sourceMappingURL=event-bus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-bus.js","sources":["../../../../../../../../src/wirestate-core/events/event-bus.ts"],"sourcesContent":[null],"names":["EventBus","
|
|
1
|
+
{"version":3,"file":"event-bus.js","sources":["../../../../../../../../src/wirestate-core/events/event-bus.ts"],"sourcesContent":[null],"names":["EventBus","handlers","Set","emit","event","snapshot","Array","from","this","handler","error","console","subscribe","add","unsubscribe","delete","has","size","clear"],"mappings":"MAeaA,EACMC,SAA8B,IAAIC,IAwB5CC,KAAgEC,GAErE,MAAMC,EAAgCC,MAAMC,KAAKC,KAAKP,UAEtD,IAAK,MAAMQ,KAAWJ,EACpB,IACEI,EAAQL,EACV,CAAE,MAAOM,GAEPC,QAAQD,MAAM,mCAAoCA,EACpD,CAEJ,CAeOE,UAAUH,GAQf,OAFAD,KAAKP,SAASY,IAAIJ,GAEX,IAAMD,KAAKM,YAAYL,EAChC,CAUOK,YAAYL,GAMjBD,KAAKP,SAASc,OAAON,EACvB,CAOOO,MACL,OAAOR,KAAKP,SAASgB,KAAO,CAC9B,CAOOC,QACLV,KAAKP,SAASiB,OAChB,SACDlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EVENT_HANDLER_METADATA as t}from"../registry.js";function
|
|
1
|
+
import{EVENT_HANDLER_METADATA as t}from"../registry.js";function o(o){let e=o.constructor;const r=[];for(;"function"==typeof e&&e!==Object&&e!==Function.prototype;){const o=t.get(e);o&&o.length>0&&r.push(o),e=Object.getPrototypeOf(e)}return r.reverse().flat()}export{o as getEventHandlerMetadata};//# sourceMappingURL=get-event-handler-metadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-event-handler-metadata.js","sources":["../../../../../../../../src/wirestate-core/events/get-event-handler-metadata.ts"],"sourcesContent":[null],"names":["EVENT_HANDLER_METADATA","getEventHandlerMetadata","instance","constructor","chain","Object","Function","prototype","own","get","length","push","getPrototypeOf","reverse","flat"],"mappings":"iCAOAA,MAAA,iBAuBM,SAAUC,EAAwBC,
|
|
1
|
+
{"version":3,"file":"get-event-handler-metadata.js","sources":["../../../../../../../../src/wirestate-core/events/get-event-handler-metadata.ts"],"sourcesContent":[null],"names":["EVENT_HANDLER_METADATA","getEventHandlerMetadata","instance","constructor","chain","Object","Function","prototype","own","get","length","push","getPrototypeOf","reverse","flat"],"mappings":"iCAOAA,MAAA,iBAuBM,SAAUC,EAAwBC,GAGtC,IAAIC,EAAuBD,EAASC,YAEpC,MAAMC,EAA4C,GAGlD,KAA8B,mBAAhBD,GAA8BA,IAAgBE,QAAUF,IAAgBG,SAASC,WAAW,CACxG,MAAMC,EAA0CR,EAAuBS,IAAIN,GAEvEK,GAAOA,EAAIE,OAAS,GACtBN,EAAMO,KAAKH,GAGbL,EAAcE,OAAOO,eAAeT,EACtC,CASA,OAAOC,EAAMS,UAAUC,MACzB,QAAAb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{EVENT_HANDLER_METADATA as t}from"../registry.js";function r(r){const o=void 0===r?null:Array.isArray(r)?[...r]:[r];return(r,e)=>{const s=r.constructor;let n=t.get(s);n||(n=[],t.set(s,n)),n.push({methodName:e,types:o})}}export{r as OnEvent};//# sourceMappingURL=on-event.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"on-event.js","sources":["../../../../../../../../src/wirestate-core/events/on-event.ts"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"on-event.js","sources":["../../../../../../../../src/wirestate-core/events/on-event.ts"],"sourcesContent":[null],"names":["EVENT_HANDLER_METADATA","OnEvent","types","normalized","undefined","Array","isArray","target","propertyKey","constructor","list","get","set","push","methodName"],"mappings":"iCAOAA,MAAA,iBAmCM,SAAUC,EAAQC,GAEtB,MAAMC,OACMC,IAAVF,EAAsB,KAAOG,MAAMC,QAAQJ,GAAS,IAAKA,GAAsC,CAACA,GAElG,MAAO,CAACK,EAAQC,KASd,MAAMC,EAAcF,EAAOE,YAE3B,IAAIC,EAA2CV,EAAuBW,IAAIF,GAErEC,IACHA,EAAO,GACPV,EAAuBY,IAAIH,EAAaC,IAI1CA,EAAKG,KAAK,CAAEC,WAAYN,EAAaN,MAAOC,GAAa,CAE7D,QAAAF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{QUERY_HANDLER_METADATA as t}from"../registry.js";function
|
|
1
|
+
import{QUERY_HANDLER_METADATA as t}from"../registry.js";function o(o){let e=o.constructor;const r=[];for(;"function"==typeof e&&e!==Object&&e!==Function.prototype;){const o=t.get(e);o&&o.length>0&&r.push(o),e=Object.getPrototypeOf(e)}return r.reverse().flat()}export{o as getQueryHandlerMetadata};//# sourceMappingURL=get-query-handler-metadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-query-handler-metadata.js","sources":["../../../../../../../../src/wirestate-core/queries/get-query-handler-metadata.ts"],"sourcesContent":[null],"names":["QUERY_HANDLER_METADATA","getQueryHandlerMetadata","instance","constructor","chain","Object","Function","prototype","own","get","length","push","getPrototypeOf","reverse","flat"],"mappings":"iCAOAA,MAAA,iBAwBM,SAAUC,EAAwBC,
|
|
1
|
+
{"version":3,"file":"get-query-handler-metadata.js","sources":["../../../../../../../../src/wirestate-core/queries/get-query-handler-metadata.ts"],"sourcesContent":[null],"names":["QUERY_HANDLER_METADATA","getQueryHandlerMetadata","instance","constructor","chain","Object","Function","prototype","own","get","length","push","getPrototypeOf","reverse","flat"],"mappings":"iCAOAA,MAAA,iBAwBM,SAAUC,EAAwBC,GAGtC,IAAIC,EAAuBD,EAASC,YAEpC,MAAMC,EAA4C,GAGlD,KAA8B,mBAAhBD,GAA8BA,IAAgBE,QAAUF,IAAgBG,SAASC,WAAW,CACxG,MAAMC,EAA0CR,EAAuBS,IAAIN,GAEvEK,GAAOA,EAAIE,OAAS,GACtBN,EAAMO,KAAKH,GAGbL,EAAcE,OAAOO,eAAeT,EACtC,CASA,OAAOC,EAAMS,UAAUC,MACzB,QAAAb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{QUERY_HANDLER_METADATA as t}from"../registry.js";function
|
|
1
|
+
import{QUERY_HANDLER_METADATA as t}from"../registry.js";function e(e){return(r,o)=>{const s=r.constructor;let n=t.get(s);n||(n=[],t.set(s,n)),n.push({methodName:o,type:e})}}export{e as OnQuery};//# sourceMappingURL=on-query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"on-query.js","sources":["../../../../../../../../src/wirestate-core/queries/on-query.ts"],"sourcesContent":[null],"names":["QUERY_HANDLER_METADATA","OnQuery","type","target","propertyKey","constructor","list","get","set","push","methodName"],"mappings":"iCAOAA,MAAA,iBA4BM,SAAUC,EAAQC,GACtB,
|
|
1
|
+
{"version":3,"file":"on-query.js","sources":["../../../../../../../../src/wirestate-core/queries/on-query.ts"],"sourcesContent":[null],"names":["QUERY_HANDLER_METADATA","OnQuery","type","target","propertyKey","constructor","list","get","set","push","methodName"],"mappings":"iCAOAA,MAAA,iBA4BM,SAAUC,EAAQC,GACtB,MAAO,CAACC,EAAQC,KASd,MAAMC,EAAcF,EAAOE,YAE3B,IAAIC,EAA2CN,EAAuBO,IAAIF,GAErEC,IACHA,EAAO,GACPN,EAAuBQ,IAAIH,EAAaC,IAI1CA,EAAKG,KAAK,CAAEC,WAAYN,EAAaF,QAAO,CAEhD,QAAAD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ERROR_CODE_FAILED_TO_RESOLVE_QUERY_HANDLER as
|
|
1
|
+
import{ERROR_CODE_FAILED_TO_RESOLVE_QUERY_HANDLER as e}from"../error/error-code.js";import{WirestateError as r}from"../error/wirestate-error.js";class t{handlers=new Map;register(e,r){let t=this.handlers.get(e);return t||(t=[],this.handlers.set(e,t)),t.push(r),()=>this.unregister(e,r)}unregister(e,r){const t=this.handlers.get(e);if(!t)return;const n=t.indexOf(r);n>=0&&t.splice(n,1),0===t.length&&this.handlers.delete(e)}query(t,n){const s=this.handlers.get(t);if(s?.length)return s[s.length-1](n);throw new r(e,`No query handler registered in container for type: '${String(t)}'.`)}queryOptional(e,r){const t=this.handlers.get(e);return t?.length?t[t.length-1](r):null}has(e){const r=this.handlers.get(e);return Boolean(r&&r.length)}clear(){this.handlers.clear()}}export{t as QueryBus};//# sourceMappingURL=query-bus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-bus.js","sources":["../../../../../../../../src/wirestate-core/queries/query-bus.ts"],"sourcesContent":[null],"names":["ERROR_CODE_FAILED_TO_RESOLVE_QUERY_HANDLER","WirestateError","QueryBus","
|
|
1
|
+
{"version":3,"file":"query-bus.js","sources":["../../../../../../../../src/wirestate-core/queries/query-bus.ts"],"sourcesContent":[null],"names":["ERROR_CODE_FAILED_TO_RESOLVE_QUERY_HANDLER","WirestateError","QueryBus","handlers","Map","register","type","handler","stack","this","get","set","push","unregister","current","index","indexOf","splice","length","delete","query","data","String","queryOptional","has","Boolean","clear"],"mappings":"qDAQAA,MAAA,kDAAAC,MAAA,oCAWaC,EAKMC,SAAgD,IAAIC,IAqB9DC,SAAmCC,EAAiBC,GAOzD,IAAIC,EAAoCC,KAAKN,SAASO,IAAIJ,GAS1D,OAPKE,IACHA,EAAQ,GACRC,KAAKN,SAASQ,IAAIL,EAAME,IAG1BA,EAAMI,KAAKL,GAEJ,IAAME,KAAKI,WAAWP,EAAMC,EACrC,CAcOM,WAAqCP,EAAiBC,GAO3D,MAAMO,EAAsCL,KAAKN,SAASO,IAAIJ,GAE9D,IAAKQ,EACH,OAGF,MAAMC,EAAgBD,EAAQE,QAAQT,GAElCQ,GAAS,GACXD,EAAQG,OAAOF,EAAO,GAID,IAAnBD,EAAQI,QACVT,KAAKN,SAASgB,OAAOb,EAEzB,CAwBOc,MAAiEd,EAASe,GAC/E,MAAMb,EAAoCC,KAAKN,SAASO,IAAIJ,GAG5D,GAAIE,GAAOU,OACT,OAAQV,EAAMA,EAAMU,OAAS,GAA0BG,GAGzD,MAAM,IAAIpB,EACRD,EACA,uDAAuDsB,OAAOhB,OAElE,CAaOiB,cACLjB,EACAe,GAEA,MAAMb,EAAoCC,KAAKN,SAASO,IAAIJ,GAE5D,OAAIE,GAAOU,OACDV,EAAMA,EAAMU,OAAS,GAA0BG,GAGlD,IACT,CAQOG,IAAIlB,GACT,MAAME,EAAoCC,KAAKN,SAASO,IAAIJ,GAE5D,OAAOmB,QAAQjB,GAASA,EAAMU,OAChC,CAOOQ,QACLjB,KAAKN,SAASuB,OAChB,SACDxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=new WeakMap,a=new WeakMap,n=new WeakMap,p=new WeakMap,k=new WeakMap,w=new WeakMap,M=new WeakMap,W=new WeakMap,o=new WeakMap,t=new WeakMap;export{n as ACTIVATED_HANDLER_METADATA,a as COMMAND_HANDLER_METADATA,t as COMMAND_UNREGISTERS_BY_SERVICE,w as CONTAINER_REFS_BY_SERVICE,p as DEACTIVATION_HANDLER_METADATA,k as EVENT_HANDLER_METADATA,W as EVENT_UNSUBSCRIBERS_BY_SERVICE,e as QUERY_HANDLER_METADATA,o as QUERY_UNREGISTERS_BY_SERVICE,M as WIRE_SCOPES_BY_SERVICE};//# sourceMappingURL=registry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sources":["../../../../../../../src/wirestate-core/registry.ts"],"sourcesContent":[null],"names":["QUERY_HANDLER_METADATA","WeakMap","COMMAND_HANDLER_METADATA","ACTIVATED_HANDLER_METADATA","DEACTIVATION_HANDLER_METADATA","EVENT_HANDLER_METADATA","CONTAINER_REFS_BY_SERVICE","WIRE_SCOPES_BY_SERVICE","EVENT_UNSUBSCRIBERS_BY_SERVICE","QUERY_UNREGISTERS_BY_SERVICE","COMMAND_UNREGISTERS_BY_SERVICE"],"mappings":"
|
|
1
|
+
{"version":3,"file":"registry.js","sources":["../../../../../../../src/wirestate-core/registry.ts"],"sourcesContent":[null],"names":["QUERY_HANDLER_METADATA","WeakMap","COMMAND_HANDLER_METADATA","ACTIVATED_HANDLER_METADATA","DEACTIVATION_HANDLER_METADATA","EVENT_HANDLER_METADATA","CONTAINER_REFS_BY_SERVICE","WIRE_SCOPES_BY_SERVICE","EVENT_UNSUBSCRIBERS_BY_SERVICE","QUERY_UNREGISTERS_BY_SERVICE","COMMAND_UNREGISTERS_BY_SERVICE"],"mappings":"MAiBaA,EAAuE,IAAIC,QAY3EC,EAA2E,IAAID,QAY/EE,EAAsE,IAAIF,QAY1EG,EAAyE,IAAIH,QAY7EI,EAAuE,IAAIJ,QAY3EK,EAAwD,IAAIL,QAY5DM,EAA4D,IAAIN,QAYhEO,EAAqE,IAAIP,QAYzEQ,EAAwE,IAAIR,QAY5ES,EAA4E,IAAIT,eAAOE,gCAAAD,8BAAAQ,oCAAAJ,+BAAAF,mCAAAC,4BAAAG,oCAAAR,4BAAAS,kCAAAF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SEEDS_TOKEN as
|
|
1
|
+
import{SEEDS_TOKEN as o}from"./tokens.js";function t(t,n){const s=t.get(o);for(const[o,t]of n)s.set(o,t)}export{t as applySeeds};//# sourceMappingURL=apply-seeds.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-seeds.js","sources":["../../../../../../../../src/wirestate-core/seeds/apply-seeds.ts"],"sourcesContent":[null],"names":["SEEDS_TOKEN","applySeeds","container","seeds","existing","get","
|
|
1
|
+
{"version":3,"file":"apply-seeds.js","sources":["../../../../../../../../src/wirestate-core/seeds/apply-seeds.ts"],"sourcesContent":[null],"names":["SEEDS_TOKEN","applySeeds","container","seeds","existing","get","key","state","set"],"mappings":"sBASAA,MAAA,cAqBM,SAAUC,EAAWC,EAAsBC,GAC/C,MAAMC,EAAqBF,EAAUG,IAAIL,GAIzC,IAAK,MAAOM,EAAKC,KAAUJ,EACzBC,EAASI,IAAIF,EAAKC,EAEtB,QAAAN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=Symbol("@wirestate/core/seeds"),o=Symbol("@wirestate/core/seed");export{e as SEEDS_TOKEN,o as SEED_TOKEN};//# sourceMappingURL=tokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sources":["../../../../../../../../src/wirestate-core/seeds/tokens.ts"],"sourcesContent":[null],"names":["SEEDS_TOKEN","Symbol","SEED_TOKEN"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tokens.js","sources":["../../../../../../../../src/wirestate-core/seeds/tokens.ts"],"sourcesContent":[null],"names":["SEEDS_TOKEN","Symbol","SEED_TOKEN"],"mappings":"MAaaA,EAA6BC,OAAO,yBAepCC,EAA4BD,OAAO,+BAAsBD,iBAAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SEEDS_TOKEN as
|
|
1
|
+
import{SEEDS_TOKEN as o}from"./tokens.js";function t(t,e){const n=t.get(o);for(const[o]of e)n.delete(o)}export{t as unapplySeeds};//# sourceMappingURL=unapply-seeds.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unapply-seeds.js","sources":["../../../../../../../../src/wirestate-core/seeds/unapply-seeds.ts"],"sourcesContent":[null],"names":["SEEDS_TOKEN","unapplySeeds","container","seeds","existing","get","
|
|
1
|
+
{"version":3,"file":"unapply-seeds.js","sources":["../../../../../../../../src/wirestate-core/seeds/unapply-seeds.ts"],"sourcesContent":[null],"names":["SEEDS_TOKEN","unapplySeeds","container","seeds","existing","get","key","delete"],"mappings":"sBASAA,MAAA,cAkBM,SAAUC,EAAaC,EAAsBC,GACjD,MAAMC,EAAqBF,EAAUG,IAAIL,GAIzC,IAAK,MAAOM,KAAQH,EAClBC,EAASG,OAAOD,EAEpB,QAAAL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ACTIVATED_HANDLER_METADATA as t}from"../registry.js";function
|
|
1
|
+
import{ACTIVATED_HANDLER_METADATA as t}from"../registry.js";function o(o){let e=o.constructor;const r=[];for(;"function"==typeof e&&e!==Object&&e!==Function.prototype;){const o=t.get(e);o&&o.length>0&&r.push(o),e=Object.getPrototypeOf(e)}return r.reverse().flat()}export{o as getActivatedHandlerMetadata};//# sourceMappingURL=get-activated-handler-metadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-activated-handler-metadata.js","sources":["../../../../../../../../src/wirestate-core/service/get-activated-handler-metadata.ts"],"sourcesContent":[null],"names":["ACTIVATED_HANDLER_METADATA","getActivatedHandlerMetadata","instance","constructor","chain","Object","Function","prototype","own","get","length","push","getPrototypeOf","reverse","flat"],"mappings":"qCAMAA,MAAA,iBAoBM,SAAUC,EAA4BC,
|
|
1
|
+
{"version":3,"file":"get-activated-handler-metadata.js","sources":["../../../../../../../../src/wirestate-core/service/get-activated-handler-metadata.ts"],"sourcesContent":[null],"names":["ACTIVATED_HANDLER_METADATA","getActivatedHandlerMetadata","instance","constructor","chain","Object","Function","prototype","own","get","length","push","getPrototypeOf","reverse","flat"],"mappings":"qCAMAA,MAAA,iBAoBM,SAAUC,EAA4BC,GAG1C,IAAIC,EAAuBD,EAASC,YAEpC,MAAMC,EAAuC,GAG7C,KAA8B,mBAAhBD,GAA8BA,IAAgBE,QAAUF,IAAgBG,SAASC,WAAW,CACxG,MAAMC,EAAqCR,EAA2BS,IAAIN,GAEtEK,GAAOA,EAAIE,OAAS,GACtBN,EAAMO,KAAKH,GAGbL,EAAcE,OAAOO,eAAeT,EACtC,CAKA,OAAOC,EAAMS,UAAUC,MACzB,QAAAb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DEACTIVATION_HANDLER_METADATA as t}from"../registry.js";function
|
|
1
|
+
import{DEACTIVATION_HANDLER_METADATA as t}from"../registry.js";function o(o){let e=o.constructor;const r=[];for(;"function"==typeof e&&e!==Object&&e!==Function.prototype;){const o=t.get(e);o&&o.length>0&&r.push(o),e=Object.getPrototypeOf(e)}return r.reverse().flat()}export{o as getDeactivationHandlerMetadata};//# sourceMappingURL=get-deactivation-handler-metadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-deactivation-handler-metadata.js","sources":["../../../../../../../../src/wirestate-core/service/get-deactivation-handler-metadata.ts"],"sourcesContent":[null],"names":["DEACTIVATION_HANDLER_METADATA","getDeactivationHandlerMetadata","instance","constructor","chain","Object","Function","prototype","own","get","length","push","getPrototypeOf","reverse","flat"],"mappings":"wCAMAA,MAAA,iBAoBM,SAAUC,EAA+BC,
|
|
1
|
+
{"version":3,"file":"get-deactivation-handler-metadata.js","sources":["../../../../../../../../src/wirestate-core/service/get-deactivation-handler-metadata.ts"],"sourcesContent":[null],"names":["DEACTIVATION_HANDLER_METADATA","getDeactivationHandlerMetadata","instance","constructor","chain","Object","Function","prototype","own","get","length","push","getPrototypeOf","reverse","flat"],"mappings":"wCAMAA,MAAA,iBAoBM,SAAUC,EAA+BC,GAG7C,IAAIC,EAAuBD,EAASC,YAEpC,MAAMC,EAAuC,GAG7C,KAA8B,mBAAhBD,GAA8BA,IAAgBE,QAAUF,IAAgBG,SAASC,WAAW,CACxG,MAAMC,EAAqCR,EAA8BS,IAAIN,GAEzEK,GAAOA,EAAIE,OAAS,GACtBN,EAAMO,KAAKH,GAGbL,EAAcE,OAAOO,eAAeT,EACtC,CASA,OAAOC,EAAMS,UAAUC,MACzB,QAAAb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ACTIVATED_HANDLER_METADATA as
|
|
1
|
+
import{ACTIVATED_HANDLER_METADATA as t}from"../registry.js";function r(){return(r,o)=>{const e=r.constructor;let s=t.get(e);s||(s=[],t.set(e,s)),s.push(o)}}export{r as OnActivated};//# sourceMappingURL=on-activated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"on-activated.js","sources":["../../../../../../../../src/wirestate-core/service/on-activated.ts"],"sourcesContent":[null],"names":["ACTIVATED_HANDLER_METADATA","OnActivated","target","propertyKey","constructor","list","get","set","push"],"mappings":"qCAMAA,MAAA,0BAyBgBC,IACd,
|
|
1
|
+
{"version":3,"file":"on-activated.js","sources":["../../../../../../../../src/wirestate-core/service/on-activated.ts"],"sourcesContent":[null],"names":["ACTIVATED_HANDLER_METADATA","OnActivated","target","propertyKey","constructor","list","get","set","push"],"mappings":"qCAMAA,MAAA,0BAyBgBC,IACd,MAAO,CAACC,EAAQC,KAQd,MAAMC,EAAeF,EAAkBE,YAEvC,IAAIC,EAAsCL,EAA2BM,IAAIF,GAEpEC,IACHA,EAAO,GACPL,EAA2BO,IAAIH,EAAaC,IAG9CA,EAAKG,KAAKL,EAAY,CAE1B,QAAAF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DEACTIVATION_HANDLER_METADATA as
|
|
1
|
+
import{DEACTIVATION_HANDLER_METADATA as t}from"../registry.js";function r(){return(r,o)=>{const e=r.constructor;let s=t.get(e);s||(s=[],t.set(e,s)),s.push(o)}}export{r as OnDeactivation};//# sourceMappingURL=on-deactivation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"on-deactivation.js","sources":["../../../../../../../../src/wirestate-core/service/on-deactivation.ts"],"sourcesContent":[null],"names":["DEACTIVATION_HANDLER_METADATA","OnDeactivation","target","propertyKey","constructor","list","get","set","push"],"mappings":"wCAMAA,MAAA,0BAyBgBC,IACd,
|
|
1
|
+
{"version":3,"file":"on-deactivation.js","sources":["../../../../../../../../src/wirestate-core/service/on-deactivation.ts"],"sourcesContent":[null],"names":["DEACTIVATION_HANDLER_METADATA","OnDeactivation","target","propertyKey","constructor","list","get","set","push"],"mappings":"wCAMAA,MAAA,0BAyBgBC,IACd,MAAO,CAACC,EAAQC,KAQd,MAAMC,EAAeF,EAAkBE,YAEvC,IAAIC,EAAsCL,EAA8BM,IAAIF,GAEvEC,IACHA,EAAO,GACPL,EAA8BO,IAAIH,EAAaC,IAGjDA,EAAKG,KAAKL,EAAY,CAE1B,QAAAF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bindEntry as i}from"../bind/bind-entry.js";function e(e,n,
|
|
1
|
+
import{bindEntry as i}from"../bind/bind-entry.js";function e(e,n,c={}){const{skipLifecycle:o}=c;i(e,n,{isWithIgnoreLifecycle:o})}export{e as mockBindEntry};//# sourceMappingURL=mock-bind-entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-bind-entry.js","sources":["../../../../../../../../src/wirestate-core/test-utils/mock-bind-entry.ts"],"sourcesContent":[null],"names":["bindEntry","mockBindEntry","container","entry","options","skipLifecycle","isWithIgnoreLifecycle"],"mappings":"oBAuBAA,MAAA,
|
|
1
|
+
{"version":3,"file":"mock-bind-entry.js","sources":["../../../../../../../../src/wirestate-core/test-utils/mock-bind-entry.ts"],"sourcesContent":[null],"names":["bindEntry","mockBindEntry","container","entry","options","skipLifecycle","isWithIgnoreLifecycle"],"mappings":"oBAuBAA,MAAA,wBAoBM,SAAUC,EACdC,EACAC,EACAC,EAAgC,CAAA,GAEhC,MAAMC,cAAEA,GAAkBD,EAE1BJ,EAAUE,EAAWC,EAAO,CAC1BG,sBAAuBD,GAE3B,QAAAJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bindService as i}from"../bind/bind-service.js";function e(e,c,
|
|
1
|
+
import{bindService as i}from"../bind/bind-service.js";function e(e,c,n={}){const{skipLifecycle:o}=n;i(e,c,{isWithIgnoreLifecycle:o})}export{e as mockBindService};//# sourceMappingURL=mock-bind-service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-bind-service.js","sources":["../../../../../../../../src/wirestate-core/test-utils/mock-bind-service.ts"],"sourcesContent":[null],"names":["bindService","mockBindService","container","ServiceClass","options","skipLifecycle","isWithIgnoreLifecycle"],"mappings":"sBAqBAA,MAAA,
|
|
1
|
+
{"version":3,"file":"mock-bind-service.js","sources":["../../../../../../../../src/wirestate-core/test-utils/mock-bind-service.ts"],"sourcesContent":[null],"names":["bindService","mockBindService","container","ServiceClass","options","skipLifecycle","isWithIgnoreLifecycle"],"mappings":"sBAqBAA,MAAA,0BAoBM,SAAUC,EACdC,EACAC,EACAC,EAAkC,CAAA,GAElC,MAAMC,cAAEA,GAAkBD,EAE1BJ,EAAYE,EAAWC,EAAc,CACnCG,sBAAuBD,GAE3B,QAAAJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getEntryToken as
|
|
1
|
+
import{getEntryToken as e}from"../bind/get-entry-token.js";import{createContainer as r}from"../container/create-container.js";import{ERROR_CODE_INVALID_ARGUMENTS as o}from"../error/error-code.js";import{WirestateError as t}from"../error/wirestate-error.js";import{mockBindEntry as i}from"./mock-bind-entry.js";function n(n={}){const{activate:s=[],entries:c=[],skipLifecycle:f}=n;if(s.length){const r=c.map((r=>e(r)));for(const e of s)if(!r.includes(e))throw new t(o,"Provided services for activation not matching list of services to bind.")}const m=r({parent:n.parent,seeds:n.seeds,seed:n.seed});for(const e of c)i(m,e,{skipLifecycle:f});for(const e of s)m.get(e);return m}export{n as mockContainer};//# sourceMappingURL=mock-container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-container.js","sources":["../../../../../../../../src/wirestate-core/test-utils/mock-container.ts"],"sourcesContent":[null],"names":["getEntryToken","createContainer","ERROR_CODE_INVALID_ARGUMENTS","WirestateError","mockBindEntry","mockContainer","options","
|
|
1
|
+
{"version":3,"file":"mock-container.js","sources":["../../../../../../../../src/wirestate-core/test-utils/mock-container.ts"],"sourcesContent":[null],"names":["getEntryToken","createContainer","ERROR_CODE_INVALID_ARGUMENTS","WirestateError","mockBindEntry","mockContainer","options","activate","entries","skipLifecycle","length","serviceTokens","map","s","token","includes","container","parent","seeds","seed","it","get"],"mappings":"wBA8DAA,MAAA,uDAAAC,MAAA,0EAAAC,MAAA,kDAAAC,MAAA,sDAAAC,MAAA,uBAuBM,SAAUC,EAAcC,EAAgC,IAC5D,MAAMC,SAAEA,EAAW,GAAEC,QAAEA,EAAU,GAAEC,cAAEA,GAAkBH,EAEvD,GAAIC,EAASG,OAAQ,CACnB,MAAMC,EAA0CH,EAAQI,KAAKC,GAAMb,EAAca,KAEjF,IAAK,MAAMC,KAASP,EAClB,IAAKI,EAAcI,SAASD,GAC1B,MAAM,IAAIX,EACRD,EACA,0EAIR,CAEA,MAAMc,EAAuBf,EAAgB,CAAEgB,OAAQX,EAAQW,OAAQC,MAAOZ,EAAQY,MAAOC,KAAMb,EAAQa,OAE3G,IAAK,MAAMC,KAAMZ,EACfJ,EAAcY,EAAWI,EAAI,CAAEX,cAAeA,IAGhD,IAAK,MAAMW,KAAMb,EACfS,EAAUK,IAAID,GAGhB,OAAOJ,CACT,QAAAX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{mockBindService as
|
|
1
|
+
import{mockBindService as e}from"./mock-bind-service.js";import{mockContainer as i}from"./mock-container.js";function c(c,o=i(),r={}){return e(o,c,{skipLifecycle:r.skipLifecycle}),o.get(c)}export{c as mockService};//# sourceMappingURL=mock-service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-service.js","sources":["../../../../../../../../src/wirestate-core/test-utils/mock-service.ts"],"sourcesContent":[null],"names":["mockBindService","mockContainer","mockService","service","container","options","skipLifecycle","get"],"mappings":"0BAmBAA,MAAA,iDAAAC,MAAA
|
|
1
|
+
{"version":3,"file":"mock-service.js","sources":["../../../../../../../../src/wirestate-core/test-utils/mock-service.ts"],"sourcesContent":[null],"names":["mockBindService","mockContainer","mockService","service","container","options","skipLifecycle","get"],"mappings":"0BAmBAA,MAAA,iDAAAC,MAAA,sBAqBM,SAAUC,EACdC,EACAC,EAAYH,IACZI,EAA8B,CAAA,GAM9B,OAJAL,EAAgBI,EAAWD,EAAS,CAClCG,cAAeD,EAAQC,gBAGlBF,EAAUG,IAAIJ,EACvB,QAAAD"}
|