lakutata 0.1.49 → 0.2.1-proto.10
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/package.json +50 -42
- package/src/components/Database.js +257 -0
- package/src/components/Entrypoint.js +672 -0
- package/src/constants/event-names/ModuleEventName.js +3 -0
- package/src/constants/metadata-keys/DIMetadataKey.js +23 -0
- package/src/constants/metadata-keys/DTOMetadataKey.js +11 -0
- package/src/decorators/asst/After.js +23 -0
- package/src/decorators/asst/Before.js +23 -0
- package/src/decorators/ctrl/CLIAction.js +80 -0
- package/src/decorators/ctrl/HTTPAction.js +82 -0
- package/src/decorators/ctrl/ServiceAction.js +80 -0
- package/src/decorators/di/Autoload.js +23 -0
- package/src/decorators/di/Configurable.js +61 -0
- package/src/decorators/di/Inject.js +23 -0
- package/src/decorators/di/Lifetime.js +39 -0
- package/src/decorators/dto/Accept.js +63 -0
- package/src/decorators/dto/Expect.js +57 -0
- package/src/decorators/dto/IndexSignature.js +57 -0
- package/src/decorators/dto/Return.js +63 -0
- package/src/decorators/orm/AfterInsert.js +73 -0
- package/src/decorators/orm/AfterLoad.js +73 -0
- package/src/decorators/orm/AfterRecover.js +73 -0
- package/src/decorators/orm/AfterRemove.js +73 -0
- package/src/decorators/orm/AfterSoftRemove.js +73 -0
- package/src/decorators/orm/AfterUpdate.js +73 -0
- package/src/decorators/orm/BeforeInsert.js +73 -0
- package/src/decorators/orm/BeforeRecover.js +73 -0
- package/src/decorators/orm/BeforeRemove.js +73 -0
- package/src/decorators/orm/BeforeSoftRemove.js +73 -0
- package/src/decorators/orm/BeforeUpdate.js +73 -0
- package/src/decorators/orm/Check.js +76 -0
- package/src/decorators/orm/ChildEntity.js +76 -0
- package/src/decorators/orm/Column.js +108 -0
- package/src/decorators/orm/CreateDateColumn.js +72 -0
- package/src/decorators/orm/DeleteDateColumn.js +72 -0
- package/src/decorators/orm/Entity.js +82 -0
- package/src/decorators/orm/EventSubscriber.js +69 -0
- package/src/decorators/orm/Exclusion.js +76 -0
- package/src/decorators/orm/Generated.js +71 -0
- package/src/decorators/orm/Index.js +88 -0
- package/src/decorators/orm/JoinColumn.js +76 -0
- package/src/decorators/orm/JoinTable.js +77 -0
- package/src/decorators/orm/ManyToMany.js +89 -0
- package/src/decorators/orm/ManyToOne.js +89 -0
- package/src/decorators/orm/ObjectIdColumn.js +75 -0
- package/src/decorators/orm/OneToMany.js +81 -0
- package/src/decorators/orm/OneToOne.js +89 -0
- package/src/decorators/orm/PrimaryColumn.js +96 -0
- package/src/decorators/orm/PrimaryGeneratedColumn.js +101 -0
- package/src/decorators/orm/RelationId.js +73 -0
- package/src/decorators/orm/TableInheritance.js +73 -0
- package/src/decorators/orm/Tree.js +71 -0
- package/src/decorators/orm/TreeChildren.js +78 -0
- package/src/decorators/orm/TreeLevelColumn.js +72 -0
- package/src/decorators/orm/TreeParent.js +78 -0
- package/src/decorators/orm/Unique.js +91 -0
- package/src/decorators/orm/UpdateDateColumn.js +72 -0
- package/src/decorators/orm/VersionColumn.js +72 -0
- package/src/decorators/orm/ViewColumn.js +72 -0
- package/src/decorators/orm/ViewEntity.js +81 -0
- package/src/decorators/orm/VirtualColumn.js +89 -0
- package/src/exceptions/ControllerActionNotFoundException.js +20 -0
- package/src/exceptions/DestroyRuntimeContainerException.js +20 -0
- package/src/exceptions/InvalidActionPatternDepthException.js +20 -0
- package/src/exceptions/InvalidAssistantFunctionTypeException.js +20 -0
- package/src/exceptions/InvalidObjectTypeException.js +20 -0
- package/src/exceptions/MethodNotFoundException.js +20 -0
- package/src/exceptions/alias/AliasExistsException.js +20 -0
- package/src/exceptions/alias/AliasNotFoundException.js +20 -0
- package/src/exceptions/alias/InvalidAliasNameException.js +20 -0
- package/src/exceptions/di/DependencyInjectionException.js +20 -0
- package/src/exceptions/di/LifetimeLockedException.js +20 -0
- package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.js +20 -0
- package/src/exceptions/dto/InvalidMethodAcceptException.js +20 -0
- package/src/exceptions/dto/InvalidMethodReturnException.js +20 -0
- package/src/exceptions/dto/InvalidValueException.js +20 -0
- package/src/exports/ASSTDecorators.d.ts +20 -0
- package/src/exports/ASSTDecorators.js +21 -0
- package/src/exports/COM.d.ts +324 -0
- package/src/exports/COM.js +191 -0
- package/src/exports/CTRLDecorators.d.ts +66 -0
- package/src/exports/CTRLDecorators.js +73 -0
- package/src/exports/DIDecorators.d.ts +55 -0
- package/src/exports/DIDecorators.js +69 -0
- package/src/exports/DTODecorators.d.ts +35 -0
- package/src/exports/DTODecorators.js +65 -0
- package/src/exports/Helpers.d.ts +238 -0
- package/src/exports/Helpers.js +83 -0
- package/src/exports/Lakutata.d.ts +494 -0
- package/src/exports/Lakutata.js +247 -0
- package/{ORM.d.ts → src/exports/ORM.d.ts} +146 -971
- package/src/exports/ORM.js +55 -0
- package/src/exports/ORMDecorators.d.ts +746 -0
- package/src/exports/ORMDecorators.js +129 -0
- package/src/interfaces/IBaseObjectConstructor.js +1 -0
- package/src/interfaces/IConstructor.js +1 -0
- package/src/interfaces/IPatRun.js +1 -0
- package/src/lib/base/BaseObject.js +139 -0
- package/src/lib/base/Context.js +77 -0
- package/src/lib/base/EventEmitter.js +1470 -0
- package/src/lib/base/abstracts/Exception.js +44 -0
- package/src/lib/base/async-constructor/Append.js +25 -0
- package/src/lib/base/async-constructor/AsyncConstructor.js +16 -0
- package/src/lib/base/internal/ApplicationConfigLoader.js +220 -0
- package/src/lib/base/internal/BasicInfo.js +20 -0
- package/src/lib/base/internal/CamelCase.js +16 -0
- package/src/lib/base/internal/ConfigurableRecordsInjection.js +45 -0
- package/src/lib/base/internal/ConstructorSymbol.js +26 -0
- package/src/lib/base/internal/ControllerEntrypoint.js +135 -0
- package/src/lib/base/internal/DataValidator.js +323 -0
- package/src/lib/base/internal/FlexibleDTO.js +59 -0
- package/src/lib/base/internal/MethodAssistantFunction.js +92 -0
- package/src/lib/base/internal/MethodValidation.js +132 -0
- package/src/lib/base/internal/ModuleConfigLoader.js +217 -0
- package/src/lib/base/internal/ObjectConfiguration.js +81 -0
- package/src/lib/base/internal/ObjectContainer.js +16 -0
- package/src/lib/base/internal/ObjectInjection.js +56 -0
- package/src/lib/base/internal/ObjectLifetime.js +36 -0
- package/src/lib/base/internal/ObjectSchemaValidation.js +51 -0
- package/src/lib/base/internal/ObjectType.js +139 -0
- package/src/lib/base/internal/ObjectWeakRefs.js +30 -0
- package/src/lib/base/internal/PatternManager.js +867 -0
- package/src/lib/context/CLIContext.js +69 -0
- package/src/lib/context/HTTPContext.js +77 -0
- package/src/lib/context/ServiceContext.js +75 -0
- package/src/lib/core/Alias.js +84 -0
- package/src/lib/core/Application.js +288 -0
- package/src/lib/core/Component.js +245 -0
- package/src/lib/core/Container.js +139 -0
- package/src/lib/core/Controller.js +161 -0
- package/src/lib/core/DTO.js +51 -0
- package/src/lib/core/Module.js +270 -0
- package/src/lib/core/Provider.js +145 -0
- package/src/lib/core/Time.js +4475 -0
- package/src/lib/ffi/Library.js +30 -0
- package/src/lib/ffi/Union.js +27 -0
- package/src/lib/ffi/interfaces/ICType.js +1 -0
- package/src/lib/ffi/interfaces/ILib.js +1 -0
- package/src/lib/ffi/interfaces/IPointerCast.js +1 -0
- package/src/lib/ffi/interfaces/IRegisteredCallback.js +1 -0
- package/src/lib/ffi/types/ArrayHint.js +1 -0
- package/src/lib/ffi/types/LibFunc.js +1 -0
- package/src/lib/ffi/types/LibFunction.js +1 -0
- package/src/lib/ffi/types/PrimitiveKind.js +1 -0
- package/src/lib/ffi/types/TypeInfo.js +1 -0
- package/src/lib/ffi/types/TypeSpec.js +1 -0
- package/src/lib/ffi/types/TypeSpecWithAlignment.js +1 -0
- package/src/lib/functions/ArrayToSet.js +5 -0
- package/src/lib/functions/As.js +5 -0
- package/src/lib/functions/Delay.js +5 -0
- package/src/lib/functions/DevNull.js +5 -0
- package/src/lib/functions/GetObjectNestingDepth.js +16 -0
- package/src/lib/functions/GetObjectPropertyPaths.js +14 -0
- package/src/lib/functions/GraceExit.js +16 -0
- package/src/lib/functions/IsEmptyObject.js +5 -0
- package/src/lib/functions/IsGlobString.js +3 -0
- package/src/lib/functions/IsHtml.js +20 -0
- package/src/lib/functions/IsNativeFunction.js +14 -0
- package/src/lib/functions/IsPromise.js +7 -0
- package/src/lib/functions/IsPromiseLike.js +11 -0
- package/src/lib/functions/IsSymbol.js +51 -0
- package/src/lib/functions/IsXML.js +1695 -0
- package/src/lib/functions/NoCase.js +39 -0
- package/src/lib/functions/ObjectConstructor.js +7 -0
- package/src/lib/functions/ObjectHash.js +406 -0
- package/src/lib/functions/ObjectParentConstructor.js +8 -0
- package/src/lib/functions/ObjectParentConstructors.js +13 -0
- package/src/lib/functions/ObjectPrototype.js +5 -0
- package/src/lib/functions/SetToArray.js +5 -0
- package/src/lib/functions/Templating.js +55 -0
- package/src/lib/functions/UniqueArray.js +5 -0
- package/src/lib/ioc/DependencyInjectionContainer.js +352 -0
- package/src/lib/ioc/Errors.js +122 -0
- package/src/lib/ioc/FunctionTokenizer.js +212 -0
- package/src/lib/ioc/InjectionMode.js +6 -0
- package/src/lib/ioc/Lifetime.js +11 -0
- package/src/lib/ioc/ListModules.js +71 -0
- package/src/lib/ioc/LoadModules.js +198 -0
- package/src/lib/ioc/ParamParser.js +107 -0
- package/src/lib/ioc/Resolvers.js +265 -0
- package/src/lib/ioc/Utils.js +99 -0
- package/src/lib/validation/VLD.js +10626 -0
- package/src/lib/validation/interfaces/AlternativesSchema.js +1 -0
- package/src/lib/validation/interfaces/AnySchema.js +1 -0
- package/src/lib/validation/interfaces/ArraySchema.js +1 -0
- package/src/lib/validation/interfaces/Base64Options.js +1 -0
- package/src/lib/validation/interfaces/BaseValidationOptions.js +1 -0
- package/src/lib/validation/interfaces/BinarySchema.js +1 -0
- package/src/lib/validation/interfaces/BooleanSchema.js +1 -0
- package/src/lib/validation/interfaces/CustomHelpers.js +1 -0
- package/src/lib/validation/interfaces/DataUriOptions.js +1 -0
- package/src/lib/validation/interfaces/DateSchema.js +1 -0
- package/src/lib/validation/interfaces/DependencyOptions.js +1 -0
- package/src/lib/validation/interfaces/DomainOptions.js +1 -0
- package/src/lib/validation/interfaces/EmailOptions.js +1 -0
- package/src/lib/validation/interfaces/ErrorFormattingOptions.js +1 -0
- package/src/lib/validation/interfaces/ErrorReport.js +1 -0
- package/src/lib/validation/interfaces/ErrorValidationOptions.js +1 -0
- package/src/lib/validation/interfaces/ExtensionFlag.js +1 -0
- package/src/lib/validation/interfaces/ExternalHelpers.js +1 -0
- package/src/lib/validation/interfaces/FunctionSchema.js +1 -0
- package/src/lib/validation/interfaces/GuidOptions.js +1 -0
- package/src/lib/validation/interfaces/HexOptions.js +1 -0
- package/src/lib/validation/interfaces/HierarchySeparatorOptions.js +1 -0
- package/src/lib/validation/interfaces/IpOptions.js +1 -0
- package/src/lib/validation/interfaces/LanguageMessageTemplate.js +1 -0
- package/src/lib/validation/interfaces/LinkSchema.js +1 -0
- package/src/lib/validation/interfaces/NumberSchema.js +1 -0
- package/src/lib/validation/interfaces/ObjectPatternOptions.js +1 -0
- package/src/lib/validation/interfaces/ObjectSchema.js +1 -0
- package/src/lib/validation/interfaces/Reference.js +1 -0
- package/src/lib/validation/interfaces/ReferenceOptions.js +1 -0
- package/src/lib/validation/interfaces/RenameOptions.js +1 -0
- package/src/lib/validation/interfaces/State.js +1 -0
- package/src/lib/validation/interfaces/StringRegexOptions.js +1 -0
- package/src/lib/validation/interfaces/StringSchema.js +1 -0
- package/src/lib/validation/interfaces/SwitchCases.js +1 -0
- package/src/lib/validation/interfaces/SwitchDefault.js +1 -0
- package/src/lib/validation/interfaces/SymbolSchema.js +1 -0
- package/src/lib/validation/interfaces/TopLevelDomainOptions.js +1 -0
- package/src/lib/validation/interfaces/UriOptions.js +1 -0
- package/src/lib/validation/interfaces/ValidationOptions.js +1 -0
- package/src/lib/validation/interfaces/WhenOptions.js +1 -0
- package/src/lib/validation/interfaces/WhenSchemaOptions.js +1 -0
- package/src/lib/validation/types/CustomValidator.js +1 -0
- package/src/lib/validation/types/ExtensionBoundSchema.js +1 -0
- package/src/lib/validation/types/ExternalValidationFunction.js +1 -0
- package/src/lib/validation/types/IsNonPrimitiveSubsetUnion.js +1 -0
- package/src/lib/validation/types/IsPrimitiveSubset.js +1 -0
- package/src/lib/validation/types/IsUnion.js +1 -0
- package/src/lib/validation/types/LanguageMessages.js +1 -0
- package/src/lib/validation/types/NullableType.js +1 -0
- package/src/lib/validation/types/ObjectPropertiesSchema.js +1 -0
- package/src/lib/validation/types/PartialSchemaMap.js +1 -0
- package/src/lib/validation/types/PresenceMode.js +1 -0
- package/src/lib/validation/types/Schema.js +1 -0
- package/src/lib/validation/types/SchemaFunction.js +1 -0
- package/src/lib/validation/types/SchemaLike.js +1 -0
- package/src/lib/validation/types/SchemaLikeWithoutArray.js +1 -0
- package/src/lib/validation/types/SchemaMap.js +1 -0
- package/src/lib/validation/types/StrictSchemaMap.js +1 -0
- package/src/lib/validation/types/Types.js +1 -0
- package/src/options/ApplicationOptions.js +181 -0
- package/src/options/LoadAnonymousObjectOptions.js +147 -0
- package/src/options/LoadNamedObjectOptions.js +145 -0
- package/src/options/LoadObjectOptions.js +139 -0
- package/src/options/ModuleLoadObjectsOptions.js +151 -0
- package/src/options/ModuleOptions.js +184 -0
- package/src/options/OverridableNamedObjectOptions.js +147 -0
- package/src/options/OverridableObjectOptions.js +147 -0
- package/src/tests/App.spec.js +68257 -0
- package/src/tests/UnitTest.spec.js +7 -0
- package/src/tests/components/TestComponent.js +240 -0
- package/src/tests/controllers/TestController1.js +285 -0
- package/src/tests/modules/TestModule.js +210 -0
- package/src/tests/providers/TestProvider.js +157 -0
- package/src/tests/unit/BaseObject.spec.js +216 -0
- package/src/tests/unit/DI.spec.js +241 -0
- package/src/tests/unit/DTO.spec.js +221 -0
- package/src/tests/unit/resources/glob-modules/Test2Obj.js +143 -0
- package/src/tests/unit/resources/glob-modules/TestObj.js +147 -0
- package/src/types/ActionPattern.js +1 -0
- package/src/types/ClassDecorator.js +1 -0
- package/src/types/JSONSchema.js +1 -0
- package/src/types/MethodDecorator.js +1 -0
- package/src/types/ParameterDecorator.js +1 -0
- package/src/types/PropertyDecorator.js +1 -0
- package/tsconfig.json +34 -0
- package/vendor/Package.1.js +42 -0
- package/vendor/Package.10.js +426 -0
- package/vendor/Package.11.js +942 -0
- package/vendor/Package.12.js +6974 -0
- package/vendor/Package.13.js +157 -0
- package/vendor/Package.14.js +5 -0
- package/vendor/Package.15.js +72687 -0
- package/vendor/Package.16.js +1060 -0
- package/vendor/Package.2.js +5940 -0
- package/vendor/Package.3.js +5 -0
- package/vendor/Package.4.js +3 -0
- package/vendor/Package.5.js +1 -0
- package/vendor/Package.6.js +636 -0
- package/vendor/Package.62.js +603 -0
- package/vendor/Package.7.js +1 -0
- package/vendor/Package.8.js +1 -0
- package/vendor/Package.9.js +563 -0
- package/vendor/TypeDef.2.d.ts +4088 -0
- package/vendor/TypeDef.3.d.ts +1111 -0
- package/vendor/TypeDef.4.d.ts +7 -0
- package/vendor/TypeDef.5.d.ts +3 -0
- package/vendor/TypeDef.6.d.ts +6 -0
- package/vendor/TypeDef.7.d.ts +12 -0
- package/{QueryResultCache.d-3950e3fe.d.ts → vendor/TypeDef.8.d.ts} +13302 -11953
- package/vendor/TypeDef.9.d.ts +107 -0
- package/vendor/darwin_arm64_ffi.node +0 -0
- package/vendor/darwin_x64_ffi.node +0 -0
- package/vendor/freebsd_arm64_ffi.node +0 -0
- package/vendor/freebsd_ia32_ffi.node +0 -0
- package/vendor/freebsd_x64_ffi.node +0 -0
- package/vendor/linux_arm32hf_ffi.node +0 -0
- package/vendor/linux_arm64_ffi.node +0 -0
- package/vendor/linux_ia32_ffi.node +0 -0
- package/vendor/linux_riscv64hf64_ffi.node +0 -0
- package/vendor/linux_x64_ffi.node +0 -0
- package/vendor/openbsd_ia32_ffi.node +0 -0
- package/vendor/openbsd_x64_ffi.node +0 -0
- package/vendor/win32_arm64_ffi.node +0 -0
- package/vendor/win32_ia32_ffi.node +0 -0
- package/vendor/win32_x64_ffi.node +0 -0
- package/CLI.d.ts +0 -1
- package/CLI.js +0 -69740
- package/Crypto.d.ts +0 -502
- package/Crypto.js +0 -3802
- package/Hash.d.ts +0 -535
- package/Hash.js +0 -114
- package/Helper.d.ts +0 -270
- package/Helper.js +0 -66
- package/Lakutata.d.ts +0 -7176
- package/Lakutata.js +0 -175
- package/ORM.js +0 -380
- package/ProcessContainer.d.ts +0 -2
- package/ProcessContainer.js +0 -90
- package/README.md +0 -44
- package/ReflectMetadata.js +0 -5
- package/ThreadContainer.d.ts +0 -3
- package/ThreadContainer.js +0 -89
- package/chunk-4SKY6EUL.js +0 -1154
- package/chunk-BSM5H2JD.js +0 -915
- package/chunk-FTN4TYKA.js +0 -56
- package/chunk-KJWPUZI3.js +0 -191
- package/chunk-LZVLY7LZ.js +0 -51
- package/chunk-OLR6HAYL.js +0 -120897
- package/chunk-OZVHXOZU.js +0 -102775
- package/chunk-PMMOEENZ.js +0 -6364
- package/chunk-VLCBJ6IF.js +0 -249
- package/worker.d.ts +0 -2
- package/worker.js +0 -417
- /package/{ReflectMetadata.d.ts → vendor/TypeDef.1.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,46 +1,65 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lakutata",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.2.1-proto.10",
|
|
4
4
|
"description": "An IoC-based universal application framework.",
|
|
5
|
-
"
|
|
6
|
-
"types": "./Lakutata.d.ts",
|
|
5
|
+
"type": "module",
|
|
7
6
|
"exports": {
|
|
8
7
|
".": {
|
|
9
|
-
"import": "./Lakutata.js",
|
|
10
|
-
"
|
|
11
|
-
"types": "./Lakutata.d.ts"
|
|
8
|
+
"import": "./src/exports/Lakutata.js",
|
|
9
|
+
"types": "./src/exports/Lakutata.d.ts"
|
|
12
10
|
},
|
|
13
|
-
"./
|
|
14
|
-
"import": "./ORM.js",
|
|
15
|
-
"
|
|
16
|
-
"types": "./ORM.d.ts"
|
|
11
|
+
"./orm": {
|
|
12
|
+
"import": "./src/exports/ORM.js",
|
|
13
|
+
"types": "./src/exports/ORM.d.ts"
|
|
17
14
|
},
|
|
18
|
-
"./
|
|
19
|
-
"import": "./
|
|
20
|
-
"
|
|
21
|
-
"types": "./Crypto.d.ts"
|
|
15
|
+
"./com": {
|
|
16
|
+
"import": "./src/exports/COM.js",
|
|
17
|
+
"types": "./src/exports/COM.d.ts"
|
|
22
18
|
},
|
|
23
|
-
"./
|
|
24
|
-
"import": "./
|
|
25
|
-
"
|
|
26
|
-
"types": "./Hash.d.ts"
|
|
19
|
+
"./helper": {
|
|
20
|
+
"import": "./src/exports/Helpers.js",
|
|
21
|
+
"types": "./src/exports/Helpers.d.ts"
|
|
27
22
|
},
|
|
28
|
-
"./
|
|
29
|
-
"import": "./
|
|
30
|
-
"
|
|
31
|
-
"types": "./Helper.d.ts"
|
|
23
|
+
"./decorator/asst": {
|
|
24
|
+
"import": "./src/exports/ASSTDecorators.js",
|
|
25
|
+
"types": "./src/exports/ASSTDecorators.d.ts"
|
|
32
26
|
},
|
|
33
|
-
"./
|
|
34
|
-
"import": "./
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
"./decorator/ctrl": {
|
|
28
|
+
"import": "./src/exports/CTRLDecorators.js",
|
|
29
|
+
"types": "./src/exports/CTRLDecorators.d.ts"
|
|
30
|
+
},
|
|
31
|
+
"./decorator/di": {
|
|
32
|
+
"import": "./src/exports/DIDecorators.js",
|
|
33
|
+
"types": "./src/exports/DIDecorators.d.ts"
|
|
34
|
+
},
|
|
35
|
+
"./decorator/dto": {
|
|
36
|
+
"import": "./src/exports/DTODecorators.js",
|
|
37
|
+
"types": "./src/exports/DTODecorators.d.ts"
|
|
38
|
+
},
|
|
39
|
+
"./decorator/orm": {
|
|
40
|
+
"import": "./src/exports/ORMDecorators.js",
|
|
41
|
+
"types": "./src/exports/ORMDecorators.d.ts"
|
|
42
|
+
},
|
|
43
|
+
"./tsconfig.json": "./tsconfig.json",
|
|
44
|
+
"./package.json": "./package.json"
|
|
38
45
|
},
|
|
39
|
-
"
|
|
40
|
-
"
|
|
46
|
+
"release-it": {
|
|
47
|
+
"npm": {
|
|
48
|
+
"publish": false
|
|
49
|
+
},
|
|
50
|
+
"git": {
|
|
51
|
+
"requireCleanWorkingDir": true,
|
|
52
|
+
"requireBranch": false,
|
|
53
|
+
"commitMessage": "chore: release v${version}",
|
|
54
|
+
"push": false
|
|
55
|
+
},
|
|
56
|
+
"github": {
|
|
57
|
+
"release": true,
|
|
58
|
+
"autoGenerate": true
|
|
59
|
+
}
|
|
41
60
|
},
|
|
42
61
|
"engines": {
|
|
43
|
-
"node": ">=
|
|
62
|
+
"node": ">=20"
|
|
44
63
|
},
|
|
45
64
|
"author": "alex.ma",
|
|
46
65
|
"license": "MIT",
|
|
@@ -60,17 +79,6 @@
|
|
|
60
79
|
"keywords": [
|
|
61
80
|
"lakutata",
|
|
62
81
|
"framework",
|
|
63
|
-
"typescript"
|
|
64
|
-
"alias",
|
|
65
|
-
"cjs",
|
|
66
|
-
"ioc",
|
|
67
|
-
"di",
|
|
68
|
-
"process",
|
|
69
|
-
"thread",
|
|
70
|
-
"worker",
|
|
71
|
-
"daemon",
|
|
72
|
-
"rbac",
|
|
73
|
-
"casbin",
|
|
74
|
-
"typeorm"
|
|
82
|
+
"typescript"
|
|
75
83
|
]
|
|
76
84
|
}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { _ as t, a as e } from "../../vendor/Package.9.js";
|
|
2
|
+
|
|
3
|
+
import { Configurable as r } from "../decorators/di/Configurable.js";
|
|
4
|
+
|
|
5
|
+
import { Component as i } from "../lib/core/Component.js";
|
|
6
|
+
|
|
7
|
+
import { D as o } from "../../vendor/Package.16.js";
|
|
8
|
+
|
|
9
|
+
import { Singleton as a } from "../decorators/di/Lifetime.js";
|
|
10
|
+
|
|
11
|
+
import "../lib/base/internal/ObjectConfiguration.js";
|
|
12
|
+
|
|
13
|
+
import "../constants/metadata-keys/DIMetadataKey.js";
|
|
14
|
+
|
|
15
|
+
import "../../vendor/Package.11.js";
|
|
16
|
+
|
|
17
|
+
import "../../vendor/Package.1.js";
|
|
18
|
+
|
|
19
|
+
import "../../vendor/Package.12.js";
|
|
20
|
+
|
|
21
|
+
import "../lib/base/internal/DataValidator.js";
|
|
22
|
+
|
|
23
|
+
import "node:util/types";
|
|
24
|
+
|
|
25
|
+
import "../lib/validation/VLD.js";
|
|
26
|
+
|
|
27
|
+
import "../../vendor/Package.7.js";
|
|
28
|
+
|
|
29
|
+
import "url";
|
|
30
|
+
|
|
31
|
+
import "../../vendor/Package.5.js";
|
|
32
|
+
|
|
33
|
+
import "util";
|
|
34
|
+
|
|
35
|
+
import "../exceptions/dto/InvalidValueException.js";
|
|
36
|
+
|
|
37
|
+
import "../lib/base/abstracts/Exception.js";
|
|
38
|
+
|
|
39
|
+
import "../lib/base/internal/BasicInfo.js";
|
|
40
|
+
|
|
41
|
+
import "../lib/functions/As.js";
|
|
42
|
+
|
|
43
|
+
import "../lib/functions/Templating.js";
|
|
44
|
+
|
|
45
|
+
import "../lib/base/internal/CamelCase.js";
|
|
46
|
+
|
|
47
|
+
import "../lib/functions/NoCase.js";
|
|
48
|
+
|
|
49
|
+
import "../../vendor/Package.13.js";
|
|
50
|
+
|
|
51
|
+
import "../lib/functions/IsHtml.js";
|
|
52
|
+
|
|
53
|
+
import "../lib/functions/IsXML.js";
|
|
54
|
+
|
|
55
|
+
import "../constants/metadata-keys/DTOMetadataKey.js";
|
|
56
|
+
|
|
57
|
+
import "../lib/functions/ObjectConstructor.js";
|
|
58
|
+
|
|
59
|
+
import "../lib/functions/ObjectParentConstructors.js";
|
|
60
|
+
|
|
61
|
+
import "../lib/functions/ObjectParentConstructor.js";
|
|
62
|
+
|
|
63
|
+
import "../lib/functions/ObjectPrototype.js";
|
|
64
|
+
|
|
65
|
+
import "../../vendor/Package.10.js";
|
|
66
|
+
|
|
67
|
+
import "../lib/base/async-constructor/AsyncConstructor.js";
|
|
68
|
+
|
|
69
|
+
import "../lib/base/async-constructor/Append.js";
|
|
70
|
+
|
|
71
|
+
import "../lib/functions/IsPromiseLike.js";
|
|
72
|
+
|
|
73
|
+
import "../lib/functions/IsPromise.js";
|
|
74
|
+
|
|
75
|
+
import "util/types";
|
|
76
|
+
|
|
77
|
+
import "../exceptions/MethodNotFoundException.js";
|
|
78
|
+
|
|
79
|
+
import "../lib/ioc/DependencyInjectionContainer.js";
|
|
80
|
+
|
|
81
|
+
import "../lib/ioc/Errors.js";
|
|
82
|
+
|
|
83
|
+
import "../exceptions/di/DependencyInjectionException.js";
|
|
84
|
+
|
|
85
|
+
import "../lib/base/internal/ConstructorSymbol.js";
|
|
86
|
+
|
|
87
|
+
import "node:crypto";
|
|
88
|
+
|
|
89
|
+
import "../lib/ioc/InjectionMode.js";
|
|
90
|
+
|
|
91
|
+
import "../lib/ioc/Lifetime.js";
|
|
92
|
+
|
|
93
|
+
import "../../vendor/Package.2.js";
|
|
94
|
+
|
|
95
|
+
import "../../vendor/Package.3.js";
|
|
96
|
+
|
|
97
|
+
import "os";
|
|
98
|
+
|
|
99
|
+
import "stream";
|
|
100
|
+
|
|
101
|
+
import "events";
|
|
102
|
+
|
|
103
|
+
import "../../vendor/Package.4.js";
|
|
104
|
+
|
|
105
|
+
import "path";
|
|
106
|
+
|
|
107
|
+
import "fs";
|
|
108
|
+
|
|
109
|
+
import "../lib/ioc/Utils.js";
|
|
110
|
+
|
|
111
|
+
import "../lib/ioc/FunctionTokenizer.js";
|
|
112
|
+
|
|
113
|
+
import "../lib/ioc/LoadModules.js";
|
|
114
|
+
|
|
115
|
+
import "../lib/ioc/Resolvers.js";
|
|
116
|
+
|
|
117
|
+
import "../lib/ioc/ParamParser.js";
|
|
118
|
+
|
|
119
|
+
import "../lib/base/internal/ObjectLifetime.js";
|
|
120
|
+
|
|
121
|
+
import "../exceptions/di/LifetimeLockedException.js";
|
|
122
|
+
|
|
123
|
+
import "../lib/base/internal/ObjectWeakRefs.js";
|
|
124
|
+
|
|
125
|
+
import "../lib/base/internal/ConfigurableRecordsInjection.js";
|
|
126
|
+
|
|
127
|
+
import "../lib/base/internal/ObjectInjection.js";
|
|
128
|
+
|
|
129
|
+
import "../lib/base/internal/ObjectContainer.js";
|
|
130
|
+
|
|
131
|
+
import "../lib/functions/DevNull.js";
|
|
132
|
+
|
|
133
|
+
import "../decorators/dto/Expect.js";
|
|
134
|
+
|
|
135
|
+
import "../decorators/dto/IndexSignature.js";
|
|
136
|
+
|
|
137
|
+
import "../decorators/dto/Accept.js";
|
|
138
|
+
|
|
139
|
+
import "../lib/base/internal/MethodValidation.js";
|
|
140
|
+
|
|
141
|
+
import "../exceptions/dto/InvalidMethodAcceptException.js";
|
|
142
|
+
|
|
143
|
+
import "../exceptions/dto/InvalidMethodReturnException.js";
|
|
144
|
+
|
|
145
|
+
import "../lib/functions/IsEmptyObject.js";
|
|
146
|
+
|
|
147
|
+
import "../lib/base/EventEmitter.js";
|
|
148
|
+
|
|
149
|
+
import "../lib/core/Provider.js";
|
|
150
|
+
|
|
151
|
+
import "../../vendor/Package.15.js";
|
|
152
|
+
|
|
153
|
+
import "../../vendor/Package.14.js";
|
|
154
|
+
|
|
155
|
+
import "../../vendor/Package.8.js";
|
|
156
|
+
|
|
157
|
+
import "crypto";
|
|
158
|
+
|
|
159
|
+
import "../../vendor/Package.6.js";
|
|
160
|
+
|
|
161
|
+
import "module";
|
|
162
|
+
|
|
163
|
+
import "buffer";
|
|
164
|
+
|
|
165
|
+
import "tty";
|
|
166
|
+
|
|
167
|
+
import "fs/promises";
|
|
168
|
+
|
|
169
|
+
import "string_decoder";
|
|
170
|
+
|
|
171
|
+
let s = class t extends i {
|
|
172
|
+
#t;
|
|
173
|
+
get datasource() {
|
|
174
|
+
return this.#t;
|
|
175
|
+
}
|
|
176
|
+
get driver() {
|
|
177
|
+
return this.datasource.driver;
|
|
178
|
+
}
|
|
179
|
+
get manager() {
|
|
180
|
+
return this.datasource.manager;
|
|
181
|
+
}
|
|
182
|
+
set namingStrategy(t) {
|
|
183
|
+
this.datasource.namingStrategy = t;
|
|
184
|
+
}
|
|
185
|
+
get namingStrategy() {
|
|
186
|
+
return this.datasource.namingStrategy;
|
|
187
|
+
}
|
|
188
|
+
get subscribers() {
|
|
189
|
+
return this.datasource.subscribers;
|
|
190
|
+
}
|
|
191
|
+
get entityMetadatas() {
|
|
192
|
+
return this.datasource.entityMetadatas;
|
|
193
|
+
}
|
|
194
|
+
get entityMetadatasMap() {
|
|
195
|
+
return this.datasource.entityMetadatasMap;
|
|
196
|
+
}
|
|
197
|
+
get queryResultCache() {
|
|
198
|
+
return this.datasource.queryResultCache;
|
|
199
|
+
}
|
|
200
|
+
async init() {
|
|
201
|
+
this.#t = await new o.DataSource(this.options).initialize();
|
|
202
|
+
}
|
|
203
|
+
async destroy() {
|
|
204
|
+
await this.datasource.destroy();
|
|
205
|
+
}
|
|
206
|
+
async synchronize(t) {
|
|
207
|
+
return await this.datasource.synchronize(t);
|
|
208
|
+
}
|
|
209
|
+
async runMigrations(t) {
|
|
210
|
+
return await this.datasource.runMigrations(t);
|
|
211
|
+
}
|
|
212
|
+
async undoLastMigration(t) {
|
|
213
|
+
return await this.datasource.undoLastMigration(t);
|
|
214
|
+
}
|
|
215
|
+
async showMigrations() {
|
|
216
|
+
return await this.datasource.showMigrations();
|
|
217
|
+
}
|
|
218
|
+
hasMetadata(t) {
|
|
219
|
+
return this.datasource.hasMetadata(t);
|
|
220
|
+
}
|
|
221
|
+
getMetadata(t) {
|
|
222
|
+
return this.datasource.getMetadata(t);
|
|
223
|
+
}
|
|
224
|
+
getRepository(t) {
|
|
225
|
+
return this.datasource.getRepository(t);
|
|
226
|
+
}
|
|
227
|
+
getTreeRepository(t) {
|
|
228
|
+
return this.datasource.getTreeRepository(t);
|
|
229
|
+
}
|
|
230
|
+
getMongoRepository(t) {
|
|
231
|
+
return this.datasource.getMongoRepository(t);
|
|
232
|
+
}
|
|
233
|
+
async transaction(t, e) {
|
|
234
|
+
return e ? await this.datasource.transaction(t, e) : await this.datasource.transaction(t);
|
|
235
|
+
}
|
|
236
|
+
async query(t, e, r) {
|
|
237
|
+
return await this.datasource.query(t, e, r);
|
|
238
|
+
}
|
|
239
|
+
createQueryBuilder(t, e, r) {
|
|
240
|
+
return arguments.length > 1 ? this.datasource.createQueryBuilder(t, e, r) : this.datasource.createQueryBuilder(t);
|
|
241
|
+
}
|
|
242
|
+
createQueryRunner(t) {
|
|
243
|
+
return this.datasource.createQueryRunner(t);
|
|
244
|
+
}
|
|
245
|
+
getManyToManyMetadata(t, e) {
|
|
246
|
+
return this.datasource.getManyToManyMetadata(t, e);
|
|
247
|
+
}
|
|
248
|
+
createEntityManager(t) {
|
|
249
|
+
return this.datasource.createEntityManager(t);
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
t([ r(), e("design:type", Object) ], s.prototype, "options", void 0);
|
|
254
|
+
|
|
255
|
+
s = t([ a() ], s);
|
|
256
|
+
|
|
257
|
+
export { s as Database };
|