lakutata 2.0.82 → 2.0.83
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/docker.cjs +1 -1
- package/com/docker.mjs +1 -1
- package/decorator/orm.cjs +84 -84
- package/decorator/orm.mjs +42 -128
- package/orm.cjs +871 -1408
- package/orm.mjs +712 -1462
- package/package.json +1 -1
- package/src/components/Database.cjs +2 -2
- package/src/components/Database.mjs +6 -6
- package/src/components/cacher/Cacher.cjs +129 -129
- package/src/components/cacher/Cacher.mjs +117 -117
- package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +303 -312
- package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +304 -313
- 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 +11 -11
- package/src/components/docker/ConnectionOptionsBuilder.mjs +7 -7
- package/src/components/docker/Docker.cjs +5067 -4956
- package/src/components/docker/Docker.mjs +4982 -4871
- package/src/components/docker/lib/DockerContainer.cjs +1 -1
- package/src/components/docker/lib/DockerContainer.mjs +1 -1
- package/src/components/docker/lib/DockerContainerTTY.cjs +1 -1
- package/src/components/docker/lib/DockerContainerTTY.mjs +1 -1
- 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 +1678 -2168
- package/src/components/entrypoint/Entrypoint.mjs +1680 -2170
- package/src/components/monitor/AliveMonitor.cjs +2 -2
- package/src/components/monitor/AliveMonitor.mjs +2 -2
- package/src/components/monitor/MemoryMonitor.cjs +3 -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 +2 -2
- package/src/decorators/ctrl/CLIAction.mjs +7 -7
- package/src/decorators/ctrl/HTTPAction.cjs +6 -6
- package/src/decorators/ctrl/HTTPAction.mjs +4 -4
- package/src/decorators/ctrl/ServiceAction.cjs +3 -3
- package/src/decorators/ctrl/ServiceAction.mjs +4 -4
- package/src/decorators/ctrl/http/DELETE.cjs +2 -2
- package/src/decorators/ctrl/http/DELETE.mjs +2 -2
- package/src/decorators/ctrl/http/GET.cjs +2 -2
- package/src/decorators/ctrl/http/GET.mjs +2 -2
- package/src/decorators/ctrl/http/HEAD.cjs +2 -2
- package/src/decorators/ctrl/http/HEAD.mjs +2 -2
- package/src/decorators/ctrl/http/OPTIONS.cjs +2 -2
- package/src/decorators/ctrl/http/OPTIONS.mjs +2 -2
- package/src/decorators/ctrl/http/PATCH.cjs +2 -2
- package/src/decorators/ctrl/http/PATCH.mjs +2 -2
- package/src/decorators/ctrl/http/POST.cjs +2 -2
- package/src/decorators/ctrl/http/POST.mjs +2 -2
- package/src/decorators/ctrl/http/PUT.cjs +2 -2
- package/src/decorators/ctrl/http/PUT.mjs +2 -2
- 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 +26 -4
- package/src/decorators/orm/AfterInsert.mjs +25 -5
- package/src/decorators/orm/AfterLoad.cjs +26 -4
- package/src/decorators/orm/AfterLoad.mjs +25 -5
- package/src/decorators/orm/AfterRecover.cjs +26 -4
- package/src/decorators/orm/AfterRecover.mjs +25 -5
- package/src/decorators/orm/AfterRemove.cjs +26 -4
- package/src/decorators/orm/AfterRemove.mjs +25 -5
- package/src/decorators/orm/AfterSoftRemove.cjs +26 -4
- package/src/decorators/orm/AfterSoftRemove.mjs +25 -5
- package/src/decorators/orm/AfterUpdate.cjs +26 -4
- package/src/decorators/orm/AfterUpdate.mjs +25 -5
- package/src/decorators/orm/BeforeInsert.cjs +26 -4
- package/src/decorators/orm/BeforeInsert.mjs +25 -5
- package/src/decorators/orm/BeforeRecover.cjs +26 -4
- package/src/decorators/orm/BeforeRecover.mjs +25 -5
- package/src/decorators/orm/BeforeRemove.cjs +26 -4
- package/src/decorators/orm/BeforeRemove.mjs +25 -5
- package/src/decorators/orm/BeforeSoftRemove.cjs +26 -4
- package/src/decorators/orm/BeforeSoftRemove.mjs +25 -5
- package/src/decorators/orm/BeforeUpdate.cjs +26 -4
- package/src/decorators/orm/BeforeUpdate.mjs +25 -5
- package/src/decorators/orm/Check.cjs +29 -4
- package/src/decorators/orm/Check.mjs +28 -5
- package/src/decorators/orm/ChildEntity.cjs +29 -4
- package/src/decorators/orm/ChildEntity.mjs +28 -5
- package/src/decorators/orm/Column.cjs +61 -4
- package/src/decorators/orm/Column.mjs +61 -6
- package/src/decorators/orm/CreateDateColumn.cjs +25 -4
- package/src/decorators/orm/CreateDateColumn.mjs +24 -5
- package/src/decorators/orm/DeleteDateColumn.cjs +25 -4
- package/src/decorators/orm/DeleteDateColumn.mjs +23 -4
- package/src/decorators/orm/Entity.cjs +35 -4
- package/src/decorators/orm/Entity.mjs +33 -4
- package/src/decorators/orm/EventSubscriber.cjs +22 -4
- package/src/decorators/orm/EventSubscriber.mjs +21 -5
- package/src/decorators/orm/Exclusion.cjs +29 -4
- package/src/decorators/orm/Exclusion.mjs +28 -5
- package/src/decorators/orm/Generated.cjs +24 -4
- package/src/decorators/orm/Generated.mjs +23 -5
- package/src/decorators/orm/Index.cjs +41 -4
- package/src/decorators/orm/Index.mjs +41 -6
- package/src/decorators/orm/JoinColumn.cjs +29 -4
- package/src/decorators/orm/JoinColumn.mjs +28 -5
- package/src/decorators/orm/JoinTable.cjs +30 -4
- package/src/decorators/orm/JoinTable.mjs +28 -4
- package/src/decorators/orm/ManyToMany.cjs +42 -4
- package/src/decorators/orm/ManyToMany.mjs +40 -4
- package/src/decorators/orm/ManyToOne.cjs +42 -4
- package/src/decorators/orm/ManyToOne.mjs +40 -4
- package/src/decorators/orm/ObjectIdColumn.cjs +28 -4
- package/src/decorators/orm/ObjectIdColumn.mjs +27 -5
- package/src/decorators/orm/OneToMany.cjs +34 -4
- package/src/decorators/orm/OneToMany.mjs +34 -6
- package/src/decorators/orm/OneToOne.cjs +42 -4
- package/src/decorators/orm/OneToOne.mjs +40 -4
- package/src/decorators/orm/PrimaryColumn.cjs +49 -4
- package/src/decorators/orm/PrimaryColumn.mjs +49 -6
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +54 -4
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +54 -6
- package/src/decorators/orm/RelationId.cjs +26 -4
- package/src/decorators/orm/RelationId.mjs +25 -5
- package/src/decorators/orm/TableInheritance.cjs +26 -4
- package/src/decorators/orm/TableInheritance.mjs +25 -5
- package/src/decorators/orm/Tree.cjs +24 -4
- package/src/decorators/orm/Tree.mjs +23 -5
- package/src/decorators/orm/TreeChildren.cjs +31 -4
- package/src/decorators/orm/TreeChildren.mjs +29 -4
- package/src/decorators/orm/TreeLevelColumn.cjs +25 -4
- package/src/decorators/orm/TreeLevelColumn.mjs +23 -4
- package/src/decorators/orm/TreeParent.cjs +31 -4
- package/src/decorators/orm/TreeParent.mjs +29 -4
- package/src/decorators/orm/Unique.cjs +44 -4
- package/src/decorators/orm/Unique.mjs +44 -6
- package/src/decorators/orm/UpdateDateColumn.cjs +25 -4
- package/src/decorators/orm/UpdateDateColumn.mjs +24 -5
- package/src/decorators/orm/VersionColumn.cjs +25 -4
- package/src/decorators/orm/VersionColumn.mjs +24 -5
- package/src/decorators/orm/ViewColumn.cjs +25 -4
- package/src/decorators/orm/ViewColumn.mjs +24 -5
- package/src/decorators/orm/ViewEntity.cjs +34 -4
- package/src/decorators/orm/ViewEntity.mjs +33 -5
- package/src/decorators/orm/VirtualColumn.cjs +42 -4
- package/src/decorators/orm/VirtualColumn.mjs +40 -4
- package/src/lib/base/EventEmitter.cjs +1195 -1202
- package/src/lib/base/EventEmitter.mjs +1195 -1202
- 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/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 +65 -65
- package/src/lib/base/internal/ControllerEntrypoint.mjs +36 -36
- package/src/lib/base/internal/DataValidator.cjs +185 -174
- package/src/lib/base/internal/DataValidator.mjs +230 -219
- 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/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/ObjectWeakRefs.cjs +11 -11
- package/src/lib/base/internal/ObjectWeakRefs.mjs +9 -9
- package/src/lib/base/internal/PatternManager.cjs +739 -744
- package/src/lib/base/internal/PatternManager.mjs +743 -748
- 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 +115 -128
- package/src/lib/core/Application.mjs +135 -148
- 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 +890 -890
- package/src/lib/helpers/Glob.mjs +889 -889
- 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 +8 -18
- package/src/lib/helpers/IsHtml.mjs +8 -18
- 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 +1531 -1525
- package/src/lib/helpers/IsXML.mjs +1527 -1521
- package/src/lib/helpers/MD5.cjs +2 -2
- package/src/lib/helpers/MD5.mjs +2 -2
- 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 +2 -2
- package/src/lib/helpers/NonceStr.mjs +2 -2
- package/src/lib/helpers/ObjectConstructor.cjs +2 -2
- package/src/lib/helpers/ObjectConstructor.mjs +4 -4
- package/src/lib/helpers/ObjectHash.cjs +377 -384
- package/src/lib/helpers/ObjectHash.mjs +373 -380
- 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 +148 -169
- package/src/lib/helpers/RandomString.mjs +145 -166
- package/src/lib/helpers/SHA1.cjs +2 -2
- package/src/lib/helpers/SHA1.mjs +2 -2
- package/src/lib/helpers/SHA256.cjs +2 -2
- package/src/lib/helpers/SHA256.mjs +2 -2
- 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 +16 -16
- package/src/lib/helpers/SortArray.mjs +15 -15
- 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/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/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 +106 -106
- package/src/lib/ioc/DependencyInjectionContainer.mjs +122 -122
- 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 +5298 -5221
- package/src/lib/ioc/ListModules.mjs +5258 -5181
- 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 +4025 -4202
- package/src/lib/validation/VLD.mjs +2972 -3149
- package/src/providers/Database.cjs +2 -2
- package/src/providers/Database.mjs +7 -7
- package/src/providers/PasswordHash.cjs +330 -330
- package/src/providers/PasswordHash.mjs +397 -397
- package/src/providers/migration/GenerateMigration.cjs +2 -2
- package/src/providers/migration/GenerateMigration.mjs +2 -2
- package/vendor/Package.1.cjs +256 -256
- package/vendor/Package.1.mjs +254 -254
- package/vendor/Package.112.cjs +42157 -42076
- package/vendor/Package.112.mjs +42222 -42081
- package/vendor/Package.13.cjs +36 -36
- package/vendor/Package.13.mjs +24 -24
- package/vendor/Package.16.cjs +12351 -12233
- package/vendor/Package.16.mjs +12348 -12230
- package/vendor/Package.17.cjs +924 -924
- package/vendor/Package.17.mjs +943 -943
- package/vendor/Package.18.cjs +48229 -20
- package/vendor/Package.18.mjs +48192 -24
- package/vendor/Package.2.cjs +5824 -5853
- package/vendor/Package.2.mjs +5780 -5809
- package/vendor/Package.3.cjs +60 -60
- package/vendor/Package.3.mjs +85 -85
- package/vendor/Package.4.cjs +874 -884
- package/vendor/Package.4.mjs +877 -887
- package/vendor/Package.5.cjs +15 -19
- package/vendor/Package.5.mjs +10 -14
- package/vendor/Package.6.cjs +2058 -2067
- package/vendor/Package.6.mjs +2064 -2073
- package/vendor/Package.610.cjs +9 -9
- package/vendor/Package.611.cjs +39 -39
- package/vendor/Package.611.mjs +22 -22
- package/vendor/Package.612.cjs +33 -33
- package/vendor/Package.612.mjs +17 -17
- package/vendor/Package.613.cjs +62 -62
- package/vendor/Package.613.mjs +29 -29
- package/vendor/Package.62.cjs +295 -298
- package/vendor/Package.62.mjs +278 -281
- package/vendor/Package.63.cjs +354 -354
- package/vendor/Package.63.mjs +229 -229
- package/vendor/Package.64.cjs +74 -74
- package/vendor/Package.64.mjs +74 -74
- package/vendor/Package.65.cjs +1851 -1858
- package/vendor/Package.65.mjs +1693 -1700
- package/vendor/Package.66.cjs +16 -16
- package/vendor/Package.66.mjs +16 -16
- package/vendor/Package.67.cjs +87 -87
- package/vendor/Package.67.mjs +85 -85
- package/vendor/Package.68.cjs +14 -14
- package/vendor/Package.68.mjs +6 -6
- package/vendor/Package.69.cjs +8 -8
- package/vendor/Package.7.cjs +3 -3
- package/vendor/Package.7.mjs +3 -3
- package/vendor/Package.9.cjs +124 -138
- package/vendor/Package.9.mjs +121 -135
- package/vendor/TypeDef.internal.3.d.ts +0 -14
- package/vendor/Package.19.cjs +0 -37
- package/vendor/Package.19.mjs +0 -35
- package/vendor/Package.20.cjs +0 -37
- package/vendor/Package.20.mjs +0 -35
- package/vendor/Package.21.cjs +0 -37
- package/vendor/Package.21.mjs +0 -35
- package/vendor/Package.22.cjs +0 -37
- package/vendor/Package.22.mjs +0 -35
- package/vendor/Package.23.cjs +0 -37
- package/vendor/Package.23.mjs +0 -35
- package/vendor/Package.24.cjs +0 -37
- package/vendor/Package.24.mjs +0 -35
- package/vendor/Package.25.cjs +0 -37
- package/vendor/Package.25.mjs +0 -35
- package/vendor/Package.26.cjs +0 -37
- package/vendor/Package.26.mjs +0 -35
- package/vendor/Package.27.cjs +0 -37
- package/vendor/Package.27.mjs +0 -35
- package/vendor/Package.28.cjs +0 -37
- package/vendor/Package.28.mjs +0 -35
- package/vendor/Package.29.cjs +0 -40
- package/vendor/Package.29.mjs +0 -38
- package/vendor/Package.30.cjs +0 -41
- package/vendor/Package.30.mjs +0 -39
- package/vendor/Package.31.cjs +0 -72
- package/vendor/Package.31.mjs +0 -70
- package/vendor/Package.32.cjs +0 -37
- package/vendor/Package.32.mjs +0 -35
- package/vendor/Package.33.cjs +0 -37
- package/vendor/Package.33.mjs +0 -35
- package/vendor/Package.34.cjs +0 -46
- package/vendor/Package.34.mjs +0 -44
- package/vendor/Package.35.cjs +0 -34
- package/vendor/Package.35.mjs +0 -32
- package/vendor/Package.36.cjs +0 -40
- package/vendor/Package.36.mjs +0 -38
- package/vendor/Package.37.cjs +0 -36
- package/vendor/Package.37.mjs +0 -34
- package/vendor/Package.38.cjs +0 -52
- package/vendor/Package.38.mjs +0 -50
- package/vendor/Package.39.cjs +0 -41
- package/vendor/Package.39.mjs +0 -39
- package/vendor/Package.40.cjs +0 -42
- package/vendor/Package.40.mjs +0 -40
- package/vendor/Package.41.cjs +0 -53
- package/vendor/Package.41.mjs +0 -51
- package/vendor/Package.42.cjs +0 -53
- package/vendor/Package.42.mjs +0 -51
- package/vendor/Package.43.cjs +0 -40
- package/vendor/Package.43.mjs +0 -38
- package/vendor/Package.44.cjs +0 -46
- package/vendor/Package.44.mjs +0 -44
- package/vendor/Package.45.cjs +0 -53
- package/vendor/Package.45.mjs +0 -51
- package/vendor/Package.46.cjs +0 -59
- package/vendor/Package.46.mjs +0 -57
- package/vendor/Package.47.cjs +0 -65
- package/vendor/Package.47.mjs +0 -63
- package/vendor/Package.48.cjs +0 -38
- package/vendor/Package.48.mjs +0 -36
- package/vendor/Package.49.cjs +0 -38
- package/vendor/Package.49.mjs +0 -36
- package/vendor/Package.50.cjs +0 -36
- package/vendor/Package.50.mjs +0 -34
- package/vendor/Package.51.cjs +0 -43
- package/vendor/Package.51.mjs +0 -41
- package/vendor/Package.52.cjs +0 -37
- package/vendor/Package.52.mjs +0 -35
- package/vendor/Package.53.cjs +0 -43
- package/vendor/Package.53.mjs +0 -41
- package/vendor/Package.54.cjs +0 -55
- package/vendor/Package.54.mjs +0 -53
- package/vendor/Package.55.cjs +0 -37
- package/vendor/Package.55.mjs +0 -35
- package/vendor/Package.56.cjs +0 -37
- package/vendor/Package.56.mjs +0 -35
- package/vendor/Package.57.cjs +0 -37
- package/vendor/Package.57.mjs +0 -35
- package/vendor/Package.58.cjs +0 -45
- package/vendor/Package.58.mjs +0 -43
- package/vendor/Package.59.cjs +0 -53
- package/vendor/Package.59.mjs +0 -51
- package/vendor/Package.60.cjs +0 -47649
- package/vendor/Package.60.mjs +0 -47606
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../../../vendor/Package.4.mjs";
|
|
2
2
|
|
|
3
|
-
import { isAsyncFunction as
|
|
3
|
+
import { isAsyncFunction as t } from "node:util/types";
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { c as r } from "../../../../vendor/Package.5.mjs";
|
|
6
6
|
|
|
7
7
|
import { VLD as n } from "../../validation/VLD.mjs";
|
|
8
8
|
|
|
@@ -38,190 +38,201 @@ import "../../helpers/NoCase.mjs";
|
|
|
38
38
|
|
|
39
39
|
var u = {};
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
function
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
r = Object.assign || function(r) {
|
|
49
|
-
for (var t, n = 1, e = arguments.length; n < e; n++) {
|
|
50
|
-
t = arguments[n];
|
|
51
|
-
for (var a in t) if (Object.prototype.hasOwnProperty.call(t, a)) r[a] = t[a];
|
|
52
|
-
}
|
|
53
|
-
return r;
|
|
54
|
-
};
|
|
55
|
-
return r.apply(this, arguments);
|
|
56
|
-
};
|
|
57
|
-
Object.defineProperty(u, "__esModule", {
|
|
58
|
-
value: true
|
|
59
|
-
});
|
|
60
|
-
u.isValidCron = void 0;
|
|
61
|
-
var safeParseInt = function(r) {
|
|
62
|
-
if (/^\d+$/.test(r)) {
|
|
63
|
-
return Number(r);
|
|
64
|
-
} else {
|
|
65
|
-
return NaN;
|
|
41
|
+
"use strict";
|
|
42
|
+
|
|
43
|
+
var o = r && r.__assign || function() {
|
|
44
|
+
o = Object.assign || function(t) {
|
|
45
|
+
for (var r, n = 1, e = arguments.length; n < e; n++) {
|
|
46
|
+
r = arguments[n];
|
|
47
|
+
for (var a in r) if (Object.prototype.hasOwnProperty.call(r, a)) t[a] = r[a];
|
|
66
48
|
}
|
|
49
|
+
return t;
|
|
67
50
|
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
51
|
+
return o.apply(this, arguments);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
Object.defineProperty(u, "__esModule", {
|
|
55
|
+
value: true
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
var l = u.isValidCron = void 0;
|
|
59
|
+
|
|
60
|
+
var c = function(t) {
|
|
61
|
+
if (/^\d+$/.test(t)) {
|
|
62
|
+
return Number(t);
|
|
63
|
+
} else {
|
|
64
|
+
return NaN;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
var f = function(t) {
|
|
69
|
+
return t === "*";
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
var m = function(t) {
|
|
73
|
+
return t === "?";
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
var p = function(t, r, n) {
|
|
77
|
+
return t >= r && t <= n;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
var d = function(t, r, n) {
|
|
81
|
+
var e = t.split("-");
|
|
82
|
+
switch (e.length) {
|
|
83
|
+
case 1:
|
|
84
|
+
return f(t) || p(c(t), r, n);
|
|
85
|
+
|
|
86
|
+
case 2:
|
|
87
|
+
var a = e.map((function(t) {
|
|
88
|
+
return c(t);
|
|
89
|
+
})), i = a[0], s = a[1];
|
|
90
|
+
return i <= s && p(i, r, n) && p(s, r, n);
|
|
91
|
+
|
|
92
|
+
default:
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
var v = function(t) {
|
|
98
|
+
return t === undefined || t.search(/[^\d]/) === -1 && c(t) > 0;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
var y = function(t, r, n) {
|
|
102
|
+
if (t.search(/[^\d-,\/*]/) !== -1) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
var e = t.split(",");
|
|
106
|
+
return e.every((function(t) {
|
|
107
|
+
var e = t.split("/");
|
|
108
|
+
if (t.trim().endsWith("/")) {
|
|
90
109
|
return false;
|
|
91
110
|
}
|
|
92
|
-
|
|
93
|
-
var isValidStep = function(r) {
|
|
94
|
-
return r === undefined || r.search(/[^\d]/) === -1 && safeParseInt(r) > 0;
|
|
95
|
-
};
|
|
96
|
-
var validateForRange = function(r, t, n) {
|
|
97
|
-
if (r.search(/[^\d-,\/*]/) !== -1) {
|
|
111
|
+
if (e.length > 2) {
|
|
98
112
|
return false;
|
|
99
113
|
}
|
|
100
|
-
var e =
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
114
|
+
var a = e[0], i = e[1];
|
|
115
|
+
return d(a, r, n) && v(i);
|
|
116
|
+
}));
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
var h = function(t) {
|
|
120
|
+
return y(t, 0, 59);
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
var g = function(t) {
|
|
124
|
+
return y(t, 0, 59);
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
var j = function(t) {
|
|
128
|
+
return y(t, 0, 23);
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
var w = function(t, r) {
|
|
132
|
+
return r && m(t) || y(t, 1, 31);
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
var b = {
|
|
136
|
+
jan: "1",
|
|
137
|
+
feb: "2",
|
|
138
|
+
mar: "3",
|
|
139
|
+
apr: "4",
|
|
140
|
+
may: "5",
|
|
141
|
+
jun: "6",
|
|
142
|
+
jul: "7",
|
|
143
|
+
aug: "8",
|
|
144
|
+
sep: "9",
|
|
145
|
+
oct: "10",
|
|
146
|
+
nov: "11",
|
|
147
|
+
dec: "12"
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
var k = function(t, r) {
|
|
151
|
+
if (t.search(/\/[a-zA-Z]/) !== -1) {
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
if (r) {
|
|
155
|
+
var n = t.toLowerCase().replace(/[a-z]{3}/g, (function(t) {
|
|
156
|
+
return b[t] === undefined ? t : b[t];
|
|
111
157
|
}));
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
return t[r] === undefined ? r : t[r];
|
|
146
|
-
}));
|
|
147
|
-
return validateForRange(e, 1, 12);
|
|
148
|
-
}
|
|
149
|
-
return validateForRange(r, 1, 12);
|
|
150
|
-
};
|
|
151
|
-
var n = {
|
|
152
|
-
sun: "0",
|
|
153
|
-
mon: "1",
|
|
154
|
-
tue: "2",
|
|
155
|
-
wed: "3",
|
|
156
|
-
thu: "4",
|
|
157
|
-
fri: "5",
|
|
158
|
-
sat: "6"
|
|
159
|
-
};
|
|
160
|
-
var hasValidWeekdays = function(r, t) {
|
|
161
|
-
var e = t.allowBlankDay, a = t.alias, i = t.allowSevenAsSunday, s = t.allowNthWeekdayOfMonth;
|
|
162
|
-
if (e && isQuestionMark(r)) {
|
|
163
|
-
return true;
|
|
164
|
-
} else if (!e && isQuestionMark(r)) {
|
|
165
|
-
return false;
|
|
166
|
-
}
|
|
167
|
-
if (r.search(/\/[a-zA-Z]/) !== -1) {
|
|
168
|
-
return false;
|
|
169
|
-
}
|
|
170
|
-
var u = a ? r.toLowerCase().replace(/[a-z]{3}/g, (function(r) {
|
|
171
|
-
return n[r] === undefined ? r : n[r];
|
|
172
|
-
})) : r;
|
|
173
|
-
var o = i ? 7 : 6;
|
|
174
|
-
var l = u.split("#");
|
|
175
|
-
if (s && l.length >= 2) {
|
|
176
|
-
var c = l[0], f = l[1], m = l.slice(2);
|
|
177
|
-
if (m.length !== 0) {
|
|
178
|
-
return false;
|
|
179
|
-
}
|
|
180
|
-
return isInRange(safeParseInt(f), 1, 5) && isInRange(safeParseInt(c), 0, o);
|
|
181
|
-
}
|
|
182
|
-
return validateForRange(u, 0, o);
|
|
183
|
-
};
|
|
184
|
-
var hasCompatibleDayFormat = function(r, t, n) {
|
|
185
|
-
return !(n && isQuestionMark(r) && isQuestionMark(t));
|
|
186
|
-
};
|
|
187
|
-
var split = function(r) {
|
|
188
|
-
return r.trim().split(/\s+/);
|
|
189
|
-
};
|
|
190
|
-
var e = {
|
|
191
|
-
alias: false,
|
|
192
|
-
seconds: false,
|
|
193
|
-
allowBlankDay: false,
|
|
194
|
-
allowSevenAsSunday: false,
|
|
195
|
-
allowNthWeekdayOfMonth: false
|
|
196
|
-
};
|
|
197
|
-
u.isValidCron = function(t, n) {
|
|
198
|
-
var a = r(r({}, e), n);
|
|
199
|
-
var i = split(t);
|
|
200
|
-
if (i.length > (a.seconds ? 6 : 5) || i.length < 5) {
|
|
158
|
+
return y(n, 1, 12);
|
|
159
|
+
}
|
|
160
|
+
return y(t, 1, 12);
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
var A = {
|
|
164
|
+
sun: "0",
|
|
165
|
+
mon: "1",
|
|
166
|
+
tue: "2",
|
|
167
|
+
wed: "3",
|
|
168
|
+
thu: "4",
|
|
169
|
+
fri: "5",
|
|
170
|
+
sat: "6"
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
var S = function(t, r) {
|
|
174
|
+
var n = r.allowBlankDay, e = r.alias, a = r.allowSevenAsSunday, i = r.allowNthWeekdayOfMonth;
|
|
175
|
+
if (n && m(t)) {
|
|
176
|
+
return true;
|
|
177
|
+
} else if (!n && m(t)) {
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
if (t.search(/\/[a-zA-Z]/) !== -1) {
|
|
181
|
+
return false;
|
|
182
|
+
}
|
|
183
|
+
var s = e ? t.toLowerCase().replace(/[a-z]{3}/g, (function(t) {
|
|
184
|
+
return A[t] === undefined ? t : A[t];
|
|
185
|
+
})) : t;
|
|
186
|
+
var u = a ? 7 : 6;
|
|
187
|
+
var o = s.split("#");
|
|
188
|
+
if (i && o.length >= 2) {
|
|
189
|
+
var l = o[0], f = o[1], d = o.slice(2);
|
|
190
|
+
if (d.length !== 0) {
|
|
201
191
|
return false;
|
|
202
192
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
s.push(hasValidMinutes(o));
|
|
212
|
-
s.push(hasValidHours(l));
|
|
213
|
-
s.push(hasValidDays(c, a.allowBlankDay));
|
|
214
|
-
s.push(hasValidMonths(f, a.alias));
|
|
215
|
-
s.push(hasValidWeekdays(m, a));
|
|
216
|
-
s.push(hasCompatibleDayFormat(c, m, a.allowBlankDay));
|
|
217
|
-
return s.every(Boolean);
|
|
218
|
-
};
|
|
219
|
-
return u;
|
|
220
|
-
}
|
|
193
|
+
return p(c(f), 1, 5) && p(c(l), 0, u);
|
|
194
|
+
}
|
|
195
|
+
return y(s, 0, u);
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
var D = function(t, r, n) {
|
|
199
|
+
return !(n && m(t) && m(r));
|
|
200
|
+
};
|
|
221
201
|
|
|
222
|
-
var
|
|
202
|
+
var B = function(t) {
|
|
203
|
+
return t.trim().split(/\s+/);
|
|
204
|
+
};
|
|
223
205
|
|
|
224
|
-
|
|
206
|
+
var C = {
|
|
207
|
+
alias: false,
|
|
208
|
+
seconds: false,
|
|
209
|
+
allowBlankDay: false,
|
|
210
|
+
allowSevenAsSunday: false,
|
|
211
|
+
allowNthWeekdayOfMonth: false
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
l = u.isValidCron = function(t, r) {
|
|
215
|
+
var n = o(o({}, C), r);
|
|
216
|
+
var e = B(t);
|
|
217
|
+
if (e.length > (n.seconds ? 6 : 5) || e.length < 5) {
|
|
218
|
+
return false;
|
|
219
|
+
}
|
|
220
|
+
var a = [];
|
|
221
|
+
if (e.length === 6) {
|
|
222
|
+
var i = e.shift();
|
|
223
|
+
if (i) {
|
|
224
|
+
a.push(h(i));
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
var s = e[0], u = e[1], l = e[2], c = e[3], f = e[4];
|
|
228
|
+
a.push(g(s));
|
|
229
|
+
a.push(j(u));
|
|
230
|
+
a.push(w(l, n.allowBlankDay));
|
|
231
|
+
a.push(k(c, n.alias));
|
|
232
|
+
a.push(S(f, n));
|
|
233
|
+
a.push(D(l, f, n.allowBlankDay));
|
|
234
|
+
return a.every(Boolean);
|
|
235
|
+
};
|
|
225
236
|
|
|
226
237
|
class DataValidator {
|
|
227
238
|
static Any() {
|
|
@@ -242,11 +253,11 @@ class DataValidator {
|
|
|
242
253
|
static Date() {
|
|
243
254
|
return n.date().strict(true);
|
|
244
255
|
}
|
|
245
|
-
static Object(
|
|
246
|
-
return n.object(
|
|
256
|
+
static Object(t) {
|
|
257
|
+
return n.object(t).strict(true);
|
|
247
258
|
}
|
|
248
|
-
static Array(...
|
|
249
|
-
return n.array().items(...
|
|
259
|
+
static Array(...t) {
|
|
260
|
+
return n.array().items(...t).strict(true);
|
|
250
261
|
}
|
|
251
262
|
static Binary() {
|
|
252
263
|
return n.binary().strict(true);
|
|
@@ -255,73 +266,73 @@ class DataValidator {
|
|
|
255
266
|
return n.func().strict(true);
|
|
256
267
|
}
|
|
257
268
|
static AsyncFunction() {
|
|
258
|
-
return this.Function().custom(((
|
|
259
|
-
if (r
|
|
269
|
+
return this.Function().custom(((r, n) => {
|
|
270
|
+
if (t(r)) return r;
|
|
260
271
|
return n.error("asyncFunc.invalid");
|
|
261
|
-
}), "Async Function Validation").error((
|
|
262
|
-
for (const
|
|
263
|
-
if (
|
|
264
|
-
|
|
265
|
-
return
|
|
272
|
+
}), "Async Function Validation").error((t => {
|
|
273
|
+
for (const r of t) {
|
|
274
|
+
if (r.code === "asyncFunc.invalid") {
|
|
275
|
+
r.message = "Expected AsyncFunction but got Function";
|
|
276
|
+
return r;
|
|
266
277
|
}
|
|
267
278
|
}
|
|
268
|
-
return
|
|
279
|
+
return t[0];
|
|
269
280
|
}));
|
|
270
281
|
}
|
|
271
|
-
static Class(
|
|
272
|
-
if (!
|
|
273
|
-
return this.Function().class().custom(((
|
|
274
|
-
if (!e(
|
|
275
|
-
if (
|
|
282
|
+
static Class(t) {
|
|
283
|
+
if (!t) return n.func().class();
|
|
284
|
+
return this.Function().class().custom(((r, n) => {
|
|
285
|
+
if (!e(t).prototype) t = e(t)();
|
|
286
|
+
if (r instanceof e(t) || r["prototype"] instanceof e(t)) return r;
|
|
276
287
|
return n.error("any.invalid");
|
|
277
288
|
}), "Class Validation");
|
|
278
289
|
}
|
|
279
|
-
static InstanceOf(
|
|
280
|
-
return this.Any().custom(((
|
|
281
|
-
if (
|
|
290
|
+
static InstanceOf(t) {
|
|
291
|
+
return this.Any().custom(((r, n) => {
|
|
292
|
+
if (r instanceof e(t) || r["prototype"] instanceof e(t)) return r;
|
|
282
293
|
return n.error("any.invalid");
|
|
283
294
|
}), "Class Instance Validation");
|
|
284
295
|
}
|
|
285
296
|
static Glob() {
|
|
286
|
-
return this.String().custom(((
|
|
287
|
-
if (typeof
|
|
288
|
-
return
|
|
297
|
+
return this.String().custom(((t, r) => {
|
|
298
|
+
if (typeof t === "string" && a(t)) return t;
|
|
299
|
+
return r.error("any.invalid");
|
|
289
300
|
}), "Glob Validation");
|
|
290
301
|
}
|
|
291
|
-
static Cron(
|
|
292
|
-
return this.String().custom(((
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
if (typeof
|
|
302
|
+
static Cron(t) {
|
|
303
|
+
return this.String().custom(((r, n) => {
|
|
304
|
+
t = t ? t : {};
|
|
305
|
+
t.alias = t.alias !== undefined ? t.alias : false;
|
|
306
|
+
t.seconds = t.seconds !== undefined ? t.seconds : true;
|
|
307
|
+
t.allowBlankDay = t.allowBlankDay !== undefined ? t.allowBlankDay : true;
|
|
308
|
+
t.allowSevenAsSunday = t.allowSevenAsSunday !== undefined ? t.allowSevenAsSunday : true;
|
|
309
|
+
if (typeof r === "string" && l(r, t)) return r;
|
|
299
310
|
return n.error("any.invalid");
|
|
300
311
|
}), "Cron Validation");
|
|
301
312
|
}
|
|
302
313
|
static HttpDocument() {
|
|
303
|
-
return this.String().custom(((
|
|
304
|
-
if (typeof
|
|
305
|
-
return
|
|
314
|
+
return this.String().custom(((t, r) => {
|
|
315
|
+
if (typeof t === "string" && (i(t) || s(t))) return t;
|
|
316
|
+
return r.error("any.invalid");
|
|
306
317
|
}), "HttpDocument Validation");
|
|
307
318
|
}
|
|
308
319
|
static Symbol() {
|
|
309
320
|
return n.symbol().strict(true);
|
|
310
321
|
}
|
|
311
|
-
static Alternatives(...
|
|
312
|
-
return n.alternatives(...
|
|
322
|
+
static Alternatives(...t) {
|
|
323
|
+
return n.alternatives(...t).strict(true);
|
|
313
324
|
}
|
|
314
|
-
static Ref(
|
|
315
|
-
return n.ref(
|
|
325
|
+
static Ref(t, r) {
|
|
326
|
+
return n.ref(t, r);
|
|
316
327
|
}
|
|
317
|
-
static In(
|
|
318
|
-
return n.in(
|
|
328
|
+
static In(t, r) {
|
|
329
|
+
return n.in(t, r);
|
|
319
330
|
}
|
|
320
|
-
static Attempt(
|
|
321
|
-
return n.attempt(
|
|
331
|
+
static Attempt(t, r, e) {
|
|
332
|
+
return n.attempt(t, r, e);
|
|
322
333
|
}
|
|
323
|
-
static Link(
|
|
324
|
-
return n.link(
|
|
334
|
+
static Link(t) {
|
|
335
|
+
return n.link(t);
|
|
325
336
|
}
|
|
326
337
|
}
|
|
327
338
|
|
|
@@ -66,20 +66,20 @@ require("../../../decorators/dto/Expect.cjs");
|
|
|
66
66
|
|
|
67
67
|
require("../../../decorators/dto/IndexSignature.cjs");
|
|
68
68
|
|
|
69
|
-
function
|
|
70
|
-
let
|
|
71
|
-
let
|
|
69
|
+
function s(s, t) {
|
|
70
|
+
let c = r.FlexibleDTO;
|
|
71
|
+
let i = {};
|
|
72
72
|
if (s && t) {
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
c = s;
|
|
74
|
+
i = t;
|
|
75
75
|
} else if (s) {
|
|
76
76
|
if (s.constructor.name.toUpperCase() === "FUNCTION") {
|
|
77
|
-
i = s;
|
|
78
|
-
} else {
|
|
79
77
|
c = s;
|
|
78
|
+
} else {
|
|
79
|
+
i = s;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
return [
|
|
82
|
+
return [ c, e.ActionOptions.validate(i) ];
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
exports.GetActionDTOAndOptions =
|
|
85
|
+
exports.GetActionDTOAndOptions = s;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ActionOptions as t } from "./ActionOptions.mjs";
|
|
2
2
|
|
|
3
|
-
import { FlexibleDTO as
|
|
3
|
+
import { FlexibleDTO as r } from "./FlexibleDTO.mjs";
|
|
4
4
|
|
|
5
5
|
import "../../../../vendor/Package.1.mjs";
|
|
6
6
|
|
|
@@ -60,20 +60,20 @@ import "../../../decorators/dto/Expect.mjs";
|
|
|
60
60
|
|
|
61
61
|
import "../../../decorators/dto/IndexSignature.mjs";
|
|
62
62
|
|
|
63
|
-
function
|
|
64
|
-
let m =
|
|
63
|
+
function o(o, e) {
|
|
64
|
+
let m = r;
|
|
65
65
|
let s = {};
|
|
66
|
-
if (
|
|
67
|
-
m =
|
|
66
|
+
if (o && e) {
|
|
67
|
+
m = o;
|
|
68
68
|
s = e;
|
|
69
|
-
} else if (
|
|
70
|
-
if (
|
|
71
|
-
m =
|
|
69
|
+
} else if (o) {
|
|
70
|
+
if (o.constructor.name.toUpperCase() === "FUNCTION") {
|
|
71
|
+
m = o;
|
|
72
72
|
} else {
|
|
73
|
-
s =
|
|
73
|
+
s = o;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
return [ m, t.validate(s) ];
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
export { GetActionDTOAndOptions };
|
|
79
|
+
export { o as GetActionDTOAndOptions };
|