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/src/lib/helpers/SHA1.mjs
CHANGED
|
@@ -8,9 +8,9 @@ import "../../../vendor/Package.7.mjs";
|
|
|
8
8
|
|
|
9
9
|
const t = e().includes("sha1");
|
|
10
10
|
|
|
11
|
-
function
|
|
11
|
+
function SHA1(e) {
|
|
12
12
|
if (t) return o("sha1").update(Buffer.from(e)).digest();
|
|
13
13
|
return Buffer.from(r.SHA1(e).toString(r.enc.Base64), "base64");
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export {
|
|
16
|
+
export { SHA1 };
|
|
@@ -14,9 +14,9 @@ require("../../../vendor/Package.7.cjs");
|
|
|
14
14
|
|
|
15
15
|
const t = r.getHashes().includes("sha256");
|
|
16
16
|
|
|
17
|
-
function
|
|
17
|
+
function SHA256(s) {
|
|
18
18
|
if (t) return r.createHash("sha256").update(Buffer.from(s)).digest();
|
|
19
19
|
return Buffer.from(e.cryptoJsExports.SHA256(s).toString(e.cryptoJsExports.enc.Base64), "base64");
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
exports.SHA256 =
|
|
22
|
+
exports.SHA256 = SHA256;
|
|
@@ -8,9 +8,9 @@ import "../../../vendor/Package.7.mjs";
|
|
|
8
8
|
|
|
9
9
|
const t = e().includes("sha256");
|
|
10
10
|
|
|
11
|
-
function
|
|
11
|
+
function SHA256(e) {
|
|
12
12
|
if (t) return o("sha256").update(Buffer.from(e)).digest();
|
|
13
13
|
return Buffer.from(r.SHA256(e).toString(r.enc.Base64), "base64");
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export {
|
|
16
|
+
export { SHA256 };
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, Symbol.toStringTag, {
|
|
|
4
4
|
value: "Module"
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
function
|
|
8
|
-
const n = (BigInt(2) ** BigInt(
|
|
9
|
-
return
|
|
7
|
+
function SignedToHex(e, t = 32) {
|
|
8
|
+
const n = (BigInt(2) ** BigInt(t) + BigInt(e)).toString(16).toUpperCase();
|
|
9
|
+
return e < 0 ? n : n.slice(1);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
exports.SignedToHex =
|
|
12
|
+
exports.SignedToHex = SignedToHex;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function
|
|
2
|
-
const
|
|
3
|
-
return
|
|
1
|
+
function SignedToHex(n, t = 32) {
|
|
2
|
+
const e = (BigInt(2) ** BigInt(t) + BigInt(n)).toString(16).toUpperCase();
|
|
3
|
+
return n < 0 ? e : e.slice(1);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { SignedToHex };
|
|
@@ -6,33 +6,33 @@ Object.defineProperty(exports, Symbol.toStringTag, {
|
|
|
6
6
|
|
|
7
7
|
const r = require("../../../vendor/Package.64.cjs");
|
|
8
8
|
|
|
9
|
-
function e
|
|
10
|
-
if (
|
|
11
|
-
let
|
|
9
|
+
function SortArray(e, ...t) {
|
|
10
|
+
if (t.length < 2) {
|
|
11
|
+
let o = {
|
|
12
12
|
order: "asc"
|
|
13
13
|
};
|
|
14
|
-
if (
|
|
15
|
-
by:
|
|
16
|
-
order:
|
|
17
|
-
computed:
|
|
14
|
+
if (t.length) o = Object.assign(o, {
|
|
15
|
+
by: t[0].by,
|
|
16
|
+
order: t[0].order,
|
|
17
|
+
computed: t[0].computed
|
|
18
18
|
});
|
|
19
|
-
return r.sortArray(
|
|
19
|
+
return r.sortArray(e, o);
|
|
20
20
|
} else {
|
|
21
|
-
const
|
|
21
|
+
const o = {
|
|
22
22
|
by: [],
|
|
23
23
|
order: [],
|
|
24
24
|
customOrders: {}
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
t.forEach((r => {
|
|
27
27
|
if (r.by) {
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
const t = r.by;
|
|
29
|
+
o.by.push(t);
|
|
30
|
+
o.order.push(t);
|
|
31
|
+
o.customOrders[t] = SortArray(e, r).map((r => r[t]));
|
|
32
32
|
}
|
|
33
33
|
}));
|
|
34
|
-
return r.sortArray(
|
|
34
|
+
return r.sortArray(e, o);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
exports.SortArray =
|
|
38
|
+
exports.SortArray = SortArray;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { s as r } from "../../../vendor/Package.64.mjs";
|
|
2
2
|
|
|
3
|
-
function e
|
|
4
|
-
if (
|
|
5
|
-
let
|
|
3
|
+
function SortArray(e, ...o) {
|
|
4
|
+
if (o.length < 2) {
|
|
5
|
+
let t = {
|
|
6
6
|
order: "asc"
|
|
7
7
|
};
|
|
8
|
-
if (
|
|
9
|
-
by:
|
|
10
|
-
order:
|
|
11
|
-
computed:
|
|
8
|
+
if (o.length) t = Object.assign(t, {
|
|
9
|
+
by: o[0].by,
|
|
10
|
+
order: o[0].order,
|
|
11
|
+
computed: o[0].computed
|
|
12
12
|
});
|
|
13
|
-
return r(
|
|
13
|
+
return r(e, t);
|
|
14
14
|
} else {
|
|
15
15
|
const t = {
|
|
16
16
|
by: [],
|
|
17
17
|
order: [],
|
|
18
18
|
customOrders: {}
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
o.forEach((r => {
|
|
21
21
|
if (r.by) {
|
|
22
|
-
const
|
|
23
|
-
t.by.push(
|
|
24
|
-
t.order.push(
|
|
25
|
-
t.customOrders[
|
|
22
|
+
const o = r.by;
|
|
23
|
+
t.by.push(o);
|
|
24
|
+
t.order.push(o);
|
|
25
|
+
t.customOrders[o] = SortArray(e, r).map((r => r[o]));
|
|
26
26
|
}
|
|
27
27
|
}));
|
|
28
|
-
return r(
|
|
28
|
+
return r(e, t);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export {
|
|
32
|
+
export { SortArray };
|
|
@@ -4,68 +4,68 @@ Object.defineProperty(exports, Symbol.toStringTag, {
|
|
|
4
4
|
value: "Module"
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
function
|
|
8
|
-
if (typeof
|
|
7
|
+
function isPlainObject(t) {
|
|
8
|
+
if (typeof t !== "object" || t === null) {
|
|
9
9
|
return false;
|
|
10
10
|
}
|
|
11
|
-
const
|
|
12
|
-
return (
|
|
11
|
+
const r = Object.getPrototypeOf(t);
|
|
12
|
+
return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
function
|
|
16
|
-
if (!
|
|
15
|
+
function SortKeys(t, r = {}) {
|
|
16
|
+
if (!isPlainObject(t) && !Array.isArray(t)) {
|
|
17
17
|
throw new TypeError("Expected a plain object or array");
|
|
18
18
|
}
|
|
19
|
-
const {deep:
|
|
19
|
+
const {deep: e, compare: o} = r;
|
|
20
|
+
const n = [];
|
|
20
21
|
const s = [];
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return c[e];
|
|
22
|
+
const deepSortArray = t => {
|
|
23
|
+
const r = n.indexOf(t);
|
|
24
|
+
if (r !== -1) {
|
|
25
|
+
return s[r];
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
const e = [];
|
|
28
|
+
n.push(t);
|
|
29
|
+
s.push(e);
|
|
30
|
+
e.push(...t.map((t => {
|
|
31
31
|
if (Array.isArray(t)) {
|
|
32
|
-
return
|
|
32
|
+
return deepSortArray(t);
|
|
33
33
|
}
|
|
34
|
-
if (
|
|
35
|
-
return
|
|
34
|
+
if (isPlainObject(t)) {
|
|
35
|
+
return _sortKeys(t);
|
|
36
36
|
}
|
|
37
37
|
return t;
|
|
38
38
|
})));
|
|
39
|
-
return
|
|
39
|
+
return e;
|
|
40
40
|
};
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
44
|
-
return
|
|
41
|
+
const _sortKeys = t => {
|
|
42
|
+
const r = n.indexOf(t);
|
|
43
|
+
if (r !== -1) {
|
|
44
|
+
return s[r];
|
|
45
45
|
}
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
for (const
|
|
51
|
-
const
|
|
52
|
-
let
|
|
53
|
-
if (
|
|
54
|
-
|
|
46
|
+
const i = {};
|
|
47
|
+
const c = Object.keys(t).sort(o);
|
|
48
|
+
n.push(t);
|
|
49
|
+
s.push(i);
|
|
50
|
+
for (const r of c) {
|
|
51
|
+
const o = t[r];
|
|
52
|
+
let n;
|
|
53
|
+
if (e && Array.isArray(o)) {
|
|
54
|
+
n = deepSortArray(o);
|
|
55
55
|
} else {
|
|
56
|
-
|
|
56
|
+
n = e && isPlainObject(o) ? _sortKeys(o) : o;
|
|
57
57
|
}
|
|
58
|
-
Object.defineProperty(
|
|
59
|
-
...Object.getOwnPropertyDescriptor(t,
|
|
60
|
-
value:
|
|
58
|
+
Object.defineProperty(i, r, {
|
|
59
|
+
...Object.getOwnPropertyDescriptor(t, r),
|
|
60
|
+
value: n
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
return
|
|
63
|
+
return i;
|
|
64
64
|
};
|
|
65
65
|
if (Array.isArray(t)) {
|
|
66
|
-
return
|
|
66
|
+
return e ? deepSortArray(t) : t.slice();
|
|
67
67
|
}
|
|
68
|
-
return
|
|
68
|
+
return _sortKeys(t);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
exports.SortKeys =
|
|
71
|
+
exports.SortKeys = SortKeys;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function isPlainObject(r) {
|
|
2
2
|
if (typeof r !== "object" || r === null) {
|
|
3
3
|
return false;
|
|
4
4
|
}
|
|
@@ -6,60 +6,60 @@ function r(r) {
|
|
|
6
6
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in r) && !(Symbol.iterator in r);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
function
|
|
10
|
-
if (!r
|
|
9
|
+
function SortKeys(r, t = {}) {
|
|
10
|
+
if (!isPlainObject(r) && !Array.isArray(r)) {
|
|
11
11
|
throw new TypeError("Expected a plain object or array");
|
|
12
12
|
}
|
|
13
|
-
const {deep:
|
|
13
|
+
const {deep: e, compare: n} = t;
|
|
14
|
+
const o = [];
|
|
14
15
|
const s = [];
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return c[e];
|
|
16
|
+
const deepSortArray = r => {
|
|
17
|
+
const t = o.indexOf(r);
|
|
18
|
+
if (t !== -1) {
|
|
19
|
+
return s[t];
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
if (Array.isArray(
|
|
26
|
-
return
|
|
21
|
+
const e = [];
|
|
22
|
+
o.push(r);
|
|
23
|
+
s.push(e);
|
|
24
|
+
e.push(...r.map((r => {
|
|
25
|
+
if (Array.isArray(r)) {
|
|
26
|
+
return deepSortArray(r);
|
|
27
27
|
}
|
|
28
|
-
if (r
|
|
29
|
-
return
|
|
28
|
+
if (isPlainObject(r)) {
|
|
29
|
+
return _sortKeys(r);
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return r;
|
|
32
32
|
})));
|
|
33
|
-
return
|
|
33
|
+
return e;
|
|
34
34
|
};
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
38
|
-
return
|
|
35
|
+
const _sortKeys = r => {
|
|
36
|
+
const t = o.indexOf(r);
|
|
37
|
+
if (t !== -1) {
|
|
38
|
+
return s[t];
|
|
39
39
|
}
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
for (const
|
|
45
|
-
const
|
|
46
|
-
let
|
|
47
|
-
if (
|
|
48
|
-
|
|
40
|
+
const i = {};
|
|
41
|
+
const c = Object.keys(r).sort(n);
|
|
42
|
+
o.push(r);
|
|
43
|
+
s.push(i);
|
|
44
|
+
for (const t of c) {
|
|
45
|
+
const n = r[t];
|
|
46
|
+
let o;
|
|
47
|
+
if (e && Array.isArray(n)) {
|
|
48
|
+
o = deepSortArray(n);
|
|
49
49
|
} else {
|
|
50
|
-
|
|
50
|
+
o = e && isPlainObject(n) ? _sortKeys(n) : n;
|
|
51
51
|
}
|
|
52
|
-
Object.defineProperty(
|
|
53
|
-
...Object.getOwnPropertyDescriptor(
|
|
54
|
-
value:
|
|
52
|
+
Object.defineProperty(i, t, {
|
|
53
|
+
...Object.getOwnPropertyDescriptor(r, t),
|
|
54
|
+
value: o
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
return
|
|
57
|
+
return i;
|
|
58
58
|
};
|
|
59
|
-
if (Array.isArray(
|
|
60
|
-
return
|
|
59
|
+
if (Array.isArray(r)) {
|
|
60
|
+
return e ? deepSortArray(r) : r.slice();
|
|
61
61
|
}
|
|
62
|
-
return
|
|
62
|
+
return _sortKeys(r);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
export {
|
|
65
|
+
export { SortKeys };
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, Symbol.toStringTag, {
|
|
|
6
6
|
|
|
7
7
|
const e = require("./SortKeys.cjs");
|
|
8
8
|
|
|
9
|
-
function
|
|
9
|
+
function SortObject(r, t) {
|
|
10
10
|
return e.SortKeys(r, {
|
|
11
11
|
deep: t?.deep,
|
|
12
12
|
compare: (e, r) => {
|
|
@@ -24,4 +24,4 @@ function r(r, t) {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
exports.SortObject =
|
|
27
|
+
exports.SortObject = SortObject;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SortKeys as e } from "./SortKeys.mjs";
|
|
2
2
|
|
|
3
|
-
function
|
|
3
|
+
function SortObject(r, o) {
|
|
4
4
|
return e(r, {
|
|
5
5
|
deep: o?.deep,
|
|
6
6
|
compare: (e, r) => {
|
|
@@ -18,4 +18,4 @@ function r(r, o) {
|
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export {
|
|
21
|
+
export { SortObject };
|
|
@@ -4,17 +4,17 @@ Object.defineProperty(exports, Symbol.toStringTag, {
|
|
|
4
4
|
value: "Module"
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const _htmlEscape = e => e.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
8
8
|
|
|
9
|
-
function
|
|
10
|
-
if (typeof
|
|
11
|
-
return e
|
|
9
|
+
function htmlEscape(e, ...r) {
|
|
10
|
+
if (typeof e === "string") {
|
|
11
|
+
return _htmlEscape(e);
|
|
12
12
|
}
|
|
13
|
-
let
|
|
14
|
-
for (const [
|
|
15
|
-
|
|
13
|
+
let t = e[0];
|
|
14
|
+
for (const [n, o] of r.entries()) {
|
|
15
|
+
t = t + _htmlEscape(String(o)) + e[n + 1];
|
|
16
16
|
}
|
|
17
|
-
return
|
|
17
|
+
return t;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
class MissingValueError extends Error {
|
|
@@ -25,39 +25,39 @@ class MissingValueError extends Error {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
function
|
|
28
|
+
function Templating(e, r, {ignoreMissing: t = false, transform: n = ({value: e}) => e} = {}) {
|
|
29
29
|
if (typeof e !== "string") {
|
|
30
30
|
throw new TypeError(`Expected a \`string\` in the first argument, got \`${typeof e}\``);
|
|
31
31
|
}
|
|
32
|
-
if (typeof
|
|
33
|
-
throw new TypeError(`Expected an \`object\` or \`Array\` in the second argument, got \`${typeof
|
|
32
|
+
if (typeof r !== "object") {
|
|
33
|
+
throw new TypeError(`Expected an \`object\` or \`Array\` in the second argument, got \`${typeof r}\``);
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
let s =
|
|
37
|
-
for (const e of
|
|
35
|
+
const replace = (e, o) => {
|
|
36
|
+
let s = r;
|
|
37
|
+
for (const e of o.split(".")) {
|
|
38
38
|
s = s ? s[e] : undefined;
|
|
39
39
|
}
|
|
40
|
-
const i =
|
|
40
|
+
const i = n({
|
|
41
41
|
value: s,
|
|
42
|
-
key:
|
|
42
|
+
key: o
|
|
43
43
|
});
|
|
44
44
|
if (i === undefined) {
|
|
45
|
-
if (
|
|
45
|
+
if (t) {
|
|
46
46
|
return e;
|
|
47
47
|
}
|
|
48
|
-
throw new MissingValueError(
|
|
48
|
+
throw new MissingValueError(o);
|
|
49
49
|
}
|
|
50
50
|
return String(i);
|
|
51
51
|
};
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
55
|
-
e = e.replace(
|
|
52
|
+
const composeHtmlEscape = e => (...r) => htmlEscape(e(...r));
|
|
53
|
+
const o = /{{(\d+|[a-z$_][\w\-$]*?(?:\.[\w\-$]*?)*?)}}/gi;
|
|
54
|
+
if (o.test(e)) {
|
|
55
|
+
e = e.replace(o, composeHtmlEscape(replace));
|
|
56
56
|
}
|
|
57
|
-
const
|
|
58
|
-
return e.replace(
|
|
57
|
+
const s = /{(\d+|[a-z$_][\w\-$]*?(?:\.[\w\-$]*?)*?)}/gi;
|
|
58
|
+
return e.replace(s, replace);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
exports.MissingValueError = MissingValueError;
|
|
62
62
|
|
|
63
|
-
exports.Templating =
|
|
63
|
+
exports.Templating = Templating;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _htmlEscape = e => e.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
2
2
|
|
|
3
|
-
function
|
|
4
|
-
if (typeof
|
|
5
|
-
return e
|
|
3
|
+
function htmlEscape(e, ...r) {
|
|
4
|
+
if (typeof e === "string") {
|
|
5
|
+
return _htmlEscape(e);
|
|
6
6
|
}
|
|
7
|
-
let
|
|
8
|
-
for (const [
|
|
9
|
-
|
|
7
|
+
let t = e[0];
|
|
8
|
+
for (const [n, o] of r.entries()) {
|
|
9
|
+
t = t + _htmlEscape(String(o)) + e[n + 1];
|
|
10
10
|
}
|
|
11
|
-
return
|
|
11
|
+
return t;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
class MissingValueError extends Error {
|
|
@@ -19,37 +19,37 @@ class MissingValueError extends Error {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
function
|
|
22
|
+
function Templating(e, r, {ignoreMissing: t = false, transform: n = ({value: e}) => e} = {}) {
|
|
23
23
|
if (typeof e !== "string") {
|
|
24
24
|
throw new TypeError(`Expected a \`string\` in the first argument, got \`${typeof e}\``);
|
|
25
25
|
}
|
|
26
|
-
if (typeof
|
|
27
|
-
throw new TypeError(`Expected an \`object\` or \`Array\` in the second argument, got \`${typeof
|
|
26
|
+
if (typeof r !== "object") {
|
|
27
|
+
throw new TypeError(`Expected an \`object\` or \`Array\` in the second argument, got \`${typeof r}\``);
|
|
28
28
|
}
|
|
29
|
-
const
|
|
30
|
-
let i =
|
|
31
|
-
for (const e of
|
|
29
|
+
const replace = (e, o) => {
|
|
30
|
+
let i = r;
|
|
31
|
+
for (const e of o.split(".")) {
|
|
32
32
|
i = i ? i[e] : undefined;
|
|
33
33
|
}
|
|
34
|
-
const s =
|
|
34
|
+
const s = n({
|
|
35
35
|
value: i,
|
|
36
|
-
key:
|
|
36
|
+
key: o
|
|
37
37
|
});
|
|
38
38
|
if (s === undefined) {
|
|
39
|
-
if (
|
|
39
|
+
if (t) {
|
|
40
40
|
return e;
|
|
41
41
|
}
|
|
42
|
-
throw new MissingValueError(
|
|
42
|
+
throw new MissingValueError(o);
|
|
43
43
|
}
|
|
44
44
|
return String(s);
|
|
45
45
|
};
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
49
|
-
e = e.replace(
|
|
46
|
+
const composeHtmlEscape = e => (...r) => htmlEscape(e(...r));
|
|
47
|
+
const o = /{{(\d+|[a-z$_][\w\-$]*?(?:\.[\w\-$]*?)*?)}}/gi;
|
|
48
|
+
if (o.test(e)) {
|
|
49
|
+
e = e.replace(o, composeHtmlEscape(replace));
|
|
50
50
|
}
|
|
51
|
-
const
|
|
52
|
-
return e.replace(
|
|
51
|
+
const i = /{(\d+|[a-z$_][\w\-$]*?(?:\.[\w\-$]*?)*?)}/gi;
|
|
52
|
+
return e.replace(i, replace);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
export { MissingValueError,
|
|
55
|
+
export { MissingValueError, Templating };
|