lakutata 2.0.63 → 2.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/com/docker.mjs +1 -1
- package/com/logger.mjs +1 -1
- package/decorator/orm.mjs +1 -1
- package/helper.mjs +2 -2
- package/lakutata.mjs +2 -2
- package/orm.mjs +15 -15
- package/package.json +1 -1
- package/src/components/Database.mjs +2 -2
- package/src/components/Logger.mjs +1 -1
- package/src/components/cacher/Cacher.mjs +10 -10
- package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +3 -3
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +21 -21
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +8 -8
- package/src/components/cacher/options/FileCacheOptions.mjs +2 -2
- package/src/components/cacher/options/MemcacheCacheOptions.mjs +2 -2
- package/src/components/cacher/options/MongoCacheOptions.mjs +2 -2
- package/src/components/cacher/options/MysqlCacheOptions.mjs +2 -2
- package/src/components/cacher/options/PostgresCacheOptions.mjs +2 -2
- package/src/components/cacher/options/RedisCacheOptions.mjs +2 -2
- package/src/components/cacher/options/SqliteCacheOptions.mjs +2 -2
- package/src/components/docker/Docker.mjs +5 -5
- package/src/components/docker/lib/DockerContainer.mjs +3 -3
- package/src/components/docker/lib/DockerContainerTTY.mjs +1 -1
- package/src/components/docker/lib/DockerImage.mjs +2 -2
- package/src/components/docker/options/DockerPruneOptions.mjs +2 -2
- package/src/components/docker/options/auth/DockerAuthOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerCommitOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerCreateTTYOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerExecOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerExportDirectoryOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerKillOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerLogsOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerRemoveOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerSettingOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerStopOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageBuildOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageExportOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageImportOptions.mjs +2 -2
- package/src/components/docker/options/image/ImagePullOptions.mjs +2 -2
- package/src/components/docker/options/image/ImagePushOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageRemoveOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageTagOptions.mjs +2 -2
- package/src/components/docker/options/network/NetworkCreateOptions.mjs +2 -2
- package/src/components/entrypoint/Entrypoint.mjs +3 -3
- package/src/components/entrypoint/lib/AccessControl.mjs +21 -21
- package/src/components/entrypoint/lib/AccessControlRule.mjs +2 -2
- package/src/components/entrypoint/lib/Controller.mjs +3 -3
- package/src/components/monitor/AliveMonitor.mjs +2 -2
- package/src/components/monitor/CpuMonitor.mjs +1 -1
- package/src/components/monitor/HttpRequestMonitor.mjs +14 -14
- package/src/components/monitor/MemoryMonitor.mjs +1 -1
- package/src/decorators/di/Configurable.mjs +1 -1
- package/src/decorators/dto/Expect.mjs +1 -1
- package/src/decorators/dto/IndexSignature.mjs +1 -1
- package/src/decorators/orm/AfterInsert.mjs +1 -1
- package/src/decorators/orm/AfterLoad.mjs +1 -1
- package/src/decorators/orm/AfterRecover.mjs +1 -1
- package/src/decorators/orm/AfterRemove.mjs +1 -1
- package/src/decorators/orm/AfterSoftRemove.mjs +1 -1
- package/src/decorators/orm/AfterUpdate.mjs +1 -1
- package/src/decorators/orm/BeforeInsert.mjs +1 -1
- package/src/decorators/orm/BeforeRecover.mjs +1 -1
- package/src/decorators/orm/BeforeRemove.mjs +1 -1
- package/src/decorators/orm/BeforeSoftRemove.mjs +1 -1
- package/src/decorators/orm/BeforeUpdate.mjs +1 -1
- package/src/decorators/orm/Check.mjs +1 -1
- package/src/decorators/orm/ChildEntity.mjs +1 -1
- package/src/decorators/orm/Column.mjs +1 -1
- package/src/decorators/orm/CreateDateColumn.mjs +1 -1
- package/src/decorators/orm/DeleteDateColumn.mjs +1 -1
- package/src/decorators/orm/Entity.mjs +1 -1
- package/src/decorators/orm/EventSubscriber.mjs +1 -1
- package/src/decorators/orm/Exclusion.mjs +1 -1
- package/src/decorators/orm/Generated.mjs +1 -1
- package/src/decorators/orm/Index.mjs +1 -1
- package/src/decorators/orm/JoinColumn.mjs +1 -1
- package/src/decorators/orm/JoinTable.mjs +1 -1
- package/src/decorators/orm/ManyToMany.mjs +1 -1
- package/src/decorators/orm/ManyToOne.mjs +1 -1
- package/src/decorators/orm/ObjectIdColumn.mjs +1 -1
- package/src/decorators/orm/OneToMany.mjs +1 -1
- package/src/decorators/orm/OneToOne.mjs +1 -1
- package/src/decorators/orm/PrimaryColumn.mjs +1 -1
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +1 -1
- package/src/decorators/orm/RelationId.mjs +1 -1
- package/src/decorators/orm/TableInheritance.mjs +1 -1
- package/src/decorators/orm/Tree.mjs +1 -1
- package/src/decorators/orm/TreeChildren.mjs +1 -1
- package/src/decorators/orm/TreeLevelColumn.mjs +1 -1
- package/src/decorators/orm/TreeParent.mjs +1 -1
- package/src/decorators/orm/Unique.mjs +1 -1
- package/src/decorators/orm/UpdateDateColumn.mjs +1 -1
- package/src/decorators/orm/VersionColumn.mjs +1 -1
- package/src/decorators/orm/ViewColumn.mjs +1 -1
- package/src/decorators/orm/ViewEntity.mjs +1 -1
- package/src/decorators/orm/VirtualColumn.mjs +1 -1
- package/src/lib/base/BaseObject.mjs +1 -1
- package/src/lib/base/Context.mjs +10 -10
- package/src/lib/base/EventEmitter.mjs +1 -1
- package/src/lib/base/internal/ActionOptions.mjs +2 -2
- package/src/lib/base/internal/BasicInfo.mjs +10 -10
- package/src/lib/base/internal/DataValidator.mjs +2 -2
- package/src/lib/base/internal/FlexibleDTO.mjs +2 -2
- package/src/lib/base/internal/MethodValidation.mjs +1 -1
- package/src/lib/base/internal/ModuleConfigLoader.mjs +1 -1
- package/src/lib/base/internal/ObjectConfiguration.mjs +1 -1
- package/src/lib/base/internal/ObjectSchemaValidation.mjs +1 -1
- package/src/lib/base/internal/ObjectType.mjs +1 -1
- package/src/lib/base/internal/PatternManager.mjs +1 -1
- package/src/lib/base/internal/StringifyPattern.mjs +1 -1
- package/src/lib/context/CLIContext.mjs +5 -5
- package/src/lib/context/HTTPContext.mjs +2 -2
- package/src/lib/context/ServiceContext.mjs +2 -2
- package/src/lib/core/Application.mjs +10 -10
- package/src/lib/core/Component.mjs +2 -2
- package/src/lib/core/Container.mjs +1 -1
- package/src/lib/core/DTO.mjs +1 -1
- package/src/lib/core/Module.mjs +2 -2
- package/src/lib/core/Provider.mjs +5 -5
- package/src/lib/core/Time.mjs +1 -1
- package/src/lib/helpers/Glob.mjs +1 -1
- package/src/lib/helpers/IsGlobString.mjs +1 -1
- package/src/lib/helpers/IsHtml.mjs +5 -5
- package/src/lib/helpers/IsSymbol.mjs +1 -1
- package/src/lib/helpers/IsXML.mjs +1 -1
- package/src/lib/helpers/MD5.mjs +1 -1
- package/src/lib/helpers/ObjectHash.mjs +1 -1
- package/src/lib/helpers/RandomString.mjs +1 -1
- package/src/lib/helpers/SHA1.mjs +3 -3
- package/src/lib/helpers/SHA256.mjs +3 -3
- package/src/lib/helpers/SortArray.mjs +14 -14
- package/src/lib/helpers/Statistics.mjs +59 -59
- package/src/lib/helpers/URLBuilder.mjs +34 -34
- package/src/lib/ioc/Errors.mjs +8 -8
- package/src/lib/ioc/ListModules.mjs +2 -2
- package/src/lib/ioc/Utils.mjs +1 -1
- package/src/lib/validation/VLD.mjs +1 -1
- package/src/options/ApplicationOptions.mjs +2 -2
- package/src/options/LoadAnonymousObjectOptions.mjs +3 -3
- package/src/options/LoadNamedObjectOptions.mjs +3 -3
- package/src/options/LoadObjectOptions.mjs +1 -1
- package/src/options/ModuleLoadObjectsOptions.mjs +3 -3
- package/src/options/ModuleOptions.mjs +3 -3
- package/src/options/OverridableNamedObjectOptions.mjs +2 -2
- package/src/options/OverridableObjectOptions.mjs +3 -3
- package/src/providers/Database.mjs +2 -2
- package/src/providers/PasswordHash.mjs +19 -19
- package/vendor/Package.1.mjs +1 -1
- package/vendor/Package.12.mjs +5 -5
- package/vendor/Package.122.mjs +4380 -4380
- package/vendor/Package.13.mjs +4 -4
- package/vendor/Package.132.mjs +1 -1
- package/vendor/Package.16.mjs +1 -1
- package/vendor/Package.17.mjs +5 -5
- package/vendor/Package.19.cjs +184 -195
- package/vendor/Package.19.mjs +183 -194
- package/vendor/Package.2.mjs +114 -114
- package/vendor/Package.3.mjs +30 -30
- package/vendor/Package.4.mjs +1 -1
- package/vendor/Package.5.mjs +1 -1
- package/vendor/Package.6.mjs +3 -3
- package/vendor/Package.610.mjs +1 -1
- package/vendor/Package.611.mjs +11 -11
- package/vendor/Package.62.mjs +148 -148
- package/vendor/Package.63.mjs +43 -43
- package/vendor/Package.64.mjs +1 -1
- package/vendor/Package.65.mjs +3 -3
- package/vendor/Package.66.mjs +1 -1
- package/vendor/Package.67.mjs +1 -1
- package/vendor/Package.68.mjs +1 -1
- package/vendor/Package.7.mjs +1 -1
- package/vendor/Package.9.mjs +36 -36
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as o } from "../../../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as i } from "../../../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as e } from "../../../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as o } from "../../../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as e } from "../../../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as r } from "../../../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as e, __metadata as o } from "../../../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as r } from "../../../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as t } from "../../../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as o } from "../../../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as e } from "../../../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as i } from "../../../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as e } from "../../../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as o } from "../../../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as r } from "../../../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as e } from "../../../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as o } from "../../../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as r } from "../../../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as o } from "../../../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as e } from "../../../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as i } from "../../../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as o } from "../../../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as e } from "../../../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as i } from "../../../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as e, __metadata as o } from "../../../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as t } from "../../../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as r } from "../../../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as e } from "../../../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as r } from "../../../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as o } from "../../../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as e, __metadata as t } from "../../../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as r } from "../../../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as o } from "../../../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as r } from "../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
3
|
import { Component as e } from "../../lib/core/Component.mjs";
|
|
4
4
|
|
|
@@ -18,11 +18,11 @@ import { DestroyRuntimeContainerException as p } from "../../exceptions/DestroyR
|
|
|
18
18
|
|
|
19
19
|
import { GetObjectPropertyPaths as l } from "../../lib/helpers/GetObjectPropertyPaths.mjs";
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { getAugmentedNamespace as f, getDefaultExportFromCjs as v, commonjsGlobal as h } from "../../../vendor/Package.5.mjs";
|
|
22
22
|
|
|
23
23
|
import { UniqueArray as m } from "../../lib/helpers/UniqueArray.mjs";
|
|
24
24
|
|
|
25
|
-
import {
|
|
25
|
+
import { DTO as d } from "../../../vendor/Package.2.mjs";
|
|
26
26
|
|
|
27
27
|
import { Singleton as b } from "../../decorators/di/Lifetime.mjs";
|
|
28
28
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as e } from "../../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { BaseObject as o, Container as i } from "../../../../vendor/Package.3.mjs";
|
|
4
4
|
|
|
5
|
-
import { Configurable as
|
|
5
|
+
import { Configurable as r } from "../../../decorators/di/Configurable.mjs";
|
|
6
6
|
|
|
7
|
-
import { AccessDenyException as
|
|
7
|
+
import { AccessDenyException as s } from "../exceptions/AccessDenyException.mjs";
|
|
8
8
|
|
|
9
9
|
import { AccessControlRule as n } from "./AccessControlRule.mjs";
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { DTO as a } from "../../../../vendor/Package.2.mjs";
|
|
12
12
|
|
|
13
13
|
import { As as m } from "../../../lib/helpers/As.mjs";
|
|
14
14
|
|
|
@@ -181,18 +181,18 @@ class AccessControl extends o {
|
|
|
181
181
|
}
|
|
182
182
|
return true;
|
|
183
183
|
}
|
|
184
|
-
static async run(t, e, o, i,
|
|
184
|
+
static async run(t, e, o, i, r, n) {
|
|
185
185
|
const a = n(o.type);
|
|
186
|
-
let m = !
|
|
187
|
-
let c = new
|
|
186
|
+
let m = !r.acl;
|
|
187
|
+
let c = new s;
|
|
188
188
|
if (!m) {
|
|
189
189
|
await e.set(this, {
|
|
190
|
-
rules: [ ...t,
|
|
190
|
+
rules: [ ...t, r.rule ].filter((t => !!t)),
|
|
191
191
|
runtimeContainer: e,
|
|
192
192
|
actions: a,
|
|
193
193
|
context: o,
|
|
194
194
|
input: i,
|
|
195
|
-
target:
|
|
195
|
+
target: r.getActionInfo(),
|
|
196
196
|
allowCallback: () => {
|
|
197
197
|
m = true;
|
|
198
198
|
},
|
|
@@ -201,14 +201,14 @@ class AccessControl extends o {
|
|
|
201
201
|
c = t ? t : c;
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
|
-
} else if (
|
|
204
|
+
} else if (r.rule) {
|
|
205
205
|
await e.set(this, {
|
|
206
|
-
rules: [
|
|
206
|
+
rules: [ r.rule ],
|
|
207
207
|
runtimeContainer: e,
|
|
208
208
|
actions: a,
|
|
209
209
|
context: o,
|
|
210
210
|
input: i,
|
|
211
|
-
target:
|
|
211
|
+
target: r.getActionInfo(),
|
|
212
212
|
allowCallback: () => {
|
|
213
213
|
m = true;
|
|
214
214
|
},
|
|
@@ -222,20 +222,20 @@ class AccessControl extends o {
|
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
t([
|
|
225
|
+
t([ r(), e("design:type", i) ], AccessControl.prototype, "runtimeContainer", void 0);
|
|
226
226
|
|
|
227
|
-
t([
|
|
227
|
+
t([ r(), e("design:type", Array) ], AccessControl.prototype, "actions", void 0);
|
|
228
228
|
|
|
229
|
-
t([
|
|
229
|
+
t([ r(), e("design:type", Object) ], AccessControl.prototype, "target", void 0);
|
|
230
230
|
|
|
231
|
-
t([
|
|
231
|
+
t([ r(), e("design:type", Object) ], AccessControl.prototype, "context", void 0);
|
|
232
232
|
|
|
233
|
-
t([
|
|
233
|
+
t([ r(), e("design:type", Object) ], AccessControl.prototype, "input", void 0);
|
|
234
234
|
|
|
235
|
-
t([
|
|
235
|
+
t([ r(), e("design:type", Function) ], AccessControl.prototype, "allowCallback", void 0);
|
|
236
236
|
|
|
237
|
-
t([
|
|
237
|
+
t([ r(), e("design:type", Function) ], AccessControl.prototype, "denyCallback", void 0);
|
|
238
238
|
|
|
239
|
-
t([
|
|
239
|
+
t([ r(), e("design:type", Array) ], AccessControl.prototype, "rules", void 0);
|
|
240
240
|
|
|
241
241
|
export { AccessControl };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as o } from "../../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { BaseObject as e } from "../../../../vendor/Package.3.mjs";
|
|
4
4
|
|
|
5
5
|
import { Configurable as i } from "../../../decorators/di/Configurable.mjs";
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as o } from "../../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
3
|
import { Provider as e } from "../../../lib/core/Provider.mjs";
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { DefineObjectType as i, ObjectType as r } from "../../../../vendor/Package.3.mjs";
|
|
6
6
|
|
|
7
7
|
import { Scoped as m } from "../../../decorators/di/Lifetime.mjs";
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ import { ServiceContext as n } from "../../../lib/context/ServiceContext.mjs";
|
|
|
14
14
|
|
|
15
15
|
import { Configurable as a } from "../../../decorators/di/Configurable.mjs";
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { DTO as l } from "../../../../vendor/Package.2.mjs";
|
|
18
18
|
|
|
19
19
|
import "../../../lib/base/async-constructor/AsyncConstructor.mjs";
|
|
20
20
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as i } from "../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
3
|
import { createServer as e } from "node:http";
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import { Component as o } from "../../lib/core/Component.mjs";
|
|
|
6
6
|
|
|
7
7
|
import { Configurable as r } from "../../decorators/di/Configurable.mjs";
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { DTO as s } from "../../../vendor/Package.2.mjs";
|
|
10
10
|
|
|
11
11
|
import "../../../vendor/Package.3.mjs";
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PerformanceObserver as t } from "node:perf_hooks";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { quantile as i, standardDeviation as o, mean as s } from "../../../vendor/Package.16.mjs";
|
|
4
4
|
|
|
5
5
|
import { Component as e } from "../../lib/core/Component.mjs";
|
|
6
6
|
|
|
@@ -157,31 +157,31 @@ class HttpRequestMonitor extends e {
|
|
|
157
157
|
super(...arguments);
|
|
158
158
|
this.#t = 2;
|
|
159
159
|
this.#i = 65535;
|
|
160
|
-
this.#s = 0;
|
|
161
160
|
this.#o = 0;
|
|
161
|
+
this.#s = 0;
|
|
162
162
|
this.#e = [];
|
|
163
163
|
this.observer = new t((t => {
|
|
164
164
|
const i = t.getEntries()[0];
|
|
165
|
-
const
|
|
166
|
-
this.#e.push(
|
|
165
|
+
const o = parseFloat(i.duration.toFixed(this.#t));
|
|
166
|
+
this.#e.push(o);
|
|
167
167
|
if (this.#e.length > this.#i) this.#e.shift();
|
|
168
|
-
if (!this.#
|
|
169
|
-
this.#
|
|
170
|
-
if (!this.#
|
|
171
|
-
this.#
|
|
168
|
+
if (!this.#o) this.#o = o;
|
|
169
|
+
this.#o = this.#o > o ? o : this.#o;
|
|
170
|
+
if (!this.#s) this.#s = o;
|
|
171
|
+
this.#s = this.#s < o ? o : this.#s;
|
|
172
172
|
}));
|
|
173
173
|
}
|
|
174
174
|
#t;
|
|
175
175
|
#i;
|
|
176
|
-
#s;
|
|
177
176
|
#o;
|
|
177
|
+
#s;
|
|
178
178
|
#e;
|
|
179
179
|
get statistics() {
|
|
180
180
|
return {
|
|
181
|
-
min: this.#
|
|
182
|
-
max: this.#
|
|
183
|
-
avg: parseFloat((this.#e.length ?
|
|
184
|
-
stdDev: parseFloat((this.#e.length ?
|
|
181
|
+
min: this.#o,
|
|
182
|
+
max: this.#s,
|
|
183
|
+
avg: parseFloat((this.#e.length ? s(this.#e) : 0).toFixed(this.#t)),
|
|
184
|
+
stdDev: parseFloat((this.#e.length ? o(this.#e) : 0).toFixed(this.#t)),
|
|
185
185
|
p50: parseFloat((this.#e.length ? i(this.#e, .5) : 0).toFixed(this.#t)),
|
|
186
186
|
p90: parseFloat((this.#e.length ? i(this.#e, .9) : 0).toFixed(this.#t)),
|
|
187
187
|
p95: parseFloat((this.#e.length ? i(this.#e, .95) : 0).toFixed(this.#t)),
|
|
@@ -197,8 +197,8 @@ class HttpRequestMonitor extends e {
|
|
|
197
197
|
this.observer.disconnect();
|
|
198
198
|
}
|
|
199
199
|
reset() {
|
|
200
|
-
this.#s = 0;
|
|
201
200
|
this.#o = 0;
|
|
201
|
+
this.#s = 0;
|
|
202
202
|
this.#e = [];
|
|
203
203
|
}
|
|
204
204
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as e from "node:os";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { min as s, max as i, quantile as t, mean as a } from "../../../vendor/Package.16.mjs";
|
|
4
4
|
|
|
5
5
|
import { Component as o } from "../../lib/core/Component.mjs";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SetObjectConfigurableProperty as t } from "../../lib/base/internal/ObjectConfiguration.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as r } from "../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import "../../constants/DIMetadataKey.mjs";
|
|
6
6
|
|