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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as
|
|
1
|
+
import { g as t } from "../../../vendor/Package.5.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../../vendor/Package.
|
|
3
|
+
import "../../../vendor/Package.15.mjs";
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import r from "crypto";
|
|
6
6
|
|
|
7
7
|
var e = {
|
|
8
8
|
exports: {}
|
|
@@ -10,397 +10,404 @@ var e = {
|
|
|
10
10
|
|
|
11
11
|
var n = e.exports;
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return i(r, {
|
|
26
|
-
excludeValues: true,
|
|
27
|
-
algorithm: "sha1",
|
|
28
|
-
encoding: "hex"
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
e.MD5 = function(r) {
|
|
32
|
-
return i(r, {
|
|
33
|
-
algorithm: "md5",
|
|
34
|
-
encoding: "hex"
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
e.keysMD5 = function(r) {
|
|
38
|
-
return i(r, {
|
|
39
|
-
algorithm: "md5",
|
|
40
|
-
encoding: "hex",
|
|
41
|
-
excludeValues: true
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
var o = n.getHashes ? n.getHashes().slice() : [ "sha1", "md5" ];
|
|
45
|
-
o.push("passthrough");
|
|
46
|
-
var u = [ "buffer", "hex", "binary", "base64" ];
|
|
47
|
-
function a(r, t) {
|
|
48
|
-
t = t || {};
|
|
49
|
-
var e = {};
|
|
50
|
-
e.algorithm = t.algorithm || "sha1";
|
|
51
|
-
e.encoding = t.encoding || "hex";
|
|
52
|
-
e.excludeValues = t.excludeValues ? true : false;
|
|
53
|
-
e.algorithm = e.algorithm.toLowerCase();
|
|
54
|
-
e.encoding = e.encoding.toLowerCase();
|
|
55
|
-
e.ignoreUnknown = t.ignoreUnknown !== true ? false : true;
|
|
56
|
-
e.respectType = t.respectType === false ? false : true;
|
|
57
|
-
e.respectFunctionNames = t.respectFunctionNames === false ? false : true;
|
|
58
|
-
e.respectFunctionProperties = t.respectFunctionProperties === false ? false : true;
|
|
59
|
-
e.unorderedArrays = t.unorderedArrays !== true ? false : true;
|
|
60
|
-
e.unorderedSets = t.unorderedSets === false ? false : true;
|
|
61
|
-
e.unorderedObjects = t.unorderedObjects === false ? false : true;
|
|
62
|
-
e.replacer = t.replacer || undefined;
|
|
63
|
-
e.excludeKeys = t.excludeKeys || undefined;
|
|
64
|
-
if (typeof r === "undefined") {
|
|
65
|
-
throw new Error("Object argument required.");
|
|
13
|
+
var i;
|
|
14
|
+
|
|
15
|
+
function requireObjectHash() {
|
|
16
|
+
if (i) return e.exports;
|
|
17
|
+
i = 1;
|
|
18
|
+
(function(t, e) {
|
|
19
|
+
"use strict";
|
|
20
|
+
var n = r;
|
|
21
|
+
e = t.exports = objectHash;
|
|
22
|
+
function objectHash(t, r) {
|
|
23
|
+
r = applyDefaults(t, r);
|
|
24
|
+
return hash(t, r);
|
|
66
25
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
26
|
+
e.sha1 = function(t) {
|
|
27
|
+
return objectHash(t);
|
|
28
|
+
};
|
|
29
|
+
e.keys = function(t) {
|
|
30
|
+
return objectHash(t, {
|
|
31
|
+
excludeValues: true,
|
|
32
|
+
algorithm: "sha1",
|
|
33
|
+
encoding: "hex"
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
e.MD5 = function(t) {
|
|
37
|
+
return objectHash(t, {
|
|
38
|
+
algorithm: "md5",
|
|
39
|
+
encoding: "hex"
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
e.keysMD5 = function(t) {
|
|
43
|
+
return objectHash(t, {
|
|
44
|
+
algorithm: "md5",
|
|
45
|
+
encoding: "hex",
|
|
46
|
+
excludeValues: true
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
var i = n.getHashes ? n.getHashes().slice() : [ "sha1", "md5" ];
|
|
50
|
+
i.push("passthrough");
|
|
51
|
+
var o = [ "buffer", "hex", "binary", "base64" ];
|
|
52
|
+
function applyDefaults(t, r) {
|
|
53
|
+
r = r || {};
|
|
54
|
+
var e = {};
|
|
55
|
+
e.algorithm = r.algorithm || "sha1";
|
|
56
|
+
e.encoding = r.encoding || "hex";
|
|
57
|
+
e.excludeValues = r.excludeValues ? true : false;
|
|
58
|
+
e.algorithm = e.algorithm.toLowerCase();
|
|
59
|
+
e.encoding = e.encoding.toLowerCase();
|
|
60
|
+
e.ignoreUnknown = r.ignoreUnknown !== true ? false : true;
|
|
61
|
+
e.respectType = r.respectType === false ? false : true;
|
|
62
|
+
e.respectFunctionNames = r.respectFunctionNames === false ? false : true;
|
|
63
|
+
e.respectFunctionProperties = r.respectFunctionProperties === false ? false : true;
|
|
64
|
+
e.unorderedArrays = r.unorderedArrays !== true ? false : true;
|
|
65
|
+
e.unorderedSets = r.unorderedSets === false ? false : true;
|
|
66
|
+
e.unorderedObjects = r.unorderedObjects === false ? false : true;
|
|
67
|
+
e.replacer = r.replacer || undefined;
|
|
68
|
+
e.excludeKeys = r.excludeKeys || undefined;
|
|
69
|
+
if (typeof t === "undefined") {
|
|
70
|
+
throw new Error("Object argument required.");
|
|
70
71
|
}
|
|
72
|
+
for (var n = 0; n < i.length; ++n) {
|
|
73
|
+
if (i[n].toLowerCase() === e.algorithm.toLowerCase()) {
|
|
74
|
+
e.algorithm = i[n];
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if (i.indexOf(e.algorithm) === -1) {
|
|
78
|
+
throw new Error('Algorithm "' + e.algorithm + '" not supported. ' + "supported values: " + i.join(", "));
|
|
79
|
+
}
|
|
80
|
+
if (o.indexOf(e.encoding) === -1 && e.algorithm !== "passthrough") {
|
|
81
|
+
throw new Error('Encoding "' + e.encoding + '" not supported. ' + "supported values: " + o.join(", "));
|
|
82
|
+
}
|
|
83
|
+
return e;
|
|
71
84
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
return e;
|
|
79
|
-
}
|
|
80
|
-
function s(r) {
|
|
81
|
-
if (typeof r !== "function") {
|
|
82
|
-
return false;
|
|
83
|
-
}
|
|
84
|
-
var t = /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i;
|
|
85
|
-
return t.exec(Function.prototype.toString.call(r)) != null;
|
|
86
|
-
}
|
|
87
|
-
function c(r, t) {
|
|
88
|
-
var e;
|
|
89
|
-
if (t.algorithm !== "passthrough") {
|
|
90
|
-
e = n.createHash(t.algorithm);
|
|
91
|
-
} else {
|
|
92
|
-
e = new l;
|
|
93
|
-
}
|
|
94
|
-
if (typeof e.write === "undefined") {
|
|
95
|
-
e.write = e.update;
|
|
96
|
-
e.end = e.update;
|
|
97
|
-
}
|
|
98
|
-
var i = f(t, e);
|
|
99
|
-
i.dispatch(r);
|
|
100
|
-
if (!e.update) {
|
|
101
|
-
e.end("");
|
|
102
|
-
}
|
|
103
|
-
if (e.digest) {
|
|
104
|
-
return e.digest(t.encoding === "buffer" ? undefined : t.encoding);
|
|
105
|
-
}
|
|
106
|
-
var o = e.read();
|
|
107
|
-
if (t.encoding === "buffer") {
|
|
108
|
-
return o;
|
|
109
|
-
}
|
|
110
|
-
return o.toString(t.encoding);
|
|
111
|
-
}
|
|
112
|
-
e.writeToStream = function(r, t, e) {
|
|
113
|
-
if (typeof e === "undefined") {
|
|
114
|
-
e = t;
|
|
115
|
-
t = {};
|
|
85
|
+
function isNativeFunction(t) {
|
|
86
|
+
if (typeof t !== "function") {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
var r = /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i;
|
|
90
|
+
return r.exec(Function.prototype.toString.call(t)) != null;
|
|
116
91
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
e = e || [];
|
|
122
|
-
var n = function(r) {
|
|
123
|
-
if (t.update) {
|
|
124
|
-
return t.update(r, "utf8");
|
|
92
|
+
function hash(t, r) {
|
|
93
|
+
var e;
|
|
94
|
+
if (r.algorithm !== "passthrough") {
|
|
95
|
+
e = n.createHash(r.algorithm);
|
|
125
96
|
} else {
|
|
126
|
-
|
|
97
|
+
e = new PassThrough;
|
|
98
|
+
}
|
|
99
|
+
if (typeof e.write === "undefined") {
|
|
100
|
+
e.write = e.update;
|
|
101
|
+
e.end = e.update;
|
|
127
102
|
}
|
|
103
|
+
var i = typeHasher(r, e);
|
|
104
|
+
i.dispatch(t);
|
|
105
|
+
if (!e.update) {
|
|
106
|
+
e.end("");
|
|
107
|
+
}
|
|
108
|
+
if (e.digest) {
|
|
109
|
+
return e.digest(r.encoding === "buffer" ? undefined : r.encoding);
|
|
110
|
+
}
|
|
111
|
+
var o = e.read();
|
|
112
|
+
if (r.encoding === "buffer") {
|
|
113
|
+
return o;
|
|
114
|
+
}
|
|
115
|
+
return o.toString(r.encoding);
|
|
116
|
+
}
|
|
117
|
+
e.writeToStream = function(t, r, e) {
|
|
118
|
+
if (typeof e === "undefined") {
|
|
119
|
+
e = r;
|
|
120
|
+
r = {};
|
|
121
|
+
}
|
|
122
|
+
r = applyDefaults(t, r);
|
|
123
|
+
return typeHasher(r, e).dispatch(t);
|
|
128
124
|
};
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
var e = typeof t;
|
|
135
|
-
if (t === null) {
|
|
136
|
-
e = "null";
|
|
137
|
-
}
|
|
138
|
-
return this["_" + e](t);
|
|
139
|
-
},
|
|
140
|
-
_object: function(t) {
|
|
141
|
-
var i = /\[object (.*)\]/i;
|
|
142
|
-
var o = Object.prototype.toString.call(t);
|
|
143
|
-
var u = i.exec(o);
|
|
144
|
-
if (!u) {
|
|
145
|
-
u = "unknown:[" + o + "]";
|
|
125
|
+
function typeHasher(t, r, e) {
|
|
126
|
+
e = e || [];
|
|
127
|
+
var write = function(t) {
|
|
128
|
+
if (r.update) {
|
|
129
|
+
return r.update(t, "utf8");
|
|
146
130
|
} else {
|
|
147
|
-
|
|
131
|
+
return r.write(t, "utf8");
|
|
148
132
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
133
|
+
};
|
|
134
|
+
return {
|
|
135
|
+
dispatch: function(r) {
|
|
136
|
+
if (t.replacer) {
|
|
137
|
+
r = t.replacer(r);
|
|
138
|
+
}
|
|
139
|
+
var e = typeof r;
|
|
140
|
+
if (r === null) {
|
|
141
|
+
e = "null";
|
|
142
|
+
}
|
|
143
|
+
return this["_" + e](r);
|
|
144
|
+
},
|
|
145
|
+
_object: function(r) {
|
|
146
|
+
var n = /\[object (.*)\]/i;
|
|
147
|
+
var i = Object.prototype.toString.call(r);
|
|
148
|
+
var o = n.exec(i);
|
|
149
|
+
if (!o) {
|
|
150
|
+
o = "unknown:[" + i + "]";
|
|
165
151
|
} else {
|
|
166
|
-
|
|
152
|
+
o = o[1];
|
|
167
153
|
}
|
|
168
|
-
|
|
169
|
-
var
|
|
170
|
-
if (r
|
|
171
|
-
|
|
154
|
+
o = o.toLowerCase();
|
|
155
|
+
var u = null;
|
|
156
|
+
if ((u = e.indexOf(r)) >= 0) {
|
|
157
|
+
return this.dispatch("[CIRCULAR:" + u + "]");
|
|
158
|
+
} else {
|
|
159
|
+
e.push(r);
|
|
172
160
|
}
|
|
173
|
-
if (
|
|
174
|
-
|
|
161
|
+
if (typeof Buffer !== "undefined" && Buffer.isBuffer && Buffer.isBuffer(r)) {
|
|
162
|
+
write("buffer:");
|
|
163
|
+
return write(r);
|
|
175
164
|
}
|
|
176
|
-
if (
|
|
177
|
-
|
|
178
|
-
|
|
165
|
+
if (o !== "object" && o !== "function" && o !== "asyncfunction") {
|
|
166
|
+
if (this["_" + o]) {
|
|
167
|
+
this["_" + o](r);
|
|
168
|
+
} else if (t.ignoreUnknown) {
|
|
169
|
+
return write("[" + o + "]");
|
|
170
|
+
} else {
|
|
171
|
+
throw new Error('Unknown object type "' + o + '"');
|
|
172
|
+
}
|
|
173
|
+
} else {
|
|
174
|
+
var a = Object.keys(r);
|
|
175
|
+
if (t.unorderedObjects) {
|
|
176
|
+
a = a.sort();
|
|
177
|
+
}
|
|
178
|
+
if (t.respectType !== false && !isNativeFunction(r)) {
|
|
179
|
+
a.splice(0, 0, "prototype", "__proto__", "constructor");
|
|
180
|
+
}
|
|
181
|
+
if (t.excludeKeys) {
|
|
182
|
+
a = a.filter((function(r) {
|
|
183
|
+
return !t.excludeKeys(r);
|
|
184
|
+
}));
|
|
185
|
+
}
|
|
186
|
+
write("object:" + a.length + ":");
|
|
187
|
+
var s = this;
|
|
188
|
+
return a.forEach((function(e) {
|
|
189
|
+
s.dispatch(e);
|
|
190
|
+
write(":");
|
|
191
|
+
if (!t.excludeValues) {
|
|
192
|
+
s.dispatch(r[e]);
|
|
193
|
+
}
|
|
194
|
+
write(",");
|
|
179
195
|
}));
|
|
180
196
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
return o.dispatch(r);
|
|
197
|
+
},
|
|
198
|
+
_array: function(r, n) {
|
|
199
|
+
n = typeof n !== "undefined" ? n : t.unorderedArrays !== false;
|
|
200
|
+
var i = this;
|
|
201
|
+
write("array:" + r.length + ":");
|
|
202
|
+
if (!n || r.length <= 1) {
|
|
203
|
+
return r.forEach((function(t) {
|
|
204
|
+
return i.dispatch(t);
|
|
205
|
+
}));
|
|
206
|
+
}
|
|
207
|
+
var o = [];
|
|
208
|
+
var u = r.map((function(r) {
|
|
209
|
+
var n = new PassThrough;
|
|
210
|
+
var i = e.slice();
|
|
211
|
+
var u = typeHasher(t, n, i);
|
|
212
|
+
u.dispatch(r);
|
|
213
|
+
o = o.concat(i.slice(e.length));
|
|
214
|
+
return n.read().toString();
|
|
200
215
|
}));
|
|
216
|
+
e = e.concat(o);
|
|
217
|
+
u.sort();
|
|
218
|
+
return this._array(u, false);
|
|
219
|
+
},
|
|
220
|
+
_date: function(t) {
|
|
221
|
+
return write("date:" + t.toJSON());
|
|
222
|
+
},
|
|
223
|
+
_symbol: function(t) {
|
|
224
|
+
return write("symbol:" + t.toString());
|
|
225
|
+
},
|
|
226
|
+
_error: function(t) {
|
|
227
|
+
return write("error:" + t.toString());
|
|
228
|
+
},
|
|
229
|
+
_boolean: function(t) {
|
|
230
|
+
return write("bool:" + t.toString());
|
|
231
|
+
},
|
|
232
|
+
_string: function(t) {
|
|
233
|
+
write("string:" + t.length + ":");
|
|
234
|
+
write(t.toString());
|
|
235
|
+
},
|
|
236
|
+
_function: function(r) {
|
|
237
|
+
write("fn:");
|
|
238
|
+
if (isNativeFunction(r)) {
|
|
239
|
+
this.dispatch("[native]");
|
|
240
|
+
} else {
|
|
241
|
+
this.dispatch(r.toString());
|
|
242
|
+
}
|
|
243
|
+
if (t.respectFunctionNames !== false) {
|
|
244
|
+
this.dispatch("function-name:" + String(r.name));
|
|
245
|
+
}
|
|
246
|
+
if (t.respectFunctionProperties) {
|
|
247
|
+
this._object(r);
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
_number: function(t) {
|
|
251
|
+
return write("number:" + t.toString());
|
|
252
|
+
},
|
|
253
|
+
_xml: function(t) {
|
|
254
|
+
return write("xml:" + t.toString());
|
|
255
|
+
},
|
|
256
|
+
_null: function() {
|
|
257
|
+
return write("Null");
|
|
258
|
+
},
|
|
259
|
+
_undefined: function() {
|
|
260
|
+
return write("Undefined");
|
|
261
|
+
},
|
|
262
|
+
_regexp: function(t) {
|
|
263
|
+
return write("regex:" + t.toString());
|
|
264
|
+
},
|
|
265
|
+
_uint8array: function(t) {
|
|
266
|
+
write("uint8array:");
|
|
267
|
+
return this.dispatch(Array.prototype.slice.call(t));
|
|
268
|
+
},
|
|
269
|
+
_uint8clampedarray: function(t) {
|
|
270
|
+
write("uint8clampedarray:");
|
|
271
|
+
return this.dispatch(Array.prototype.slice.call(t));
|
|
272
|
+
},
|
|
273
|
+
_int8array: function(t) {
|
|
274
|
+
write("int8array:");
|
|
275
|
+
return this.dispatch(Array.prototype.slice.call(t));
|
|
276
|
+
},
|
|
277
|
+
_uint16array: function(t) {
|
|
278
|
+
write("uint16array:");
|
|
279
|
+
return this.dispatch(Array.prototype.slice.call(t));
|
|
280
|
+
},
|
|
281
|
+
_int16array: function(t) {
|
|
282
|
+
write("int16array:");
|
|
283
|
+
return this.dispatch(Array.prototype.slice.call(t));
|
|
284
|
+
},
|
|
285
|
+
_uint32array: function(t) {
|
|
286
|
+
write("uint32array:");
|
|
287
|
+
return this.dispatch(Array.prototype.slice.call(t));
|
|
288
|
+
},
|
|
289
|
+
_int32array: function(t) {
|
|
290
|
+
write("int32array:");
|
|
291
|
+
return this.dispatch(Array.prototype.slice.call(t));
|
|
292
|
+
},
|
|
293
|
+
_float32array: function(t) {
|
|
294
|
+
write("float32array:");
|
|
295
|
+
return this.dispatch(Array.prototype.slice.call(t));
|
|
296
|
+
},
|
|
297
|
+
_float64array: function(t) {
|
|
298
|
+
write("float64array:");
|
|
299
|
+
return this.dispatch(Array.prototype.slice.call(t));
|
|
300
|
+
},
|
|
301
|
+
_arraybuffer: function(t) {
|
|
302
|
+
write("arraybuffer:");
|
|
303
|
+
return this.dispatch(new Uint8Array(t));
|
|
304
|
+
},
|
|
305
|
+
_url: function(t) {
|
|
306
|
+
return write("url:" + t.toString(), "utf8");
|
|
307
|
+
},
|
|
308
|
+
_map: function(r) {
|
|
309
|
+
write("map:");
|
|
310
|
+
var e = Array.from(r);
|
|
311
|
+
return this._array(e, t.unorderedSets !== false);
|
|
312
|
+
},
|
|
313
|
+
_set: function(r) {
|
|
314
|
+
write("set:");
|
|
315
|
+
var e = Array.from(r);
|
|
316
|
+
return this._array(e, t.unorderedSets !== false);
|
|
317
|
+
},
|
|
318
|
+
_file: function(t) {
|
|
319
|
+
write("file:");
|
|
320
|
+
return this.dispatch([ t.name, t.size, t.type, t.lastModfied ]);
|
|
321
|
+
},
|
|
322
|
+
_blob: function() {
|
|
323
|
+
if (t.ignoreUnknown) {
|
|
324
|
+
return write("[blob]");
|
|
325
|
+
}
|
|
326
|
+
throw Error("Hashing Blob objects is currently not supported\n" + "(see https://github.com/puleos/object-hash/issues/26)\n" + 'Use "options.replacer" or "options.ignoreUnknown"\n');
|
|
327
|
+
},
|
|
328
|
+
_domwindow: function() {
|
|
329
|
+
return write("domwindow");
|
|
330
|
+
},
|
|
331
|
+
_bigint: function(t) {
|
|
332
|
+
return write("bigint:" + t.toString());
|
|
333
|
+
},
|
|
334
|
+
_process: function() {
|
|
335
|
+
return write("process");
|
|
336
|
+
},
|
|
337
|
+
_timer: function() {
|
|
338
|
+
return write("timer");
|
|
339
|
+
},
|
|
340
|
+
_pipe: function() {
|
|
341
|
+
return write("pipe");
|
|
342
|
+
},
|
|
343
|
+
_tcp: function() {
|
|
344
|
+
return write("tcp");
|
|
345
|
+
},
|
|
346
|
+
_udp: function() {
|
|
347
|
+
return write("udp");
|
|
348
|
+
},
|
|
349
|
+
_tty: function() {
|
|
350
|
+
return write("tty");
|
|
351
|
+
},
|
|
352
|
+
_statwatcher: function() {
|
|
353
|
+
return write("statwatcher");
|
|
354
|
+
},
|
|
355
|
+
_securecontext: function() {
|
|
356
|
+
return write("securecontext");
|
|
357
|
+
},
|
|
358
|
+
_connection: function() {
|
|
359
|
+
return write("connection");
|
|
360
|
+
},
|
|
361
|
+
_zlib: function() {
|
|
362
|
+
return write("zlib");
|
|
363
|
+
},
|
|
364
|
+
_context: function() {
|
|
365
|
+
return write("context");
|
|
366
|
+
},
|
|
367
|
+
_nodescript: function() {
|
|
368
|
+
return write("nodescript");
|
|
369
|
+
},
|
|
370
|
+
_httpparser: function() {
|
|
371
|
+
return write("httpparser");
|
|
372
|
+
},
|
|
373
|
+
_dataview: function() {
|
|
374
|
+
return write("dataview");
|
|
375
|
+
},
|
|
376
|
+
_signal: function() {
|
|
377
|
+
return write("signal");
|
|
378
|
+
},
|
|
379
|
+
_fsevent: function() {
|
|
380
|
+
return write("fsevent");
|
|
381
|
+
},
|
|
382
|
+
_tlswrap: function() {
|
|
383
|
+
return write("tlswrap");
|
|
201
384
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
_date: function(r) {
|
|
216
|
-
return n("date:" + r.toJSON());
|
|
217
|
-
},
|
|
218
|
-
_symbol: function(r) {
|
|
219
|
-
return n("symbol:" + r.toString());
|
|
220
|
-
},
|
|
221
|
-
_error: function(r) {
|
|
222
|
-
return n("error:" + r.toString());
|
|
223
|
-
},
|
|
224
|
-
_boolean: function(r) {
|
|
225
|
-
return n("bool:" + r.toString());
|
|
226
|
-
},
|
|
227
|
-
_string: function(r) {
|
|
228
|
-
n("string:" + r.length + ":");
|
|
229
|
-
n(r.toString());
|
|
230
|
-
},
|
|
231
|
-
_function: function(t) {
|
|
232
|
-
n("fn:");
|
|
233
|
-
if (s(t)) {
|
|
234
|
-
this.dispatch("[native]");
|
|
235
|
-
} else {
|
|
236
|
-
this.dispatch(t.toString());
|
|
237
|
-
}
|
|
238
|
-
if (r.respectFunctionNames !== false) {
|
|
239
|
-
this.dispatch("function-name:" + String(t.name));
|
|
240
|
-
}
|
|
241
|
-
if (r.respectFunctionProperties) {
|
|
242
|
-
this._object(t);
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
_number: function(r) {
|
|
246
|
-
return n("number:" + r.toString());
|
|
247
|
-
},
|
|
248
|
-
_xml: function(r) {
|
|
249
|
-
return n("xml:" + r.toString());
|
|
250
|
-
},
|
|
251
|
-
_null: function() {
|
|
252
|
-
return n("Null");
|
|
253
|
-
},
|
|
254
|
-
_undefined: function() {
|
|
255
|
-
return n("Undefined");
|
|
256
|
-
},
|
|
257
|
-
_regexp: function(r) {
|
|
258
|
-
return n("regex:" + r.toString());
|
|
259
|
-
},
|
|
260
|
-
_uint8array: function(r) {
|
|
261
|
-
n("uint8array:");
|
|
262
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
263
|
-
},
|
|
264
|
-
_uint8clampedarray: function(r) {
|
|
265
|
-
n("uint8clampedarray:");
|
|
266
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
267
|
-
},
|
|
268
|
-
_int8array: function(r) {
|
|
269
|
-
n("int8array:");
|
|
270
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
271
|
-
},
|
|
272
|
-
_uint16array: function(r) {
|
|
273
|
-
n("uint16array:");
|
|
274
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
275
|
-
},
|
|
276
|
-
_int16array: function(r) {
|
|
277
|
-
n("int16array:");
|
|
278
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
279
|
-
},
|
|
280
|
-
_uint32array: function(r) {
|
|
281
|
-
n("uint32array:");
|
|
282
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
283
|
-
},
|
|
284
|
-
_int32array: function(r) {
|
|
285
|
-
n("int32array:");
|
|
286
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
287
|
-
},
|
|
288
|
-
_float32array: function(r) {
|
|
289
|
-
n("float32array:");
|
|
290
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
291
|
-
},
|
|
292
|
-
_float64array: function(r) {
|
|
293
|
-
n("float64array:");
|
|
294
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
295
|
-
},
|
|
296
|
-
_arraybuffer: function(r) {
|
|
297
|
-
n("arraybuffer:");
|
|
298
|
-
return this.dispatch(new Uint8Array(r));
|
|
299
|
-
},
|
|
300
|
-
_url: function(r) {
|
|
301
|
-
return n("url:" + r.toString(), "utf8");
|
|
302
|
-
},
|
|
303
|
-
_map: function(t) {
|
|
304
|
-
n("map:");
|
|
305
|
-
var e = Array.from(t);
|
|
306
|
-
return this._array(e, r.unorderedSets !== false);
|
|
307
|
-
},
|
|
308
|
-
_set: function(t) {
|
|
309
|
-
n("set:");
|
|
310
|
-
var e = Array.from(t);
|
|
311
|
-
return this._array(e, r.unorderedSets !== false);
|
|
312
|
-
},
|
|
313
|
-
_file: function(r) {
|
|
314
|
-
n("file:");
|
|
315
|
-
return this.dispatch([ r.name, r.size, r.type, r.lastModfied ]);
|
|
316
|
-
},
|
|
317
|
-
_blob: function() {
|
|
318
|
-
if (r.ignoreUnknown) {
|
|
319
|
-
return n("[blob]");
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
function PassThrough() {
|
|
388
|
+
return {
|
|
389
|
+
buf: "",
|
|
390
|
+
write: function(t) {
|
|
391
|
+
this.buf += t;
|
|
392
|
+
},
|
|
393
|
+
end: function(t) {
|
|
394
|
+
this.buf += t;
|
|
395
|
+
},
|
|
396
|
+
read: function() {
|
|
397
|
+
return this.buf;
|
|
320
398
|
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
_bigint: function(r) {
|
|
327
|
-
return n("bigint:" + r.toString());
|
|
328
|
-
},
|
|
329
|
-
_process: function() {
|
|
330
|
-
return n("process");
|
|
331
|
-
},
|
|
332
|
-
_timer: function() {
|
|
333
|
-
return n("timer");
|
|
334
|
-
},
|
|
335
|
-
_pipe: function() {
|
|
336
|
-
return n("pipe");
|
|
337
|
-
},
|
|
338
|
-
_tcp: function() {
|
|
339
|
-
return n("tcp");
|
|
340
|
-
},
|
|
341
|
-
_udp: function() {
|
|
342
|
-
return n("udp");
|
|
343
|
-
},
|
|
344
|
-
_tty: function() {
|
|
345
|
-
return n("tty");
|
|
346
|
-
},
|
|
347
|
-
_statwatcher: function() {
|
|
348
|
-
return n("statwatcher");
|
|
349
|
-
},
|
|
350
|
-
_securecontext: function() {
|
|
351
|
-
return n("securecontext");
|
|
352
|
-
},
|
|
353
|
-
_connection: function() {
|
|
354
|
-
return n("connection");
|
|
355
|
-
},
|
|
356
|
-
_zlib: function() {
|
|
357
|
-
return n("zlib");
|
|
358
|
-
},
|
|
359
|
-
_context: function() {
|
|
360
|
-
return n("context");
|
|
361
|
-
},
|
|
362
|
-
_nodescript: function() {
|
|
363
|
-
return n("nodescript");
|
|
364
|
-
},
|
|
365
|
-
_httpparser: function() {
|
|
366
|
-
return n("httpparser");
|
|
367
|
-
},
|
|
368
|
-
_dataview: function() {
|
|
369
|
-
return n("dataview");
|
|
370
|
-
},
|
|
371
|
-
_signal: function() {
|
|
372
|
-
return n("signal");
|
|
373
|
-
},
|
|
374
|
-
_fsevent: function() {
|
|
375
|
-
return n("fsevent");
|
|
376
|
-
},
|
|
377
|
-
_tlswrap: function() {
|
|
378
|
-
return n("tlswrap");
|
|
379
|
-
}
|
|
380
|
-
};
|
|
381
|
-
}
|
|
382
|
-
function l() {
|
|
383
|
-
return {
|
|
384
|
-
buf: "",
|
|
385
|
-
write: function(r) {
|
|
386
|
-
this.buf += r;
|
|
387
|
-
},
|
|
388
|
-
end: function(r) {
|
|
389
|
-
this.buf += r;
|
|
390
|
-
},
|
|
391
|
-
read: function() {
|
|
392
|
-
return this.buf;
|
|
393
|
-
}
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
})(e, e.exports);
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
})(e, e.exports);
|
|
402
|
+
return e.exports;
|
|
403
|
+
}
|
|
397
404
|
|
|
398
|
-
var
|
|
405
|
+
var o = requireObjectHash();
|
|
399
406
|
|
|
400
|
-
const
|
|
407
|
+
const u = t(o);
|
|
401
408
|
|
|
402
|
-
function
|
|
403
|
-
return
|
|
409
|
+
function ObjectHash(t, r) {
|
|
410
|
+
return u(t, r);
|
|
404
411
|
}
|
|
405
412
|
|
|
406
|
-
export {
|
|
413
|
+
export { ObjectHash };
|