@adaas/a-utils 0.2.7 → 0.2.9
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/.conf/tsconfig.base.json +91 -0
- package/.conf/tsconfig.browser.json +26 -0
- package/.conf/tsconfig.node.json +30 -0
- package/dist/browser/A-Logger.component-Be-LMV3I.d.mts +467 -0
- package/dist/browser/A-StateMachineTransition.context-BINjcsgq.d.mts +221 -0
- package/dist/browser/a-channel.d.mts +456 -0
- package/dist/browser/a-channel.mjs +367 -0
- package/dist/browser/a-channel.mjs.map +1 -0
- package/dist/browser/a-command.d.mts +555 -0
- package/dist/browser/a-command.mjs +567 -0
- package/dist/browser/a-command.mjs.map +1 -0
- package/dist/browser/a-config.d.mts +60 -0
- package/dist/browser/a-config.mjs +6 -0
- package/dist/browser/a-config.mjs.map +1 -0
- package/dist/browser/a-execution.d.mts +17 -0
- package/dist/browser/a-execution.mjs +4 -0
- package/dist/browser/a-execution.mjs.map +1 -0
- package/dist/browser/a-logger.d.mts +107 -0
- package/dist/browser/a-logger.mjs +7 -0
- package/dist/browser/a-logger.mjs.map +1 -0
- package/dist/browser/a-manifest.d.mts +111 -0
- package/dist/browser/a-manifest.mjs +176 -0
- package/dist/browser/a-manifest.mjs.map +1 -0
- package/dist/browser/a-memory.d.mts +163 -0
- package/dist/browser/a-memory.mjs +375 -0
- package/dist/browser/a-memory.mjs.map +1 -0
- package/dist/browser/a-operation.d.mts +52 -0
- package/dist/browser/a-operation.mjs +5 -0
- package/dist/browser/a-operation.mjs.map +1 -0
- package/dist/browser/a-polyfill.d.mts +275 -0
- package/dist/browser/a-polyfill.mjs +4 -0
- package/dist/browser/a-polyfill.mjs.map +1 -0
- package/dist/browser/a-route.d.mts +25 -0
- package/dist/browser/a-route.mjs +98 -0
- package/dist/browser/a-route.mjs.map +1 -0
- package/dist/browser/a-schedule.d.mts +111 -0
- package/dist/browser/a-schedule.mjs +97 -0
- package/dist/browser/a-schedule.mjs.map +1 -0
- package/dist/browser/a-service.d.mts +40 -0
- package/dist/browser/a-service.mjs +197 -0
- package/dist/browser/a-service.mjs.map +1 -0
- package/dist/browser/a-signal.d.mts +402 -0
- package/dist/browser/a-signal.mjs +588 -0
- package/dist/browser/a-signal.mjs.map +1 -0
- package/dist/browser/a-state-machine.d.mts +11 -0
- package/dist/browser/a-state-machine.mjs +6 -0
- package/dist/browser/a-state-machine.mjs.map +1 -0
- package/dist/browser/chunk-72ANHWNG.mjs +48 -0
- package/dist/browser/chunk-72ANHWNG.mjs.map +1 -0
- package/dist/browser/chunk-ECSGFDRQ.mjs +264 -0
- package/dist/browser/chunk-ECSGFDRQ.mjs.map +1 -0
- package/dist/browser/chunk-EQQGB2QZ.mjs +15 -0
- package/dist/browser/chunk-EQQGB2QZ.mjs.map +1 -0
- package/dist/browser/chunk-HWSDIXPG.mjs +776 -0
- package/dist/browser/chunk-HWSDIXPG.mjs.map +1 -0
- package/dist/browser/chunk-J6CLHXFQ.mjs +679 -0
- package/dist/browser/chunk-J6CLHXFQ.mjs.map +1 -0
- package/dist/browser/chunk-JTQYATZ5.mjs +679 -0
- package/dist/browser/chunk-JTQYATZ5.mjs.map +1 -0
- package/dist/browser/chunk-NLPSQYIQ.mjs +149 -0
- package/dist/browser/chunk-NLPSQYIQ.mjs.map +1 -0
- package/dist/browser/chunk-RLXT47QH.mjs +264 -0
- package/dist/browser/chunk-RLXT47QH.mjs.map +1 -0
- package/dist/browser/chunk-TK5UEYMZ.mjs +776 -0
- package/dist/browser/chunk-TK5UEYMZ.mjs.map +1 -0
- package/dist/browser/chunk-TQ5UON22.mjs +56 -0
- package/dist/browser/chunk-TQ5UON22.mjs.map +1 -0
- package/dist/node/A-Command.entity-24rvXQLC.d.mts +409 -0
- package/dist/node/A-Command.entity-ISgSk8wB.d.ts +409 -0
- package/dist/node/A-Manifest.context-D2uynD9t.d.mts +66 -0
- package/dist/node/A-Manifest.context-rZnvR17w.d.ts +66 -0
- package/dist/node/A-Signal.types-P5VKMKMs.d.mts +114 -0
- package/dist/node/A-Signal.types-P5VKMKMs.d.ts +114 -0
- package/dist/node/chunk-EQQGB2QZ.mjs +15 -0
- package/dist/node/chunk-EQQGB2QZ.mjs.map +1 -0
- package/dist/node/constants/errors.constants.d.mts +2 -0
- package/dist/node/constants/errors.constants.d.ts +2 -0
- package/dist/node/constants/errors.constants.js +4 -0
- package/dist/node/constants/errors.constants.js.map +1 -0
- package/dist/node/constants/errors.constants.mjs +3 -0
- package/dist/node/constants/errors.constants.mjs.map +1 -0
- package/dist/node/lib/A-Channel/A-Channel.component.d.mts +365 -0
- package/dist/node/lib/A-Channel/A-Channel.component.d.ts +365 -0
- package/dist/node/lib/A-Channel/A-Channel.component.js +303 -0
- package/dist/node/lib/A-Channel/A-Channel.component.js.map +1 -0
- package/dist/node/lib/A-Channel/A-Channel.component.mjs +294 -0
- package/dist/node/lib/A-Channel/A-Channel.component.mjs.map +1 -0
- package/dist/node/lib/A-Channel/A-Channel.constants.d.mts +68 -0
- package/dist/node/lib/A-Channel/A-Channel.constants.d.ts +68 -0
- package/dist/node/lib/A-Channel/A-Channel.constants.js +28 -0
- package/dist/node/lib/A-Channel/A-Channel.constants.js.map +1 -0
- package/dist/node/lib/A-Channel/A-Channel.constants.mjs +27 -0
- package/dist/node/lib/A-Channel/A-Channel.constants.mjs.map +1 -0
- package/dist/node/lib/A-Channel/A-Channel.error.d.mts +23 -0
- package/dist/node/lib/A-Channel/A-Channel.error.d.ts +23 -0
- package/dist/node/lib/A-Channel/A-Channel.error.js +36 -0
- package/dist/node/lib/A-Channel/A-Channel.error.js.map +1 -0
- package/dist/node/lib/A-Channel/A-Channel.error.mjs +35 -0
- package/dist/node/lib/A-Channel/A-Channel.error.mjs.map +1 -0
- package/dist/node/lib/A-Channel/A-Channel.types.d.mts +2 -0
- package/dist/node/lib/A-Channel/A-Channel.types.d.ts +2 -0
- package/dist/node/lib/A-Channel/A-Channel.types.js +4 -0
- package/dist/node/lib/A-Channel/A-Channel.types.js.map +1 -0
- package/dist/node/lib/A-Channel/A-Channel.types.mjs +3 -0
- package/dist/node/lib/A-Channel/A-Channel.types.mjs.map +1 -0
- package/dist/node/lib/A-Channel/A-ChannelRequest.context.d.mts +17 -0
- package/dist/node/lib/A-Channel/A-ChannelRequest.context.d.ts +17 -0
- package/dist/node/lib/A-Channel/A-ChannelRequest.context.js +41 -0
- package/dist/node/lib/A-Channel/A-ChannelRequest.context.js.map +1 -0
- package/dist/node/lib/A-Channel/A-ChannelRequest.context.mjs +34 -0
- package/dist/node/lib/A-Channel/A-ChannelRequest.context.mjs.map +1 -0
- package/dist/node/lib/A-Channel/index.d.mts +8 -0
- package/dist/node/lib/A-Channel/index.d.ts +8 -0
- package/dist/node/lib/A-Channel/index.js +36 -0
- package/dist/node/lib/A-Channel/index.js.map +1 -0
- package/dist/node/lib/A-Channel/index.mjs +8 -0
- package/dist/node/lib/A-Channel/index.mjs.map +1 -0
- package/dist/node/lib/A-Command/A-Command.constants.d.mts +139 -0
- package/dist/node/lib/A-Command/A-Command.constants.d.ts +139 -0
- package/dist/node/lib/A-Command/A-Command.constants.js +45 -0
- package/dist/node/lib/A-Command/A-Command.constants.js.map +1 -0
- package/dist/node/lib/A-Command/A-Command.constants.mjs +42 -0
- package/dist/node/lib/A-Command/A-Command.constants.mjs.map +1 -0
- package/dist/node/lib/A-Command/A-Command.entity.d.mts +16 -0
- package/dist/node/lib/A-Command/A-Command.entity.d.ts +16 -0
- package/dist/node/lib/A-Command/A-Command.entity.js +530 -0
- package/dist/node/lib/A-Command/A-Command.entity.js.map +1 -0
- package/dist/node/lib/A-Command/A-Command.entity.mjs +520 -0
- package/dist/node/lib/A-Command/A-Command.entity.mjs.map +1 -0
- package/dist/node/lib/A-Command/A-Command.error.d.mts +13 -0
- package/dist/node/lib/A-Command/A-Command.error.d.ts +13 -0
- package/dist/node/lib/A-Command/A-Command.error.js +17 -0
- package/dist/node/lib/A-Command/A-Command.error.js.map +1 -0
- package/dist/node/lib/A-Command/A-Command.error.mjs +16 -0
- package/dist/node/lib/A-Command/A-Command.error.mjs.map +1 -0
- package/dist/node/lib/A-Command/A-Command.types.d.mts +16 -0
- package/dist/node/lib/A-Command/A-Command.types.d.ts +16 -0
- package/dist/node/lib/A-Command/A-Command.types.js +4 -0
- package/dist/node/lib/A-Command/A-Command.types.js.map +1 -0
- package/dist/node/lib/A-Command/A-Command.types.mjs +3 -0
- package/dist/node/lib/A-Command/A-Command.types.mjs.map +1 -0
- package/dist/node/lib/A-Command/index.d.mts +17 -0
- package/dist/node/lib/A-Command/index.d.ts +17 -0
- package/dist/node/lib/A-Command/index.js +31 -0
- package/dist/node/lib/A-Command/index.js.map +1 -0
- package/dist/node/lib/A-Command/index.mjs +7 -0
- package/dist/node/lib/A-Command/index.mjs.map +1 -0
- package/dist/node/lib/A-Config/A-Config.constants.d.mts +5 -0
- package/dist/node/lib/A-Config/A-Config.constants.d.ts +5 -0
- package/dist/node/lib/A-Config/A-Config.constants.js +9 -0
- package/dist/node/lib/A-Config/A-Config.constants.js.map +1 -0
- package/dist/node/lib/A-Config/A-Config.constants.mjs +8 -0
- package/dist/node/lib/A-Config/A-Config.constants.mjs.map +1 -0
- package/dist/node/lib/A-Config/A-Config.container.d.mts +33 -0
- package/dist/node/lib/A-Config/A-Config.container.d.ts +33 -0
- package/dist/node/lib/A-Config/A-Config.container.js +78 -0
- package/dist/node/lib/A-Config/A-Config.container.js.map +1 -0
- package/dist/node/lib/A-Config/A-Config.container.mjs +68 -0
- package/dist/node/lib/A-Config/A-Config.container.mjs.map +1 -0
- package/dist/node/lib/A-Config/A-Config.context.d.mts +42 -0
- package/dist/node/lib/A-Config/A-Config.context.d.ts +42 -0
- package/dist/node/lib/A-Config/A-Config.context.js +65 -0
- package/dist/node/lib/A-Config/A-Config.context.js.map +1 -0
- package/dist/node/lib/A-Config/A-Config.context.mjs +58 -0
- package/dist/node/lib/A-Config/A-Config.context.mjs.map +1 -0
- package/dist/node/lib/A-Config/A-Config.error.d.mts +7 -0
- package/dist/node/lib/A-Config/A-Config.error.d.ts +7 -0
- package/dist/node/lib/A-Config/A-Config.error.js +11 -0
- package/dist/node/lib/A-Config/A-Config.error.js.map +1 -0
- package/dist/node/lib/A-Config/A-Config.error.mjs +10 -0
- package/dist/node/lib/A-Config/A-Config.error.mjs.map +1 -0
- package/dist/node/lib/A-Config/A-Config.types.d.mts +22 -0
- package/dist/node/lib/A-Config/A-Config.types.d.ts +22 -0
- package/dist/node/lib/A-Config/A-Config.types.js +9 -0
- package/dist/node/lib/A-Config/A-Config.types.js.map +1 -0
- package/dist/node/lib/A-Config/A-Config.types.mjs +9 -0
- package/dist/node/lib/A-Config/A-Config.types.mjs.map +1 -0
- package/dist/node/lib/A-Config/components/ConfigReader.component.d.mts +50 -0
- package/dist/node/lib/A-Config/components/ConfigReader.component.d.ts +50 -0
- package/dist/node/lib/A-Config/components/ConfigReader.component.js +81 -0
- package/dist/node/lib/A-Config/components/ConfigReader.component.js.map +1 -0
- package/dist/node/lib/A-Config/components/ConfigReader.component.mjs +71 -0
- package/dist/node/lib/A-Config/components/ConfigReader.component.mjs.map +1 -0
- package/dist/node/lib/A-Config/components/ENVConfigReader.component.d.mts +40 -0
- package/dist/node/lib/A-Config/components/ENVConfigReader.component.d.ts +40 -0
- package/dist/node/lib/A-Config/components/ENVConfigReader.component.js +69 -0
- package/dist/node/lib/A-Config/components/ENVConfigReader.component.js.map +1 -0
- package/dist/node/lib/A-Config/components/ENVConfigReader.component.mjs +59 -0
- package/dist/node/lib/A-Config/components/ENVConfigReader.component.mjs.map +1 -0
- package/dist/node/lib/A-Config/components/FileConfigReader.component.d.mts +40 -0
- package/dist/node/lib/A-Config/components/FileConfigReader.component.d.ts +40 -0
- package/dist/node/lib/A-Config/components/FileConfigReader.component.js +50 -0
- package/dist/node/lib/A-Config/components/FileConfigReader.component.js.map +1 -0
- package/dist/node/lib/A-Config/components/FileConfigReader.component.mjs +43 -0
- package/dist/node/lib/A-Config/components/FileConfigReader.component.mjs.map +1 -0
- package/dist/node/lib/A-Config/index.d.mts +31 -0
- package/dist/node/lib/A-Config/index.d.ts +31 -0
- package/dist/node/lib/A-Config/index.js +51 -0
- package/dist/node/lib/A-Config/index.js.map +1 -0
- package/dist/node/lib/A-Config/index.mjs +11 -0
- package/dist/node/lib/A-Config/index.mjs.map +1 -0
- package/dist/node/lib/A-Execution/A-Execution.context.d.mts +17 -0
- package/dist/node/lib/A-Execution/A-Execution.context.d.ts +17 -0
- package/dist/node/lib/A-Execution/A-Execution.context.js +63 -0
- package/dist/node/lib/A-Execution/A-Execution.context.js.map +1 -0
- package/dist/node/lib/A-Execution/A-Execution.context.mjs +56 -0
- package/dist/node/lib/A-Execution/A-Execution.context.mjs.map +1 -0
- package/dist/node/lib/A-Execution/A-Execution.types.d.mts +2 -0
- package/dist/node/lib/A-Execution/A-Execution.types.d.ts +2 -0
- package/dist/node/lib/A-Execution/A-Execution.types.js +4 -0
- package/dist/node/lib/A-Execution/A-Execution.types.js.map +1 -0
- package/dist/node/lib/A-Execution/A-Execution.types.mjs +3 -0
- package/dist/node/lib/A-Execution/A-Execution.types.mjs.map +1 -0
- package/dist/node/lib/A-Execution/index.d.mts +2 -0
- package/dist/node/lib/A-Execution/index.d.ts +2 -0
- package/dist/node/lib/A-Execution/index.js +12 -0
- package/dist/node/lib/A-Execution/index.js.map +1 -0
- package/dist/node/lib/A-Execution/index.mjs +4 -0
- package/dist/node/lib/A-Execution/index.mjs.map +1 -0
- package/dist/node/lib/A-Logger/A-Logger.component.d.mts +377 -0
- package/dist/node/lib/A-Logger/A-Logger.component.d.ts +377 -0
- package/dist/node/lib/A-Logger/A-Logger.component.js +623 -0
- package/dist/node/lib/A-Logger/A-Logger.component.js.map +1 -0
- package/dist/node/lib/A-Logger/A-Logger.component.mjs +615 -0
- package/dist/node/lib/A-Logger/A-Logger.component.mjs.map +1 -0
- package/dist/node/lib/A-Logger/A-Logger.constants.d.mts +103 -0
- package/dist/node/lib/A-Logger/A-Logger.constants.d.ts +103 -0
- package/dist/node/lib/A-Logger/A-Logger.constants.js +141 -0
- package/dist/node/lib/A-Logger/A-Logger.constants.js.map +1 -0
- package/dist/node/lib/A-Logger/A-Logger.constants.mjs +133 -0
- package/dist/node/lib/A-Logger/A-Logger.constants.mjs.map +1 -0
- package/dist/node/lib/A-Logger/A-Logger.env.d.mts +30 -0
- package/dist/node/lib/A-Logger/A-Logger.env.d.ts +30 -0
- package/dist/node/lib/A-Logger/A-Logger.env.js +39 -0
- package/dist/node/lib/A-Logger/A-Logger.env.js.map +1 -0
- package/dist/node/lib/A-Logger/A-Logger.env.mjs +38 -0
- package/dist/node/lib/A-Logger/A-Logger.env.mjs.map +1 -0
- package/dist/node/lib/A-Logger/A-Logger.types.d.mts +8 -0
- package/dist/node/lib/A-Logger/A-Logger.types.d.ts +8 -0
- package/dist/node/lib/A-Logger/A-Logger.types.js +4 -0
- package/dist/node/lib/A-Logger/A-Logger.types.js.map +1 -0
- package/dist/node/lib/A-Logger/A-Logger.types.mjs +3 -0
- package/dist/node/lib/A-Logger/A-Logger.types.mjs.map +1 -0
- package/dist/node/lib/A-Logger/index.d.mts +9 -0
- package/dist/node/lib/A-Logger/index.d.ts +9 -0
- package/dist/node/lib/A-Logger/index.js +35 -0
- package/dist/node/lib/A-Logger/index.js.map +1 -0
- package/dist/node/lib/A-Logger/index.mjs +6 -0
- package/dist/node/lib/A-Logger/index.mjs.map +1 -0
- package/dist/node/lib/A-Manifest/A-Manifest.context.d.mts +3 -0
- package/dist/node/lib/A-Manifest/A-Manifest.context.d.ts +3 -0
- package/dist/node/lib/A-Manifest/A-Manifest.context.js +164 -0
- package/dist/node/lib/A-Manifest/A-Manifest.context.js.map +1 -0
- package/dist/node/lib/A-Manifest/A-Manifest.context.mjs +157 -0
- package/dist/node/lib/A-Manifest/A-Manifest.context.mjs.map +1 -0
- package/dist/node/lib/A-Manifest/A-Manifest.error.d.mts +7 -0
- package/dist/node/lib/A-Manifest/A-Manifest.error.d.ts +7 -0
- package/dist/node/lib/A-Manifest/A-Manifest.error.js +11 -0
- package/dist/node/lib/A-Manifest/A-Manifest.error.js.map +1 -0
- package/dist/node/lib/A-Manifest/A-Manifest.error.mjs +10 -0
- package/dist/node/lib/A-Manifest/A-Manifest.error.mjs.map +1 -0
- package/dist/node/lib/A-Manifest/A-Manifest.types.d.mts +45 -0
- package/dist/node/lib/A-Manifest/A-Manifest.types.d.ts +45 -0
- package/dist/node/lib/A-Manifest/A-Manifest.types.js +4 -0
- package/dist/node/lib/A-Manifest/A-Manifest.types.js.map +1 -0
- package/dist/node/lib/A-Manifest/A-Manifest.types.mjs +3 -0
- package/dist/node/lib/A-Manifest/A-Manifest.types.mjs.map +1 -0
- package/dist/node/lib/A-Manifest/classes/A-ManifestChecker.class.d.mts +3 -0
- package/dist/node/lib/A-Manifest/classes/A-ManifestChecker.class.d.ts +3 -0
- package/dist/node/lib/A-Manifest/classes/A-ManifestChecker.class.js +22 -0
- package/dist/node/lib/A-Manifest/classes/A-ManifestChecker.class.js.map +1 -0
- package/dist/node/lib/A-Manifest/classes/A-ManifestChecker.class.mjs +22 -0
- package/dist/node/lib/A-Manifest/classes/A-ManifestChecker.class.mjs.map +1 -0
- package/dist/node/lib/A-Manifest/index.d.mts +4 -0
- package/dist/node/lib/A-Manifest/index.d.ts +4 -0
- package/dist/node/lib/A-Manifest/index.js +29 -0
- package/dist/node/lib/A-Manifest/index.js.map +1 -0
- package/dist/node/lib/A-Manifest/index.mjs +7 -0
- package/dist/node/lib/A-Manifest/index.mjs.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.component.d.mts +86 -0
- package/dist/node/lib/A-Memory/A-Memory.component.d.ts +86 -0
- package/dist/node/lib/A-Memory/A-Memory.component.js +335 -0
- package/dist/node/lib/A-Memory/A-Memory.component.js.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.component.mjs +325 -0
- package/dist/node/lib/A-Memory/A-Memory.component.mjs.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.constants.d.mts +44 -0
- package/dist/node/lib/A-Memory/A-Memory.constants.d.ts +44 -0
- package/dist/node/lib/A-Memory/A-Memory.constants.js +19 -0
- package/dist/node/lib/A-Memory/A-Memory.constants.js.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.constants.mjs +19 -0
- package/dist/node/lib/A-Memory/A-Memory.constants.mjs.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.context.d.mts +12 -0
- package/dist/node/lib/A-Memory/A-Memory.context.d.ts +12 -0
- package/dist/node/lib/A-Memory/A-Memory.context.js +43 -0
- package/dist/node/lib/A-Memory/A-Memory.context.js.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.context.mjs +36 -0
- package/dist/node/lib/A-Memory/A-Memory.context.mjs.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.error.d.mts +14 -0
- package/dist/node/lib/A-Memory/A-Memory.error.d.ts +14 -0
- package/dist/node/lib/A-Memory/A-Memory.error.js +18 -0
- package/dist/node/lib/A-Memory/A-Memory.error.js.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.error.mjs +17 -0
- package/dist/node/lib/A-Memory/A-Memory.error.mjs.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.types.d.mts +24 -0
- package/dist/node/lib/A-Memory/A-Memory.types.d.ts +24 -0
- package/dist/node/lib/A-Memory/A-Memory.types.js +4 -0
- package/dist/node/lib/A-Memory/A-Memory.types.js.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.types.mjs +3 -0
- package/dist/node/lib/A-Memory/A-Memory.types.mjs.map +1 -0
- package/dist/node/lib/A-Memory/index.d.mts +9 -0
- package/dist/node/lib/A-Memory/index.d.ts +9 -0
- package/dist/node/lib/A-Memory/index.js +36 -0
- package/dist/node/lib/A-Memory/index.js.map +1 -0
- package/dist/node/lib/A-Memory/index.mjs +8 -0
- package/dist/node/lib/A-Memory/index.mjs.map +1 -0
- package/dist/node/lib/A-Operation/A-Operation.context.d.mts +16 -0
- package/dist/node/lib/A-Operation/A-Operation.context.d.ts +16 -0
- package/dist/node/lib/A-Operation/A-Operation.context.js +55 -0
- package/dist/node/lib/A-Operation/A-Operation.context.js.map +1 -0
- package/dist/node/lib/A-Operation/A-Operation.context.mjs +48 -0
- package/dist/node/lib/A-Operation/A-Operation.context.mjs.map +1 -0
- package/dist/node/lib/A-Operation/A-Operation.types.d.mts +40 -0
- package/dist/node/lib/A-Operation/A-Operation.types.d.ts +40 -0
- package/dist/node/lib/A-Operation/A-Operation.types.js +4 -0
- package/dist/node/lib/A-Operation/A-Operation.types.js.map +1 -0
- package/dist/node/lib/A-Operation/A-Operation.types.mjs +3 -0
- package/dist/node/lib/A-Operation/A-Operation.types.mjs.map +1 -0
- package/dist/node/lib/A-Operation/index.d.mts +4 -0
- package/dist/node/lib/A-Operation/index.d.ts +4 -0
- package/dist/node/lib/A-Operation/index.js +19 -0
- package/dist/node/lib/A-Operation/index.js.map +1 -0
- package/dist/node/lib/A-Operation/index.mjs +5 -0
- package/dist/node/lib/A-Operation/index.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-browser.d.mts +108 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-browser.d.ts +108 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-browser.js +163 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-browser.js.map +1 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-browser.mjs +153 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-browser.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-node.d.mts +108 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-node.d.ts +108 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-node.js +160 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-node.js.map +1 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-node.mjs +150 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-node.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.types.d.mts +59 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.types.d.ts +59 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.types.js +4 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.types.js.map +1 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.types.mjs +3 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.types.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Buffer-Polyfill.base.d.mts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Buffer-Polyfill.base.d.ts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Buffer-Polyfill.base.js +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Buffer-Polyfill.base.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Buffer-Polyfill.base.mjs +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Buffer-Polyfill.base.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Crypto-Polyfill.base.d.mts +23 -0
- package/dist/node/lib/A-Polyfill/base/A-Crypto-Polyfill.base.d.ts +23 -0
- package/dist/node/lib/A-Polyfill/base/A-Crypto-Polyfill.base.js +31 -0
- package/dist/node/lib/A-Polyfill/base/A-Crypto-Polyfill.base.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Crypto-Polyfill.base.mjs +31 -0
- package/dist/node/lib/A-Polyfill/base/A-Crypto-Polyfill.base.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-FS-Polyfill.base.d.mts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-FS-Polyfill.base.d.ts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-FS-Polyfill.base.js +30 -0
- package/dist/node/lib/A-Polyfill/base/A-FS-Polyfill.base.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-FS-Polyfill.base.mjs +30 -0
- package/dist/node/lib/A-Polyfill/base/A-FS-Polyfill.base.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Http-Polyfill.base.d.mts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Http-Polyfill.base.d.ts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Http-Polyfill.base.js +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Http-Polyfill.base.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Http-Polyfill.base.mjs +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Http-Polyfill.base.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Https-Polyfill.base.d.mts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Https-Polyfill.base.d.ts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Https-Polyfill.base.js +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Https-Polyfill.base.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Https-Polyfill.base.mjs +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Https-Polyfill.base.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Path-Polyfill.base.d.mts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Path-Polyfill.base.d.ts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Path-Polyfill.base.js +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Path-Polyfill.base.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Path-Polyfill.base.mjs +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Path-Polyfill.base.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Process-Polyfill.base.d.mts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Process-Polyfill.base.d.ts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Process-Polyfill.base.js +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Process-Polyfill.base.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Process-Polyfill.base.mjs +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Process-Polyfill.base.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Url-Polyfill.base.d.mts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Url-Polyfill.base.d.ts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Url-Polyfill.base.js +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Url-Polyfill.base.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Url-Polyfill.base.mjs +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Url-Polyfill.base.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/index.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/base/index.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/base/index.js +47 -0
- package/dist/node/lib/A-Polyfill/base/index.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/index.mjs +11 -0
- package/dist/node/lib/A-Polyfill/base/index.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Buffer-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Buffer-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Buffer-Polyfill.js +46 -0
- package/dist/node/lib/A-Polyfill/browser/A-Buffer-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Buffer-Polyfill.mjs +45 -0
- package/dist/node/lib/A-Polyfill/browser/A-Buffer-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Crypto-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Crypto-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Crypto-Polyfill.js +36 -0
- package/dist/node/lib/A-Polyfill/browser/A-Crypto-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Crypto-Polyfill.mjs +35 -0
- package/dist/node/lib/A-Polyfill/browser/A-Crypto-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-FS-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-FS-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-FS-Polyfill.js +29 -0
- package/dist/node/lib/A-Polyfill/browser/A-FS-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-FS-Polyfill.mjs +28 -0
- package/dist/node/lib/A-Polyfill/browser/A-FS-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Http-Polyfill.d.mts +18 -0
- package/dist/node/lib/A-Polyfill/browser/A-Http-Polyfill.d.ts +18 -0
- package/dist/node/lib/A-Polyfill/browser/A-Http-Polyfill.js +58 -0
- package/dist/node/lib/A-Polyfill/browser/A-Http-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Http-Polyfill.mjs +57 -0
- package/dist/node/lib/A-Polyfill/browser/A-Http-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Https-Polyfill.d.mts +18 -0
- package/dist/node/lib/A-Polyfill/browser/A-Https-Polyfill.d.ts +18 -0
- package/dist/node/lib/A-Polyfill/browser/A-Https-Polyfill.js +58 -0
- package/dist/node/lib/A-Polyfill/browser/A-Https-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Https-Polyfill.mjs +57 -0
- package/dist/node/lib/A-Polyfill/browser/A-Https-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Path-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Path-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Path-Polyfill.js +64 -0
- package/dist/node/lib/A-Polyfill/browser/A-Path-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Path-Polyfill.mjs +63 -0
- package/dist/node/lib/A-Polyfill/browser/A-Path-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Process-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Process-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Process-Polyfill.js +33 -0
- package/dist/node/lib/A-Polyfill/browser/A-Process-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Process-Polyfill.mjs +32 -0
- package/dist/node/lib/A-Polyfill/browser/A-Process-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Url-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Url-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Url-Polyfill.js +50 -0
- package/dist/node/lib/A-Polyfill/browser/A-Url-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Url-Polyfill.mjs +49 -0
- package/dist/node/lib/A-Polyfill/browser/A-Url-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/index.d.mts +23 -0
- package/dist/node/lib/A-Polyfill/browser/index.d.ts +23 -0
- package/dist/node/lib/A-Polyfill/browser/index.js +56 -0
- package/dist/node/lib/A-Polyfill/browser/index.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/index.mjs +9 -0
- package/dist/node/lib/A-Polyfill/browser/index.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/index.browser.d.mts +26 -0
- package/dist/node/lib/A-Polyfill/index.browser.d.ts +26 -0
- package/dist/node/lib/A-Polyfill/index.browser.js +33 -0
- package/dist/node/lib/A-Polyfill/index.browser.js.map +1 -0
- package/dist/node/lib/A-Polyfill/index.browser.mjs +7 -0
- package/dist/node/lib/A-Polyfill/index.browser.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/index.node.d.mts +26 -0
- package/dist/node/lib/A-Polyfill/index.node.d.ts +26 -0
- package/dist/node/lib/A-Polyfill/index.node.js +33 -0
- package/dist/node/lib/A-Polyfill/index.node.js.map +1 -0
- package/dist/node/lib/A-Polyfill/index.node.mjs +7 -0
- package/dist/node/lib/A-Polyfill/index.node.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Buffer-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Buffer-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Buffer-Polyfill.js +27 -0
- package/dist/node/lib/A-Polyfill/node/A-Buffer-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Buffer-Polyfill.mjs +22 -0
- package/dist/node/lib/A-Polyfill/node/A-Buffer-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Crypto-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Crypto-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Crypto-Polyfill.js +39 -0
- package/dist/node/lib/A-Polyfill/node/A-Crypto-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Crypto-Polyfill.mjs +34 -0
- package/dist/node/lib/A-Polyfill/node/A-Crypto-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-FS-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-FS-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-FS-Polyfill.js +21 -0
- package/dist/node/lib/A-Polyfill/node/A-FS-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-FS-Polyfill.mjs +16 -0
- package/dist/node/lib/A-Polyfill/node/A-FS-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Http-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Http-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Http-Polyfill.js +25 -0
- package/dist/node/lib/A-Polyfill/node/A-Http-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Http-Polyfill.mjs +20 -0
- package/dist/node/lib/A-Polyfill/node/A-Http-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Https-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Https-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Https-Polyfill.js +25 -0
- package/dist/node/lib/A-Polyfill/node/A-Https-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Https-Polyfill.mjs +20 -0
- package/dist/node/lib/A-Polyfill/node/A-Https-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Path-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Path-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Path-Polyfill.js +34 -0
- package/dist/node/lib/A-Polyfill/node/A-Path-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Path-Polyfill.mjs +29 -0
- package/dist/node/lib/A-Polyfill/node/A-Path-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Process-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Process-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Process-Polyfill.js +25 -0
- package/dist/node/lib/A-Polyfill/node/A-Process-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Process-Polyfill.mjs +24 -0
- package/dist/node/lib/A-Polyfill/node/A-Process-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Url-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Url-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Url-Polyfill.js +27 -0
- package/dist/node/lib/A-Polyfill/node/A-Url-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Url-Polyfill.mjs +22 -0
- package/dist/node/lib/A-Polyfill/node/A-Url-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/index.d.mts +23 -0
- package/dist/node/lib/A-Polyfill/node/index.d.ts +23 -0
- package/dist/node/lib/A-Polyfill/node/index.js +56 -0
- package/dist/node/lib/A-Polyfill/node/index.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/index.mjs +9 -0
- package/dist/node/lib/A-Polyfill/node/index.mjs.map +1 -0
- package/dist/node/lib/A-Route/A-Route.entity.d.mts +25 -0
- package/dist/node/lib/A-Route/A-Route.entity.d.ts +25 -0
- package/dist/node/lib/A-Route/A-Route.entity.js +105 -0
- package/dist/node/lib/A-Route/A-Route.entity.js.map +1 -0
- package/dist/node/lib/A-Route/A-Route.entity.mjs +98 -0
- package/dist/node/lib/A-Route/A-Route.entity.mjs.map +1 -0
- package/dist/node/lib/A-Route/A-Route.types.d.mts +2 -0
- package/dist/node/lib/A-Route/A-Route.types.d.ts +2 -0
- package/dist/node/lib/A-Route/A-Route.types.js +4 -0
- package/dist/node/lib/A-Route/A-Route.types.js.map +1 -0
- package/dist/node/lib/A-Route/A-Route.types.mjs +3 -0
- package/dist/node/lib/A-Route/A-Route.types.mjs.map +1 -0
- package/dist/node/lib/A-Route/index.d.mts +2 -0
- package/dist/node/lib/A-Route/index.d.ts +2 -0
- package/dist/node/lib/A-Route/index.js +12 -0
- package/dist/node/lib/A-Route/index.js.map +1 -0
- package/dist/node/lib/A-Route/index.mjs +4 -0
- package/dist/node/lib/A-Route/index.mjs.map +1 -0
- package/dist/node/lib/A-Schedule/A-Deferred.class.d.mts +14 -0
- package/dist/node/lib/A-Schedule/A-Deferred.class.d.ts +14 -0
- package/dist/node/lib/A-Schedule/A-Deferred.class.js +24 -0
- package/dist/node/lib/A-Schedule/A-Deferred.class.js.map +1 -0
- package/dist/node/lib/A-Schedule/A-Deferred.class.mjs +24 -0
- package/dist/node/lib/A-Schedule/A-Deferred.class.mjs.map +1 -0
- package/dist/node/lib/A-Schedule/A-Schedule.component.d.mts +60 -0
- package/dist/node/lib/A-Schedule/A-Schedule.component.d.ts +60 -0
- package/dist/node/lib/A-Schedule/A-Schedule.component.js +46 -0
- package/dist/node/lib/A-Schedule/A-Schedule.component.js.map +1 -0
- package/dist/node/lib/A-Schedule/A-Schedule.component.mjs +39 -0
- package/dist/node/lib/A-Schedule/A-Schedule.component.mjs.map +1 -0
- package/dist/node/lib/A-Schedule/A-Schedule.types.d.mts +12 -0
- package/dist/node/lib/A-Schedule/A-Schedule.types.d.ts +12 -0
- package/dist/node/lib/A-Schedule/A-Schedule.types.js +4 -0
- package/dist/node/lib/A-Schedule/A-Schedule.types.js.map +1 -0
- package/dist/node/lib/A-Schedule/A-Schedule.types.mjs +3 -0
- package/dist/node/lib/A-Schedule/A-Schedule.types.mjs.map +1 -0
- package/dist/node/lib/A-Schedule/A-ScheduleObject.class.d.mts +32 -0
- package/dist/node/lib/A-Schedule/A-ScheduleObject.class.d.ts +32 -0
- package/dist/node/lib/A-Schedule/A-ScheduleObject.class.js +49 -0
- package/dist/node/lib/A-Schedule/A-ScheduleObject.class.js.map +1 -0
- package/dist/node/lib/A-Schedule/A-ScheduleObject.class.mjs +48 -0
- package/dist/node/lib/A-Schedule/A-ScheduleObject.class.mjs.map +1 -0
- package/dist/node/lib/A-Schedule/index.d.mts +5 -0
- package/dist/node/lib/A-Schedule/index.d.ts +5 -0
- package/dist/node/lib/A-Schedule/index.js +29 -0
- package/dist/node/lib/A-Schedule/index.js.map +1 -0
- package/dist/node/lib/A-Schedule/index.mjs +7 -0
- package/dist/node/lib/A-Schedule/index.mjs.map +1 -0
- package/dist/node/lib/A-Service/A-Service.constants.d.mts +14 -0
- package/dist/node/lib/A-Service/A-Service.constants.d.ts +14 -0
- package/dist/node/lib/A-Service/A-Service.constants.js +19 -0
- package/dist/node/lib/A-Service/A-Service.constants.js.map +1 -0
- package/dist/node/lib/A-Service/A-Service.constants.mjs +19 -0
- package/dist/node/lib/A-Service/A-Service.constants.mjs.map +1 -0
- package/dist/node/lib/A-Service/A-Service.container.d.mts +50 -0
- package/dist/node/lib/A-Service/A-Service.container.d.ts +50 -0
- package/dist/node/lib/A-Service/A-Service.container.js +188 -0
- package/dist/node/lib/A-Service/A-Service.container.js.map +1 -0
- package/dist/node/lib/A-Service/A-Service.container.mjs +178 -0
- package/dist/node/lib/A-Service/A-Service.container.mjs.map +1 -0
- package/dist/node/lib/A-Service/A-Service.error.d.mts +9 -0
- package/dist/node/lib/A-Service/A-Service.error.d.ts +9 -0
- package/dist/node/lib/A-Service/A-Service.error.js +13 -0
- package/dist/node/lib/A-Service/A-Service.error.js.map +1 -0
- package/dist/node/lib/A-Service/A-Service.error.mjs +12 -0
- package/dist/node/lib/A-Service/A-Service.error.mjs.map +1 -0
- package/dist/node/lib/A-Service/A-Service.types.d.mts +27 -0
- package/dist/node/lib/A-Service/A-Service.types.d.ts +27 -0
- package/dist/node/lib/A-Service/A-Service.types.js +16 -0
- package/dist/node/lib/A-Service/A-Service.types.js.map +1 -0
- package/dist/node/lib/A-Service/A-Service.types.mjs +16 -0
- package/dist/node/lib/A-Service/A-Service.types.mjs.map +1 -0
- package/dist/node/lib/A-Service/index.d.mts +28 -0
- package/dist/node/lib/A-Service/index.d.ts +28 -0
- package/dist/node/lib/A-Service/index.js +19 -0
- package/dist/node/lib/A-Service/index.js.map +1 -0
- package/dist/node/lib/A-Service/index.mjs +5 -0
- package/dist/node/lib/A-Service/index.mjs.map +1 -0
- package/dist/node/lib/A-Signal/A-Signal.constants.d.mts +2 -0
- package/dist/node/lib/A-Signal/A-Signal.constants.d.ts +2 -0
- package/dist/node/lib/A-Signal/A-Signal.constants.js +4 -0
- package/dist/node/lib/A-Signal/A-Signal.constants.js.map +1 -0
- package/dist/node/lib/A-Signal/A-Signal.constants.mjs +3 -0
- package/dist/node/lib/A-Signal/A-Signal.constants.mjs.map +1 -0
- package/dist/node/lib/A-Signal/A-Signal.error.d.mts +2 -0
- package/dist/node/lib/A-Signal/A-Signal.error.d.ts +2 -0
- package/dist/node/lib/A-Signal/A-Signal.error.js +4 -0
- package/dist/node/lib/A-Signal/A-Signal.error.js.map +1 -0
- package/dist/node/lib/A-Signal/A-Signal.error.mjs +3 -0
- package/dist/node/lib/A-Signal/A-Signal.error.mjs.map +1 -0
- package/dist/node/lib/A-Signal/A-Signal.types.d.mts +2 -0
- package/dist/node/lib/A-Signal/A-Signal.types.d.ts +2 -0
- package/dist/node/lib/A-Signal/A-Signal.types.js +4 -0
- package/dist/node/lib/A-Signal/A-Signal.types.js.map +1 -0
- package/dist/node/lib/A-Signal/A-Signal.types.mjs +3 -0
- package/dist/node/lib/A-Signal/A-Signal.types.mjs.map +1 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.component.d.mts +44 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.component.d.ts +44 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.component.js +132 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.component.js.map +1 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.component.mjs +122 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.component.mjs.map +1 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.constants.d.mts +7 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.constants.d.ts +7 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.constants.js +12 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.constants.js.map +1 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.constants.mjs +12 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.constants.mjs.map +1 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.error.d.mts +7 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.error.d.ts +7 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.error.js +11 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.error.js.map +1 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.error.mjs +10 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.error.mjs.map +1 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.types.d.mts +2 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.types.d.ts +2 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.types.js +4 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.types.js.map +1 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.types.mjs +3 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.types.mjs.map +1 -0
- package/dist/node/lib/A-Signal/context/A-SignalConfig.context.d.mts +36 -0
- package/dist/node/lib/A-Signal/context/A-SignalConfig.context.d.ts +36 -0
- package/dist/node/lib/A-Signal/context/A-SignalConfig.context.js +68 -0
- package/dist/node/lib/A-Signal/context/A-SignalConfig.context.js.map +1 -0
- package/dist/node/lib/A-Signal/context/A-SignalConfig.context.mjs +61 -0
- package/dist/node/lib/A-Signal/context/A-SignalConfig.context.mjs.map +1 -0
- package/dist/node/lib/A-Signal/context/A-SignalState.context.d.mts +111 -0
- package/dist/node/lib/A-Signal/context/A-SignalState.context.d.ts +111 -0
- package/dist/node/lib/A-Signal/context/A-SignalState.context.js +114 -0
- package/dist/node/lib/A-Signal/context/A-SignalState.context.js.map +1 -0
- package/dist/node/lib/A-Signal/context/A-SignalState.context.mjs +107 -0
- package/dist/node/lib/A-Signal/context/A-SignalState.context.mjs.map +1 -0
- package/dist/node/lib/A-Signal/entities/A-Signal.entity.d.mts +2 -0
- package/dist/node/lib/A-Signal/entities/A-Signal.entity.d.ts +2 -0
- package/dist/node/lib/A-Signal/entities/A-Signal.entity.js +120 -0
- package/dist/node/lib/A-Signal/entities/A-Signal.entity.js.map +1 -0
- package/dist/node/lib/A-Signal/entities/A-Signal.entity.mjs +113 -0
- package/dist/node/lib/A-Signal/entities/A-Signal.entity.mjs.map +1 -0
- package/dist/node/lib/A-Signal/entities/A-SignalVector.entity.d.mts +113 -0
- package/dist/node/lib/A-Signal/entities/A-SignalVector.entity.d.ts +113 -0
- package/dist/node/lib/A-Signal/entities/A-SignalVector.entity.js +217 -0
- package/dist/node/lib/A-Signal/entities/A-SignalVector.entity.js.map +1 -0
- package/dist/node/lib/A-Signal/entities/A-SignalVector.entity.mjs +210 -0
- package/dist/node/lib/A-Signal/entities/A-SignalVector.entity.mjs.map +1 -0
- package/dist/node/lib/A-Signal/index.d.mts +15 -0
- package/dist/node/lib/A-Signal/index.d.ts +15 -0
- package/dist/node/lib/A-Signal/index.js +51 -0
- package/dist/node/lib/A-Signal/index.js.map +1 -0
- package/dist/node/lib/A-Signal/index.mjs +11 -0
- package/dist/node/lib/A-Signal/index.mjs.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.component.d.mts +180 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.component.d.ts +180 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.component.js +119 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.component.js.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.component.mjs +110 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.component.mjs.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.constants.d.mts +20 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.constants.d.ts +20 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.constants.js +13 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.constants.js.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.constants.mjs +13 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.constants.mjs.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.error.d.mts +8 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.error.d.ts +8 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.error.js +12 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.error.js.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.error.mjs +11 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.error.mjs.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.types.d.mts +14 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.types.d.ts +14 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.types.js +4 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.types.js.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.types.mjs +3 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.types.mjs.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachineTransition.context.d.mts +19 -0
- package/dist/node/lib/A-StateMachine/A-StateMachineTransition.context.d.ts +19 -0
- package/dist/node/lib/A-StateMachine/A-StateMachineTransition.context.js +43 -0
- package/dist/node/lib/A-StateMachine/A-StateMachineTransition.context.js.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachineTransition.context.mjs +36 -0
- package/dist/node/lib/A-StateMachine/A-StateMachineTransition.context.mjs.map +1 -0
- package/dist/node/lib/A-StateMachine/index.d.mts +9 -0
- package/dist/node/lib/A-StateMachine/index.d.ts +9 -0
- package/dist/node/lib/A-StateMachine/index.js +36 -0
- package/dist/node/lib/A-StateMachine/index.js.map +1 -0
- package/dist/node/lib/A-StateMachine/index.mjs +8 -0
- package/dist/node/lib/A-StateMachine/index.mjs.map +1 -0
- package/examples/A-Logger-examples.ts +1 -2
- package/jest.config.ts +20 -7
- package/package.json +232 -15
- package/src/lib/A-Channel/A-Channel.component.ts +1 -1
- package/src/lib/A-Channel/A-Channel.error.ts +1 -1
- package/src/lib/A-Channel/A-Channel.types.ts +0 -3
- package/src/lib/A-Channel/A-ChannelRequest.context.ts +1 -1
- package/src/lib/A-Channel/index.ts +6 -0
- package/src/lib/A-Command/A-Command.entity.ts +3 -5
- package/src/lib/A-Command/index.ts +5 -0
- package/src/lib/A-Config/A-Config.container.ts +3 -4
- package/src/lib/A-Config/A-Config.context.ts +1 -1
- package/src/lib/A-Config/components/ConfigReader.component.ts +10 -21
- package/src/lib/A-Config/components/ENVConfigReader.component.ts +13 -12
- package/src/lib/A-Config/index.ts +9 -0
- package/src/lib/A-Execution/index.ts +3 -0
- package/src/lib/A-Logger/A-Logger.component.ts +3 -1
- package/src/lib/A-Logger/index.ts +5 -0
- package/src/lib/A-Manifest/index.ts +5 -0
- package/src/lib/A-Memory/A-Memory.component.ts +1 -1
- package/src/lib/A-Memory/A-Memory.types.ts +1 -1
- package/src/lib/A-Memory/index.ts +6 -0
- package/src/lib/A-Operation/A-Operation.context.ts +1 -1
- package/src/lib/A-Operation/index.ts +3 -0
- package/src/lib/A-Polyfill/{A-Polyfill.component.ts → A-Polyfill.component.env-browser.ts} +26 -27
- package/src/lib/A-Polyfill/A-Polyfill.component.env-node.ts +184 -0
- package/src/lib/A-Polyfill/base/A-Buffer-Polyfill.base.ts +34 -0
- package/src/lib/A-Polyfill/base/A-Crypto-Polyfill.base.ts +36 -0
- package/src/lib/A-Polyfill/base/A-FS-Polyfill.base.ts +34 -0
- package/src/lib/A-Polyfill/base/A-Http-Polyfill.base.ts +34 -0
- package/src/lib/A-Polyfill/base/A-Https-Polyfill.base.ts +34 -0
- package/src/lib/A-Polyfill/base/A-Path-Polyfill.base.ts +34 -0
- package/src/lib/A-Polyfill/base/A-Process-Polyfill.base.ts +34 -0
- package/src/lib/A-Polyfill/base/A-Url-Polyfill.base.ts +34 -0
- package/src/lib/A-Polyfill/base/index.ts +9 -0
- package/src/lib/A-Polyfill/browser/A-Buffer-Polyfill.ts +42 -0
- package/src/lib/A-Polyfill/browser/A-Crypto-Polyfill.ts +32 -0
- package/src/lib/A-Polyfill/browser/A-FS-Polyfill.ts +25 -0
- package/src/lib/A-Polyfill/{classes/A-Http-Polyfill.class.ts → browser/A-Http-Polyfill.ts} +6 -46
- package/src/lib/A-Polyfill/{classes/A-Https-Polyfill.class.ts → browser/A-Https-Polyfill.ts} +6 -46
- package/src/lib/A-Polyfill/{classes/A-Path-Polyfill.class.ts → browser/A-Path-Polyfill.ts} +6 -42
- package/src/lib/A-Polyfill/browser/A-Process-Polyfill.ts +29 -0
- package/src/lib/A-Polyfill/browser/A-Url-Polyfill.ts +46 -0
- package/src/lib/A-Polyfill/browser/index.ts +8 -0
- package/src/lib/A-Polyfill/index.browser.ts +5 -0
- package/src/lib/A-Polyfill/index.node.ts +5 -0
- package/src/lib/A-Polyfill/node/A-Buffer-Polyfill.ts +19 -0
- package/src/lib/A-Polyfill/node/A-Crypto-Polyfill.ts +31 -0
- package/src/lib/A-Polyfill/node/A-FS-Polyfill.ts +14 -0
- package/src/lib/A-Polyfill/node/A-Http-Polyfill.ts +17 -0
- package/src/lib/A-Polyfill/node/A-Https-Polyfill.ts +18 -0
- package/src/lib/A-Polyfill/node/A-Path-Polyfill.ts +27 -0
- package/src/lib/A-Polyfill/node/A-Process-Polyfill.ts +21 -0
- package/src/lib/A-Polyfill/node/A-Url-Polyfill.ts +19 -0
- package/src/lib/A-Polyfill/node/index.ts +8 -0
- package/src/lib/A-Route/index.ts +3 -0
- package/src/lib/A-Schedule/index.ts +5 -0
- package/src/lib/A-Service/A-Service.container.ts +2 -4
- package/src/lib/A-Service/index.ts +4 -0
- package/src/lib/A-Signal/components/A-SignalBus.component.ts +2 -2
- package/src/lib/A-Signal/index.ts +11 -0
- package/src/lib/A-StateMachine/A-StateMachine.types.ts +1 -1
- package/src/lib/A-StateMachine/A-StateMachineTransition.context.ts +1 -1
- package/src/lib/A-StateMachine/index.ts +6 -0
- package/tests/A-Channel.test.ts +3 -5
- package/tests/A-Command.test.ts +4 -9
- package/tests/A-Config.test.ts +8 -7
- package/tests/A-Logger.test.ts +1 -3
- package/tests/A-Manifest.test.ts +1 -1
- package/tests/A-Memory.test.ts +1 -3
- package/tests/A-Polyfill.test.ts +2 -2
- package/tests/A-Route.test.ts +1 -3
- package/tests/A-Schedule.test.ts +1 -1
- package/tests/A-Signal.test.ts +1 -5
- package/tests/A-StateMachine.test.ts +2 -5
- package/tests/main.test.ts +30 -0
- package/tsconfig.json +39 -57
- package/tsup.config.ts +94 -28
- package/dist/index.cjs +0 -35
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.mts +0 -2976
- package/dist/index.d.ts +0 -2976
- package/dist/index.mjs +0 -35
- package/dist/index.mjs.map +0 -1
- package/src/index.ts +0 -124
- package/src/lib/A-Polyfill/classes/A-Buffer-Polyfill.class.ts +0 -85
- package/src/lib/A-Polyfill/classes/A-Crypto-Polyfill.class.ts +0 -87
- package/src/lib/A-Polyfill/classes/A-FS-Polyfill.class.ts +0 -61
- package/src/lib/A-Polyfill/classes/A-Process-Polyfill.class.ts +0 -73
- package/src/lib/A-Polyfill/classes/A-Url-Polyfill.class.ts +0 -88
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { __decorateClass, __decorateParam } from '../../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
import { A_Component, A_Context, A_Scope, A_Feature, A_Inject, A_Dependency } from '@adaas/a-concept';
|
|
3
|
+
import { A_MemoryFeatures } from './A-Memory.constants';
|
|
4
|
+
import { A_MemoryContext } from './A-Memory.context';
|
|
5
|
+
import { A_MemoryError } from './A-Memory.error';
|
|
6
|
+
import { A_OperationContext } from '@adaas/a-utils/a-operation';
|
|
7
|
+
import { A_Frame } from '@adaas/a-frame';
|
|
8
|
+
|
|
9
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
10
|
+
let A_Memory = class extends A_Component {
|
|
11
|
+
get ready() {
|
|
12
|
+
if (!this._ready) {
|
|
13
|
+
this._ready = this.init();
|
|
14
|
+
}
|
|
15
|
+
return this._ready;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Handles errors during memory operations
|
|
19
|
+
*/
|
|
20
|
+
async [_i = A_MemoryFeatures.onError](...args) {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Handles memory expiration
|
|
24
|
+
*/
|
|
25
|
+
async [_h = A_MemoryFeatures.onExpire](...args) {
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Initializes the memory context
|
|
29
|
+
*/
|
|
30
|
+
async [_g = A_MemoryFeatures.onInit](context, ...args) {
|
|
31
|
+
if (!context) {
|
|
32
|
+
context = new A_MemoryContext();
|
|
33
|
+
A_Context.scope(this).register(context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
async [_f = A_MemoryFeatures.onDestroy](context, ...args) {
|
|
37
|
+
context.clear();
|
|
38
|
+
}
|
|
39
|
+
async [_e = A_MemoryFeatures.onGet](operation, context, ...args) {
|
|
40
|
+
operation.succeed(context.get(operation.params.key));
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Handles the 'has' operation for checking existence of a key in memory
|
|
44
|
+
*/
|
|
45
|
+
async [_d = A_MemoryFeatures.onHas](operation, context, ...args) {
|
|
46
|
+
operation.succeed(context.has(operation.params.key));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Handles the 'set' operation for saving a value in memory
|
|
50
|
+
*/
|
|
51
|
+
async [_c = A_MemoryFeatures.onSet](operation, context, scope, ...args) {
|
|
52
|
+
context.set(operation.params.key, operation.params.value);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Handles the 'drop' operation for removing a value from memory
|
|
56
|
+
*/
|
|
57
|
+
async [_b = A_MemoryFeatures.onDrop](operation, context, ...args) {
|
|
58
|
+
context.delete(operation.params.key);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Handles the 'clear' operation for clearing all values from memory
|
|
62
|
+
*/
|
|
63
|
+
async [_a = A_MemoryFeatures.onClear](operation, context, ...args) {
|
|
64
|
+
context.clear();
|
|
65
|
+
}
|
|
66
|
+
// ======================================================================
|
|
67
|
+
// =========================A-Memory Methods=============================
|
|
68
|
+
// ======================================================================
|
|
69
|
+
/**
|
|
70
|
+
* Initializes the memory context
|
|
71
|
+
*/
|
|
72
|
+
async init() {
|
|
73
|
+
if (this._ready)
|
|
74
|
+
return this._ready;
|
|
75
|
+
const scope = new A_Scope({ name: "A-Memory-Init-Scope" }).inherit(A_Context.scope(this));
|
|
76
|
+
try {
|
|
77
|
+
await this.call(A_MemoryFeatures.onInit, scope);
|
|
78
|
+
} catch (error) {
|
|
79
|
+
const initError = new A_MemoryError({
|
|
80
|
+
title: A_MemoryError.MemoryInitializationError,
|
|
81
|
+
description: "An error occurred during memory initialization",
|
|
82
|
+
originalError: error
|
|
83
|
+
});
|
|
84
|
+
scope.register(initError);
|
|
85
|
+
await this.call(A_MemoryFeatures.onError, scope);
|
|
86
|
+
scope.destroy();
|
|
87
|
+
throw initError;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Destroys the memory context
|
|
92
|
+
*
|
|
93
|
+
* This method is responsible for cleaning up any resources
|
|
94
|
+
* used by the memory context and resetting its state.
|
|
95
|
+
*/
|
|
96
|
+
async destroy() {
|
|
97
|
+
const scope = new A_Scope({ name: "A-Memory-Destroy-Scope" }).inherit(A_Context.scope(this));
|
|
98
|
+
try {
|
|
99
|
+
this._ready = void 0;
|
|
100
|
+
await this.call(A_MemoryFeatures.onDestroy, scope);
|
|
101
|
+
} catch (error) {
|
|
102
|
+
const destroyError = new A_MemoryError({
|
|
103
|
+
title: A_MemoryError.MemoryDestructionError,
|
|
104
|
+
description: "An error occurred during memory destruction",
|
|
105
|
+
originalError: error
|
|
106
|
+
});
|
|
107
|
+
scope.register(destroyError);
|
|
108
|
+
await this.call(A_MemoryFeatures.onError, scope);
|
|
109
|
+
scope.destroy();
|
|
110
|
+
throw destroyError;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Retrieves a value from the context memory
|
|
115
|
+
*
|
|
116
|
+
* @param key - memory key to retrieve
|
|
117
|
+
* @returns - value associated with the key or undefined if not found
|
|
118
|
+
*/
|
|
119
|
+
async get(key) {
|
|
120
|
+
const operation = new A_OperationContext("get", { key });
|
|
121
|
+
const scope = new A_Scope({
|
|
122
|
+
name: "A-Memory-Get-Operation-Scope",
|
|
123
|
+
fragments: [operation]
|
|
124
|
+
}).inherit(A_Context.scope(this));
|
|
125
|
+
try {
|
|
126
|
+
await this.call(A_MemoryFeatures.onGet, scope);
|
|
127
|
+
scope.destroy();
|
|
128
|
+
return operation.result;
|
|
129
|
+
} catch (error) {
|
|
130
|
+
const getError = new A_MemoryError({
|
|
131
|
+
title: A_MemoryError.MemoryGetError,
|
|
132
|
+
description: `An error occurred while getting the value for key "${String(key)}"`,
|
|
133
|
+
originalError: error
|
|
134
|
+
});
|
|
135
|
+
scope.register(getError);
|
|
136
|
+
await this.call(A_MemoryFeatures.onError, scope);
|
|
137
|
+
scope.destroy();
|
|
138
|
+
throw getError;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Checks if a value exists in the context memory
|
|
143
|
+
*
|
|
144
|
+
* @param key - memory key to check
|
|
145
|
+
* @returns - true if key exists, false otherwise
|
|
146
|
+
*/
|
|
147
|
+
async has(key) {
|
|
148
|
+
const operation = new A_OperationContext("has", { key });
|
|
149
|
+
const scope = new A_Scope({
|
|
150
|
+
name: "A-Memory-Has-Operation-Scope",
|
|
151
|
+
fragments: [operation]
|
|
152
|
+
}).inherit(A_Context.scope(this));
|
|
153
|
+
try {
|
|
154
|
+
await this.call(A_MemoryFeatures.onHas, scope);
|
|
155
|
+
scope.destroy();
|
|
156
|
+
return operation.result;
|
|
157
|
+
} catch (error) {
|
|
158
|
+
const getError = new A_MemoryError({
|
|
159
|
+
title: A_MemoryError.MemoryHasError,
|
|
160
|
+
description: `An error occurred while checking existence for key "${String(key)}"`,
|
|
161
|
+
originalError: error
|
|
162
|
+
});
|
|
163
|
+
scope.register(getError);
|
|
164
|
+
await this.call(A_MemoryFeatures.onError, scope);
|
|
165
|
+
scope.destroy();
|
|
166
|
+
throw getError;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Saves a value in the context memory
|
|
171
|
+
*
|
|
172
|
+
* @param key
|
|
173
|
+
* @param value
|
|
174
|
+
*/
|
|
175
|
+
async set(key, value) {
|
|
176
|
+
const operation = new A_OperationContext("set", { key, value });
|
|
177
|
+
const scope = new A_Scope({
|
|
178
|
+
name: "A-Memory-Set-Operation-Scope",
|
|
179
|
+
fragments: [operation]
|
|
180
|
+
}).inherit(A_Context.scope(this));
|
|
181
|
+
try {
|
|
182
|
+
await this.call(A_MemoryFeatures.onSet, scope);
|
|
183
|
+
} catch (error) {
|
|
184
|
+
const setError = new A_MemoryError({
|
|
185
|
+
title: A_MemoryError.MemorySetError,
|
|
186
|
+
description: `An error occurred while setting the value for key "${String(key)}"`,
|
|
187
|
+
originalError: error
|
|
188
|
+
});
|
|
189
|
+
scope.register(setError);
|
|
190
|
+
await this.call(A_MemoryFeatures.onError, scope);
|
|
191
|
+
scope.destroy();
|
|
192
|
+
throw setError;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Removes a value from the context memory by key
|
|
197
|
+
*
|
|
198
|
+
* @param key
|
|
199
|
+
*/
|
|
200
|
+
async drop(key) {
|
|
201
|
+
const operation = new A_OperationContext("drop", { key });
|
|
202
|
+
const scope = new A_Scope({
|
|
203
|
+
name: "A-Memory-Drop-Operation-Scope",
|
|
204
|
+
fragments: [operation]
|
|
205
|
+
}).inherit(A_Context.scope(this));
|
|
206
|
+
try {
|
|
207
|
+
await this.call(A_MemoryFeatures.onDrop, scope);
|
|
208
|
+
} catch (error) {
|
|
209
|
+
const dropError = new A_MemoryError({
|
|
210
|
+
title: A_MemoryError.MemoryDropError,
|
|
211
|
+
description: `An error occurred while dropping the value for key "${String(key)}"`,
|
|
212
|
+
originalError: error
|
|
213
|
+
});
|
|
214
|
+
scope.register(dropError);
|
|
215
|
+
await this.call(A_MemoryFeatures.onError, scope);
|
|
216
|
+
scope.destroy();
|
|
217
|
+
throw dropError;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Clears all stored values in the context memory
|
|
222
|
+
*/
|
|
223
|
+
async clear() {
|
|
224
|
+
const operation = new A_OperationContext("clear");
|
|
225
|
+
const scope = new A_Scope({
|
|
226
|
+
name: "A-Memory-Clear-Operation-Scope",
|
|
227
|
+
fragments: [operation]
|
|
228
|
+
}).inherit(A_Context.scope(this));
|
|
229
|
+
try {
|
|
230
|
+
await this.call(A_MemoryFeatures.onClear, scope);
|
|
231
|
+
} catch (error) {
|
|
232
|
+
const clearError = new A_MemoryError({
|
|
233
|
+
title: A_MemoryError.MemoryClearError,
|
|
234
|
+
description: `An error occurred while clearing the memory`,
|
|
235
|
+
originalError: error
|
|
236
|
+
});
|
|
237
|
+
scope.register(clearError);
|
|
238
|
+
await this.call(A_MemoryFeatures.onError, scope);
|
|
239
|
+
scope.destroy();
|
|
240
|
+
throw clearError;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Serializes the memory context to a JSON object
|
|
245
|
+
*
|
|
246
|
+
* @returns - serialized memory object
|
|
247
|
+
*/
|
|
248
|
+
async toJSON() {
|
|
249
|
+
const operation = new A_OperationContext("serialize");
|
|
250
|
+
const scope = new A_Scope({
|
|
251
|
+
name: "A-Memory-Serialize-Operation-Scope",
|
|
252
|
+
fragments: [operation]
|
|
253
|
+
}).inherit(A_Context.scope(this));
|
|
254
|
+
try {
|
|
255
|
+
await this.call(A_MemoryFeatures.onSerialize, scope);
|
|
256
|
+
return operation.result;
|
|
257
|
+
} catch (error) {
|
|
258
|
+
const serializeError = new A_MemoryError({
|
|
259
|
+
title: A_MemoryError.MemorySerializeError,
|
|
260
|
+
description: `An error occurred while serializing the memory`,
|
|
261
|
+
originalError: error
|
|
262
|
+
});
|
|
263
|
+
scope.register(serializeError);
|
|
264
|
+
await this.call(A_MemoryFeatures.onError, scope);
|
|
265
|
+
scope.destroy();
|
|
266
|
+
throw serializeError;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
__decorateClass([
|
|
271
|
+
A_Feature.Extend()
|
|
272
|
+
], A_Memory.prototype, _i, 1);
|
|
273
|
+
__decorateClass([
|
|
274
|
+
A_Feature.Extend()
|
|
275
|
+
], A_Memory.prototype, _h, 1);
|
|
276
|
+
__decorateClass([
|
|
277
|
+
A_Feature.Extend(),
|
|
278
|
+
__decorateParam(0, A_Inject(A_MemoryContext))
|
|
279
|
+
], A_Memory.prototype, _g, 1);
|
|
280
|
+
__decorateClass([
|
|
281
|
+
A_Feature.Extend(),
|
|
282
|
+
__decorateParam(0, A_Inject(A_MemoryContext))
|
|
283
|
+
], A_Memory.prototype, _f, 1);
|
|
284
|
+
__decorateClass([
|
|
285
|
+
A_Feature.Extend(),
|
|
286
|
+
__decorateParam(0, A_Dependency.Required()),
|
|
287
|
+
__decorateParam(0, A_Inject(A_OperationContext)),
|
|
288
|
+
__decorateParam(1, A_Inject(A_MemoryContext))
|
|
289
|
+
], A_Memory.prototype, _e, 1);
|
|
290
|
+
__decorateClass([
|
|
291
|
+
A_Feature.Extend(),
|
|
292
|
+
__decorateParam(0, A_Dependency.Required()),
|
|
293
|
+
__decorateParam(0, A_Inject(A_OperationContext)),
|
|
294
|
+
__decorateParam(1, A_Inject(A_MemoryContext))
|
|
295
|
+
], A_Memory.prototype, _d, 1);
|
|
296
|
+
__decorateClass([
|
|
297
|
+
A_Feature.Extend(),
|
|
298
|
+
__decorateParam(0, A_Dependency.Required()),
|
|
299
|
+
__decorateParam(0, A_Inject(A_OperationContext)),
|
|
300
|
+
__decorateParam(1, A_Inject(A_MemoryContext)),
|
|
301
|
+
__decorateParam(2, A_Inject(A_Scope))
|
|
302
|
+
], A_Memory.prototype, _c, 1);
|
|
303
|
+
__decorateClass([
|
|
304
|
+
A_Feature.Extend(),
|
|
305
|
+
__decorateParam(0, A_Dependency.Required()),
|
|
306
|
+
__decorateParam(0, A_Inject(A_OperationContext)),
|
|
307
|
+
__decorateParam(1, A_Inject(A_MemoryContext))
|
|
308
|
+
], A_Memory.prototype, _b, 1);
|
|
309
|
+
__decorateClass([
|
|
310
|
+
A_Feature.Extend(),
|
|
311
|
+
__decorateParam(0, A_Dependency.Required()),
|
|
312
|
+
__decorateParam(0, A_Inject(A_OperationContext)),
|
|
313
|
+
__decorateParam(1, A_Inject(A_MemoryContext))
|
|
314
|
+
], A_Memory.prototype, _a, 1);
|
|
315
|
+
A_Memory = __decorateClass([
|
|
316
|
+
A_Frame.Component({
|
|
317
|
+
namespace: "A-Utils",
|
|
318
|
+
name: "A-Memory",
|
|
319
|
+
description: "In-memory data storage component that provides a simple key-value store with asynchronous operations. It supports basic memory operations such as get, set, has, drop, and clear, along with lifecycle management and error handling features. This components features can be extended with other components to provide ability store data across multiple storage, or extract data from multiple external sources. Good example is to store some runtime data that needs to be shared across multiple containers or concepts."
|
|
320
|
+
})
|
|
321
|
+
], A_Memory);
|
|
322
|
+
|
|
323
|
+
export { A_Memory };
|
|
324
|
+
//# sourceMappingURL=A-Memory.component.mjs.map
|
|
325
|
+
//# sourceMappingURL=A-Memory.component.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/A-Memory/A-Memory.component.ts"],"names":[],"mappings":";;;;;;;;AAAA,IAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA;AAeO,IAAM,QAAA,GAAN,cAGG,WAAA,CAAY;AAAA,EAKlB,IAAI,KAAA,GAAuB;AACvB,IAAA,IAAI,CAAC,KAAK,MAAA,EAAQ;AACd,MAAA,IAAA,CAAK,MAAA,GAAS,KAAK,IAAA,EAAK;AAAA,IAC5B;AACA,IAAA,OAAO,IAAA,CAAK,MAAA;AAAA,EAChB;AAAA;AAAA;AAAA;AAAA,EAUA,OAAO,EAAA,GAAA,gBAAA,CAAiB,OAAO,CAAA,CAAA,GAAK,IAAA,EAA4B;AAAA,EAEhE;AAAA;AAAA;AAAA;AAAA,EAMA,OAAO,EAAA,GAAA,gB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A,EA5GpB,QAAA,CAyGF,SAAA,EAAA,EAAA,EAAA,CAAA,CAAA;AAcA,eAAA,CAAA;AAAA,EAJN,UAAU,MAAA,EAAO;AAAA,EAKb,gCAAa,QAAA,EAAS,CAAA;AAAA,EACtB,4BAAS,kBAAkB,CAAA,CAAA;AAAA,EAC3B,4BAAS,eAAe,CAAA;AAAA,CAAA,EA1HpB,QAAA,CAuHF,SAAA,EAAA,EAAA,EAAA,CAAA,CAAA;AAvHE,QAAA,GAAN,eAAA,CAAA;AAAA,EALN,QAAQ,SAAA,CAAU;AAAA,IACf,SAAA,EAAW,SAAA;AAAA,IACX,IAAA,EAAM,UAAA;AAAA,IACN,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,QAAA,CAAA","file":"A-Memory.component.mjs","sourcesContent":["import { A_Component, A_Inject, A_Scope, A_Feature, A_Dependency, A_Context } from \"@adaas/a-concept\";\nimport { A_MemoryFeatures } from \"./A-Memory.constants\";\nimport { A_MemoryContext } from \"./A-Memory.context\";\nimport { A_MemoryError } from \"./A-Memory.error\";\nimport { A_OperationContext } from \"@adaas/a-utils/a-operation\";\nimport { A_MemoryOperationContext } from \"./A-Memory.types\";\nimport { A_Frame } from \"@adaas/a-frame\";\n\n\n\n@A_Frame.Component({\n namespace: 'A-Utils',\n name: 'A-Memory',\n description: 'In-memory data storage component that provides a simple key-value store with asynchronous operations. It supports basic memory operations such as get, set, has, drop, and clear, along with lifecycle management and error handling features. This components features can be extended with other components to provide ability store data across multiple storage, or extract data from multiple external sources. Good example is to store some runtime data that needs to be shared across multiple containers or concepts.'\n})\nexport class A_Memory<\n _StorageType extends Record<string, any> = Record<string, any>,\n _SerializedType extends Record<string, any> = Record<string, any>\n> extends A_Component {\n\n protected _ready?: Promise<void>\n\n\n get ready(): Promise<void> {\n if (!this._ready) {\n this._ready = this.init();\n }\n return this._ready;\n }\n\n // ======================================================================\n // ======================A-Memory Lifecycle Hooks========================\n // ======================================================================\n\n @A_Feature.Extend()\n /**\n * Handles errors during memory operations\n */\n async [A_MemoryFeatures.onError](...args: any[]): Promise<void> {\n // Handle error\n }\n\n @A_Feature.Extend()\n /**\n * Handles memory expiration\n */\n async [A_MemoryFeatures.onExpire](...args: any[]): Promise<void> {\n // Clear memory on expire\n }\n\n @A_Feature.Extend()\n /**\n * Initializes the memory context\n */\n async [A_MemoryFeatures.onInit](\n @A_Inject(A_MemoryContext) context: A_MemoryContext<_StorageType>,\n ...args: any[]\n ): Promise<void> {\n // Initialize memory\n if (!context) {\n context = new A_MemoryContext<_StorageType>();\n A_Context.scope(this).register(context);\n }\n }\n\n @A_Feature.Extend()\n async [A_MemoryFeatures.onDestroy](\n @A_Inject(A_MemoryContext) context: A_MemoryContext<_StorageType>,\n ...args: any[]): Promise<void> {\n // Cleanup memory\n context.clear();\n }\n\n /**\n * Handles the 'get' operation for retrieving a value from memory\n */\n @A_Feature.Extend()\n async [A_MemoryFeatures.onGet](\n @A_Dependency.Required()\n @A_Inject(A_OperationContext) operation: A_MemoryOperationContext,\n @A_Inject(A_MemoryContext) context: A_MemoryContext<_StorageType>,\n ...args: any[]\n ): Promise<void> {\n // Handle get operation\n operation.succeed(context.get(operation.params.key));\n }\n\n @A_Feature.Extend()\n /**\n * Handles the 'has' operation for checking existence of a key in memory\n */\n async [A_MemoryFeatures.onHas](\n @A_Dependency.Required()\n @A_Inject(A_OperationContext) operation: A_MemoryOperationContext<boolean>,\n @A_Inject(A_MemoryContext) context: A_MemoryContext<_StorageType>,\n ...args: any[]\n ): Promise<void> {\n // Handle has operation\n operation.succeed(context.has(operation.params.key));\n }\n\n @A_Feature.Extend()\n /**\n * Handles the 'set' operation for saving a value in memory\n */\n async [A_MemoryFeatures.onSet](\n @A_Dependency.Required()\n @A_Inject(A_OperationContext) operation: A_MemoryOperationContext,\n @A_Inject(A_MemoryContext) context: A_MemoryContext<_StorageType>,\n @A_Inject(A_Scope) scope: A_Scope,\n ...args: any[]\n ): Promise<void> {\n // Handle set operation\n context.set(operation.params.key, operation.params.value);\n }\n\n @A_Feature.Extend()\n /**\n * Handles the 'drop' operation for removing a value from memory\n */\n async [A_MemoryFeatures.onDrop](\n @A_Dependency.Required()\n @A_Inject(A_OperationContext) operation: A_MemoryOperationContext,\n @A_Inject(A_MemoryContext) context: A_MemoryContext<_StorageType>,\n ...args: any[]\n ): Promise<void> {\n // Handle drop operation\n context.delete(operation.params.key);\n }\n\n @A_Feature.Extend()\n /**\n * Handles the 'clear' operation for clearing all values from memory\n */\n async [A_MemoryFeatures.onClear](\n @A_Dependency.Required()\n @A_Inject(A_OperationContext) operation: A_MemoryOperationContext,\n @A_Inject(A_MemoryContext) context: A_MemoryContext<_StorageType>,\n ...args: any[]\n ): Promise<void> {\n // Handle clear operation\n context.clear();\n }\n\n\n\n // ======================================================================\n // =========================A-Memory Methods=============================\n // ======================================================================\n\n /**\n * Initializes the memory context\n */\n async init() {\n if (this._ready)\n return this._ready;\n\n const scope = new A_Scope({ name: 'A-Memory-Init-Scope' })\n .inherit(A_Context.scope(this));\n\n try {\n await this.call(A_MemoryFeatures.onInit, scope);\n\n } catch (error) {\n const initError = new A_MemoryError({\n title: A_MemoryError.MemoryInitializationError,\n description: 'An error occurred during memory initialization',\n originalError: error\n })\n\n scope.register(initError);\n\n await this.call(A_MemoryFeatures.onError, scope);\n\n scope.destroy();\n\n throw initError;\n }\n }\n\n /**\n * Destroys the memory context\n *\n * This method is responsible for cleaning up any resources\n * used by the memory context and resetting its state.\n */\n async destroy() {\n\n const scope = new A_Scope({ name: 'A-Memory-Destroy-Scope' })\n .inherit(A_Context.scope(this));\n\n try {\n this._ready = undefined;\n\n await this.call(A_MemoryFeatures.onDestroy, scope);\n\n } catch (error) {\n const destroyError = new A_MemoryError({\n title: A_MemoryError.MemoryDestructionError,\n description: 'An error occurred during memory destruction',\n originalError: error\n })\n\n scope.register(destroyError);\n\n\n await this.call(A_MemoryFeatures.onError, scope);\n\n scope.destroy();\n\n throw destroyError;\n }\n }\n\n /**\n * Retrieves a value from the context memory\n * \n * @param key - memory key to retrieve\n * @returns - value associated with the key or undefined if not found\n */\n async get<K extends keyof _StorageType>(\n /**\n * Key to retrieve the value for\n */\n key: K\n ): Promise<_StorageType[K] | undefined> {\n\n const operation = new A_OperationContext('get', { key });\n\n const scope = new A_Scope({\n name: 'A-Memory-Get-Operation-Scope',\n fragments: [operation]\n })\n .inherit(A_Context.scope(this));\n\n try {\n\n await this.call(A_MemoryFeatures.onGet, scope);\n\n scope.destroy();\n\n return operation.result;\n\n } catch (error) {\n const getError = new A_MemoryError({\n title: A_MemoryError.MemoryGetError,\n description: `An error occurred while getting the value for key \"${String(key)}\"`,\n originalError: error\n });\n\n scope.register(getError);\n\n await this.call(A_MemoryFeatures.onError, scope);\n\n scope.destroy();\n\n throw getError;\n }\n }\n\n /**\n * Checks if a value exists in the context memory\n * \n * @param key - memory key to check\n * @returns - true if key exists, false otherwise\n */\n async has(key: keyof _StorageType): Promise<boolean> {\n const operation = new A_OperationContext('has', { key });\n\n const scope = new A_Scope({\n name: 'A-Memory-Has-Operation-Scope',\n fragments: [operation]\n })\n .inherit(A_Context.scope(this));\n\n try {\n\n await this.call(A_MemoryFeatures.onHas, scope);\n\n scope.destroy();\n\n return operation.result;\n\n } catch (error) {\n const getError = new A_MemoryError({\n title: A_MemoryError.MemoryHasError,\n description: `An error occurred while checking existence for key \"${String(key)}\"`,\n originalError: error\n });\n\n scope.register(getError);\n\n await this.call(A_MemoryFeatures.onError, scope);\n\n scope.destroy();\n\n throw getError;\n }\n }\n\n /**\n * Saves a value in the context memory\n * \n * @param key \n * @param value \n */\n async set<K extends keyof _StorageType>(\n /**\n * Key to save the value under\n */\n key: K,\n /**\n * Value to save\n */\n value: _StorageType[K]\n ): Promise<void> {\n const operation = new A_OperationContext('set', { key, value });\n\n const scope = new A_Scope({\n name: 'A-Memory-Set-Operation-Scope',\n fragments: [operation]\n })\n .inherit(A_Context.scope(this));\n\n try {\n\n await this.call(A_MemoryFeatures.onSet, scope);\n\n } catch (error) {\n const setError = new A_MemoryError({\n title: A_MemoryError.MemorySetError,\n description: `An error occurred while setting the value for key \"${String(key)}\"`,\n originalError: error\n });\n\n scope.register(setError);\n\n await this.call(A_MemoryFeatures.onError, scope);\n\n scope.destroy();\n\n throw setError;\n }\n }\n\n\n /**\n * Removes a value from the context memory by key\n * \n * @param key \n */\n async drop(key: keyof _StorageType): Promise<void> {\n\n const operation = new A_OperationContext('drop', { key });\n\n const scope = new A_Scope({\n name: 'A-Memory-Drop-Operation-Scope',\n fragments: [operation]\n })\n .inherit(A_Context.scope(this));\n\n try {\n\n await this.call(A_MemoryFeatures.onDrop, scope);\n\n } catch (error) {\n const dropError = new A_MemoryError({\n title: A_MemoryError.MemoryDropError,\n description: `An error occurred while dropping the value for key \"${String(key)}\"`,\n originalError: error\n });\n\n scope.register(dropError);\n\n await this.call(A_MemoryFeatures.onError, scope);\n\n scope.destroy();\n\n throw dropError;\n }\n }\n\n /**\n * Clears all stored values in the context memory\n */\n async clear(): Promise<void> {\n const operation = new A_OperationContext('clear');\n\n const scope = new A_Scope({\n name: 'A-Memory-Clear-Operation-Scope',\n fragments: [operation]\n })\n .inherit(A_Context.scope(this));\n\n try {\n\n await this.call(A_MemoryFeatures.onClear, scope);\n\n } catch (error) {\n const clearError = new A_MemoryError({\n title: A_MemoryError.MemoryClearError,\n description: `An error occurred while clearing the memory`,\n originalError: error\n });\n\n scope.register(clearError);\n\n await this.call(A_MemoryFeatures.onError, scope);\n\n scope.destroy();\n\n throw clearError;\n }\n }\n\n\n /**\n * Serializes the memory context to a JSON object\n * \n * @returns - serialized memory object \n */\n async toJSON(): Promise<_SerializedType> {\n const operation = new A_OperationContext('serialize');\n\n const scope = new A_Scope({\n name: 'A-Memory-Serialize-Operation-Scope',\n fragments: [operation]\n })\n .inherit(A_Context.scope(this));\n\n try {\n\n await this.call(A_MemoryFeatures.onSerialize, scope);\n\n return operation.result as _SerializedType;\n\n } catch (error) {\n const serializeError = new A_MemoryError({\n title: A_MemoryError.MemorySerializeError,\n description: `An error occurred while serializing the memory`,\n originalError: error\n });\n\n scope.register(serializeError);\n\n await this.call(A_MemoryFeatures.onError, scope);\n\n scope.destroy();\n\n throw serializeError;\n }\n\n }\n}"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare enum A_MemoryFeatures {
|
|
2
|
+
/**
|
|
3
|
+
* Allows to extend initialization logic and behavior
|
|
4
|
+
*/
|
|
5
|
+
onInit = "_A_Memory_onInit",
|
|
6
|
+
/**
|
|
7
|
+
* Allows to extend destruction logic and behavior
|
|
8
|
+
*/
|
|
9
|
+
onDestroy = "_A_Memory_onDestroy",
|
|
10
|
+
/**
|
|
11
|
+
* Allows to extend expiration logic and behavior
|
|
12
|
+
*/
|
|
13
|
+
onExpire = "_A_Memory_onExpire",
|
|
14
|
+
/**
|
|
15
|
+
* Allows to extend error handling logic and behavior
|
|
16
|
+
*/
|
|
17
|
+
onError = "_A_Memory_onError",
|
|
18
|
+
/**
|
|
19
|
+
* Allows to extend serialization logic and behavior
|
|
20
|
+
*/
|
|
21
|
+
onSerialize = "_A_Memory_onSerialize",
|
|
22
|
+
/**
|
|
23
|
+
* Allows to extend set operation logic and behavior
|
|
24
|
+
*/
|
|
25
|
+
onSet = "_A_Memory_onSet",
|
|
26
|
+
/**
|
|
27
|
+
* Allows to extend get operation logic and behavior
|
|
28
|
+
*/
|
|
29
|
+
onGet = "_A_Memory_onGet",
|
|
30
|
+
/**
|
|
31
|
+
* Allows to extend drop operation logic and behavior
|
|
32
|
+
*/
|
|
33
|
+
onDrop = "_A_Memory_onDrop",
|
|
34
|
+
/**
|
|
35
|
+
* Allows to extend clear operation logic and behavior
|
|
36
|
+
*/
|
|
37
|
+
onClear = "_A_Memory_onClear",
|
|
38
|
+
/**
|
|
39
|
+
* Allows to extend has operation logic and behavior
|
|
40
|
+
*/
|
|
41
|
+
onHas = "_A_Memory_onHas"
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { A_MemoryFeatures };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare enum A_MemoryFeatures {
|
|
2
|
+
/**
|
|
3
|
+
* Allows to extend initialization logic and behavior
|
|
4
|
+
*/
|
|
5
|
+
onInit = "_A_Memory_onInit",
|
|
6
|
+
/**
|
|
7
|
+
* Allows to extend destruction logic and behavior
|
|
8
|
+
*/
|
|
9
|
+
onDestroy = "_A_Memory_onDestroy",
|
|
10
|
+
/**
|
|
11
|
+
* Allows to extend expiration logic and behavior
|
|
12
|
+
*/
|
|
13
|
+
onExpire = "_A_Memory_onExpire",
|
|
14
|
+
/**
|
|
15
|
+
* Allows to extend error handling logic and behavior
|
|
16
|
+
*/
|
|
17
|
+
onError = "_A_Memory_onError",
|
|
18
|
+
/**
|
|
19
|
+
* Allows to extend serialization logic and behavior
|
|
20
|
+
*/
|
|
21
|
+
onSerialize = "_A_Memory_onSerialize",
|
|
22
|
+
/**
|
|
23
|
+
* Allows to extend set operation logic and behavior
|
|
24
|
+
*/
|
|
25
|
+
onSet = "_A_Memory_onSet",
|
|
26
|
+
/**
|
|
27
|
+
* Allows to extend get operation logic and behavior
|
|
28
|
+
*/
|
|
29
|
+
onGet = "_A_Memory_onGet",
|
|
30
|
+
/**
|
|
31
|
+
* Allows to extend drop operation logic and behavior
|
|
32
|
+
*/
|
|
33
|
+
onDrop = "_A_Memory_onDrop",
|
|
34
|
+
/**
|
|
35
|
+
* Allows to extend clear operation logic and behavior
|
|
36
|
+
*/
|
|
37
|
+
onClear = "_A_Memory_onClear",
|
|
38
|
+
/**
|
|
39
|
+
* Allows to extend has operation logic and behavior
|
|
40
|
+
*/
|
|
41
|
+
onHas = "_A_Memory_onHas"
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { A_MemoryFeatures };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var A_MemoryFeatures = /* @__PURE__ */ ((A_MemoryFeatures2) => {
|
|
4
|
+
A_MemoryFeatures2["onInit"] = "_A_Memory_onInit";
|
|
5
|
+
A_MemoryFeatures2["onDestroy"] = "_A_Memory_onDestroy";
|
|
6
|
+
A_MemoryFeatures2["onExpire"] = "_A_Memory_onExpire";
|
|
7
|
+
A_MemoryFeatures2["onError"] = "_A_Memory_onError";
|
|
8
|
+
A_MemoryFeatures2["onSerialize"] = "_A_Memory_onSerialize";
|
|
9
|
+
A_MemoryFeatures2["onSet"] = "_A_Memory_onSet";
|
|
10
|
+
A_MemoryFeatures2["onGet"] = "_A_Memory_onGet";
|
|
11
|
+
A_MemoryFeatures2["onDrop"] = "_A_Memory_onDrop";
|
|
12
|
+
A_MemoryFeatures2["onClear"] = "_A_Memory_onClear";
|
|
13
|
+
A_MemoryFeatures2["onHas"] = "_A_Memory_onHas";
|
|
14
|
+
return A_MemoryFeatures2;
|
|
15
|
+
})(A_MemoryFeatures || {});
|
|
16
|
+
|
|
17
|
+
exports.A_MemoryFeatures = A_MemoryFeatures;
|
|
18
|
+
//# sourceMappingURL=A-Memory.constants.js.map
|
|
19
|
+
//# sourceMappingURL=A-Memory.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/A-Memory/A-Memory.constants.ts"],"names":["A_MemoryFeatures"],"mappings":";;AAEO,IAAK,gBAAA,qBAAAA,iBAAAA,KAAL;AAIH,EAAAA,kBAAA,QAAA,CAAA,GAAS,kBAAA;AAKT,EAAAA,kBAAA,WAAA,CAAA,GAAY,qBAAA;AAKZ,EAAAA,kBAAA,UAAA,CAAA,GAAW,oBAAA;AAKX,EAAAA,kBAAA,SAAA,CAAA,GAAU,mBAAA;AAKV,EAAAA,kBAAA,aAAA,CAAA,GAAc,uBAAA;AAKd,EAAAA,kBAAA,OAAA,CAAA,GAAQ,iBAAA;AAIR,EAAAA,kBAAA,OAAA,CAAA,GAAQ,iBAAA;AAIR,EAAAA,kBAAA,QAAA,CAAA,GAAS,kBAAA;AAIT,EAAAA,kBAAA,SAAA,CAAA,GAAU,mBAAA;AAIV,EAAAA,kBAAA,OAAA,CAAA,GAAQ,iBAAA;AA7CA,EAAA,OAAAA,iBAAAA;AAAA,CAAA,EAAA,gBAAA,IAAA,EAAA","file":"A-Memory.constants.js","sourcesContent":["\n\nexport enum A_MemoryFeatures {\n /**\n * Allows to extend initialization logic and behavior\n */\n onInit = '_A_Memory_onInit',\n\n /**\n * Allows to extend destruction logic and behavior\n */\n onDestroy = '_A_Memory_onDestroy',\n\n /**\n * Allows to extend expiration logic and behavior\n */\n onExpire = '_A_Memory_onExpire',\n\n /**\n * Allows to extend error handling logic and behavior\n */\n onError = '_A_Memory_onError',\n\n /**\n * Allows to extend serialization logic and behavior\n */\n onSerialize = '_A_Memory_onSerialize',\n\n /**\n * Allows to extend set operation logic and behavior\n */\n onSet = '_A_Memory_onSet',\n /**\n * Allows to extend get operation logic and behavior\n */\n onGet = '_A_Memory_onGet',\n /**\n * Allows to extend drop operation logic and behavior\n */\n onDrop = '_A_Memory_onDrop',\n /**\n * Allows to extend clear operation logic and behavior\n */\n onClear = '_A_Memory_onClear',\n /**\n * Allows to extend has operation logic and behavior\n */\n onHas = '_A_Memory_onHas',\n}"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import '../../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
|
|
3
|
+
var A_MemoryFeatures = /* @__PURE__ */ ((A_MemoryFeatures2) => {
|
|
4
|
+
A_MemoryFeatures2["onInit"] = "_A_Memory_onInit";
|
|
5
|
+
A_MemoryFeatures2["onDestroy"] = "_A_Memory_onDestroy";
|
|
6
|
+
A_MemoryFeatures2["onExpire"] = "_A_Memory_onExpire";
|
|
7
|
+
A_MemoryFeatures2["onError"] = "_A_Memory_onError";
|
|
8
|
+
A_MemoryFeatures2["onSerialize"] = "_A_Memory_onSerialize";
|
|
9
|
+
A_MemoryFeatures2["onSet"] = "_A_Memory_onSet";
|
|
10
|
+
A_MemoryFeatures2["onGet"] = "_A_Memory_onGet";
|
|
11
|
+
A_MemoryFeatures2["onDrop"] = "_A_Memory_onDrop";
|
|
12
|
+
A_MemoryFeatures2["onClear"] = "_A_Memory_onClear";
|
|
13
|
+
A_MemoryFeatures2["onHas"] = "_A_Memory_onHas";
|
|
14
|
+
return A_MemoryFeatures2;
|
|
15
|
+
})(A_MemoryFeatures || {});
|
|
16
|
+
|
|
17
|
+
export { A_MemoryFeatures };
|
|
18
|
+
//# sourceMappingURL=A-Memory.constants.mjs.map
|
|
19
|
+
//# sourceMappingURL=A-Memory.constants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/A-Memory/A-Memory.constants.ts"],"names":["A_MemoryFeatures"],"mappings":";;AAEO,IAAK,gBAAA,qBAAAA,iBAAAA,KAAL;AAIH,EAAAA,kBAAA,QAAA,CAAA,GAAS,kBAAA;AAKT,EAAAA,kBAAA,WAAA,CAAA,GAAY,qBAAA;AAKZ,EAAAA,kBAAA,UAAA,CAAA,GAAW,oBAAA;AAKX,EAAAA,kBAAA,SAAA,CAAA,GAAU,mBAAA;AAKV,EAAAA,kBAAA,aAAA,CAAA,GAAc,uBAAA;AAKd,EAAAA,kBAAA,OAAA,CAAA,GAAQ,iBAAA;AAIR,EAAAA,kBAAA,OAAA,CAAA,GAAQ,iBAAA;AAIR,EAAAA,kBAAA,QAAA,CAAA,GAAS,kBAAA;AAIT,EAAAA,kBAAA,SAAA,CAAA,GAAU,mBAAA;AAIV,EAAAA,kBAAA,OAAA,CAAA,GAAQ,iBAAA;AA7CA,EAAA,OAAAA,iBAAAA;AAAA,CAAA,EAAA,gBAAA,IAAA,EAAA","file":"A-Memory.constants.mjs","sourcesContent":["\n\nexport enum A_MemoryFeatures {\n /**\n * Allows to extend initialization logic and behavior\n */\n onInit = '_A_Memory_onInit',\n\n /**\n * Allows to extend destruction logic and behavior\n */\n onDestroy = '_A_Memory_onDestroy',\n\n /**\n * Allows to extend expiration logic and behavior\n */\n onExpire = '_A_Memory_onExpire',\n\n /**\n * Allows to extend error handling logic and behavior\n */\n onError = '_A_Memory_onError',\n\n /**\n * Allows to extend serialization logic and behavior\n */\n onSerialize = '_A_Memory_onSerialize',\n\n /**\n * Allows to extend set operation logic and behavior\n */\n onSet = '_A_Memory_onSet',\n /**\n * Allows to extend get operation logic and behavior\n */\n onGet = '_A_Memory_onGet',\n /**\n * Allows to extend drop operation logic and behavior\n */\n onDrop = '_A_Memory_onDrop',\n /**\n * Allows to extend clear operation logic and behavior\n */\n onClear = '_A_Memory_onClear',\n /**\n * Allows to extend has operation logic and behavior\n */\n onHas = '_A_Memory_onHas',\n}"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { A_TYPES__Fragment_Serialized, A_Fragment } from '@adaas/a-concept';
|
|
2
|
+
|
|
3
|
+
declare class A_MemoryContext<_MemoryType extends Record<string, any> = Record<string, any>, _SerializedType extends A_TYPES__Fragment_Serialized = A_TYPES__Fragment_Serialized> extends A_Fragment {
|
|
4
|
+
protected _storage: Map<keyof _MemoryType, _MemoryType[keyof _MemoryType]>;
|
|
5
|
+
set<K extends keyof _MemoryType>(param: K, value: _MemoryType[K]): void;
|
|
6
|
+
get<K extends keyof _MemoryType>(param: K): _MemoryType[K] | undefined;
|
|
7
|
+
delete<K extends keyof _MemoryType>(param: K): void;
|
|
8
|
+
has<K extends keyof _MemoryType>(param: K): boolean;
|
|
9
|
+
clear(): void;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { A_MemoryContext };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { A_TYPES__Fragment_Serialized, A_Fragment } from '@adaas/a-concept';
|
|
2
|
+
|
|
3
|
+
declare class A_MemoryContext<_MemoryType extends Record<string, any> = Record<string, any>, _SerializedType extends A_TYPES__Fragment_Serialized = A_TYPES__Fragment_Serialized> extends A_Fragment {
|
|
4
|
+
protected _storage: Map<keyof _MemoryType, _MemoryType[keyof _MemoryType]>;
|
|
5
|
+
set<K extends keyof _MemoryType>(param: K, value: _MemoryType[K]): void;
|
|
6
|
+
get<K extends keyof _MemoryType>(param: K): _MemoryType[K] | undefined;
|
|
7
|
+
delete<K extends keyof _MemoryType>(param: K): void;
|
|
8
|
+
has<K extends keyof _MemoryType>(param: K): boolean;
|
|
9
|
+
clear(): void;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { A_MemoryContext };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var aConcept = require('@adaas/a-concept');
|
|
4
|
+
var aFrame = require('@adaas/a-frame');
|
|
5
|
+
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
8
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
9
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10
|
+
if (decorator = decorators[i])
|
|
11
|
+
result = (decorator(result)) || result;
|
|
12
|
+
return result;
|
|
13
|
+
};
|
|
14
|
+
exports.A_MemoryContext = class A_MemoryContext extends aConcept.A_Fragment {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this._storage = /* @__PURE__ */ new Map();
|
|
18
|
+
}
|
|
19
|
+
set(param, value) {
|
|
20
|
+
this._storage.set(param, value);
|
|
21
|
+
}
|
|
22
|
+
get(param) {
|
|
23
|
+
return this._storage.get(param);
|
|
24
|
+
}
|
|
25
|
+
delete(param) {
|
|
26
|
+
this._storage.delete(param);
|
|
27
|
+
}
|
|
28
|
+
has(param) {
|
|
29
|
+
return this._storage.has(param);
|
|
30
|
+
}
|
|
31
|
+
clear() {
|
|
32
|
+
this._storage.clear();
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.A_MemoryContext = __decorateClass([
|
|
36
|
+
aFrame.A_Frame.Fragment({
|
|
37
|
+
namespace: "A-Utils",
|
|
38
|
+
name: "A-MemoryContext",
|
|
39
|
+
description: "In-memory context fragment that provides a simple key-value store for temporary data storage during application runtime. It allows setting, getting, deleting, and checking the existence of key-value pairs, facilitating quick access to transient data without persistent storage. This context is useful for scenarios where data needs to be shared across different components or operations within the same execution context."
|
|
40
|
+
})
|
|
41
|
+
], exports.A_MemoryContext);
|
|
42
|
+
//# sourceMappingURL=A-Memory.context.js.map
|
|
43
|
+
//# sourceMappingURL=A-Memory.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/A-Memory/A-Memory.context.ts"],"names":["A_MemoryContext","A_Fragment","A_Frame"],"mappings":";;;;;;;;;;;;;AAYaA,uBAAA,GAAN,8BAGGC,mBAAA,CAAW;AAAA,EAHd,WAAA,GAAA;AAAA,IAAA,KAAA,CAAA,GAAA,SAAA,CAAA;AAIH,IAAA,IAAA,CAAU,QAAA,uBAAuE,GAAA,EAAI;AAAA,EAAA;AAAA,EAErF,GAAA,CAAiC,OAAU,KAAA,EAA6B;AACpE,IAAA,IAAA,CAAK,QAAA,CAAS,GAAA,CAAI,KAAA,EAAO,KAAK,CAAA;AAAA,EAClC;AAAA,EAGA,IAAiC,KAAA,EAAsC;AACnE,IAAA,OAAO,IAAA,CAAK,QAAA,CAAS,GAAA,CAAI,KAAK,CAAA;AAAA,EAClC;AAAA,EAGA,OAAoC,KAAA,EAAgB;AAChD,IAAA,IAAA,CAAK,QAAA,CAAS,OAAO,KAAK,CAAA;AAAA,EAC9B;AAAA,EAGA,IAAiC,KAAA,EAAmB;AAChD,IAAA,OAAO,IAAA,CAAK,QAAA,CAAS,GAAA,CAAI,KAAK,CAAA;AAAA,EAClC;AAAA,EAEA,KAAA,GAAc;AACV,IAAA,IAAA,CAAK,SAAS,KAAA,EAAM;AAAA,EACxB;AACJ;AA5BaD,uBAAA,GAAN,eAAA,CAAA;AAAA,EALNE,eAAQ,QAAA,CAAS;AAAA,IACd,SAAA,EAAW,SAAA;AAAA,IACX,IAAA,EAAM,iBAAA;AAAA,IACN,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYF,uBAAA,CAAA","file":"A-Memory.context.js","sourcesContent":["import { A_Error, A_Fragment, A_TYPES__Fragment_Serialized } from \"@adaas/a-concept\";\nimport { A_Frame } from \"@adaas/a-frame\";\nimport { error } from \"console\";\n\n\n\n\n@A_Frame.Fragment({\n namespace: 'A-Utils',\n name: 'A-MemoryContext',\n description: 'In-memory context fragment that provides a simple key-value store for temporary data storage during application runtime. It allows setting, getting, deleting, and checking the existence of key-value pairs, facilitating quick access to transient data without persistent storage. This context is useful for scenarios where data needs to be shared across different components or operations within the same execution context.'\n})\nexport class A_MemoryContext<\n _MemoryType extends Record<string, any> = Record<string, any>,\n _SerializedType extends A_TYPES__Fragment_Serialized = A_TYPES__Fragment_Serialized\n> extends A_Fragment {\n protected _storage: Map<keyof _MemoryType, _MemoryType[keyof _MemoryType]> = new Map();\n\n set<K extends keyof _MemoryType>(param: K, value: _MemoryType[K]): void {\n this._storage.set(param, value);\n }\n\n\n get<K extends keyof _MemoryType>(param: K): _MemoryType[K] | undefined {\n return this._storage.get(param);\n }\n\n\n delete<K extends keyof _MemoryType>(param: K): void {\n this._storage.delete(param);\n }\n\n\n has<K extends keyof _MemoryType>(param: K): boolean {\n return this._storage.has(param);\n }\n\n clear(): void {\n this._storage.clear();\n }\n}"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { __decorateClass } from '../../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
import { A_Fragment } from '@adaas/a-concept';
|
|
3
|
+
import { A_Frame } from '@adaas/a-frame';
|
|
4
|
+
|
|
5
|
+
let A_MemoryContext = class extends A_Fragment {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this._storage = /* @__PURE__ */ new Map();
|
|
9
|
+
}
|
|
10
|
+
set(param, value) {
|
|
11
|
+
this._storage.set(param, value);
|
|
12
|
+
}
|
|
13
|
+
get(param) {
|
|
14
|
+
return this._storage.get(param);
|
|
15
|
+
}
|
|
16
|
+
delete(param) {
|
|
17
|
+
this._storage.delete(param);
|
|
18
|
+
}
|
|
19
|
+
has(param) {
|
|
20
|
+
return this._storage.has(param);
|
|
21
|
+
}
|
|
22
|
+
clear() {
|
|
23
|
+
this._storage.clear();
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
A_MemoryContext = __decorateClass([
|
|
27
|
+
A_Frame.Fragment({
|
|
28
|
+
namespace: "A-Utils",
|
|
29
|
+
name: "A-MemoryContext",
|
|
30
|
+
description: "In-memory context fragment that provides a simple key-value store for temporary data storage during application runtime. It allows setting, getting, deleting, and checking the existence of key-value pairs, facilitating quick access to transient data without persistent storage. This context is useful for scenarios where data needs to be shared across different components or operations within the same execution context."
|
|
31
|
+
})
|
|
32
|
+
], A_MemoryContext);
|
|
33
|
+
|
|
34
|
+
export { A_MemoryContext };
|
|
35
|
+
//# sourceMappingURL=A-Memory.context.mjs.map
|
|
36
|
+
//# sourceMappingURL=A-Memory.context.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/A-Memory/A-Memory.context.ts"],"names":[],"mappings":";;;;AAYO,IAAM,eAAA,GAAN,cAGG,UAAA,CAAW;AAAA,EAHd,WAAA,GAAA;AAAA,IAAA,KAAA,CAAA,GAAA,SAAA,CAAA;AAIH,IAAA,IAAA,CAAU,QAAA,uBAAuE,GAAA,EAAI;AAAA,EAAA;AAAA,EAErF,GAAA,CAAiC,OAAU,KAAA,EAA6B;AACpE,IAAA,IAAA,CAAK,QAAA,CAAS,GAAA,CAAI,KAAA,EAAO,KAAK,CAAA;AAAA,EAClC;AAAA,EAGA,IAAiC,KAAA,EAAsC;AACnE,IAAA,OAAO,IAAA,CAAK,QAAA,CAAS,GAAA,CAAI,KAAK,CAAA;AAAA,EAClC;AAAA,EAGA,OAAoC,KAAA,EAAgB;AAChD,IAAA,IAAA,CAAK,QAAA,CAAS,OAAO,KAAK,CAAA;AAAA,EAC9B;AAAA,EAGA,IAAiC,KAAA,EAAmB;AAChD,IAAA,OAAO,IAAA,CAAK,QAAA,CAAS,GAAA,CAAI,KAAK,CAAA;AAAA,EAClC;AAAA,EAEA,KAAA,GAAc;AACV,IAAA,IAAA,CAAK,SAAS,KAAA,EAAM;AAAA,EACxB;AACJ;AA5Ba,eAAA,GAAN,eAAA,CAAA;AAAA,EALN,QAAQ,QAAA,CAAS;AAAA,IACd,SAAA,EAAW,SAAA;AAAA,IACX,IAAA,EAAM,iBAAA;AAAA,IACN,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,eAAA,CAAA","file":"A-Memory.context.mjs","sourcesContent":["import { A_Error, A_Fragment, A_TYPES__Fragment_Serialized } from \"@adaas/a-concept\";\nimport { A_Frame } from \"@adaas/a-frame\";\nimport { error } from \"console\";\n\n\n\n\n@A_Frame.Fragment({\n namespace: 'A-Utils',\n name: 'A-MemoryContext',\n description: 'In-memory context fragment that provides a simple key-value store for temporary data storage during application runtime. It allows setting, getting, deleting, and checking the existence of key-value pairs, facilitating quick access to transient data without persistent storage. This context is useful for scenarios where data needs to be shared across different components or operations within the same execution context.'\n})\nexport class A_MemoryContext<\n _MemoryType extends Record<string, any> = Record<string, any>,\n _SerializedType extends A_TYPES__Fragment_Serialized = A_TYPES__Fragment_Serialized\n> extends A_Fragment {\n protected _storage: Map<keyof _MemoryType, _MemoryType[keyof _MemoryType]> = new Map();\n\n set<K extends keyof _MemoryType>(param: K, value: _MemoryType[K]): void {\n this._storage.set(param, value);\n }\n\n\n get<K extends keyof _MemoryType>(param: K): _MemoryType[K] | undefined {\n return this._storage.get(param);\n }\n\n\n delete<K extends keyof _MemoryType>(param: K): void {\n this._storage.delete(param);\n }\n\n\n has<K extends keyof _MemoryType>(param: K): boolean {\n return this._storage.has(param);\n }\n\n clear(): void {\n this._storage.clear();\n }\n}"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { A_Error } from '@adaas/a-concept';
|
|
2
|
+
|
|
3
|
+
declare class A_MemoryError extends A_Error {
|
|
4
|
+
static readonly MemoryInitializationError = "Memory initialization error";
|
|
5
|
+
static readonly MemoryDestructionError = "Memory destruction error";
|
|
6
|
+
static readonly MemoryGetError = "Memory GET operation failed";
|
|
7
|
+
static readonly MemorySetError = "Memory SET operation failed";
|
|
8
|
+
static readonly MemoryDropError = "Memory DROP operation failed";
|
|
9
|
+
static readonly MemoryClearError = "Memory CLEAR operation failed";
|
|
10
|
+
static readonly MemoryHasError = "Memory HAS operation failed";
|
|
11
|
+
static readonly MemorySerializeError = "Memory toJSON operation failed";
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { A_MemoryError };
|