lakutata 2.0.81 → 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/orm.cjs +731 -731
- package/orm.mjs +835 -835
- 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 +94 -94
- package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +100 -100
- 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 +10 -10
- package/src/components/docker/ConnectionOptionsBuilder.mjs +6 -6
- package/src/components/docker/Docker.cjs +1687 -1687
- package/src/components/docker/Docker.mjs +1563 -1563
- 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 +1789 -1789
- package/src/components/entrypoint/Entrypoint.mjs +1632 -1632
- 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/lib/base/EventEmitter.cjs +238 -238
- package/src/lib/base/EventEmitter.mjs +221 -221
- 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 +70 -70
- package/src/lib/base/internal/DataValidator.mjs +137 -137
- 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 +235 -235
- package/src/lib/base/internal/PatternManager.mjs +233 -233
- 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 +57 -57
- package/src/lib/core/Application.mjs +63 -63
- 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 +23 -7
- package/src/lib/helpers/IsHtml.mjs +23 -7
- 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 +1502 -1650
- package/src/lib/helpers/IsXML.mjs +1500 -1648
- 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 +234 -234
- package/src/lib/helpers/ObjectHash.mjs +227 -227
- 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 +82 -82
- package/src/lib/helpers/RandomString.mjs +67 -67
- 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 +234 -234
- package/src/lib/helpers/URLBuilder.mjs +231 -231
- 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 +3359 -3359
- package/src/lib/ioc/ListModules.mjs +2274 -2274
- 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 +1124 -1124
- package/src/lib/validation/VLD.mjs +1113 -1113
- 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/vendor/Package.1.cjs +256 -256
- package/vendor/Package.1.mjs +254 -254
- package/vendor/Package.112.cjs +32208 -32208
- package/vendor/Package.112.mjs +32111 -32111
- package/vendor/Package.13.cjs +36 -36
- package/vendor/Package.13.mjs +24 -24
- package/vendor/Package.16.cjs +10312 -10312
- package/vendor/Package.16.mjs +10309 -10309
- package/vendor/Package.17.cjs +924 -924
- package/vendor/Package.17.mjs +943 -943
- package/vendor/Package.18.cjs +19 -19
- package/vendor/Package.18.mjs +21 -21
- package/vendor/Package.19.cjs +19 -19
- package/vendor/Package.19.mjs +20 -20
- package/vendor/Package.2.cjs +3913 -3913
- package/vendor/Package.2.mjs +3931 -3931
- package/vendor/Package.20.cjs +16 -16
- package/vendor/Package.20.mjs +12 -12
- package/vendor/Package.21.cjs +19 -19
- package/vendor/Package.21.mjs +17 -17
- package/vendor/Package.22.cjs +11 -11
- package/vendor/Package.22.mjs +12 -12
- package/vendor/Package.23.cjs +8 -8
- package/vendor/Package.23.mjs +12 -12
- package/vendor/Package.24.cjs +16 -16
- package/vendor/Package.24.mjs +14 -14
- package/vendor/Package.25.cjs +11 -11
- package/vendor/Package.25.mjs +12 -12
- package/vendor/Package.26.cjs +19 -19
- package/vendor/Package.26.mjs +12 -12
- package/vendor/Package.27.cjs +16 -16
- package/vendor/Package.27.mjs +6 -6
- package/vendor/Package.28.cjs +19 -19
- package/vendor/Package.28.mjs +17 -17
- package/vendor/Package.29.cjs +15 -15
- package/vendor/Package.29.mjs +13 -13
- package/vendor/Package.3.cjs +60 -60
- package/vendor/Package.3.mjs +85 -85
- package/vendor/Package.30.cjs +9 -9
- package/vendor/Package.30.mjs +9 -9
- package/vendor/Package.31.cjs +14 -14
- package/vendor/Package.31.mjs +27 -27
- package/vendor/Package.32.cjs +11 -11
- package/vendor/Package.32.mjs +11 -11
- package/vendor/Package.33.cjs +4 -4
- package/vendor/Package.33.mjs +6 -6
- package/vendor/Package.34.cjs +10 -10
- package/vendor/Package.34.mjs +23 -23
- package/vendor/Package.35.cjs +6 -6
- package/vendor/Package.35.mjs +16 -16
- package/vendor/Package.36.cjs +17 -17
- package/vendor/Package.36.mjs +21 -21
- package/vendor/Package.37.cjs +15 -15
- package/vendor/Package.37.mjs +17 -17
- package/vendor/Package.38.cjs +12 -12
- package/vendor/Package.38.mjs +16 -16
- package/vendor/Package.39.cjs +17 -17
- package/vendor/Package.39.mjs +13 -13
- package/vendor/Package.4.cjs +412 -412
- package/vendor/Package.4.mjs +537 -537
- package/vendor/Package.40.cjs +5 -5
- package/vendor/Package.40.mjs +6 -6
- package/vendor/Package.41.cjs +18 -18
- package/vendor/Package.41.mjs +17 -17
- package/vendor/Package.42.cjs +24 -24
- package/vendor/Package.42.mjs +17 -17
- package/vendor/Package.43.cjs +5 -5
- package/vendor/Package.43.mjs +19 -19
- package/vendor/Package.44.cjs +16 -16
- package/vendor/Package.44.mjs +13 -13
- package/vendor/Package.45.cjs +21 -21
- package/vendor/Package.45.mjs +22 -22
- package/vendor/Package.46.cjs +6 -6
- package/vendor/Package.46.mjs +22 -22
- package/vendor/Package.47.cjs +16 -16
- package/vendor/Package.47.mjs +29 -29
- package/vendor/Package.48.cjs +8 -8
- package/vendor/Package.48.mjs +16 -16
- package/vendor/Package.49.cjs +6 -6
- package/vendor/Package.49.mjs +20 -20
- package/vendor/Package.5.cjs +10 -10
- package/vendor/Package.5.mjs +9 -9
- package/vendor/Package.50.cjs +13 -13
- package/vendor/Package.50.mjs +14 -14
- package/vendor/Package.51.cjs +18 -18
- package/vendor/Package.51.mjs +23 -23
- package/vendor/Package.52.cjs +4 -4
- package/vendor/Package.52.mjs +5 -5
- package/vendor/Package.53.cjs +6 -6
- package/vendor/Package.53.mjs +8 -8
- package/vendor/Package.54.cjs +30 -30
- package/vendor/Package.54.mjs +29 -29
- package/vendor/Package.55.cjs +16 -16
- package/vendor/Package.55.mjs +20 -20
- package/vendor/Package.56.cjs +14 -14
- package/vendor/Package.56.mjs +18 -18
- package/vendor/Package.57.cjs +6 -6
- package/vendor/Package.57.mjs +17 -17
- package/vendor/Package.58.cjs +22 -22
- package/vendor/Package.58.mjs +19 -19
- package/vendor/Package.59.cjs +18 -18
- package/vendor/Package.59.mjs +13 -13
- package/vendor/Package.6.cjs +1739 -1739
- package/vendor/Package.6.mjs +1739 -1739
- package/vendor/Package.60.cjs +13553 -13553
- package/vendor/Package.60.mjs +13562 -13562
- 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 +292 -292
- package/vendor/Package.62.mjs +312 -312
- 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 +1833 -1833
- package/vendor/Package.65.mjs +1656 -1656
- 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 +115 -256
- package/vendor/Package.68.mjs +134 -268
- 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 +45 -45
- package/vendor/Package.9.mjs +79 -79
package/vendor/Package.3.mjs
CHANGED
|
@@ -14,25 +14,25 @@ import { GetConfigurableRecords as a, SetIdToInstance as c, SetConfigurableRecor
|
|
|
14
14
|
|
|
15
15
|
import { GetObjectConfigurableProperties as p } from "../src/lib/base/internal/ObjectConfiguration.mjs";
|
|
16
16
|
|
|
17
|
-
import { GetObjectIsAutoload as
|
|
17
|
+
import { GetObjectIsAutoload as f, GetObjectInjectItemsByPrototype as u } from "../src/lib/base/internal/ObjectInjection.mjs";
|
|
18
18
|
|
|
19
19
|
import { SetObjectContainerGetter as b } from "../src/lib/base/internal/ObjectContainer.mjs";
|
|
20
20
|
|
|
21
|
-
import { D as y, I as
|
|
21
|
+
import { D as y, I as j } from "./Package.2.mjs";
|
|
22
22
|
|
|
23
|
-
import { ObjectConstructor as
|
|
23
|
+
import { ObjectConstructor as O } from "../src/lib/helpers/ObjectConstructor.mjs";
|
|
24
24
|
|
|
25
|
-
import { As as
|
|
25
|
+
import { As as g } from "../src/lib/helpers/As.mjs";
|
|
26
26
|
|
|
27
|
-
import { DevNull as
|
|
27
|
+
import { DevNull as w } from "../src/lib/helpers/DevNull.mjs";
|
|
28
28
|
|
|
29
29
|
import { ObjectParentConstructors as P } from "../src/lib/helpers/ObjectParentConstructors.mjs";
|
|
30
30
|
|
|
31
|
-
import { DependencyInjectionException as
|
|
31
|
+
import { DependencyInjectionException as S } from "../src/exceptions/di/DependencyInjectionException.mjs";
|
|
32
32
|
|
|
33
|
-
import { ConstructorSymbol as
|
|
33
|
+
import { ConstructorSymbol as C } from "../src/lib/base/internal/ConstructorSymbol.mjs";
|
|
34
34
|
|
|
35
|
-
import { Expect as
|
|
35
|
+
import { Expect as R } from "../src/decorators/dto/Expect.mjs";
|
|
36
36
|
|
|
37
37
|
import { IndexSignature as N } from "../src/decorators/dto/IndexSignature.mjs";
|
|
38
38
|
|
|
@@ -40,35 +40,35 @@ import { asValue as v, asClass as I } from "../src/lib/ioc/Resolvers.mjs";
|
|
|
40
40
|
|
|
41
41
|
import { GetObjectLifetime as E } from "../src/lib/base/internal/ObjectLifetime.mjs";
|
|
42
42
|
|
|
43
|
-
import { Accept as
|
|
43
|
+
import { Accept as T } from "../src/decorators/dto/Accept.mjs";
|
|
44
44
|
|
|
45
|
-
import { listModules as
|
|
45
|
+
import { listModules as M } from "../src/lib/ioc/ListModules.mjs";
|
|
46
46
|
|
|
47
|
-
import { pathToFileURL as
|
|
47
|
+
import { pathToFileURL as A } from "url";
|
|
48
48
|
|
|
49
|
-
import { isClass as
|
|
49
|
+
import { isClass as D } from "../src/lib/ioc/Utils.mjs";
|
|
50
50
|
|
|
51
|
-
import { IsEmptyObject as
|
|
51
|
+
import { IsEmptyObject as L } from "../src/lib/helpers/IsEmptyObject.mjs";
|
|
52
52
|
|
|
53
|
-
import { AppendObjectWeakRefs as
|
|
53
|
+
import { AppendObjectWeakRefs as k, GetObjectWeakRefs as G, ClearObjectWeakRefs as U } from "../src/lib/base/internal/ObjectWeakRefs.mjs";
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var x;
|
|
56
56
|
|
|
57
|
-
const
|
|
57
|
+
const B = Symbol("OBJECT_ID");
|
|
58
58
|
|
|
59
|
-
let
|
|
59
|
+
let _ = class LoadObjectOptions extends y {
|
|
60
60
|
static {
|
|
61
|
-
|
|
61
|
+
x = B;
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
t([
|
|
65
|
+
t([ R(y.Alternatives(y.String(), y.Symbol()).optional()), e("design:type", Object) ], _.prototype, x, void 0);
|
|
66
66
|
|
|
67
|
-
t([
|
|
67
|
+
t([ R(y.Class((() => H)).required()), e("design:type", Object) ], _.prototype, "class", void 0);
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
_ = t([ N(y.Any()) ], _);
|
|
70
70
|
|
|
71
|
-
const
|
|
71
|
+
const F = Symbol("LAKUTATA.DI.CONTAINER.SYMBOL");
|
|
72
72
|
|
|
73
73
|
const Y = Symbol("LAKUTATA.DI.OWNER.SYMBOL");
|
|
74
74
|
|
|
@@ -86,14 +86,14 @@ class Container {
|
|
|
86
86
|
strict: false
|
|
87
87
|
});
|
|
88
88
|
if (this.parent) this.parent.#e.add(this);
|
|
89
|
-
this.#t.register(
|
|
89
|
+
this.#t.register(F, v(this));
|
|
90
90
|
if (e) this.#t.register(Y, v(new WeakRef(e)));
|
|
91
91
|
}
|
|
92
92
|
async disposer(t) {
|
|
93
93
|
try {
|
|
94
|
-
await t.getMethod(
|
|
94
|
+
await t.getMethod(W, false)();
|
|
95
95
|
} catch (t) {
|
|
96
|
-
|
|
96
|
+
w(t);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
buildResolverOptions(t) {
|
|
@@ -104,11 +104,11 @@ class Container {
|
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
async processResolved(t, e, s = {}) {
|
|
107
|
-
const i = a(
|
|
108
|
-
const r = y.isValid(t.constructor, y.Class(
|
|
107
|
+
const i = a(g(t.constructor), e);
|
|
108
|
+
const r = y.isValid(t.constructor, y.Class(H));
|
|
109
109
|
if (r) {
|
|
110
|
-
c(
|
|
111
|
-
l(
|
|
110
|
+
c(g(t), e);
|
|
111
|
+
l(g(t), {
|
|
112
112
|
...i,
|
|
113
113
|
...s
|
|
114
114
|
});
|
|
@@ -117,7 +117,7 @@ class Container {
|
|
|
117
117
|
}
|
|
118
118
|
buildNameAndRegistrationPairFromOptions(t) {
|
|
119
119
|
const e = {};
|
|
120
|
-
const s = t[
|
|
120
|
+
const s = t[B] ? t[B] : C(t.class);
|
|
121
121
|
const i = {
|
|
122
122
|
...t,
|
|
123
123
|
class: void 0
|
|
@@ -130,15 +130,15 @@ class Container {
|
|
|
130
130
|
}
|
|
131
131
|
async buildNameAndRegistrationPairFromGlob(t) {
|
|
132
132
|
const e = [];
|
|
133
|
-
|
|
133
|
+
M(t).forEach((t => {
|
|
134
134
|
e.push(new Promise((e => {
|
|
135
|
-
import(
|
|
135
|
+
import(A(t.path).toString()).then((t => {
|
|
136
136
|
Object.keys(t).forEach((s => {
|
|
137
137
|
const i = t[s];
|
|
138
|
-
if (
|
|
138
|
+
if (D(i) && y.isValid(i, y.Class(H))) {
|
|
139
139
|
const t = i;
|
|
140
140
|
const s = {};
|
|
141
|
-
s[
|
|
141
|
+
s[C(t)] = I(t, this.buildResolverOptions(t));
|
|
142
142
|
return e(s);
|
|
143
143
|
} else {
|
|
144
144
|
return e({});
|
|
@@ -169,16 +169,16 @@ class Container {
|
|
|
169
169
|
t.forEach((t => {
|
|
170
170
|
if (typeof t === "string") {
|
|
171
171
|
s.push(new Promise(((e, s) => this.buildNameAndRegistrationPairFromGlob(t).then(e).catch(s))));
|
|
172
|
-
} else if (
|
|
172
|
+
} else if (D(g(t))) {
|
|
173
173
|
const s = {
|
|
174
|
-
class:
|
|
174
|
+
class: g(t)
|
|
175
175
|
};
|
|
176
176
|
e = {
|
|
177
177
|
...e,
|
|
178
178
|
...this.buildNameAndRegistrationPairFromOptions(s)
|
|
179
179
|
};
|
|
180
180
|
} else {
|
|
181
|
-
const s =
|
|
181
|
+
const s = g(t);
|
|
182
182
|
e = {
|
|
183
183
|
...e,
|
|
184
184
|
...this.buildNameAndRegistrationPairFromOptions(s)
|
|
@@ -194,24 +194,24 @@ class Container {
|
|
|
194
194
|
};
|
|
195
195
|
}));
|
|
196
196
|
}
|
|
197
|
-
if (!
|
|
197
|
+
if (!L(e)) {
|
|
198
198
|
Object.getOwnPropertyNames(e).forEach((t => this.injectionNames.add(t)));
|
|
199
199
|
Object.getOwnPropertySymbols(e).forEach((t => this.injectionNames.add(t)));
|
|
200
200
|
this.#t.register(e);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
async get(t, e = {}) {
|
|
204
|
-
const s = typeof t === "function" ?
|
|
205
|
-
if (!this.#t.hasRegistration(s) && typeof t === "function" &&
|
|
204
|
+
const s = typeof t === "function" ? C(t) : t;
|
|
205
|
+
if (!this.#t.hasRegistration(s) && typeof t === "function" && f(g(t))) {
|
|
206
206
|
await this.load([ {
|
|
207
207
|
id: s,
|
|
208
|
-
class:
|
|
208
|
+
class: g(t)
|
|
209
209
|
} ]);
|
|
210
210
|
}
|
|
211
211
|
return (this.#t.getRegistration(s)?.lifetime === "SINGLETON" || this.#t.getRegistration(s)?.lifetime === "MODULE_SINGLETON") && !this.injectionNames.has(s) && this.parent ? await this.parent.get(s, e) : await this.processResolved(this.#t.resolve(s), s, e);
|
|
212
212
|
}
|
|
213
213
|
has(t) {
|
|
214
|
-
if (typeof t === "function") return this.#t.hasRegistration(
|
|
214
|
+
if (typeof t === "function") return this.#t.hasRegistration(C(t));
|
|
215
215
|
return this.#t.hasRegistration(t);
|
|
216
216
|
}
|
|
217
217
|
async set(t, e = {}) {
|
|
@@ -225,7 +225,7 @@ class Container {
|
|
|
225
225
|
await this.load([ {
|
|
226
226
|
...s,
|
|
227
227
|
class: e,
|
|
228
|
-
[
|
|
228
|
+
[B]: t
|
|
229
229
|
} ]);
|
|
230
230
|
return await this.get(t);
|
|
231
231
|
}
|
|
@@ -239,12 +239,12 @@ class Container {
|
|
|
239
239
|
await this.load([ {
|
|
240
240
|
...s,
|
|
241
241
|
class: e,
|
|
242
|
-
[
|
|
242
|
+
[B]: t
|
|
243
243
|
} ]);
|
|
244
244
|
}
|
|
245
245
|
async build(t, e = {}) {
|
|
246
|
-
const s = await this.processResolved(this.#t.build(t, this.buildResolverOptions(t)),
|
|
247
|
-
|
|
246
|
+
const s = await this.processResolved(this.#t.build(t, this.buildResolverOptions(t)), C(t), e);
|
|
247
|
+
k(this.#t, s);
|
|
248
248
|
return s;
|
|
249
249
|
}
|
|
250
250
|
createScope() {
|
|
@@ -259,18 +259,18 @@ class Container {
|
|
|
259
259
|
await Promise.all(t);
|
|
260
260
|
await this.#t.dispose();
|
|
261
261
|
const e = [];
|
|
262
|
-
|
|
262
|
+
G(this.#t).forEach((t => {
|
|
263
263
|
let s = t.deref();
|
|
264
264
|
if (!s) return;
|
|
265
|
-
if (s[
|
|
266
|
-
e.push(new Promise((t => s ? Promise.resolve(s[
|
|
265
|
+
if (s[W]) {
|
|
266
|
+
e.push(new Promise((t => s ? Promise.resolve(s[W]()).then((() => {
|
|
267
267
|
s = undefined;
|
|
268
268
|
return t();
|
|
269
|
-
})).catch(
|
|
269
|
+
})).catch(w) : t())));
|
|
270
270
|
}
|
|
271
271
|
}));
|
|
272
272
|
await Promise.all(e);
|
|
273
|
-
|
|
273
|
+
U(this.#t);
|
|
274
274
|
}
|
|
275
275
|
async destroy() {
|
|
276
276
|
if (this.#s) return;
|
|
@@ -280,7 +280,7 @@ class Container {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
t([
|
|
283
|
+
t([ T(y.Array(y.Alternatives(_.Schema(), y.Class((() => H)), y.Glob()))), e("design:type", Function), e("design:paramtypes", [ Array ]), e("design:returntype", Promise) ], Container.prototype, "load", null);
|
|
284
284
|
|
|
285
285
|
const $ = Symbol("OBJECT.TYPE");
|
|
286
286
|
|
|
@@ -295,16 +295,16 @@ var q;
|
|
|
295
295
|
t["Module"] = "Module";
|
|
296
296
|
})(q || (q = {}));
|
|
297
297
|
|
|
298
|
-
function
|
|
299
|
-
return e =>
|
|
298
|
+
function DefineObjectType(t) {
|
|
299
|
+
return e => SetObjectType(e, t);
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
function
|
|
303
|
-
Reflect.defineMetadata($, y.isValid(t, y.Class(
|
|
302
|
+
function SetObjectType(t, e) {
|
|
303
|
+
Reflect.defineMetadata($, y.isValid(t, y.Class(H)) ? e : q.Unknown, t);
|
|
304
304
|
return t;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
-
function
|
|
307
|
+
function GetObjectType(t) {
|
|
308
308
|
if (Reflect.hasOwnMetadata($, t)) return Reflect.getOwnMetadata($, t);
|
|
309
309
|
let e = q.Unknown;
|
|
310
310
|
for (const s of P(t)) {
|
|
@@ -313,23 +313,23 @@ function V(t) {
|
|
|
313
313
|
break;
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
|
|
317
|
-
return
|
|
316
|
+
SetObjectType(t, e);
|
|
317
|
+
return GetObjectType(t);
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
var
|
|
320
|
+
var z;
|
|
321
321
|
|
|
322
|
-
var
|
|
322
|
+
var J;
|
|
323
323
|
|
|
324
|
-
const
|
|
324
|
+
const V = Symbol("__init");
|
|
325
325
|
|
|
326
|
-
const
|
|
326
|
+
const W = Symbol("__destroy");
|
|
327
327
|
|
|
328
|
-
const
|
|
328
|
+
const K = Symbol("anonymous");
|
|
329
329
|
|
|
330
|
-
const
|
|
330
|
+
const X = Symbol("OBJECT.SYMBOL.PROPERTY");
|
|
331
331
|
|
|
332
|
-
let
|
|
332
|
+
let H = J = class BaseObject extends s {
|
|
333
333
|
#i;
|
|
334
334
|
#r;
|
|
335
335
|
#o=n();
|
|
@@ -338,9 +338,9 @@ let tt = K = class BaseObject extends s {
|
|
|
338
338
|
const t = d(this);
|
|
339
339
|
const e = [];
|
|
340
340
|
p(this).forEach(((s, i) => {
|
|
341
|
-
if (
|
|
341
|
+
if (j(i)) return;
|
|
342
342
|
e.push(new Promise(((e, r) => {
|
|
343
|
-
y.validateAsync(t[
|
|
343
|
+
y.validateAsync(t[g(i)], s.schema, {
|
|
344
344
|
targetName: i
|
|
345
345
|
}).then((t => Promise.resolve(s.fn.bind(this)(t)).then((t => {
|
|
346
346
|
this[i] = t;
|
|
@@ -351,7 +351,7 @@ let tt = K = class BaseObject extends s {
|
|
|
351
351
|
await Promise.all(e);
|
|
352
352
|
}
|
|
353
353
|
async #c() {
|
|
354
|
-
const t =
|
|
354
|
+
const t = u(this);
|
|
355
355
|
const e = [];
|
|
356
356
|
t.forEach(((t, s) => {
|
|
357
357
|
const i = t.name;
|
|
@@ -361,14 +361,14 @@ let tt = K = class BaseObject extends s {
|
|
|
361
361
|
Reflect.set(this, s, t);
|
|
362
362
|
return e();
|
|
363
363
|
})).catch(r);
|
|
364
|
-
})).catch((t => r(new
|
|
364
|
+
})).catch((t => r(new S("Unable to inject value for property {0} of {1} because: {2}", [ s, this.className, t.message ]))));
|
|
365
365
|
})));
|
|
366
366
|
}));
|
|
367
367
|
await Promise.all(e);
|
|
368
368
|
}
|
|
369
369
|
#l() {
|
|
370
370
|
const t = m(this);
|
|
371
|
-
this.#r = t ? t :
|
|
371
|
+
this.#r = t ? t : K;
|
|
372
372
|
}
|
|
373
373
|
constructor(t) {
|
|
374
374
|
super((async () => {
|
|
@@ -377,18 +377,18 @@ let tt = K = class BaseObject extends s {
|
|
|
377
377
|
if (t) Object.defineProperty(this, "then", {
|
|
378
378
|
enumerable: false
|
|
379
379
|
});
|
|
380
|
-
await this[
|
|
380
|
+
await this[V]();
|
|
381
381
|
}));
|
|
382
|
-
this.#i = new Container(t[
|
|
382
|
+
this.#i = new Container(t[F], this);
|
|
383
383
|
b(this, this.#i);
|
|
384
384
|
}
|
|
385
385
|
static get className() {
|
|
386
386
|
return this.name;
|
|
387
387
|
}
|
|
388
388
|
get className() {
|
|
389
|
-
return
|
|
389
|
+
return O(this).name;
|
|
390
390
|
}
|
|
391
|
-
async [
|
|
391
|
+
async [V](...t) {
|
|
392
392
|
this.#i.registerContainerToItsParent();
|
|
393
393
|
if (!this.#n) {
|
|
394
394
|
await this.#c();
|
|
@@ -398,7 +398,7 @@ let tt = K = class BaseObject extends s {
|
|
|
398
398
|
for (const e of t) await e();
|
|
399
399
|
await this.init();
|
|
400
400
|
}
|
|
401
|
-
async [
|
|
401
|
+
async [W](...t) {
|
|
402
402
|
await this.#i.destroy();
|
|
403
403
|
for (const e of t) await e();
|
|
404
404
|
await this.destroy();
|
|
@@ -416,10 +416,10 @@ let tt = K = class BaseObject extends s {
|
|
|
416
416
|
}
|
|
417
417
|
getModule() {
|
|
418
418
|
let t = this.getParent();
|
|
419
|
-
while (t &&
|
|
419
|
+
while (t && GetObjectType(g(O(t))) !== q.Module) {
|
|
420
420
|
t = this.getParent();
|
|
421
421
|
}
|
|
422
|
-
return
|
|
422
|
+
return g(t);
|
|
423
423
|
}
|
|
424
424
|
get $uuid() {
|
|
425
425
|
return this.#o;
|
|
@@ -428,16 +428,16 @@ let tt = K = class BaseObject extends s {
|
|
|
428
428
|
return this.#r;
|
|
429
429
|
}
|
|
430
430
|
get $symbol() {
|
|
431
|
-
if (Reflect.hasOwnMetadata(
|
|
432
|
-
Reflect.defineMetadata(
|
|
431
|
+
if (Reflect.hasOwnMetadata(X, this)) return Reflect.getOwnMetadata(X, this);
|
|
432
|
+
Reflect.defineMetadata(X, Symbol(this.$uuid), this);
|
|
433
433
|
return this.$symbol;
|
|
434
434
|
}
|
|
435
435
|
setProperty(t, e) {
|
|
436
436
|
this[t] = e;
|
|
437
437
|
}
|
|
438
438
|
getProperty(t, e) {
|
|
439
|
-
if (this.hasProperty(t)) return
|
|
440
|
-
return
|
|
439
|
+
if (this.hasProperty(t)) return g(this[t]);
|
|
440
|
+
return g(e);
|
|
441
441
|
}
|
|
442
442
|
hasProperty(t) {
|
|
443
443
|
return typeof t === "string" ? this.propertyNames().includes(t) : this.propertySymbols().includes(t);
|
|
@@ -462,7 +462,7 @@ let tt = K = class BaseObject extends s {
|
|
|
462
462
|
className: this.constructor.name
|
|
463
463
|
});
|
|
464
464
|
} else {
|
|
465
|
-
return (...t) =>
|
|
465
|
+
return (...t) => w(...t);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
async dispose() {
|
|
@@ -470,6 +470,6 @@ let tt = K = class BaseObject extends s {
|
|
|
470
470
|
}
|
|
471
471
|
};
|
|
472
472
|
|
|
473
|
-
|
|
473
|
+
H = J = t([ i(), DefineObjectType(q.Object), e("design:paramtypes", [ Object ]) ], H);
|
|
474
474
|
|
|
475
|
-
export {
|
|
475
|
+
export { H as B, Container as C, DefineObjectType as D, GetObjectType as G, _ as L, q as O, SetObjectType as S, V as _, W as a, B as b, F as c, K as d, Y as o };
|
package/vendor/Package.30.cjs
CHANGED
|
@@ -6,18 +6,18 @@ const e = require("./Package.112.cjs");
|
|
|
6
6
|
|
|
7
7
|
var r = {};
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var i;
|
|
10
10
|
|
|
11
|
-
function
|
|
12
|
-
if (
|
|
13
|
-
|
|
11
|
+
function requireChildEntity() {
|
|
12
|
+
if (i) return r;
|
|
13
|
+
i = 1;
|
|
14
14
|
"use strict";
|
|
15
15
|
Object.defineProperty(r, "__esModule", {
|
|
16
16
|
value: true
|
|
17
17
|
});
|
|
18
|
-
r.ChildEntity =
|
|
18
|
+
r.ChildEntity = ChildEntity;
|
|
19
19
|
const t = e.requireGlobals();
|
|
20
|
-
function
|
|
20
|
+
function ChildEntity(e) {
|
|
21
21
|
return function(r) {
|
|
22
22
|
(0, t.getMetadataArgsStorage)().tables.push({
|
|
23
23
|
target: r,
|
|
@@ -34,8 +34,8 @@ function s() {
|
|
|
34
34
|
return r;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var a = requireChildEntity();
|
|
38
38
|
|
|
39
|
-
const n = t.getDefaultExportFromCjs(
|
|
39
|
+
const n = t.getDefaultExportFromCjs(a);
|
|
40
40
|
|
|
41
|
-
exports.ChildEntityExports =
|
|
41
|
+
exports.ChildEntityExports = a;
|
package/vendor/Package.30.mjs
CHANGED
|
@@ -4,18 +4,18 @@ import { h as e } from "./Package.112.mjs";
|
|
|
4
4
|
|
|
5
5
|
var r = {};
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var i;
|
|
8
8
|
|
|
9
|
-
function
|
|
10
|
-
if (
|
|
11
|
-
|
|
9
|
+
function requireChildEntity() {
|
|
10
|
+
if (i) return r;
|
|
11
|
+
i = 1;
|
|
12
12
|
"use strict";
|
|
13
13
|
Object.defineProperty(r, "__esModule", {
|
|
14
14
|
value: true
|
|
15
15
|
});
|
|
16
|
-
r.ChildEntity =
|
|
16
|
+
r.ChildEntity = ChildEntity;
|
|
17
17
|
const t = e();
|
|
18
|
-
function
|
|
18
|
+
function ChildEntity(e) {
|
|
19
19
|
return function(r) {
|
|
20
20
|
(0, t.getMetadataArgsStorage)().tables.push({
|
|
21
21
|
target: r,
|
|
@@ -32,8 +32,8 @@ function i() {
|
|
|
32
32
|
return r;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var a = requireChildEntity();
|
|
36
36
|
|
|
37
|
-
const
|
|
37
|
+
const n = t(a);
|
|
38
38
|
|
|
39
|
-
export {
|
|
39
|
+
export { a as C };
|
package/vendor/Package.31.cjs
CHANGED
|
@@ -8,35 +8,35 @@ var r = {};
|
|
|
8
8
|
|
|
9
9
|
var n;
|
|
10
10
|
|
|
11
|
-
function
|
|
11
|
+
function requireColumn() {
|
|
12
12
|
if (n) return r;
|
|
13
13
|
n = 1;
|
|
14
14
|
"use strict";
|
|
15
15
|
Object.defineProperty(r, "__esModule", {
|
|
16
16
|
value: true
|
|
17
17
|
});
|
|
18
|
-
r.Column =
|
|
18
|
+
r.Column = Column;
|
|
19
19
|
const e = t.requireGlobals();
|
|
20
20
|
const o = t.requireColumnTypeUndefinedError();
|
|
21
|
-
function
|
|
21
|
+
function Column(t, r) {
|
|
22
22
|
return function(n, a) {
|
|
23
|
-
let
|
|
23
|
+
let u;
|
|
24
24
|
if (typeof t === "string" || typeof t === "function") {
|
|
25
|
-
|
|
25
|
+
u = t;
|
|
26
26
|
} else if (t) {
|
|
27
27
|
r = t;
|
|
28
|
-
|
|
28
|
+
u = t.type;
|
|
29
29
|
}
|
|
30
30
|
if (!r) r = {};
|
|
31
|
-
const
|
|
32
|
-
if (!
|
|
33
|
-
if (!r.type &&
|
|
34
|
-
if (r.type === "hstore" && !r.hstoreType) r.hstoreType =
|
|
31
|
+
const s = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", n, a) : undefined;
|
|
32
|
+
if (!u && s) u = s;
|
|
33
|
+
if (!r.type && u) r.type = u;
|
|
34
|
+
if (r.type === "hstore" && !r.hstoreType) r.hstoreType = s === Object ? "object" : "string";
|
|
35
35
|
if (typeof t === "function") {
|
|
36
36
|
(0, e.getMetadataArgsStorage)().embeddeds.push({
|
|
37
37
|
target: n.constructor,
|
|
38
38
|
propertyName: a,
|
|
39
|
-
isArray:
|
|
39
|
+
isArray: s === Array || r.array === true,
|
|
40
40
|
prefix: r.prefix !== undefined ? r.prefix : undefined,
|
|
41
41
|
type: t
|
|
42
42
|
});
|
|
@@ -65,8 +65,8 @@ function o() {
|
|
|
65
65
|
return r;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
var
|
|
68
|
+
var o = requireColumn();
|
|
69
69
|
|
|
70
|
-
const
|
|
70
|
+
const a = e.getDefaultExportFromCjs(o);
|
|
71
71
|
|
|
72
|
-
exports.ColumnExports =
|
|
72
|
+
exports.ColumnExports = o;
|
package/vendor/Package.31.mjs
CHANGED
|
@@ -2,22 +2,22 @@ import { g as e } from "./Package.5.mjs";
|
|
|
2
2
|
|
|
3
3
|
import { h as t, j as r } from "./Package.112.mjs";
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var n = {};
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var o;
|
|
8
8
|
|
|
9
|
-
function
|
|
10
|
-
if (
|
|
11
|
-
|
|
9
|
+
function requireColumn() {
|
|
10
|
+
if (o) return n;
|
|
11
|
+
o = 1;
|
|
12
12
|
"use strict";
|
|
13
|
-
Object.defineProperty(
|
|
13
|
+
Object.defineProperty(n, "__esModule", {
|
|
14
14
|
value: true
|
|
15
15
|
});
|
|
16
|
-
|
|
16
|
+
n.Column = Column;
|
|
17
17
|
const e = t();
|
|
18
|
-
const
|
|
19
|
-
function
|
|
20
|
-
return function(
|
|
18
|
+
const a = r();
|
|
19
|
+
function Column(t, r) {
|
|
20
|
+
return function(n, o) {
|
|
21
21
|
let s;
|
|
22
22
|
if (typeof t === "string" || typeof t === "function") {
|
|
23
23
|
s = t;
|
|
@@ -26,45 +26,45 @@ function o() {
|
|
|
26
26
|
s = t.type;
|
|
27
27
|
}
|
|
28
28
|
if (!r) r = {};
|
|
29
|
-
const
|
|
30
|
-
if (!s &&
|
|
29
|
+
const u = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", n, o) : undefined;
|
|
30
|
+
if (!s && u) s = u;
|
|
31
31
|
if (!r.type && s) r.type = s;
|
|
32
|
-
if (r.type === "hstore" && !r.hstoreType) r.hstoreType =
|
|
32
|
+
if (r.type === "hstore" && !r.hstoreType) r.hstoreType = u === Object ? "object" : "string";
|
|
33
33
|
if (typeof t === "function") {
|
|
34
34
|
(0, e.getMetadataArgsStorage)().embeddeds.push({
|
|
35
|
-
target:
|
|
36
|
-
propertyName:
|
|
37
|
-
isArray:
|
|
35
|
+
target: n.constructor,
|
|
36
|
+
propertyName: o,
|
|
37
|
+
isArray: u === Array || r.array === true,
|
|
38
38
|
prefix: r.prefix !== undefined ? r.prefix : undefined,
|
|
39
39
|
type: t
|
|
40
40
|
});
|
|
41
41
|
} else {
|
|
42
|
-
if (!r.type) throw new
|
|
42
|
+
if (!r.type) throw new a.ColumnTypeUndefinedError(n, o);
|
|
43
43
|
if (r.unique === true) (0, e.getMetadataArgsStorage)().uniques.push({
|
|
44
|
-
target:
|
|
45
|
-
columns: [
|
|
44
|
+
target: n.constructor,
|
|
45
|
+
columns: [ o ]
|
|
46
46
|
});
|
|
47
47
|
(0, e.getMetadataArgsStorage)().columns.push({
|
|
48
|
-
target:
|
|
49
|
-
propertyName:
|
|
48
|
+
target: n.constructor,
|
|
49
|
+
propertyName: o,
|
|
50
50
|
mode: "regular",
|
|
51
51
|
options: r
|
|
52
52
|
});
|
|
53
53
|
if (r.generated) {
|
|
54
54
|
(0, e.getMetadataArgsStorage)().generations.push({
|
|
55
|
-
target:
|
|
56
|
-
propertyName:
|
|
55
|
+
target: n.constructor,
|
|
56
|
+
propertyName: o,
|
|
57
57
|
strategy: typeof r.generated === "string" ? r.generated : "increment"
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
return
|
|
63
|
+
return n;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
var
|
|
66
|
+
var a = requireColumn();
|
|
67
67
|
|
|
68
|
-
const
|
|
68
|
+
const s = e(a);
|
|
69
69
|
|
|
70
|
-
export {
|
|
70
|
+
export { a as C };
|