lakutata 2.0.80 → 2.0.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/com/cacher.cjs +8 -10
- package/com/cacher.d.ts +83 -14
- package/com/cacher.mjs +8 -10
- package/com/database.cjs +11 -11
- package/com/database.mjs +11 -11
- package/com/docker.cjs +17 -19
- package/com/docker.d.ts +3 -141
- package/com/docker.mjs +13 -15
- package/com/entrypoint.cjs +7 -5
- package/com/entrypoint.mjs +7 -5
- package/com/logger.cjs +7 -7
- package/com/logger.mjs +7 -7
- package/com/monitor.cjs +5 -3
- package/com/monitor.mjs +5 -3
- package/decorator/ctrl.cjs +3 -3
- package/decorator/ctrl.mjs +3 -3
- package/decorator/orm.cjs +98 -98
- package/decorator/orm.mjs +142 -56
- package/helper.cjs +9 -11
- package/helper.mjs +5 -7
- package/lakutata.cjs +23 -30
- package/lakutata.mjs +14 -18
- package/orm.cjs +1423 -886
- package/orm.mjs +1474 -724
- package/package.json +1 -1
- package/provider/database.cjs +11 -11
- package/provider/database.mjs +11 -11
- package/provider/passwordHash.cjs +4 -2
- package/provider/passwordHash.mjs +4 -2
- package/src/components/Database.cjs +11 -11
- package/src/components/Database.mjs +11 -11
- package/src/components/Logger.cjs +7 -7
- package/src/components/Logger.mjs +7 -7
- package/src/components/cacher/Cacher.cjs +1178 -264
- package/src/components/cacher/Cacher.mjs +1087 -173
- package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +479 -2963
- package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +469 -2947
- package/src/components/docker/ConnectionOptionsBuilder.cjs +15 -17
- package/src/components/docker/ConnectionOptionsBuilder.mjs +13 -15
- package/src/components/docker/Docker.cjs +4884 -4945
- package/src/components/docker/Docker.mjs +4902 -4963
- package/src/components/docker/lib/DockerContainer.cjs +23 -25
- package/src/components/docker/lib/DockerContainer.mjs +17 -19
- package/src/components/docker/lib/DockerContainerTTY.cjs +9 -11
- package/src/components/docker/lib/DockerContainerTTY.mjs +9 -11
- package/src/components/docker/lib/DockerImage.cjs +4 -2
- package/src/components/docker/lib/DockerImage.mjs +4 -2
- package/src/components/entrypoint/Entrypoint.cjs +2170 -1678
- package/src/components/entrypoint/Entrypoint.mjs +2126 -1634
- package/src/components/entrypoint/lib/AccessControl.cjs +4 -2
- package/src/components/entrypoint/lib/AccessControl.mjs +4 -2
- package/src/components/entrypoint/lib/AccessControlRule.cjs +4 -2
- package/src/components/entrypoint/lib/AccessControlRule.mjs +4 -2
- package/src/components/entrypoint/lib/Controller.cjs +4 -2
- package/src/components/entrypoint/lib/Controller.mjs +4 -2
- package/src/components/monitor/AliveMonitor.cjs +4 -2
- package/src/components/monitor/AliveMonitor.mjs +4 -2
- package/src/components/monitor/CpuMonitor.cjs +5 -3
- package/src/components/monitor/CpuMonitor.mjs +5 -3
- package/src/components/monitor/EventLoopMonitor.cjs +4 -2
- package/src/components/monitor/EventLoopMonitor.mjs +4 -2
- package/src/components/monitor/HttpRequestMonitor.cjs +5 -3
- package/src/components/monitor/HttpRequestMonitor.mjs +5 -3
- package/src/components/monitor/MemoryMonitor.cjs +5 -3
- package/src/components/monitor/MemoryMonitor.mjs +5 -3
- package/src/decorators/ctrl/CLIAction.cjs +3 -3
- package/src/decorators/ctrl/CLIAction.mjs +3 -3
- package/src/decorators/ctrl/HTTPAction.cjs +3 -3
- package/src/decorators/ctrl/HTTPAction.mjs +3 -3
- package/src/decorators/ctrl/ServiceAction.cjs +3 -3
- package/src/decorators/ctrl/ServiceAction.mjs +3 -3
- package/src/decorators/ctrl/http/DELETE.cjs +3 -3
- package/src/decorators/ctrl/http/DELETE.mjs +3 -3
- package/src/decorators/ctrl/http/GET.cjs +3 -3
- package/src/decorators/ctrl/http/GET.mjs +3 -3
- package/src/decorators/ctrl/http/HEAD.cjs +3 -3
- package/src/decorators/ctrl/http/HEAD.mjs +3 -3
- package/src/decorators/ctrl/http/OPTIONS.cjs +3 -3
- package/src/decorators/ctrl/http/OPTIONS.mjs +3 -3
- package/src/decorators/ctrl/http/PATCH.cjs +3 -3
- package/src/decorators/ctrl/http/PATCH.mjs +3 -3
- package/src/decorators/ctrl/http/POST.cjs +3 -3
- package/src/decorators/ctrl/http/POST.mjs +3 -3
- package/src/decorators/ctrl/http/PUT.cjs +3 -3
- package/src/decorators/ctrl/http/PUT.mjs +3 -3
- package/src/decorators/orm/AfterInsert.cjs +17 -39
- package/src/decorators/orm/AfterInsert.mjs +18 -38
- package/src/decorators/orm/AfterLoad.cjs +17 -39
- package/src/decorators/orm/AfterLoad.mjs +18 -38
- package/src/decorators/orm/AfterRecover.cjs +17 -39
- package/src/decorators/orm/AfterRecover.mjs +18 -38
- package/src/decorators/orm/AfterRemove.cjs +17 -39
- package/src/decorators/orm/AfterRemove.mjs +18 -38
- package/src/decorators/orm/AfterSoftRemove.cjs +17 -39
- package/src/decorators/orm/AfterSoftRemove.mjs +18 -38
- package/src/decorators/orm/AfterUpdate.cjs +17 -39
- package/src/decorators/orm/AfterUpdate.mjs +18 -38
- package/src/decorators/orm/BeforeInsert.cjs +17 -39
- package/src/decorators/orm/BeforeInsert.mjs +18 -38
- package/src/decorators/orm/BeforeRecover.cjs +17 -39
- package/src/decorators/orm/BeforeRecover.mjs +18 -38
- package/src/decorators/orm/BeforeRemove.cjs +17 -39
- package/src/decorators/orm/BeforeRemove.mjs +18 -38
- package/src/decorators/orm/BeforeSoftRemove.cjs +17 -39
- package/src/decorators/orm/BeforeSoftRemove.mjs +18 -38
- package/src/decorators/orm/BeforeUpdate.cjs +17 -39
- package/src/decorators/orm/BeforeUpdate.mjs +18 -38
- package/src/decorators/orm/Check.cjs +17 -42
- package/src/decorators/orm/Check.mjs +18 -41
- package/src/decorators/orm/ChildEntity.cjs +17 -42
- package/src/decorators/orm/ChildEntity.mjs +18 -41
- package/src/decorators/orm/Column.cjs +17 -74
- package/src/decorators/orm/Column.mjs +19 -74
- package/src/decorators/orm/CreateDateColumn.cjs +17 -38
- package/src/decorators/orm/CreateDateColumn.mjs +18 -37
- package/src/decorators/orm/DeleteDateColumn.cjs +17 -38
- package/src/decorators/orm/DeleteDateColumn.mjs +17 -36
- package/src/decorators/orm/Entity.cjs +17 -48
- package/src/decorators/orm/Entity.mjs +17 -46
- package/src/decorators/orm/EventSubscriber.cjs +17 -35
- package/src/decorators/orm/EventSubscriber.mjs +18 -34
- package/src/decorators/orm/Exclusion.cjs +17 -42
- package/src/decorators/orm/Exclusion.mjs +18 -41
- package/src/decorators/orm/Generated.cjs +17 -37
- package/src/decorators/orm/Generated.mjs +18 -36
- package/src/decorators/orm/Index.cjs +17 -54
- package/src/decorators/orm/Index.mjs +19 -54
- package/src/decorators/orm/JoinColumn.cjs +17 -42
- package/src/decorators/orm/JoinColumn.mjs +18 -41
- package/src/decorators/orm/JoinTable.cjs +17 -43
- package/src/decorators/orm/JoinTable.mjs +17 -41
- package/src/decorators/orm/ManyToMany.cjs +17 -55
- package/src/decorators/orm/ManyToMany.mjs +17 -53
- package/src/decorators/orm/ManyToOne.cjs +17 -55
- package/src/decorators/orm/ManyToOne.mjs +17 -53
- package/src/decorators/orm/ObjectIdColumn.cjs +17 -41
- package/src/decorators/orm/ObjectIdColumn.mjs +18 -40
- package/src/decorators/orm/OneToMany.cjs +17 -47
- package/src/decorators/orm/OneToMany.mjs +19 -47
- package/src/decorators/orm/OneToOne.cjs +17 -55
- package/src/decorators/orm/OneToOne.mjs +17 -53
- package/src/decorators/orm/PrimaryColumn.cjs +17 -62
- package/src/decorators/orm/PrimaryColumn.mjs +19 -62
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +17 -67
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +19 -67
- package/src/decorators/orm/RelationId.cjs +17 -39
- package/src/decorators/orm/RelationId.mjs +18 -38
- package/src/decorators/orm/TableInheritance.cjs +17 -39
- package/src/decorators/orm/TableInheritance.mjs +18 -38
- package/src/decorators/orm/Tree.cjs +17 -37
- package/src/decorators/orm/Tree.mjs +18 -36
- package/src/decorators/orm/TreeChildren.cjs +17 -44
- package/src/decorators/orm/TreeChildren.mjs +17 -42
- package/src/decorators/orm/TreeLevelColumn.cjs +17 -38
- package/src/decorators/orm/TreeLevelColumn.mjs +17 -36
- package/src/decorators/orm/TreeParent.cjs +17 -44
- package/src/decorators/orm/TreeParent.mjs +17 -42
- package/src/decorators/orm/Unique.cjs +17 -57
- package/src/decorators/orm/Unique.mjs +19 -57
- package/src/decorators/orm/UpdateDateColumn.cjs +17 -38
- package/src/decorators/orm/UpdateDateColumn.mjs +18 -37
- package/src/decorators/orm/VersionColumn.cjs +17 -38
- package/src/decorators/orm/VersionColumn.mjs +18 -37
- package/src/decorators/orm/ViewColumn.cjs +17 -38
- package/src/decorators/orm/ViewColumn.mjs +18 -37
- package/src/decorators/orm/ViewEntity.cjs +17 -47
- package/src/decorators/orm/ViewEntity.mjs +18 -46
- package/src/decorators/orm/VirtualColumn.cjs +17 -55
- package/src/decorators/orm/VirtualColumn.mjs +17 -53
- package/src/lib/base/BaseObject.cjs +4 -2
- package/src/lib/base/BaseObject.mjs +4 -2
- package/src/lib/base/EventEmitter.cjs +1200 -1193
- package/src/lib/base/EventEmitter.mjs +1201 -1194
- package/src/lib/base/internal/ApplicationConfigLoader.cjs +4 -2
- package/src/lib/base/internal/ApplicationConfigLoader.mjs +4 -2
- package/src/lib/base/internal/ControllerEntrypoint.cjs +3 -3
- package/src/lib/base/internal/ControllerEntrypoint.mjs +3 -3
- package/src/lib/base/internal/DataValidator.cjs +176 -179
- package/src/lib/base/internal/DataValidator.mjs +177 -180
- package/src/lib/base/internal/ModuleConfigLoader.cjs +4 -3
- package/src/lib/base/internal/ModuleConfigLoader.mjs +4 -3
- package/src/lib/base/internal/ObjectType.cjs +4 -2
- package/src/lib/base/internal/ObjectType.mjs +4 -2
- package/src/lib/base/internal/PatternManager.cjs +740 -735
- package/src/lib/base/internal/PatternManager.mjs +745 -740
- package/src/lib/base/internal/StringifyPattern.cjs +1 -1
- package/src/lib/base/internal/StringifyPattern.mjs +1 -1
- package/src/lib/core/Application.cjs +151 -147
- package/src/lib/core/Application.mjs +199 -197
- package/src/lib/core/Component.cjs +4 -2
- package/src/lib/core/Component.mjs +4 -2
- package/src/lib/core/Container.cjs +4 -2
- package/src/lib/core/Container.mjs +4 -2
- package/src/lib/core/Module.cjs +5 -3
- package/src/lib/core/Module.mjs +5 -3
- package/src/lib/core/Provider.cjs +4 -2
- package/src/lib/core/Provider.mjs +4 -2
- package/src/lib/helpers/Glob.cjs +970 -721
- package/src/lib/helpers/Glob.mjs +1036 -787
- package/src/lib/helpers/IsHtml.cjs +7 -13
- package/src/lib/helpers/IsHtml.mjs +7 -13
- package/src/lib/helpers/IsXML.cjs +1158 -1016
- package/src/lib/helpers/IsXML.mjs +871 -729
- package/src/lib/helpers/MD5.cjs +1 -1
- package/src/lib/helpers/MD5.mjs +1 -1
- package/src/lib/helpers/NonceStr.cjs +1 -1
- package/src/lib/helpers/NonceStr.mjs +1 -1
- package/src/lib/helpers/ObjectHash.cjs +379 -372
- package/src/lib/helpers/ObjectHash.mjs +379 -372
- package/src/lib/helpers/RandomString.cjs +168 -147
- package/src/lib/helpers/RandomString.mjs +167 -146
- package/src/lib/helpers/SHA1.cjs +1 -1
- package/src/lib/helpers/SHA1.mjs +1 -1
- package/src/lib/helpers/SHA256.cjs +1 -1
- package/src/lib/helpers/SHA256.mjs +1 -1
- package/src/lib/helpers/SortArray.cjs +1 -1
- package/src/lib/helpers/SortArray.mjs +1 -1
- package/src/lib/helpers/Statistics.cjs +1 -1
- package/src/lib/helpers/Statistics.mjs +1 -1
- package/src/lib/helpers/URLBuilder.cjs +355 -355
- package/src/lib/helpers/URLBuilder.mjs +350 -350
- package/src/lib/helpers/UUID.cjs +1 -1
- package/src/lib/helpers/UUID.mjs +1 -1
- package/src/lib/ioc/DependencyInjectionContainer.cjs +32 -30
- package/src/lib/ioc/DependencyInjectionContainer.mjs +12 -10
- package/src/lib/ioc/ListModules.cjs +5174 -5249
- package/src/lib/ioc/ListModules.mjs +5177 -5252
- package/src/lib/validation/VLD.cjs +4080 -3902
- package/src/lib/validation/VLD.mjs +2970 -2792
- package/src/options/ApplicationOptions.cjs +4 -2
- package/src/options/ApplicationOptions.mjs +4 -2
- package/src/options/LoadAnonymousObjectOptions.cjs +4 -2
- package/src/options/LoadAnonymousObjectOptions.mjs +4 -2
- package/src/options/LoadNamedObjectOptions.cjs +4 -2
- package/src/options/LoadNamedObjectOptions.mjs +4 -2
- package/src/options/LoadObjectOptions.cjs +4 -2
- package/src/options/LoadObjectOptions.mjs +4 -2
- package/src/options/ModuleLoadObjectsOptions.cjs +4 -2
- package/src/options/ModuleLoadObjectsOptions.mjs +4 -2
- package/src/options/ModuleOptions.cjs +4 -4
- package/src/options/ModuleOptions.mjs +4 -4
- package/src/options/OverridableNamedObjectOptions.cjs +4 -2
- package/src/options/OverridableNamedObjectOptions.mjs +4 -2
- package/src/options/OverridableObjectOptions.cjs +4 -2
- package/src/options/OverridableObjectOptions.mjs +4 -2
- package/src/providers/Database.cjs +11 -11
- package/src/providers/Database.mjs +11 -11
- package/src/providers/PasswordHash.cjs +5 -3
- package/src/providers/PasswordHash.mjs +190 -188
- package/src/providers/migration/GenerateMigration.cjs +15 -19
- package/src/providers/migration/GenerateMigration.mjs +15 -19
- package/vendor/Package.10.cjs +2 -8
- package/vendor/Package.10.mjs +2 -8
- package/vendor/Package.11.cjs +5 -83
- package/vendor/Package.11.mjs +5 -77
- package/vendor/Package.112.cjs +48900 -0
- package/vendor/Package.112.mjs +48764 -0
- package/vendor/Package.12.cjs +4 -2
- package/vendor/Package.12.mjs +6 -4
- package/vendor/Package.13.cjs +87 -1
- package/vendor/Package.13.mjs +81 -1
- package/vendor/Package.14.cjs +1 -14057
- package/vendor/Package.14.mjs +1 -14031
- package/vendor/Package.15.cjs +1 -1
- package/vendor/Package.15.mjs +1 -1
- package/vendor/Package.16.cjs +18129 -1935
- package/vendor/Package.16.mjs +18115 -1839
- package/vendor/Package.17.cjs +1922 -47918
- package/vendor/Package.17.mjs +1874 -47937
- package/vendor/Package.18.cjs +35 -1
- package/vendor/Package.18.mjs +35 -1
- package/vendor/Package.19.cjs +37 -0
- package/vendor/Package.19.mjs +35 -0
- package/vendor/Package.2.cjs +5739 -5710
- package/vendor/Package.2.mjs +5733 -5704
- package/vendor/Package.20.cjs +37 -0
- package/vendor/Package.20.mjs +35 -0
- package/vendor/Package.21.cjs +37 -0
- package/vendor/Package.21.mjs +35 -0
- package/vendor/Package.22.cjs +37 -0
- package/vendor/Package.22.mjs +35 -0
- package/vendor/Package.23.cjs +37 -0
- package/vendor/Package.23.mjs +35 -0
- package/vendor/Package.24.cjs +37 -0
- package/vendor/Package.24.mjs +35 -0
- package/vendor/Package.25.cjs +37 -0
- package/vendor/Package.25.mjs +35 -0
- package/vendor/Package.26.cjs +37 -0
- package/vendor/Package.26.mjs +35 -0
- package/vendor/Package.27.cjs +37 -0
- package/vendor/Package.27.mjs +35 -0
- package/vendor/Package.28.cjs +37 -0
- package/vendor/Package.28.mjs +35 -0
- package/vendor/Package.29.cjs +40 -0
- package/vendor/Package.29.mjs +38 -0
- package/vendor/Package.30.cjs +41 -0
- package/vendor/Package.30.mjs +39 -0
- package/vendor/Package.31.cjs +72 -0
- package/vendor/Package.31.mjs +70 -0
- package/vendor/Package.32.cjs +37 -0
- package/vendor/Package.32.mjs +35 -0
- package/vendor/Package.33.cjs +37 -0
- package/vendor/Package.33.mjs +35 -0
- package/vendor/Package.34.cjs +46 -0
- package/vendor/Package.34.mjs +44 -0
- package/vendor/Package.35.cjs +34 -0
- package/vendor/Package.35.mjs +32 -0
- package/vendor/Package.36.cjs +40 -0
- package/vendor/Package.36.mjs +38 -0
- package/vendor/Package.37.cjs +36 -0
- package/vendor/Package.37.mjs +34 -0
- package/vendor/Package.38.cjs +52 -0
- package/vendor/Package.38.mjs +50 -0
- package/vendor/Package.39.cjs +41 -0
- package/vendor/Package.39.mjs +39 -0
- package/vendor/Package.4.cjs +884 -874
- package/vendor/Package.4.mjs +884 -874
- package/vendor/Package.40.cjs +42 -0
- package/vendor/Package.40.mjs +40 -0
- package/vendor/Package.41.cjs +53 -0
- package/vendor/Package.41.mjs +51 -0
- package/vendor/Package.42.cjs +53 -0
- package/vendor/Package.42.mjs +51 -0
- package/vendor/Package.43.cjs +40 -0
- package/vendor/Package.43.mjs +38 -0
- package/vendor/Package.44.cjs +46 -0
- package/vendor/Package.44.mjs +44 -0
- package/vendor/Package.45.cjs +53 -0
- package/vendor/Package.45.mjs +51 -0
- package/vendor/Package.46.cjs +59 -0
- package/vendor/Package.46.mjs +57 -0
- package/vendor/Package.47.cjs +65 -0
- package/vendor/Package.47.mjs +63 -0
- package/vendor/Package.48.cjs +38 -0
- package/vendor/Package.48.mjs +36 -0
- package/vendor/Package.49.cjs +38 -0
- package/vendor/Package.49.mjs +36 -0
- package/vendor/Package.5.cjs +15 -11
- package/vendor/Package.5.mjs +11 -7
- package/vendor/Package.50.cjs +36 -0
- package/vendor/Package.50.mjs +34 -0
- package/vendor/Package.51.cjs +43 -0
- package/vendor/Package.51.mjs +41 -0
- package/vendor/Package.52.cjs +37 -0
- package/vendor/Package.52.mjs +35 -0
- package/vendor/Package.53.cjs +43 -0
- package/vendor/Package.53.mjs +41 -0
- package/vendor/Package.54.cjs +55 -0
- package/vendor/Package.54.mjs +53 -0
- package/vendor/Package.55.cjs +37 -0
- package/vendor/Package.55.mjs +35 -0
- package/vendor/Package.56.cjs +37 -0
- package/vendor/Package.56.mjs +35 -0
- package/vendor/Package.57.cjs +37 -0
- package/vendor/Package.57.mjs +35 -0
- package/vendor/Package.58.cjs +45 -0
- package/vendor/Package.58.mjs +43 -0
- package/vendor/Package.59.cjs +53 -0
- package/vendor/Package.59.mjs +51 -0
- package/vendor/Package.6.cjs +520 -511
- package/vendor/Package.6.mjs +543 -534
- package/vendor/Package.60.cjs +47649 -0
- package/vendor/Package.60.mjs +47606 -0
- package/vendor/Package.610.cjs +11 -11
- package/vendor/Package.610.mjs +11 -11
- package/vendor/Package.611.cjs +33 -23
- package/vendor/Package.611.mjs +19 -9
- package/vendor/Package.612.cjs +42 -36
- package/vendor/Package.612.mjs +35 -29
- package/vendor/Package.613.cjs +5 -4
- package/vendor/Package.613.mjs +5 -4
- package/vendor/Package.62.cjs +92 -89
- package/vendor/Package.62.mjs +185 -182
- package/vendor/Package.63.cjs +509 -166
- package/vendor/Package.63.mjs +490 -165
- package/vendor/Package.64.cjs +139 -511
- package/vendor/Package.64.mjs +139 -491
- package/vendor/Package.65.cjs +4135 -150
- package/vendor/Package.65.mjs +4143 -150
- package/vendor/Package.66.cjs +346 -4150
- package/vendor/Package.66.mjs +346 -4158
- package/vendor/Package.67.cjs +412 -261
- package/vendor/Package.67.mjs +410 -259
- package/vendor/Package.68.cjs +397 -405
- package/vendor/Package.68.mjs +227 -242
- package/vendor/Package.8.cjs +0 -4
- package/vendor/Package.8.mjs +0 -4
- package/vendor/Package.9.cjs +132 -118
- package/vendor/Package.9.mjs +138 -124
- package/vendor/TypeDef.internal.3.d.ts +0 -4
- package/vendor/Package.102.cjs +0 -48773
- package/vendor/Package.102.mjs +0 -48697
- package/vendor/Package.122.cjs +0 -3
- package/vendor/Package.122.mjs +0 -1
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, Symbol.toStringTag, {
|
|
|
6
6
|
|
|
7
7
|
const r = require("../../../vendor/Package.5.cjs");
|
|
8
8
|
|
|
9
|
-
require("../../../vendor/Package.
|
|
9
|
+
require("../../../vendor/Package.15.cjs");
|
|
10
10
|
|
|
11
11
|
const t = require("crypto");
|
|
12
12
|
|
|
@@ -22,397 +22,404 @@ var i = {
|
|
|
22
22
|
|
|
23
23
|
var o = i.exports;
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return i(r, {
|
|
38
|
-
excludeValues: true,
|
|
39
|
-
algorithm: "sha1",
|
|
40
|
-
encoding: "hex"
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
t.MD5 = function(r) {
|
|
44
|
-
return i(r, {
|
|
45
|
-
algorithm: "md5",
|
|
46
|
-
encoding: "hex"
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
t.keysMD5 = function(r) {
|
|
50
|
-
return i(r, {
|
|
51
|
-
algorithm: "md5",
|
|
52
|
-
encoding: "hex",
|
|
53
|
-
excludeValues: true
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
var o = e.getHashes ? e.getHashes().slice() : [ "sha1", "md5" ];
|
|
57
|
-
o.push("passthrough");
|
|
58
|
-
var u = [ "buffer", "hex", "binary", "base64" ];
|
|
59
|
-
function a(r, t) {
|
|
60
|
-
t = t || {};
|
|
61
|
-
var e = {};
|
|
62
|
-
e.algorithm = t.algorithm || "sha1";
|
|
63
|
-
e.encoding = t.encoding || "hex";
|
|
64
|
-
e.excludeValues = t.excludeValues ? true : false;
|
|
65
|
-
e.algorithm = e.algorithm.toLowerCase();
|
|
66
|
-
e.encoding = e.encoding.toLowerCase();
|
|
67
|
-
e.ignoreUnknown = t.ignoreUnknown !== true ? false : true;
|
|
68
|
-
e.respectType = t.respectType === false ? false : true;
|
|
69
|
-
e.respectFunctionNames = t.respectFunctionNames === false ? false : true;
|
|
70
|
-
e.respectFunctionProperties = t.respectFunctionProperties === false ? false : true;
|
|
71
|
-
e.unorderedArrays = t.unorderedArrays !== true ? false : true;
|
|
72
|
-
e.unorderedSets = t.unorderedSets === false ? false : true;
|
|
73
|
-
e.unorderedObjects = t.unorderedObjects === false ? false : true;
|
|
74
|
-
e.replacer = t.replacer || undefined;
|
|
75
|
-
e.excludeKeys = t.excludeKeys || undefined;
|
|
76
|
-
if (typeof r === "undefined") {
|
|
77
|
-
throw new Error("Object argument required.");
|
|
25
|
+
var u;
|
|
26
|
+
|
|
27
|
+
function a() {
|
|
28
|
+
if (u) return i.exports;
|
|
29
|
+
u = 1;
|
|
30
|
+
(function(r, t) {
|
|
31
|
+
"use strict";
|
|
32
|
+
var e = n.default;
|
|
33
|
+
t = r.exports = i;
|
|
34
|
+
function i(r, t) {
|
|
35
|
+
t = a(r, t);
|
|
36
|
+
return c(r, t);
|
|
78
37
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
38
|
+
t.sha1 = function(r) {
|
|
39
|
+
return i(r);
|
|
40
|
+
};
|
|
41
|
+
t.keys = function(r) {
|
|
42
|
+
return i(r, {
|
|
43
|
+
excludeValues: true,
|
|
44
|
+
algorithm: "sha1",
|
|
45
|
+
encoding: "hex"
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
t.MD5 = function(r) {
|
|
49
|
+
return i(r, {
|
|
50
|
+
algorithm: "md5",
|
|
51
|
+
encoding: "hex"
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
t.keysMD5 = function(r) {
|
|
55
|
+
return i(r, {
|
|
56
|
+
algorithm: "md5",
|
|
57
|
+
encoding: "hex",
|
|
58
|
+
excludeValues: true
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
var o = e.getHashes ? e.getHashes().slice() : [ "sha1", "md5" ];
|
|
62
|
+
o.push("passthrough");
|
|
63
|
+
var u = [ "buffer", "hex", "binary", "base64" ];
|
|
64
|
+
function a(r, t) {
|
|
65
|
+
t = t || {};
|
|
66
|
+
var e = {};
|
|
67
|
+
e.algorithm = t.algorithm || "sha1";
|
|
68
|
+
e.encoding = t.encoding || "hex";
|
|
69
|
+
e.excludeValues = t.excludeValues ? true : false;
|
|
70
|
+
e.algorithm = e.algorithm.toLowerCase();
|
|
71
|
+
e.encoding = e.encoding.toLowerCase();
|
|
72
|
+
e.ignoreUnknown = t.ignoreUnknown !== true ? false : true;
|
|
73
|
+
e.respectType = t.respectType === false ? false : true;
|
|
74
|
+
e.respectFunctionNames = t.respectFunctionNames === false ? false : true;
|
|
75
|
+
e.respectFunctionProperties = t.respectFunctionProperties === false ? false : true;
|
|
76
|
+
e.unorderedArrays = t.unorderedArrays !== true ? false : true;
|
|
77
|
+
e.unorderedSets = t.unorderedSets === false ? false : true;
|
|
78
|
+
e.unorderedObjects = t.unorderedObjects === false ? false : true;
|
|
79
|
+
e.replacer = t.replacer || undefined;
|
|
80
|
+
e.excludeKeys = t.excludeKeys || undefined;
|
|
81
|
+
if (typeof r === "undefined") {
|
|
82
|
+
throw new Error("Object argument required.");
|
|
82
83
|
}
|
|
84
|
+
for (var n = 0; n < o.length; ++n) {
|
|
85
|
+
if (o[n].toLowerCase() === e.algorithm.toLowerCase()) {
|
|
86
|
+
e.algorithm = o[n];
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
if (o.indexOf(e.algorithm) === -1) {
|
|
90
|
+
throw new Error('Algorithm "' + e.algorithm + '" not supported. ' + "supported values: " + o.join(", "));
|
|
91
|
+
}
|
|
92
|
+
if (u.indexOf(e.encoding) === -1 && e.algorithm !== "passthrough") {
|
|
93
|
+
throw new Error('Encoding "' + e.encoding + '" not supported. ' + "supported values: " + u.join(", "));
|
|
94
|
+
}
|
|
95
|
+
return e;
|
|
83
96
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return e;
|
|
91
|
-
}
|
|
92
|
-
function s(r) {
|
|
93
|
-
if (typeof r !== "function") {
|
|
94
|
-
return false;
|
|
95
|
-
}
|
|
96
|
-
var t = /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i;
|
|
97
|
-
return t.exec(Function.prototype.toString.call(r)) != null;
|
|
98
|
-
}
|
|
99
|
-
function c(r, t) {
|
|
100
|
-
var n;
|
|
101
|
-
if (t.algorithm !== "passthrough") {
|
|
102
|
-
n = e.createHash(t.algorithm);
|
|
103
|
-
} else {
|
|
104
|
-
n = new l;
|
|
105
|
-
}
|
|
106
|
-
if (typeof n.write === "undefined") {
|
|
107
|
-
n.write = n.update;
|
|
108
|
-
n.end = n.update;
|
|
109
|
-
}
|
|
110
|
-
var i = f(t, n);
|
|
111
|
-
i.dispatch(r);
|
|
112
|
-
if (!n.update) {
|
|
113
|
-
n.end("");
|
|
114
|
-
}
|
|
115
|
-
if (n.digest) {
|
|
116
|
-
return n.digest(t.encoding === "buffer" ? undefined : t.encoding);
|
|
117
|
-
}
|
|
118
|
-
var o = n.read();
|
|
119
|
-
if (t.encoding === "buffer") {
|
|
120
|
-
return o;
|
|
121
|
-
}
|
|
122
|
-
return o.toString(t.encoding);
|
|
123
|
-
}
|
|
124
|
-
t.writeToStream = function(r, t, e) {
|
|
125
|
-
if (typeof e === "undefined") {
|
|
126
|
-
e = t;
|
|
127
|
-
t = {};
|
|
97
|
+
function s(r) {
|
|
98
|
+
if (typeof r !== "function") {
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
var t = /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i;
|
|
102
|
+
return t.exec(Function.prototype.toString.call(r)) != null;
|
|
128
103
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
e = e || [];
|
|
134
|
-
var n = function(r) {
|
|
135
|
-
if (t.update) {
|
|
136
|
-
return t.update(r, "utf8");
|
|
104
|
+
function c(r, t) {
|
|
105
|
+
var n;
|
|
106
|
+
if (t.algorithm !== "passthrough") {
|
|
107
|
+
n = e.createHash(t.algorithm);
|
|
137
108
|
} else {
|
|
138
|
-
|
|
109
|
+
n = new l;
|
|
110
|
+
}
|
|
111
|
+
if (typeof n.write === "undefined") {
|
|
112
|
+
n.write = n.update;
|
|
113
|
+
n.end = n.update;
|
|
139
114
|
}
|
|
115
|
+
var i = f(t, n);
|
|
116
|
+
i.dispatch(r);
|
|
117
|
+
if (!n.update) {
|
|
118
|
+
n.end("");
|
|
119
|
+
}
|
|
120
|
+
if (n.digest) {
|
|
121
|
+
return n.digest(t.encoding === "buffer" ? undefined : t.encoding);
|
|
122
|
+
}
|
|
123
|
+
var o = n.read();
|
|
124
|
+
if (t.encoding === "buffer") {
|
|
125
|
+
return o;
|
|
126
|
+
}
|
|
127
|
+
return o.toString(t.encoding);
|
|
128
|
+
}
|
|
129
|
+
t.writeToStream = function(r, t, e) {
|
|
130
|
+
if (typeof e === "undefined") {
|
|
131
|
+
e = t;
|
|
132
|
+
t = {};
|
|
133
|
+
}
|
|
134
|
+
t = a(r, t);
|
|
135
|
+
return f(t, e).dispatch(r);
|
|
140
136
|
};
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
var e = typeof t;
|
|
147
|
-
if (t === null) {
|
|
148
|
-
e = "null";
|
|
149
|
-
}
|
|
150
|
-
return this["_" + e](t);
|
|
151
|
-
},
|
|
152
|
-
_object: function(t) {
|
|
153
|
-
var i = /\[object (.*)\]/i;
|
|
154
|
-
var o = Object.prototype.toString.call(t);
|
|
155
|
-
var u = i.exec(o);
|
|
156
|
-
if (!u) {
|
|
157
|
-
u = "unknown:[" + o + "]";
|
|
137
|
+
function f(r, t, e) {
|
|
138
|
+
e = e || [];
|
|
139
|
+
var n = function(r) {
|
|
140
|
+
if (t.update) {
|
|
141
|
+
return t.update(r, "utf8");
|
|
158
142
|
} else {
|
|
159
|
-
|
|
143
|
+
return t.write(r, "utf8");
|
|
160
144
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
145
|
+
};
|
|
146
|
+
return {
|
|
147
|
+
dispatch: function(t) {
|
|
148
|
+
if (r.replacer) {
|
|
149
|
+
t = r.replacer(t);
|
|
150
|
+
}
|
|
151
|
+
var e = typeof t;
|
|
152
|
+
if (t === null) {
|
|
153
|
+
e = "null";
|
|
154
|
+
}
|
|
155
|
+
return this["_" + e](t);
|
|
156
|
+
},
|
|
157
|
+
_object: function(t) {
|
|
158
|
+
var i = /\[object (.*)\]/i;
|
|
159
|
+
var o = Object.prototype.toString.call(t);
|
|
160
|
+
var u = i.exec(o);
|
|
161
|
+
if (!u) {
|
|
162
|
+
u = "unknown:[" + o + "]";
|
|
177
163
|
} else {
|
|
178
|
-
|
|
164
|
+
u = u[1];
|
|
179
165
|
}
|
|
180
|
-
|
|
181
|
-
var
|
|
182
|
-
if (
|
|
183
|
-
|
|
166
|
+
u = u.toLowerCase();
|
|
167
|
+
var a = null;
|
|
168
|
+
if ((a = e.indexOf(t)) >= 0) {
|
|
169
|
+
return this.dispatch("[CIRCULAR:" + a + "]");
|
|
170
|
+
} else {
|
|
171
|
+
e.push(t);
|
|
184
172
|
}
|
|
185
|
-
if (
|
|
186
|
-
|
|
173
|
+
if (typeof Buffer !== "undefined" && Buffer.isBuffer && Buffer.isBuffer(t)) {
|
|
174
|
+
n("buffer:");
|
|
175
|
+
return n(t);
|
|
187
176
|
}
|
|
188
|
-
if (
|
|
189
|
-
|
|
190
|
-
|
|
177
|
+
if (u !== "object" && u !== "function" && u !== "asyncfunction") {
|
|
178
|
+
if (this["_" + u]) {
|
|
179
|
+
this["_" + u](t);
|
|
180
|
+
} else if (r.ignoreUnknown) {
|
|
181
|
+
return n("[" + u + "]");
|
|
182
|
+
} else {
|
|
183
|
+
throw new Error('Unknown object type "' + u + '"');
|
|
184
|
+
}
|
|
185
|
+
} else {
|
|
186
|
+
var c = Object.keys(t);
|
|
187
|
+
if (r.unorderedObjects) {
|
|
188
|
+
c = c.sort();
|
|
189
|
+
}
|
|
190
|
+
if (r.respectType !== false && !s(t)) {
|
|
191
|
+
c.splice(0, 0, "prototype", "__proto__", "constructor");
|
|
192
|
+
}
|
|
193
|
+
if (r.excludeKeys) {
|
|
194
|
+
c = c.filter((function(t) {
|
|
195
|
+
return !r.excludeKeys(t);
|
|
196
|
+
}));
|
|
197
|
+
}
|
|
198
|
+
n("object:" + c.length + ":");
|
|
199
|
+
var f = this;
|
|
200
|
+
return c.forEach((function(e) {
|
|
201
|
+
f.dispatch(e);
|
|
202
|
+
n(":");
|
|
203
|
+
if (!r.excludeValues) {
|
|
204
|
+
f.dispatch(t[e]);
|
|
205
|
+
}
|
|
206
|
+
n(",");
|
|
191
207
|
}));
|
|
192
208
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
return o.dispatch(r);
|
|
209
|
+
},
|
|
210
|
+
_array: function(t, i) {
|
|
211
|
+
i = typeof i !== "undefined" ? i : r.unorderedArrays !== false;
|
|
212
|
+
var o = this;
|
|
213
|
+
n("array:" + t.length + ":");
|
|
214
|
+
if (!i || t.length <= 1) {
|
|
215
|
+
return t.forEach((function(r) {
|
|
216
|
+
return o.dispatch(r);
|
|
217
|
+
}));
|
|
218
|
+
}
|
|
219
|
+
var u = [];
|
|
220
|
+
var a = t.map((function(t) {
|
|
221
|
+
var n = new l;
|
|
222
|
+
var i = e.slice();
|
|
223
|
+
var o = f(r, n, i);
|
|
224
|
+
o.dispatch(t);
|
|
225
|
+
u = u.concat(i.slice(e.length));
|
|
226
|
+
return n.read().toString();
|
|
212
227
|
}));
|
|
228
|
+
e = e.concat(u);
|
|
229
|
+
a.sort();
|
|
230
|
+
return this._array(a, false);
|
|
231
|
+
},
|
|
232
|
+
_date: function(r) {
|
|
233
|
+
return n("date:" + r.toJSON());
|
|
234
|
+
},
|
|
235
|
+
_symbol: function(r) {
|
|
236
|
+
return n("symbol:" + r.toString());
|
|
237
|
+
},
|
|
238
|
+
_error: function(r) {
|
|
239
|
+
return n("error:" + r.toString());
|
|
240
|
+
},
|
|
241
|
+
_boolean: function(r) {
|
|
242
|
+
return n("bool:" + r.toString());
|
|
243
|
+
},
|
|
244
|
+
_string: function(r) {
|
|
245
|
+
n("string:" + r.length + ":");
|
|
246
|
+
n(r.toString());
|
|
247
|
+
},
|
|
248
|
+
_function: function(t) {
|
|
249
|
+
n("fn:");
|
|
250
|
+
if (s(t)) {
|
|
251
|
+
this.dispatch("[native]");
|
|
252
|
+
} else {
|
|
253
|
+
this.dispatch(t.toString());
|
|
254
|
+
}
|
|
255
|
+
if (r.respectFunctionNames !== false) {
|
|
256
|
+
this.dispatch("function-name:" + String(t.name));
|
|
257
|
+
}
|
|
258
|
+
if (r.respectFunctionProperties) {
|
|
259
|
+
this._object(t);
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
_number: function(r) {
|
|
263
|
+
return n("number:" + r.toString());
|
|
264
|
+
},
|
|
265
|
+
_xml: function(r) {
|
|
266
|
+
return n("xml:" + r.toString());
|
|
267
|
+
},
|
|
268
|
+
_null: function() {
|
|
269
|
+
return n("Null");
|
|
270
|
+
},
|
|
271
|
+
_undefined: function() {
|
|
272
|
+
return n("Undefined");
|
|
273
|
+
},
|
|
274
|
+
_regexp: function(r) {
|
|
275
|
+
return n("regex:" + r.toString());
|
|
276
|
+
},
|
|
277
|
+
_uint8array: function(r) {
|
|
278
|
+
n("uint8array:");
|
|
279
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
280
|
+
},
|
|
281
|
+
_uint8clampedarray: function(r) {
|
|
282
|
+
n("uint8clampedarray:");
|
|
283
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
284
|
+
},
|
|
285
|
+
_int8array: function(r) {
|
|
286
|
+
n("int8array:");
|
|
287
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
288
|
+
},
|
|
289
|
+
_uint16array: function(r) {
|
|
290
|
+
n("uint16array:");
|
|
291
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
292
|
+
},
|
|
293
|
+
_int16array: function(r) {
|
|
294
|
+
n("int16array:");
|
|
295
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
296
|
+
},
|
|
297
|
+
_uint32array: function(r) {
|
|
298
|
+
n("uint32array:");
|
|
299
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
300
|
+
},
|
|
301
|
+
_int32array: function(r) {
|
|
302
|
+
n("int32array:");
|
|
303
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
304
|
+
},
|
|
305
|
+
_float32array: function(r) {
|
|
306
|
+
n("float32array:");
|
|
307
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
308
|
+
},
|
|
309
|
+
_float64array: function(r) {
|
|
310
|
+
n("float64array:");
|
|
311
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
312
|
+
},
|
|
313
|
+
_arraybuffer: function(r) {
|
|
314
|
+
n("arraybuffer:");
|
|
315
|
+
return this.dispatch(new Uint8Array(r));
|
|
316
|
+
},
|
|
317
|
+
_url: function(r) {
|
|
318
|
+
return n("url:" + r.toString(), "utf8");
|
|
319
|
+
},
|
|
320
|
+
_map: function(t) {
|
|
321
|
+
n("map:");
|
|
322
|
+
var e = Array.from(t);
|
|
323
|
+
return this._array(e, r.unorderedSets !== false);
|
|
324
|
+
},
|
|
325
|
+
_set: function(t) {
|
|
326
|
+
n("set:");
|
|
327
|
+
var e = Array.from(t);
|
|
328
|
+
return this._array(e, r.unorderedSets !== false);
|
|
329
|
+
},
|
|
330
|
+
_file: function(r) {
|
|
331
|
+
n("file:");
|
|
332
|
+
return this.dispatch([ r.name, r.size, r.type, r.lastModfied ]);
|
|
333
|
+
},
|
|
334
|
+
_blob: function() {
|
|
335
|
+
if (r.ignoreUnknown) {
|
|
336
|
+
return n("[blob]");
|
|
337
|
+
}
|
|
338
|
+
throw Error("Hashing Blob objects is currently not supported\n" + "(see https://github.com/puleos/object-hash/issues/26)\n" + 'Use "options.replacer" or "options.ignoreUnknown"\n');
|
|
339
|
+
},
|
|
340
|
+
_domwindow: function() {
|
|
341
|
+
return n("domwindow");
|
|
342
|
+
},
|
|
343
|
+
_bigint: function(r) {
|
|
344
|
+
return n("bigint:" + r.toString());
|
|
345
|
+
},
|
|
346
|
+
_process: function() {
|
|
347
|
+
return n("process");
|
|
348
|
+
},
|
|
349
|
+
_timer: function() {
|
|
350
|
+
return n("timer");
|
|
351
|
+
},
|
|
352
|
+
_pipe: function() {
|
|
353
|
+
return n("pipe");
|
|
354
|
+
},
|
|
355
|
+
_tcp: function() {
|
|
356
|
+
return n("tcp");
|
|
357
|
+
},
|
|
358
|
+
_udp: function() {
|
|
359
|
+
return n("udp");
|
|
360
|
+
},
|
|
361
|
+
_tty: function() {
|
|
362
|
+
return n("tty");
|
|
363
|
+
},
|
|
364
|
+
_statwatcher: function() {
|
|
365
|
+
return n("statwatcher");
|
|
366
|
+
},
|
|
367
|
+
_securecontext: function() {
|
|
368
|
+
return n("securecontext");
|
|
369
|
+
},
|
|
370
|
+
_connection: function() {
|
|
371
|
+
return n("connection");
|
|
372
|
+
},
|
|
373
|
+
_zlib: function() {
|
|
374
|
+
return n("zlib");
|
|
375
|
+
},
|
|
376
|
+
_context: function() {
|
|
377
|
+
return n("context");
|
|
378
|
+
},
|
|
379
|
+
_nodescript: function() {
|
|
380
|
+
return n("nodescript");
|
|
381
|
+
},
|
|
382
|
+
_httpparser: function() {
|
|
383
|
+
return n("httpparser");
|
|
384
|
+
},
|
|
385
|
+
_dataview: function() {
|
|
386
|
+
return n("dataview");
|
|
387
|
+
},
|
|
388
|
+
_signal: function() {
|
|
389
|
+
return n("signal");
|
|
390
|
+
},
|
|
391
|
+
_fsevent: function() {
|
|
392
|
+
return n("fsevent");
|
|
393
|
+
},
|
|
394
|
+
_tlswrap: function() {
|
|
395
|
+
return n("tlswrap");
|
|
213
396
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
_date: function(r) {
|
|
228
|
-
return n("date:" + r.toJSON());
|
|
229
|
-
},
|
|
230
|
-
_symbol: function(r) {
|
|
231
|
-
return n("symbol:" + r.toString());
|
|
232
|
-
},
|
|
233
|
-
_error: function(r) {
|
|
234
|
-
return n("error:" + r.toString());
|
|
235
|
-
},
|
|
236
|
-
_boolean: function(r) {
|
|
237
|
-
return n("bool:" + r.toString());
|
|
238
|
-
},
|
|
239
|
-
_string: function(r) {
|
|
240
|
-
n("string:" + r.length + ":");
|
|
241
|
-
n(r.toString());
|
|
242
|
-
},
|
|
243
|
-
_function: function(t) {
|
|
244
|
-
n("fn:");
|
|
245
|
-
if (s(t)) {
|
|
246
|
-
this.dispatch("[native]");
|
|
247
|
-
} else {
|
|
248
|
-
this.dispatch(t.toString());
|
|
249
|
-
}
|
|
250
|
-
if (r.respectFunctionNames !== false) {
|
|
251
|
-
this.dispatch("function-name:" + String(t.name));
|
|
252
|
-
}
|
|
253
|
-
if (r.respectFunctionProperties) {
|
|
254
|
-
this._object(t);
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
_number: function(r) {
|
|
258
|
-
return n("number:" + r.toString());
|
|
259
|
-
},
|
|
260
|
-
_xml: function(r) {
|
|
261
|
-
return n("xml:" + r.toString());
|
|
262
|
-
},
|
|
263
|
-
_null: function() {
|
|
264
|
-
return n("Null");
|
|
265
|
-
},
|
|
266
|
-
_undefined: function() {
|
|
267
|
-
return n("Undefined");
|
|
268
|
-
},
|
|
269
|
-
_regexp: function(r) {
|
|
270
|
-
return n("regex:" + r.toString());
|
|
271
|
-
},
|
|
272
|
-
_uint8array: function(r) {
|
|
273
|
-
n("uint8array:");
|
|
274
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
275
|
-
},
|
|
276
|
-
_uint8clampedarray: function(r) {
|
|
277
|
-
n("uint8clampedarray:");
|
|
278
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
279
|
-
},
|
|
280
|
-
_int8array: function(r) {
|
|
281
|
-
n("int8array:");
|
|
282
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
283
|
-
},
|
|
284
|
-
_uint16array: function(r) {
|
|
285
|
-
n("uint16array:");
|
|
286
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
287
|
-
},
|
|
288
|
-
_int16array: function(r) {
|
|
289
|
-
n("int16array:");
|
|
290
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
291
|
-
},
|
|
292
|
-
_uint32array: function(r) {
|
|
293
|
-
n("uint32array:");
|
|
294
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
295
|
-
},
|
|
296
|
-
_int32array: function(r) {
|
|
297
|
-
n("int32array:");
|
|
298
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
299
|
-
},
|
|
300
|
-
_float32array: function(r) {
|
|
301
|
-
n("float32array:");
|
|
302
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
303
|
-
},
|
|
304
|
-
_float64array: function(r) {
|
|
305
|
-
n("float64array:");
|
|
306
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
307
|
-
},
|
|
308
|
-
_arraybuffer: function(r) {
|
|
309
|
-
n("arraybuffer:");
|
|
310
|
-
return this.dispatch(new Uint8Array(r));
|
|
311
|
-
},
|
|
312
|
-
_url: function(r) {
|
|
313
|
-
return n("url:" + r.toString(), "utf8");
|
|
314
|
-
},
|
|
315
|
-
_map: function(t) {
|
|
316
|
-
n("map:");
|
|
317
|
-
var e = Array.from(t);
|
|
318
|
-
return this._array(e, r.unorderedSets !== false);
|
|
319
|
-
},
|
|
320
|
-
_set: function(t) {
|
|
321
|
-
n("set:");
|
|
322
|
-
var e = Array.from(t);
|
|
323
|
-
return this._array(e, r.unorderedSets !== false);
|
|
324
|
-
},
|
|
325
|
-
_file: function(r) {
|
|
326
|
-
n("file:");
|
|
327
|
-
return this.dispatch([ r.name, r.size, r.type, r.lastModfied ]);
|
|
328
|
-
},
|
|
329
|
-
_blob: function() {
|
|
330
|
-
if (r.ignoreUnknown) {
|
|
331
|
-
return n("[blob]");
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
function l() {
|
|
400
|
+
return {
|
|
401
|
+
buf: "",
|
|
402
|
+
write: function(r) {
|
|
403
|
+
this.buf += r;
|
|
404
|
+
},
|
|
405
|
+
end: function(r) {
|
|
406
|
+
this.buf += r;
|
|
407
|
+
},
|
|
408
|
+
read: function() {
|
|
409
|
+
return this.buf;
|
|
332
410
|
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
_bigint: function(r) {
|
|
339
|
-
return n("bigint:" + r.toString());
|
|
340
|
-
},
|
|
341
|
-
_process: function() {
|
|
342
|
-
return n("process");
|
|
343
|
-
},
|
|
344
|
-
_timer: function() {
|
|
345
|
-
return n("timer");
|
|
346
|
-
},
|
|
347
|
-
_pipe: function() {
|
|
348
|
-
return n("pipe");
|
|
349
|
-
},
|
|
350
|
-
_tcp: function() {
|
|
351
|
-
return n("tcp");
|
|
352
|
-
},
|
|
353
|
-
_udp: function() {
|
|
354
|
-
return n("udp");
|
|
355
|
-
},
|
|
356
|
-
_tty: function() {
|
|
357
|
-
return n("tty");
|
|
358
|
-
},
|
|
359
|
-
_statwatcher: function() {
|
|
360
|
-
return n("statwatcher");
|
|
361
|
-
},
|
|
362
|
-
_securecontext: function() {
|
|
363
|
-
return n("securecontext");
|
|
364
|
-
},
|
|
365
|
-
_connection: function() {
|
|
366
|
-
return n("connection");
|
|
367
|
-
},
|
|
368
|
-
_zlib: function() {
|
|
369
|
-
return n("zlib");
|
|
370
|
-
},
|
|
371
|
-
_context: function() {
|
|
372
|
-
return n("context");
|
|
373
|
-
},
|
|
374
|
-
_nodescript: function() {
|
|
375
|
-
return n("nodescript");
|
|
376
|
-
},
|
|
377
|
-
_httpparser: function() {
|
|
378
|
-
return n("httpparser");
|
|
379
|
-
},
|
|
380
|
-
_dataview: function() {
|
|
381
|
-
return n("dataview");
|
|
382
|
-
},
|
|
383
|
-
_signal: function() {
|
|
384
|
-
return n("signal");
|
|
385
|
-
},
|
|
386
|
-
_fsevent: function() {
|
|
387
|
-
return n("fsevent");
|
|
388
|
-
},
|
|
389
|
-
_tlswrap: function() {
|
|
390
|
-
return n("tlswrap");
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
function l() {
|
|
395
|
-
return {
|
|
396
|
-
buf: "",
|
|
397
|
-
write: function(r) {
|
|
398
|
-
this.buf += r;
|
|
399
|
-
},
|
|
400
|
-
end: function(r) {
|
|
401
|
-
this.buf += r;
|
|
402
|
-
},
|
|
403
|
-
read: function() {
|
|
404
|
-
return this.buf;
|
|
405
|
-
}
|
|
406
|
-
};
|
|
407
|
-
}
|
|
408
|
-
})(i, i.exports);
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
})(i, i.exports);
|
|
414
|
+
return i.exports;
|
|
415
|
+
}
|
|
409
416
|
|
|
410
|
-
var
|
|
417
|
+
var s = a();
|
|
411
418
|
|
|
412
|
-
const
|
|
419
|
+
const c = r.getDefaultExportFromCjs(s);
|
|
413
420
|
|
|
414
|
-
function
|
|
415
|
-
return
|
|
421
|
+
function f(r, t) {
|
|
422
|
+
return c(r, t);
|
|
416
423
|
}
|
|
417
424
|
|
|
418
|
-
exports.ObjectHash =
|
|
425
|
+
exports.ObjectHash = f;
|