lakutata 2.0.80 → 2.0.82
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/com/cacher.cjs +8 -10
- package/com/cacher.d.ts +83 -14
- package/com/cacher.mjs +8 -10
- package/com/database.cjs +11 -11
- package/com/database.mjs +11 -11
- package/com/docker.cjs +17 -19
- package/com/docker.d.ts +3 -141
- package/com/docker.mjs +13 -15
- package/com/entrypoint.cjs +7 -5
- package/com/entrypoint.mjs +7 -5
- package/com/logger.cjs +7 -7
- package/com/logger.mjs +7 -7
- package/com/monitor.cjs +5 -3
- package/com/monitor.mjs +5 -3
- package/decorator/ctrl.cjs +3 -3
- package/decorator/ctrl.mjs +3 -3
- package/decorator/orm.cjs +98 -98
- package/decorator/orm.mjs +142 -56
- package/helper.cjs +9 -11
- package/helper.mjs +5 -7
- package/lakutata.cjs +23 -30
- package/lakutata.mjs +14 -18
- package/orm.cjs +1421 -884
- package/orm.mjs +1474 -724
- package/package.json +1 -1
- package/provider/database.cjs +11 -11
- package/provider/database.mjs +11 -11
- package/provider/passwordHash.cjs +4 -2
- package/provider/passwordHash.mjs +4 -2
- package/src/components/Database.cjs +13 -13
- package/src/components/Database.mjs +17 -17
- package/src/components/Logger.cjs +7 -7
- package/src/components/Logger.mjs +7 -7
- package/src/components/cacher/Cacher.cjs +1186 -272
- package/src/components/cacher/Cacher.mjs +1094 -180
- package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +478 -2962
- package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +468 -2946
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.cjs +12 -12
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +11 -11
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.cjs +16 -16
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +14 -14
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.cjs +11 -11
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +11 -11
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.cjs +12 -12
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +13 -13
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.cjs +2 -2
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +2 -2
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.cjs +10 -10
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +10 -10
- package/src/components/cacher/lib/IsDriverPackageInstalled.cjs +2 -2
- package/src/components/cacher/lib/IsDriverPackageInstalled.mjs +5 -5
- package/src/components/docker/ConnectionOptionsBuilder.cjs +23 -25
- package/src/components/docker/ConnectionOptionsBuilder.mjs +19 -21
- package/src/components/docker/Docker.cjs +5035 -5096
- package/src/components/docker/Docker.mjs +4955 -5016
- package/src/components/docker/lib/DockerContainer.cjs +23 -25
- package/src/components/docker/lib/DockerContainer.mjs +17 -19
- package/src/components/docker/lib/DockerContainerTTY.cjs +9 -11
- package/src/components/docker/lib/DockerContainerTTY.mjs +9 -11
- package/src/components/docker/lib/DockerImage.cjs +4 -2
- package/src/components/docker/lib/DockerImage.mjs +4 -2
- package/src/components/docker/lib/ParseEnvToRecord.cjs +2 -2
- package/src/components/docker/lib/ParseEnvToRecord.mjs +12 -12
- package/src/components/docker/lib/ParseRepositoryTag.cjs +9 -9
- package/src/components/docker/lib/ParseRepositoryTag.mjs +11 -11
- package/src/components/entrypoint/Entrypoint.cjs +2179 -1687
- package/src/components/entrypoint/Entrypoint.mjs +2182 -1690
- package/src/components/entrypoint/lib/AccessControl.cjs +4 -2
- package/src/components/entrypoint/lib/AccessControl.mjs +4 -2
- package/src/components/entrypoint/lib/AccessControlRule.cjs +4 -2
- package/src/components/entrypoint/lib/AccessControlRule.mjs +4 -2
- package/src/components/entrypoint/lib/Controller.cjs +4 -2
- package/src/components/entrypoint/lib/Controller.mjs +4 -2
- package/src/components/monitor/AliveMonitor.cjs +6 -4
- package/src/components/monitor/AliveMonitor.mjs +6 -4
- package/src/components/monitor/CpuMonitor.cjs +5 -3
- package/src/components/monitor/CpuMonitor.mjs +5 -3
- package/src/components/monitor/EventLoopMonitor.cjs +4 -2
- package/src/components/monitor/EventLoopMonitor.mjs +4 -2
- package/src/components/monitor/HttpRequestMonitor.cjs +5 -3
- package/src/components/monitor/HttpRequestMonitor.mjs +5 -3
- package/src/components/monitor/MemoryMonitor.cjs +8 -6
- package/src/components/monitor/MemoryMonitor.mjs +5 -3
- package/src/decorators/asst/After.cjs +3 -3
- package/src/decorators/asst/After.mjs +2 -2
- package/src/decorators/asst/Before.cjs +2 -2
- package/src/decorators/asst/Before.mjs +4 -4
- package/src/decorators/ctrl/CLIAction.cjs +5 -5
- package/src/decorators/ctrl/CLIAction.mjs +10 -10
- package/src/decorators/ctrl/HTTPAction.cjs +9 -9
- package/src/decorators/ctrl/HTTPAction.mjs +7 -7
- package/src/decorators/ctrl/ServiceAction.cjs +6 -6
- package/src/decorators/ctrl/ServiceAction.mjs +7 -7
- package/src/decorators/ctrl/http/DELETE.cjs +5 -5
- package/src/decorators/ctrl/http/DELETE.mjs +5 -5
- package/src/decorators/ctrl/http/GET.cjs +5 -5
- package/src/decorators/ctrl/http/GET.mjs +5 -5
- package/src/decorators/ctrl/http/HEAD.cjs +5 -5
- package/src/decorators/ctrl/http/HEAD.mjs +5 -5
- package/src/decorators/ctrl/http/OPTIONS.cjs +5 -5
- package/src/decorators/ctrl/http/OPTIONS.mjs +5 -5
- package/src/decorators/ctrl/http/PATCH.cjs +5 -5
- package/src/decorators/ctrl/http/PATCH.mjs +5 -5
- package/src/decorators/ctrl/http/POST.cjs +5 -5
- package/src/decorators/ctrl/http/POST.mjs +5 -5
- package/src/decorators/ctrl/http/PUT.cjs +5 -5
- package/src/decorators/ctrl/http/PUT.mjs +5 -5
- package/src/decorators/di/Autoload.cjs +2 -2
- package/src/decorators/di/Autoload.mjs +2 -2
- package/src/decorators/di/Configurable.cjs +3 -3
- package/src/decorators/di/Configurable.mjs +2 -2
- package/src/decorators/di/Inject.cjs +6 -6
- package/src/decorators/di/Inject.mjs +11 -11
- package/src/decorators/di/Lifetime.cjs +18 -18
- package/src/decorators/di/Lifetime.mjs +13 -13
- package/src/decorators/dto/Accept.cjs +3 -3
- package/src/decorators/dto/Accept.mjs +2 -2
- package/src/decorators/dto/Expect.cjs +2 -2
- package/src/decorators/dto/Expect.mjs +3 -3
- package/src/decorators/dto/IndexSignature.cjs +2 -2
- package/src/decorators/dto/IndexSignature.mjs +3 -3
- package/src/decorators/dto/Return.cjs +3 -3
- package/src/decorators/dto/Return.mjs +2 -2
- package/src/decorators/orm/AfterInsert.cjs +17 -39
- package/src/decorators/orm/AfterInsert.mjs +18 -38
- package/src/decorators/orm/AfterLoad.cjs +17 -39
- package/src/decorators/orm/AfterLoad.mjs +18 -38
- package/src/decorators/orm/AfterRecover.cjs +17 -39
- package/src/decorators/orm/AfterRecover.mjs +18 -38
- package/src/decorators/orm/AfterRemove.cjs +17 -39
- package/src/decorators/orm/AfterRemove.mjs +18 -38
- package/src/decorators/orm/AfterSoftRemove.cjs +17 -39
- package/src/decorators/orm/AfterSoftRemove.mjs +18 -38
- package/src/decorators/orm/AfterUpdate.cjs +17 -39
- package/src/decorators/orm/AfterUpdate.mjs +18 -38
- package/src/decorators/orm/BeforeInsert.cjs +17 -39
- package/src/decorators/orm/BeforeInsert.mjs +18 -38
- package/src/decorators/orm/BeforeRecover.cjs +17 -39
- package/src/decorators/orm/BeforeRecover.mjs +18 -38
- package/src/decorators/orm/BeforeRemove.cjs +17 -39
- package/src/decorators/orm/BeforeRemove.mjs +18 -38
- package/src/decorators/orm/BeforeSoftRemove.cjs +17 -39
- package/src/decorators/orm/BeforeSoftRemove.mjs +18 -38
- package/src/decorators/orm/BeforeUpdate.cjs +17 -39
- package/src/decorators/orm/BeforeUpdate.mjs +18 -38
- package/src/decorators/orm/Check.cjs +17 -42
- package/src/decorators/orm/Check.mjs +18 -41
- package/src/decorators/orm/ChildEntity.cjs +17 -42
- package/src/decorators/orm/ChildEntity.mjs +18 -41
- package/src/decorators/orm/Column.cjs +17 -74
- package/src/decorators/orm/Column.mjs +19 -74
- package/src/decorators/orm/CreateDateColumn.cjs +17 -38
- package/src/decorators/orm/CreateDateColumn.mjs +18 -37
- package/src/decorators/orm/DeleteDateColumn.cjs +17 -38
- package/src/decorators/orm/DeleteDateColumn.mjs +17 -36
- package/src/decorators/orm/Entity.cjs +17 -48
- package/src/decorators/orm/Entity.mjs +17 -46
- package/src/decorators/orm/EventSubscriber.cjs +17 -35
- package/src/decorators/orm/EventSubscriber.mjs +18 -34
- package/src/decorators/orm/Exclusion.cjs +17 -42
- package/src/decorators/orm/Exclusion.mjs +18 -41
- package/src/decorators/orm/Generated.cjs +17 -37
- package/src/decorators/orm/Generated.mjs +18 -36
- package/src/decorators/orm/Index.cjs +17 -54
- package/src/decorators/orm/Index.mjs +19 -54
- package/src/decorators/orm/JoinColumn.cjs +17 -42
- package/src/decorators/orm/JoinColumn.mjs +18 -41
- package/src/decorators/orm/JoinTable.cjs +17 -43
- package/src/decorators/orm/JoinTable.mjs +17 -41
- package/src/decorators/orm/ManyToMany.cjs +17 -55
- package/src/decorators/orm/ManyToMany.mjs +17 -53
- package/src/decorators/orm/ManyToOne.cjs +17 -55
- package/src/decorators/orm/ManyToOne.mjs +17 -53
- package/src/decorators/orm/ObjectIdColumn.cjs +17 -41
- package/src/decorators/orm/ObjectIdColumn.mjs +18 -40
- package/src/decorators/orm/OneToMany.cjs +17 -47
- package/src/decorators/orm/OneToMany.mjs +19 -47
- package/src/decorators/orm/OneToOne.cjs +17 -55
- package/src/decorators/orm/OneToOne.mjs +17 -53
- package/src/decorators/orm/PrimaryColumn.cjs +17 -62
- package/src/decorators/orm/PrimaryColumn.mjs +19 -62
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +17 -67
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +19 -67
- package/src/decorators/orm/RelationId.cjs +17 -39
- package/src/decorators/orm/RelationId.mjs +18 -38
- package/src/decorators/orm/TableInheritance.cjs +17 -39
- package/src/decorators/orm/TableInheritance.mjs +18 -38
- package/src/decorators/orm/Tree.cjs +17 -37
- package/src/decorators/orm/Tree.mjs +18 -36
- package/src/decorators/orm/TreeChildren.cjs +17 -44
- package/src/decorators/orm/TreeChildren.mjs +17 -42
- package/src/decorators/orm/TreeLevelColumn.cjs +17 -38
- package/src/decorators/orm/TreeLevelColumn.mjs +17 -36
- package/src/decorators/orm/TreeParent.cjs +17 -44
- package/src/decorators/orm/TreeParent.mjs +17 -42
- package/src/decorators/orm/Unique.cjs +17 -57
- package/src/decorators/orm/Unique.mjs +19 -57
- package/src/decorators/orm/UpdateDateColumn.cjs +17 -38
- package/src/decorators/orm/UpdateDateColumn.mjs +18 -37
- package/src/decorators/orm/VersionColumn.cjs +17 -38
- package/src/decorators/orm/VersionColumn.mjs +18 -37
- package/src/decorators/orm/ViewColumn.cjs +17 -38
- package/src/decorators/orm/ViewColumn.mjs +18 -37
- package/src/decorators/orm/ViewEntity.cjs +17 -47
- package/src/decorators/orm/ViewEntity.mjs +18 -46
- package/src/decorators/orm/VirtualColumn.cjs +17 -55
- package/src/decorators/orm/VirtualColumn.mjs +17 -53
- package/src/lib/base/BaseObject.cjs +4 -2
- package/src/lib/base/BaseObject.mjs +4 -2
- package/src/lib/base/EventEmitter.cjs +1202 -1195
- package/src/lib/base/EventEmitter.mjs +1202 -1195
- package/src/lib/base/async-constructor/Append.cjs +11 -11
- package/src/lib/base/async-constructor/Append.mjs +7 -7
- package/src/lib/base/internal/ApplicationConfigLoader.cjs +4 -2
- package/src/lib/base/internal/ApplicationConfigLoader.mjs +4 -2
- package/src/lib/base/internal/BasicInfo.cjs +10 -10
- package/src/lib/base/internal/BasicInfo.mjs +9 -9
- package/src/lib/base/internal/CamelCase.cjs +4 -4
- package/src/lib/base/internal/CamelCase.mjs +11 -11
- package/src/lib/base/internal/ConfigurableRecordsInjection.cjs +19 -19
- package/src/lib/base/internal/ConfigurableRecordsInjection.mjs +18 -18
- package/src/lib/base/internal/ConstructorSymbol.cjs +10 -10
- package/src/lib/base/internal/ConstructorSymbol.mjs +8 -8
- package/src/lib/base/internal/ControllerEntrypoint.cjs +67 -67
- package/src/lib/base/internal/ControllerEntrypoint.mjs +38 -38
- package/src/lib/base/internal/DataValidator.cjs +176 -179
- package/src/lib/base/internal/DataValidator.mjs +221 -224
- package/src/lib/base/internal/GetActionDTOAndOptions.cjs +9 -9
- package/src/lib/base/internal/GetActionDTOAndOptions.mjs +10 -10
- package/src/lib/base/internal/IEEE754.cjs +74 -74
- package/src/lib/base/internal/IEEE754.mjs +70 -70
- package/src/lib/base/internal/MethodAssistantFunction.cjs +28 -28
- package/src/lib/base/internal/MethodAssistantFunction.mjs +38 -38
- package/src/lib/base/internal/MethodValidation.cjs +25 -25
- package/src/lib/base/internal/MethodValidation.mjs +20 -20
- package/src/lib/base/internal/ModuleConfigLoader.cjs +4 -3
- package/src/lib/base/internal/ModuleConfigLoader.mjs +4 -3
- package/src/lib/base/internal/ObjectConfiguration.cjs +10 -10
- package/src/lib/base/internal/ObjectConfiguration.mjs +15 -15
- package/src/lib/base/internal/ObjectContainer.cjs +7 -7
- package/src/lib/base/internal/ObjectContainer.mjs +6 -6
- package/src/lib/base/internal/ObjectInjection.cjs +16 -16
- package/src/lib/base/internal/ObjectInjection.mjs +13 -13
- package/src/lib/base/internal/ObjectLifetime.cjs +10 -10
- package/src/lib/base/internal/ObjectLifetime.mjs +9 -9
- package/src/lib/base/internal/ObjectType.cjs +4 -2
- package/src/lib/base/internal/ObjectType.mjs +4 -2
- package/src/lib/base/internal/ObjectWeakRefs.cjs +11 -11
- package/src/lib/base/internal/ObjectWeakRefs.mjs +9 -9
- package/src/lib/base/internal/PatternManager.cjs +744 -739
- package/src/lib/base/internal/PatternManager.mjs +748 -743
- package/src/lib/base/internal/StringifyPattern.cjs +26 -26
- package/src/lib/base/internal/StringifyPattern.mjs +26 -26
- package/src/lib/base/internal/ThrowWarning.cjs +2 -2
- package/src/lib/base/internal/ThrowWarning.mjs +2 -2
- package/src/lib/core/Alias.cjs +5 -5
- package/src/lib/core/Application.cjs +146 -142
- package/src/lib/core/Application.mjs +204 -202
- package/src/lib/core/Component.cjs +4 -2
- package/src/lib/core/Component.mjs +4 -2
- package/src/lib/core/Container.cjs +4 -2
- package/src/lib/core/Container.mjs +4 -2
- package/src/lib/core/Module.cjs +5 -3
- package/src/lib/core/Module.mjs +5 -3
- package/src/lib/core/Provider.cjs +4 -2
- package/src/lib/core/Provider.mjs +4 -2
- package/src/lib/helpers/ArrayToSet.cjs +2 -2
- package/src/lib/helpers/ArrayToSet.mjs +3 -3
- package/src/lib/helpers/As.cjs +2 -2
- package/src/lib/helpers/As.mjs +2 -2
- package/src/lib/helpers/ConvertArrayLikeToIterable.cjs +3 -3
- package/src/lib/helpers/ConvertArrayLikeToIterable.mjs +3 -3
- package/src/lib/helpers/ConvertArrayLikeToStream.cjs +2 -2
- package/src/lib/helpers/ConvertArrayLikeToStream.mjs +2 -2
- package/src/lib/helpers/Delay.cjs +2 -2
- package/src/lib/helpers/Delay.mjs +2 -2
- package/src/lib/helpers/DevNull.cjs +2 -2
- package/src/lib/helpers/DevNull.mjs +2 -2
- package/src/lib/helpers/GetObjectNestingDepth.cjs +12 -12
- package/src/lib/helpers/GetObjectNestingDepth.mjs +11 -11
- package/src/lib/helpers/GetObjectPropertyPaths.cjs +7 -7
- package/src/lib/helpers/GetObjectPropertyPaths.mjs +9 -9
- package/src/lib/helpers/Glob.cjs +1192 -943
- package/src/lib/helpers/Glob.mjs +1256 -1007
- package/src/lib/helpers/GraceExit.cjs +3 -3
- package/src/lib/helpers/GraceExit.mjs +7 -7
- package/src/lib/helpers/HexToIEEE754.cjs +4 -4
- package/src/lib/helpers/HexToIEEE754.mjs +2 -2
- package/src/lib/helpers/HexToSigned.cjs +5 -5
- package/src/lib/helpers/HexToSigned.mjs +4 -4
- package/src/lib/helpers/HexToUnsigned.cjs +2 -2
- package/src/lib/helpers/HexToUnsigned.mjs +2 -2
- package/src/lib/helpers/IEEE754ToHex.cjs +5 -5
- package/src/lib/helpers/IEEE754ToHex.mjs +5 -5
- package/src/lib/helpers/IsAbortError.cjs +2 -2
- package/src/lib/helpers/IsAbortError.mjs +3 -3
- package/src/lib/helpers/IsEmptyObject.cjs +3 -3
- package/src/lib/helpers/IsEmptyObject.mjs +3 -3
- package/src/lib/helpers/IsExists.cjs +5 -5
- package/src/lib/helpers/IsExists.mjs +4 -4
- package/src/lib/helpers/IsHtml.cjs +18 -8
- package/src/lib/helpers/IsHtml.mjs +18 -8
- package/src/lib/helpers/IsNativeFunction.cjs +2 -2
- package/src/lib/helpers/IsNativeFunction.mjs +2 -2
- package/src/lib/helpers/IsPath.cjs +2 -2
- package/src/lib/helpers/IsPath.mjs +5 -5
- package/src/lib/helpers/IsPromise.cjs +2 -2
- package/src/lib/helpers/IsPromise.mjs +2 -2
- package/src/lib/helpers/IsPromiseLike.cjs +5 -5
- package/src/lib/helpers/IsPromiseLike.mjs +6 -6
- package/src/lib/helpers/IsXML.cjs +1525 -1531
- package/src/lib/helpers/IsXML.mjs +1521 -1527
- package/src/lib/helpers/MD5.cjs +3 -3
- package/src/lib/helpers/MD5.mjs +3 -3
- package/src/lib/helpers/MergeArray.cjs +3 -3
- package/src/lib/helpers/MergeArray.mjs +3 -3
- package/src/lib/helpers/MergeMap.cjs +3 -3
- package/src/lib/helpers/MergeMap.mjs +3 -3
- package/src/lib/helpers/MergeSet.cjs +2 -2
- package/src/lib/helpers/MergeSet.mjs +3 -3
- package/src/lib/helpers/NoCase.cjs +27 -27
- package/src/lib/helpers/NoCase.mjs +24 -24
- package/src/lib/helpers/NonceStr.cjs +3 -3
- package/src/lib/helpers/NonceStr.mjs +3 -3
- package/src/lib/helpers/ObjectConstructor.cjs +2 -2
- package/src/lib/helpers/ObjectConstructor.mjs +4 -4
- package/src/lib/helpers/ObjectHash.cjs +385 -378
- package/src/lib/helpers/ObjectHash.mjs +381 -374
- package/src/lib/helpers/ObjectParentConstructor.cjs +2 -2
- package/src/lib/helpers/ObjectParentConstructor.mjs +5 -5
- package/src/lib/helpers/ObjectParentConstructors.cjs +6 -6
- package/src/lib/helpers/ObjectParentConstructors.mjs +2 -2
- package/src/lib/helpers/ObjectPrototype.cjs +2 -2
- package/src/lib/helpers/ObjectPrototype.mjs +2 -2
- package/src/lib/helpers/ObjectToMap.cjs +2 -2
- package/src/lib/helpers/ObjectToMap.mjs +3 -3
- package/src/lib/helpers/Paginator.cjs +2 -2
- package/src/lib/helpers/Paginator.mjs +6 -6
- package/src/lib/helpers/RandomString.cjs +170 -149
- package/src/lib/helpers/RandomString.mjs +167 -146
- package/src/lib/helpers/SHA1.cjs +3 -3
- package/src/lib/helpers/SHA1.mjs +3 -3
- package/src/lib/helpers/SHA256.cjs +3 -3
- package/src/lib/helpers/SHA256.mjs +3 -3
- package/src/lib/helpers/SetToArray.cjs +2 -2
- package/src/lib/helpers/SetToArray.mjs +2 -2
- package/src/lib/helpers/SignedToHex.cjs +4 -4
- package/src/lib/helpers/SignedToHex.mjs +4 -4
- package/src/lib/helpers/SortArray.cjs +17 -17
- package/src/lib/helpers/SortArray.mjs +16 -16
- package/src/lib/helpers/SortKeys.cjs +41 -41
- package/src/lib/helpers/SortKeys.mjs +41 -41
- package/src/lib/helpers/SortObject.cjs +2 -2
- package/src/lib/helpers/SortObject.mjs +2 -2
- package/src/lib/helpers/Statistics.cjs +1 -1
- package/src/lib/helpers/Statistics.mjs +1 -1
- package/src/lib/helpers/Templating.cjs +25 -25
- package/src/lib/helpers/Templating.mjs +25 -25
- package/src/lib/helpers/URLBuilder.cjs +355 -355
- package/src/lib/helpers/URLBuilder.mjs +349 -349
- package/src/lib/helpers/UUID.cjs +1 -1
- package/src/lib/helpers/UUID.mjs +1 -1
- package/src/lib/helpers/UniqueArray.cjs +3 -3
- package/src/lib/helpers/UniqueArray.mjs +2 -2
- package/src/lib/helpers/UnsignedToHex.cjs +3 -3
- package/src/lib/helpers/UnsignedToHex.mjs +3 -3
- package/src/lib/ioc/DependencyInjectionContainer.cjs +111 -109
- package/src/lib/ioc/DependencyInjectionContainer.mjs +123 -121
- package/src/lib/ioc/FunctionTokenizer.cjs +115 -115
- package/src/lib/ioc/FunctionTokenizer.mjs +102 -102
- package/src/lib/ioc/Lifetime.cjs +5 -5
- package/src/lib/ioc/Lifetime.mjs +5 -5
- package/src/lib/ioc/ListModules.cjs +5222 -5297
- package/src/lib/ioc/ListModules.mjs +5187 -5262
- package/src/lib/ioc/LoadModules.cjs +56 -56
- package/src/lib/ioc/LoadModules.mjs +69 -69
- package/src/lib/ioc/ParamParser.cjs +30 -30
- package/src/lib/ioc/ParamParser.mjs +41 -41
- package/src/lib/ioc/Resolvers.cjs +87 -87
- package/src/lib/ioc/Resolvers.mjs +109 -109
- package/src/lib/ioc/Utils.cjs +12 -12
- package/src/lib/ioc/Utils.mjs +18 -18
- package/src/lib/validation/VLD.cjs +4198 -4020
- package/src/lib/validation/VLD.mjs +3137 -2959
- package/src/options/ApplicationOptions.cjs +4 -2
- package/src/options/ApplicationOptions.mjs +4 -2
- package/src/options/LoadAnonymousObjectOptions.cjs +4 -2
- package/src/options/LoadAnonymousObjectOptions.mjs +4 -2
- package/src/options/LoadNamedObjectOptions.cjs +4 -2
- package/src/options/LoadNamedObjectOptions.mjs +4 -2
- package/src/options/LoadObjectOptions.cjs +4 -2
- package/src/options/LoadObjectOptions.mjs +4 -2
- package/src/options/ModuleLoadObjectsOptions.cjs +4 -2
- package/src/options/ModuleLoadObjectsOptions.mjs +4 -2
- package/src/options/ModuleOptions.cjs +4 -4
- package/src/options/ModuleOptions.mjs +4 -4
- package/src/options/OverridableNamedObjectOptions.cjs +4 -2
- package/src/options/OverridableNamedObjectOptions.mjs +4 -2
- package/src/options/OverridableObjectOptions.cjs +4 -2
- package/src/options/OverridableObjectOptions.mjs +4 -2
- package/src/providers/Database.cjs +13 -13
- package/src/providers/Database.mjs +18 -18
- package/src/providers/PasswordHash.cjs +334 -332
- package/src/providers/PasswordHash.mjs +389 -387
- package/src/providers/migration/GenerateMigration.cjs +15 -19
- package/src/providers/migration/GenerateMigration.mjs +15 -19
- package/vendor/Package.1.cjs +256 -256
- package/vendor/Package.1.mjs +254 -254
- package/vendor/Package.10.cjs +2 -8
- package/vendor/Package.10.mjs +2 -8
- package/vendor/Package.11.cjs +5 -83
- package/vendor/Package.11.mjs +5 -77
- package/vendor/Package.112.cjs +48900 -0
- package/vendor/Package.112.mjs +48764 -0
- package/vendor/Package.12.cjs +4 -2
- package/vendor/Package.12.mjs +6 -4
- package/vendor/Package.13.cjs +87 -1
- package/vendor/Package.13.mjs +81 -1
- package/vendor/Package.14.cjs +1 -14057
- package/vendor/Package.14.mjs +1 -14031
- package/vendor/Package.15.cjs +1 -1
- package/vendor/Package.15.mjs +1 -1
- package/vendor/Package.16.cjs +18115 -1921
- package/vendor/Package.16.mjs +18115 -1839
- package/vendor/Package.17.cjs +1926 -47922
- package/vendor/Package.17.mjs +1852 -47915
- package/vendor/Package.18.cjs +35 -1
- package/vendor/Package.18.mjs +35 -1
- package/vendor/Package.19.cjs +37 -0
- package/vendor/Package.19.mjs +35 -0
- package/vendor/Package.2.cjs +5856 -5827
- package/vendor/Package.2.mjs +5854 -5825
- package/vendor/Package.20.cjs +37 -0
- package/vendor/Package.20.mjs +35 -0
- package/vendor/Package.21.cjs +37 -0
- package/vendor/Package.21.mjs +35 -0
- package/vendor/Package.22.cjs +37 -0
- package/vendor/Package.22.mjs +35 -0
- package/vendor/Package.23.cjs +37 -0
- package/vendor/Package.23.mjs +35 -0
- package/vendor/Package.24.cjs +37 -0
- package/vendor/Package.24.mjs +35 -0
- package/vendor/Package.25.cjs +37 -0
- package/vendor/Package.25.mjs +35 -0
- package/vendor/Package.26.cjs +37 -0
- package/vendor/Package.26.mjs +35 -0
- package/vendor/Package.27.cjs +37 -0
- package/vendor/Package.27.mjs +35 -0
- package/vendor/Package.28.cjs +37 -0
- package/vendor/Package.28.mjs +35 -0
- package/vendor/Package.29.cjs +40 -0
- package/vendor/Package.29.mjs +38 -0
- package/vendor/Package.3.cjs +60 -60
- package/vendor/Package.3.mjs +85 -85
- package/vendor/Package.30.cjs +41 -0
- package/vendor/Package.30.mjs +39 -0
- package/vendor/Package.31.cjs +72 -0
- package/vendor/Package.31.mjs +70 -0
- package/vendor/Package.32.cjs +37 -0
- package/vendor/Package.32.mjs +35 -0
- package/vendor/Package.33.cjs +37 -0
- package/vendor/Package.33.mjs +35 -0
- package/vendor/Package.34.cjs +46 -0
- package/vendor/Package.34.mjs +44 -0
- package/vendor/Package.35.cjs +34 -0
- package/vendor/Package.35.mjs +32 -0
- package/vendor/Package.36.cjs +40 -0
- package/vendor/Package.36.mjs +38 -0
- package/vendor/Package.37.cjs +36 -0
- package/vendor/Package.37.mjs +34 -0
- package/vendor/Package.38.cjs +52 -0
- package/vendor/Package.38.mjs +50 -0
- package/vendor/Package.39.cjs +41 -0
- package/vendor/Package.39.mjs +39 -0
- package/vendor/Package.4.cjs +884 -874
- package/vendor/Package.4.mjs +887 -877
- package/vendor/Package.40.cjs +42 -0
- package/vendor/Package.40.mjs +40 -0
- package/vendor/Package.41.cjs +53 -0
- package/vendor/Package.41.mjs +51 -0
- package/vendor/Package.42.cjs +53 -0
- package/vendor/Package.42.mjs +51 -0
- package/vendor/Package.43.cjs +40 -0
- package/vendor/Package.43.mjs +38 -0
- package/vendor/Package.44.cjs +46 -0
- package/vendor/Package.44.mjs +44 -0
- package/vendor/Package.45.cjs +53 -0
- package/vendor/Package.45.mjs +51 -0
- package/vendor/Package.46.cjs +59 -0
- package/vendor/Package.46.mjs +57 -0
- package/vendor/Package.47.cjs +65 -0
- package/vendor/Package.47.mjs +63 -0
- package/vendor/Package.48.cjs +38 -0
- package/vendor/Package.48.mjs +36 -0
- package/vendor/Package.49.cjs +38 -0
- package/vendor/Package.49.mjs +36 -0
- package/vendor/Package.5.cjs +19 -15
- package/vendor/Package.5.mjs +14 -10
- package/vendor/Package.50.cjs +36 -0
- package/vendor/Package.50.mjs +34 -0
- package/vendor/Package.51.cjs +43 -0
- package/vendor/Package.51.mjs +41 -0
- package/vendor/Package.52.cjs +37 -0
- package/vendor/Package.52.mjs +35 -0
- package/vendor/Package.53.cjs +43 -0
- package/vendor/Package.53.mjs +41 -0
- package/vendor/Package.54.cjs +55 -0
- package/vendor/Package.54.mjs +53 -0
- package/vendor/Package.55.cjs +37 -0
- package/vendor/Package.55.mjs +35 -0
- package/vendor/Package.56.cjs +37 -0
- package/vendor/Package.56.mjs +35 -0
- package/vendor/Package.57.cjs +37 -0
- package/vendor/Package.57.mjs +35 -0
- package/vendor/Package.58.cjs +45 -0
- package/vendor/Package.58.mjs +43 -0
- package/vendor/Package.59.cjs +53 -0
- package/vendor/Package.59.mjs +51 -0
- package/vendor/Package.6.cjs +2067 -2058
- package/vendor/Package.6.mjs +2073 -2064
- package/vendor/Package.60.cjs +47649 -0
- package/vendor/Package.60.mjs +47606 -0
- package/vendor/Package.610.cjs +19 -19
- package/vendor/Package.610.mjs +11 -11
- package/vendor/Package.611.cjs +40 -30
- package/vendor/Package.611.mjs +30 -20
- package/vendor/Package.612.cjs +48 -42
- package/vendor/Package.612.mjs +39 -33
- package/vendor/Package.613.cjs +64 -63
- package/vendor/Package.613.mjs +34 -33
- package/vendor/Package.62.cjs +300 -297
- package/vendor/Package.62.mjs +283 -280
- package/vendor/Package.63.cjs +511 -168
- package/vendor/Package.63.mjs +490 -165
- package/vendor/Package.64.cjs +139 -511
- package/vendor/Package.64.mjs +139 -491
- package/vendor/Package.65.cjs +4135 -150
- package/vendor/Package.65.mjs +4143 -150
- package/vendor/Package.66.cjs +346 -4150
- package/vendor/Package.66.mjs +346 -4158
- package/vendor/Package.67.cjs +433 -282
- package/vendor/Package.67.mjs +431 -280
- package/vendor/Package.68.cjs +248 -397
- package/vendor/Package.68.mjs +81 -230
- package/vendor/Package.69.cjs +8 -8
- package/vendor/Package.7.cjs +3 -3
- package/vendor/Package.7.mjs +3 -3
- package/vendor/Package.8.cjs +0 -4
- package/vendor/Package.8.mjs +0 -4
- package/vendor/Package.9.cjs +138 -124
- package/vendor/Package.9.mjs +135 -121
- package/vendor/TypeDef.internal.3.d.ts +0 -4
- package/vendor/Package.102.cjs +0 -48773
- package/vendor/Package.102.mjs +0 -48697
- package/vendor/Package.122.cjs +0 -3
- package/vendor/Package.122.mjs +0 -1
|
@@ -4,102 +4,102 @@ Object.defineProperty(exports, Symbol.toStringTag, {
|
|
|
4
4
|
value: "Module"
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
function
|
|
7
|
+
function readIEEE754(t, e, o, i, l) {
|
|
8
8
|
let s;
|
|
9
|
-
let
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
let
|
|
14
|
-
let w = o ?
|
|
15
|
-
const
|
|
16
|
-
let
|
|
17
|
-
w +=
|
|
18
|
-
s =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
while (
|
|
9
|
+
let a;
|
|
10
|
+
const n = l * 8 - i - 1;
|
|
11
|
+
const r = (1 << n) - 1;
|
|
12
|
+
const E = r >> 1;
|
|
13
|
+
let h = -7;
|
|
14
|
+
let w = o ? l - 1 : 0;
|
|
15
|
+
const f = o ? -1 : 1;
|
|
16
|
+
let M = t[e + w];
|
|
17
|
+
w += f;
|
|
18
|
+
s = M & (1 << -h) - 1;
|
|
19
|
+
M >>= -h;
|
|
20
|
+
h += n;
|
|
21
|
+
while (h > 0) {
|
|
22
22
|
s = s * 256 + t[e + w];
|
|
23
|
-
w +=
|
|
24
|
-
|
|
23
|
+
w += f;
|
|
24
|
+
h -= 8;
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
s >>= -
|
|
28
|
-
|
|
29
|
-
while (
|
|
30
|
-
|
|
31
|
-
w +=
|
|
32
|
-
|
|
26
|
+
a = s & (1 << -h) - 1;
|
|
27
|
+
s >>= -h;
|
|
28
|
+
h += i;
|
|
29
|
+
while (h > 0) {
|
|
30
|
+
a = a * 256 + t[e + w];
|
|
31
|
+
w += f;
|
|
32
|
+
h -= 8;
|
|
33
33
|
}
|
|
34
34
|
if (s === 0) {
|
|
35
|
-
s = 1 -
|
|
36
|
-
} else if (s ===
|
|
37
|
-
return
|
|
35
|
+
s = 1 - E;
|
|
36
|
+
} else if (s === r) {
|
|
37
|
+
return a ? NaN : (M ? -1 : 1) * Infinity;
|
|
38
38
|
} else {
|
|
39
|
-
|
|
40
|
-
s = s -
|
|
39
|
+
a = a + Math.pow(2, i);
|
|
40
|
+
s = s - E;
|
|
41
41
|
}
|
|
42
|
-
return (
|
|
42
|
+
return (M ? -1 : 1) * a * Math.pow(2, s - i);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
function
|
|
46
|
-
let n;
|
|
45
|
+
function writeIEEE754(t, e, o, i, l, s) {
|
|
47
46
|
let a;
|
|
48
|
-
let
|
|
49
|
-
let
|
|
50
|
-
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const
|
|
47
|
+
let n;
|
|
48
|
+
let r;
|
|
49
|
+
let E = s * 8 - l - 1;
|
|
50
|
+
const h = (1 << E) - 1;
|
|
51
|
+
const w = h >> 1;
|
|
52
|
+
const f = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
|
|
53
|
+
let M = i ? 0 : s - 1;
|
|
54
|
+
const c = i ? 1 : -1;
|
|
55
|
+
const p = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
56
56
|
e = Math.abs(e);
|
|
57
57
|
if (isNaN(e) || e === Infinity) {
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
n = isNaN(e) ? 1 : 0;
|
|
59
|
+
a = h;
|
|
60
60
|
} else {
|
|
61
|
-
|
|
62
|
-
if (e * (
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
a = Math.floor(Math.log(e) / Math.LN2);
|
|
62
|
+
if (e * (r = Math.pow(2, -a)) < 1) {
|
|
63
|
+
a--;
|
|
64
|
+
r *= 2;
|
|
65
65
|
}
|
|
66
|
-
if (
|
|
67
|
-
e +=
|
|
66
|
+
if (a + w >= 1) {
|
|
67
|
+
e += f / r;
|
|
68
68
|
} else {
|
|
69
|
-
e +=
|
|
69
|
+
e += f * Math.pow(2, 1 - w);
|
|
70
70
|
}
|
|
71
|
-
if (e *
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
if (e * r >= 2) {
|
|
72
|
+
a++;
|
|
73
|
+
r /= 2;
|
|
74
74
|
}
|
|
75
|
-
if (
|
|
76
|
-
a = 0;
|
|
77
|
-
n = r;
|
|
78
|
-
} else if (n + w >= 1) {
|
|
79
|
-
a = (e * h - 1) * Math.pow(2, i);
|
|
80
|
-
n = n + w;
|
|
81
|
-
} else {
|
|
82
|
-
a = e * Math.pow(2, w - 1) * Math.pow(2, i);
|
|
75
|
+
if (a + w >= h) {
|
|
83
76
|
n = 0;
|
|
77
|
+
a = h;
|
|
78
|
+
} else if (a + w >= 1) {
|
|
79
|
+
n = (e * r - 1) * Math.pow(2, l);
|
|
80
|
+
a = a + w;
|
|
81
|
+
} else {
|
|
82
|
+
n = e * Math.pow(2, w - 1) * Math.pow(2, l);
|
|
83
|
+
a = 0;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
while (
|
|
87
|
-
t[o +
|
|
88
|
-
|
|
89
|
-
a /= 256;
|
|
90
|
-
i -= 8;
|
|
91
|
-
}
|
|
92
|
-
n = n << i | a;
|
|
93
|
-
f += i;
|
|
94
|
-
while (f > 0) {
|
|
95
|
-
t[o + c] = n & 255;
|
|
96
|
-
c += p;
|
|
86
|
+
while (l >= 8) {
|
|
87
|
+
t[o + M] = n & 255;
|
|
88
|
+
M += c;
|
|
97
89
|
n /= 256;
|
|
98
|
-
|
|
90
|
+
l -= 8;
|
|
91
|
+
}
|
|
92
|
+
a = a << l | n;
|
|
93
|
+
E += l;
|
|
94
|
+
while (E > 0) {
|
|
95
|
+
t[o + M] = a & 255;
|
|
96
|
+
M += c;
|
|
97
|
+
a /= 256;
|
|
98
|
+
E -= 8;
|
|
99
99
|
}
|
|
100
|
-
t[o +
|
|
100
|
+
t[o + M - c] |= p * 128;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
exports.readIEEE754 =
|
|
103
|
+
exports.readIEEE754 = readIEEE754;
|
|
104
104
|
|
|
105
|
-
exports.writeIEEE754 =
|
|
105
|
+
exports.writeIEEE754 = writeIEEE754;
|
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
function
|
|
1
|
+
function readIEEE754(t, e, o, i, l) {
|
|
2
|
+
let a;
|
|
2
3
|
let n;
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
w -= 8;
|
|
4
|
+
const s = l * 8 - i - 1;
|
|
5
|
+
const h = (1 << s) - 1;
|
|
6
|
+
const w = h >> 1;
|
|
7
|
+
let f = -7;
|
|
8
|
+
let M = o ? l - 1 : 0;
|
|
9
|
+
const E = o ? -1 : 1;
|
|
10
|
+
let c = t[e + M];
|
|
11
|
+
M += E;
|
|
12
|
+
a = c & (1 << -f) - 1;
|
|
13
|
+
c >>= -f;
|
|
14
|
+
f += s;
|
|
15
|
+
while (f > 0) {
|
|
16
|
+
a = a * 256 + t[e + M];
|
|
17
|
+
M += E;
|
|
18
|
+
f -= 8;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
while (
|
|
24
|
-
|
|
25
|
-
M +=
|
|
26
|
-
|
|
20
|
+
n = a & (1 << -f) - 1;
|
|
21
|
+
a >>= -f;
|
|
22
|
+
f += i;
|
|
23
|
+
while (f > 0) {
|
|
24
|
+
n = n * 256 + t[e + M];
|
|
25
|
+
M += E;
|
|
26
|
+
f -= 8;
|
|
27
27
|
}
|
|
28
|
-
if (
|
|
29
|
-
|
|
30
|
-
} else if (
|
|
31
|
-
return
|
|
28
|
+
if (a === 0) {
|
|
29
|
+
a = 1 - w;
|
|
30
|
+
} else if (a === h) {
|
|
31
|
+
return n ? NaN : (c ? -1 : 1) * Infinity;
|
|
32
32
|
} else {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
n = n + Math.pow(2, i);
|
|
34
|
+
a = a - w;
|
|
35
35
|
}
|
|
36
|
-
return (
|
|
36
|
+
return (c ? -1 : 1) * n * Math.pow(2, a - i);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
function
|
|
39
|
+
function writeIEEE754(t, e, o, i, l, a) {
|
|
40
|
+
let n;
|
|
40
41
|
let s;
|
|
41
|
-
let a;
|
|
42
42
|
let h;
|
|
43
|
-
let
|
|
44
|
-
const
|
|
45
|
-
const M =
|
|
46
|
-
const
|
|
47
|
-
let
|
|
48
|
-
const
|
|
43
|
+
let w = a * 8 - l - 1;
|
|
44
|
+
const f = (1 << w) - 1;
|
|
45
|
+
const M = f >> 1;
|
|
46
|
+
const E = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
|
|
47
|
+
let c = i ? 0 : a - 1;
|
|
48
|
+
const p = i ? 1 : -1;
|
|
49
49
|
const r = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
50
50
|
e = Math.abs(e);
|
|
51
51
|
if (isNaN(e) || e === Infinity) {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
s = isNaN(e) ? 1 : 0;
|
|
53
|
+
n = f;
|
|
54
54
|
} else {
|
|
55
|
-
|
|
56
|
-
if (e * (h = Math.pow(2, -
|
|
57
|
-
|
|
55
|
+
n = Math.floor(Math.log(e) / Math.LN2);
|
|
56
|
+
if (e * (h = Math.pow(2, -n)) < 1) {
|
|
57
|
+
n--;
|
|
58
58
|
h *= 2;
|
|
59
59
|
}
|
|
60
|
-
if (
|
|
61
|
-
e +=
|
|
60
|
+
if (n + M >= 1) {
|
|
61
|
+
e += E / h;
|
|
62
62
|
} else {
|
|
63
|
-
e +=
|
|
63
|
+
e += E * Math.pow(2, 1 - M);
|
|
64
64
|
}
|
|
65
65
|
if (e * h >= 2) {
|
|
66
|
-
|
|
66
|
+
n++;
|
|
67
67
|
h /= 2;
|
|
68
68
|
}
|
|
69
|
-
if (
|
|
70
|
-
a = 0;
|
|
71
|
-
s = w;
|
|
72
|
-
} else if (s + M >= 1) {
|
|
73
|
-
a = (e * h - 1) * Math.pow(2, i);
|
|
74
|
-
s = s + M;
|
|
75
|
-
} else {
|
|
76
|
-
a = e * Math.pow(2, M - 1) * Math.pow(2, i);
|
|
69
|
+
if (n + M >= f) {
|
|
77
70
|
s = 0;
|
|
71
|
+
n = f;
|
|
72
|
+
} else if (n + M >= 1) {
|
|
73
|
+
s = (e * h - 1) * Math.pow(2, l);
|
|
74
|
+
n = n + M;
|
|
75
|
+
} else {
|
|
76
|
+
s = e * Math.pow(2, M - 1) * Math.pow(2, l);
|
|
77
|
+
n = 0;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
while (
|
|
81
|
-
t[o +
|
|
82
|
-
|
|
83
|
-
a /= 256;
|
|
84
|
-
i -= 8;
|
|
85
|
-
}
|
|
86
|
-
s = s << i | a;
|
|
87
|
-
f += i;
|
|
88
|
-
while (f > 0) {
|
|
89
|
-
t[o + p] = s & 255;
|
|
90
|
-
p += N;
|
|
80
|
+
while (l >= 8) {
|
|
81
|
+
t[o + c] = s & 255;
|
|
82
|
+
c += p;
|
|
91
83
|
s /= 256;
|
|
92
|
-
|
|
84
|
+
l -= 8;
|
|
85
|
+
}
|
|
86
|
+
n = n << l | s;
|
|
87
|
+
w += l;
|
|
88
|
+
while (w > 0) {
|
|
89
|
+
t[o + c] = n & 255;
|
|
90
|
+
c += p;
|
|
91
|
+
n /= 256;
|
|
92
|
+
w -= 8;
|
|
93
93
|
}
|
|
94
|
-
t[o +
|
|
94
|
+
t[o + c - p] |= r * 128;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
export {
|
|
97
|
+
export { readIEEE754, writeIEEE754 };
|
|
@@ -28,49 +28,49 @@ require("./CamelCase.cjs");
|
|
|
28
28
|
|
|
29
29
|
require("../../helpers/NoCase.cjs");
|
|
30
30
|
|
|
31
|
-
const
|
|
31
|
+
const i = Symbol("ASST.BEFORE.FUNC.SET");
|
|
32
32
|
|
|
33
|
-
const
|
|
33
|
+
const s = Symbol("ASST.AFTER.FUNC.SET");
|
|
34
34
|
|
|
35
35
|
const c = Symbol("ASST.MODIFIED");
|
|
36
36
|
|
|
37
|
-
function
|
|
38
|
-
n.value =
|
|
39
|
-
before:
|
|
37
|
+
function RegisterBeforeFunction(e, t, n, i) {
|
|
38
|
+
n.value = registerAssistantFunctionToMethod(e, t, applicabilityCheck(n.value, i), {
|
|
39
|
+
before: i
|
|
40
40
|
});
|
|
41
41
|
return n;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
function
|
|
45
|
-
n.value =
|
|
46
|
-
after:
|
|
44
|
+
function RegisterAfterFunction(e, t, n, i) {
|
|
45
|
+
n.value = registerAssistantFunctionToMethod(e, t, applicabilityCheck(n.value, i), {
|
|
46
|
+
after: i
|
|
47
47
|
});
|
|
48
48
|
return n;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
function
|
|
52
|
-
const f = Reflect.getOwnMetadata(
|
|
53
|
-
const u = Reflect.getOwnMetadata(
|
|
51
|
+
function registerAssistantFunctionToMethod(t, o, a, r) {
|
|
52
|
+
const f = Reflect.getOwnMetadata(i, t, o) || new Set;
|
|
53
|
+
const u = Reflect.getOwnMetadata(s, t, o) || new Set;
|
|
54
54
|
if (r.before) {
|
|
55
55
|
f.add(r.before);
|
|
56
|
-
Reflect.defineMetadata(
|
|
56
|
+
Reflect.defineMetadata(i, f, t, o);
|
|
57
57
|
}
|
|
58
58
|
if (r.after) {
|
|
59
59
|
u.add(r.after);
|
|
60
|
-
Reflect.defineMetadata(
|
|
60
|
+
Reflect.defineMetadata(s, u, t, o);
|
|
61
61
|
}
|
|
62
|
-
if (Reflect.hasOwnMetadata(c, t,
|
|
63
|
-
Reflect.defineMetadata(c, true, t,
|
|
62
|
+
if (Reflect.hasOwnMetadata(c, t, o)) return n.As(a);
|
|
63
|
+
Reflect.defineMetadata(c, true, t, o);
|
|
64
64
|
let l;
|
|
65
|
-
if (e.isAsyncFunction(
|
|
65
|
+
if (e.isAsyncFunction(a)) {
|
|
66
66
|
l = async function(...e) {
|
|
67
|
-
const n = Reflect.getOwnMetadata(
|
|
68
|
-
const c = Reflect.getOwnMetadata(
|
|
67
|
+
const n = Reflect.getOwnMetadata(i, t, o) || new Set;
|
|
68
|
+
const c = Reflect.getOwnMetadata(s, t, o) || new Set;
|
|
69
69
|
for (const t of n) {
|
|
70
70
|
const n = await t.call(this, ...e);
|
|
71
71
|
if (n !== undefined) e = n;
|
|
72
72
|
}
|
|
73
|
-
let r = await
|
|
73
|
+
let r = await a.call(this, ...e);
|
|
74
74
|
for (const e of c) {
|
|
75
75
|
const t = await e.call(this, r);
|
|
76
76
|
if (t !== undefined) r = t;
|
|
@@ -79,13 +79,13 @@ function r(t, a, o, r) {
|
|
|
79
79
|
};
|
|
80
80
|
} else {
|
|
81
81
|
l = function(...e) {
|
|
82
|
-
const c = Reflect.getOwnMetadata(
|
|
83
|
-
const r = Reflect.getOwnMetadata(
|
|
82
|
+
const c = Reflect.getOwnMetadata(i, t, o) || new Set;
|
|
83
|
+
const r = Reflect.getOwnMetadata(s, t, o) || new Set;
|
|
84
84
|
for (const t of c) {
|
|
85
|
-
const
|
|
86
|
-
if (
|
|
85
|
+
const i = n.As(t.call(this, ...e));
|
|
86
|
+
if (i !== undefined) e = i;
|
|
87
87
|
}
|
|
88
|
-
let f =
|
|
88
|
+
let f = a.call(this, ...e);
|
|
89
89
|
for (const e of r) {
|
|
90
90
|
const t = n.As(e.call(this, f));
|
|
91
91
|
if (t !== undefined) f = t;
|
|
@@ -96,13 +96,13 @@ function r(t, a, o, r) {
|
|
|
96
96
|
return l;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
function
|
|
99
|
+
function applicabilityCheck(n, i) {
|
|
100
100
|
if (!n) throw new t.InvalidAssistantFunctionTypeException("Target method is undefined");
|
|
101
101
|
if (e.isAsyncFunction(n)) return n;
|
|
102
|
-
if (!e.isAsyncFunction(
|
|
102
|
+
if (!e.isAsyncFunction(i)) return n;
|
|
103
103
|
throw new t.InvalidAssistantFunctionTypeException("Assistant function must not be async function when target method is not async function");
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
exports.RegisterAfterFunction =
|
|
106
|
+
exports.RegisterAfterFunction = RegisterAfterFunction;
|
|
107
107
|
|
|
108
|
-
exports.RegisterBeforeFunction =
|
|
108
|
+
exports.RegisterBeforeFunction = RegisterBeforeFunction;
|
|
@@ -22,79 +22,79 @@ import "./CamelCase.mjs";
|
|
|
22
22
|
|
|
23
23
|
import "../../helpers/NoCase.mjs";
|
|
24
24
|
|
|
25
|
-
const
|
|
25
|
+
const i = Symbol("ASST.BEFORE.FUNC.SET");
|
|
26
26
|
|
|
27
27
|
const o = Symbol("ASST.AFTER.FUNC.SET");
|
|
28
28
|
|
|
29
|
-
const
|
|
29
|
+
const a = Symbol("ASST.MODIFIED");
|
|
30
30
|
|
|
31
|
-
function
|
|
32
|
-
n.value =
|
|
33
|
-
before:
|
|
31
|
+
function RegisterBeforeFunction(t, e, n, i) {
|
|
32
|
+
n.value = registerAssistantFunctionToMethod(t, e, applicabilityCheck(n.value, i), {
|
|
33
|
+
before: i
|
|
34
34
|
});
|
|
35
35
|
return n;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
function
|
|
39
|
-
n.value =
|
|
40
|
-
after:
|
|
38
|
+
function RegisterAfterFunction(t, e, n, i) {
|
|
39
|
+
n.value = registerAssistantFunctionToMethod(t, e, applicabilityCheck(n.value, i), {
|
|
40
|
+
after: i
|
|
41
41
|
});
|
|
42
42
|
return n;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
function
|
|
46
|
-
const
|
|
45
|
+
function registerAssistantFunctionToMethod(e, s, r, c) {
|
|
46
|
+
const f = Reflect.getOwnMetadata(i, e, s) || new Set;
|
|
47
47
|
const l = Reflect.getOwnMetadata(o, e, s) || new Set;
|
|
48
|
-
if (
|
|
49
|
-
|
|
50
|
-
Reflect.defineMetadata(
|
|
48
|
+
if (c.before) {
|
|
49
|
+
f.add(c.before);
|
|
50
|
+
Reflect.defineMetadata(i, f, e, s);
|
|
51
51
|
}
|
|
52
|
-
if (
|
|
53
|
-
l.add(
|
|
52
|
+
if (c.after) {
|
|
53
|
+
l.add(c.after);
|
|
54
54
|
Reflect.defineMetadata(o, l, e, s);
|
|
55
55
|
}
|
|
56
|
-
if (Reflect.hasOwnMetadata(
|
|
57
|
-
Reflect.defineMetadata(
|
|
56
|
+
if (Reflect.hasOwnMetadata(a, e, s)) return n(r);
|
|
57
|
+
Reflect.defineMetadata(a, true, e, s);
|
|
58
58
|
let d;
|
|
59
|
-
if (t(
|
|
59
|
+
if (t(r)) {
|
|
60
60
|
d = async function(...t) {
|
|
61
|
-
const n = Reflect.getOwnMetadata(
|
|
62
|
-
const
|
|
61
|
+
const n = Reflect.getOwnMetadata(i, e, s) || new Set;
|
|
62
|
+
const a = Reflect.getOwnMetadata(o, e, s) || new Set;
|
|
63
63
|
for (const e of n) {
|
|
64
64
|
const n = await e.call(this, ...t);
|
|
65
65
|
if (n !== undefined) t = n;
|
|
66
66
|
}
|
|
67
|
-
let
|
|
68
|
-
for (const t of
|
|
69
|
-
const e = await t.call(this,
|
|
70
|
-
if (e !== undefined)
|
|
67
|
+
let c = await r.call(this, ...t);
|
|
68
|
+
for (const t of a) {
|
|
69
|
+
const e = await t.call(this, c);
|
|
70
|
+
if (e !== undefined) c = e;
|
|
71
71
|
}
|
|
72
|
-
return
|
|
72
|
+
return c;
|
|
73
73
|
};
|
|
74
74
|
} else {
|
|
75
75
|
d = function(...t) {
|
|
76
|
-
const
|
|
77
|
-
const
|
|
78
|
-
for (const e of
|
|
79
|
-
const
|
|
80
|
-
if (
|
|
76
|
+
const a = Reflect.getOwnMetadata(i, e, s) || new Set;
|
|
77
|
+
const c = Reflect.getOwnMetadata(o, e, s) || new Set;
|
|
78
|
+
for (const e of a) {
|
|
79
|
+
const i = n(e.call(this, ...t));
|
|
80
|
+
if (i !== undefined) t = i;
|
|
81
81
|
}
|
|
82
|
-
let
|
|
83
|
-
for (const t of
|
|
84
|
-
const e = n(t.call(this,
|
|
85
|
-
if (e !== undefined)
|
|
82
|
+
let f = r.call(this, ...t);
|
|
83
|
+
for (const t of c) {
|
|
84
|
+
const e = n(t.call(this, f));
|
|
85
|
+
if (e !== undefined) f = e;
|
|
86
86
|
}
|
|
87
|
-
return
|
|
87
|
+
return f;
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
return d;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
function
|
|
93
|
+
function applicabilityCheck(n, i) {
|
|
94
94
|
if (!n) throw new e("Target method is undefined");
|
|
95
95
|
if (t(n)) return n;
|
|
96
|
-
if (!t(
|
|
96
|
+
if (!t(i)) return n;
|
|
97
97
|
throw new e("Assistant function must not be async function when target method is not async function");
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
export {
|
|
100
|
+
export { RegisterAfterFunction, RegisterBeforeFunction };
|