lakutata 2.0.64 → 2.0.65
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.d.ts +4 -4
- package/com/database.d.ts +2 -2
- package/com/docker.d.ts +5 -5
- package/com/docker.mjs +1 -1
- package/com/entrypoint.d.ts +2 -2
- package/com/logger.d.ts +1 -1
- package/com/logger.mjs +1 -1
- package/com/monitor.d.ts +2 -2
- package/decorator/asst.d.ts +1 -1
- package/decorator/ctrl.d.ts +4 -4
- package/decorator/di.d.ts +3 -3
- package/decorator/dto.d.ts +3 -3
- package/decorator/orm.d.ts +2 -2
- package/decorator/orm.mjs +1 -1
- package/helper.d.ts +1 -1
- package/helper.mjs +2 -2
- package/lakutata.d.ts +10 -10
- package/lakutata.mjs +2 -2
- package/orm.d.ts +3 -3
- package/orm.mjs +15 -15
- package/package.json +1 -1
- package/provider/database.d.ts +2 -2
- package/provider/passwordHash.d.ts +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 +195 -184
- package/vendor/Package.19.mjs +194 -183
- 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
- package/vendor/TypeDef.internal.1.d.ts +1 -1
- package/vendor/TypeDef.internal.10.d.ts +1 -1
- package/vendor/TypeDef.internal.11.d.ts +2 -2
- package/vendor/TypeDef.internal.12.d.ts +2 -2
- package/vendor/TypeDef.internal.13.d.ts +6 -6
- package/vendor/TypeDef.internal.3.d.ts +3 -3
- package/vendor/TypeDef.internal.4.d.ts +2 -2
- package/vendor/TypeDef.internal.5.d.ts +2 -2
- package/vendor/TypeDef.internal.6.d.ts +2 -2
- package/vendor/TypeDef.internal.7.d.ts +1 -1
- package/vendor/TypeDef.internal.8.d.ts +1 -1
- package/vendor/TypeDef.internal.9.d.ts +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as t, a as e } from "../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
3
|
import { BaseContext as r, ContextType as o } from "../base/Context.mjs";
|
|
4
4
|
|
|
5
|
-
import { Expect as
|
|
5
|
+
import { Expect as s } from "../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { D as m } from "../../../vendor/Package.2.mjs";
|
|
8
8
|
|
|
9
9
|
import "../../decorators/dto/IndexSignature.mjs";
|
|
10
10
|
|
|
@@ -68,8 +68,8 @@ class CLIContext extends r {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
t([ m
|
|
71
|
+
t([ s(m.String().valid(o.CLI).default(o.CLI)), e("design:type", String) ], CLIContext.prototype, "type", void 0);
|
|
72
72
|
|
|
73
|
-
t([ m
|
|
73
|
+
t([ s(m.String().required()), e("design:type", String) ], CLIContext.prototype, "command", void 0);
|
|
74
74
|
|
|
75
75
|
export { CLIContext };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as t, a as e } from "../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { D 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 { _ as t, a as e } from "../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { D as r } from "../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as o } from "../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as t, a as e } from "../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import { Module as o, MODULE_INITIALIZED as i, MODULE_INITIALIZE_ERROR as
|
|
3
|
+
import { Module as o, MODULE_INITIALIZED as i, MODULE_INITIALIZE_ERROR as s } from "./Module.mjs";
|
|
4
4
|
|
|
5
|
-
import { Singleton as
|
|
5
|
+
import { Singleton as r } from "../../decorators/di/Lifetime.mjs";
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { C as n } from "../../../vendor/Package.3.mjs";
|
|
8
8
|
|
|
9
9
|
import { ApplicationConfigLoader as a } from "../base/internal/ApplicationConfigLoader.mjs";
|
|
10
10
|
|
|
@@ -16,11 +16,11 @@ import { GetBasicInfo as c } from "../base/internal/BasicInfo.mjs";
|
|
|
16
16
|
|
|
17
17
|
import { Entrypoint as l } from "../../components/entrypoint/Entrypoint.mjs";
|
|
18
18
|
|
|
19
|
-
import {
|
|
19
|
+
import { L as j } from "../../../vendor/Package.17.mjs";
|
|
20
20
|
|
|
21
21
|
import { Accept as h } from "../../decorators/dto/Accept.mjs";
|
|
22
22
|
|
|
23
|
-
import {
|
|
23
|
+
import { D as u } from "../../../vendor/Package.2.mjs";
|
|
24
24
|
|
|
25
25
|
import { mkdirSync as d } from "fs";
|
|
26
26
|
|
|
@@ -404,7 +404,7 @@ let v = class Application extends o {
|
|
|
404
404
|
}));
|
|
405
405
|
const e = typeof this.launchOptions === "object" ? this.launchOptions : await this.launchOptions();
|
|
406
406
|
const o = new n;
|
|
407
|
-
return new Promise(((t,
|
|
407
|
+
return new Promise(((t, r) => {
|
|
408
408
|
p.validateAsync(e).then((e => {
|
|
409
409
|
e.bootstrap?.push((async t => {
|
|
410
410
|
const e = function() {
|
|
@@ -416,8 +416,8 @@ let v = class Application extends o {
|
|
|
416
416
|
}));
|
|
417
417
|
o.set(y, {
|
|
418
418
|
options: e
|
|
419
|
-
}).then((e => e.once(i, (() => t(e))).once(
|
|
420
|
-
})).catch(
|
|
419
|
+
}).then((e => e.once(i, (() => t(e))).once(s, (t => this.processFatalException(t))))).catch(r);
|
|
420
|
+
})).catch(r);
|
|
421
421
|
}));
|
|
422
422
|
}
|
|
423
423
|
get alias() {
|
|
@@ -448,6 +448,6 @@ t([ h(u.Object().pattern(u.String(), u.String()).required()), e("design:type", F
|
|
|
448
448
|
|
|
449
449
|
t([ h(u.Object().pattern(u.String(), u.String()).required(), u.Boolean().optional().default(false)), e("design:type", Function), e("design:paramtypes", [ Object, Boolean ]), e("design:returntype", Object) ], v, "alias", null);
|
|
450
450
|
|
|
451
|
-
v = y = t([
|
|
451
|
+
v = y = t([ r(true) ], v);
|
|
452
452
|
|
|
453
453
|
export { v as Application, f as ApplicationState };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as e } from "../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { _ as t, a as r, D as i, O as s } from "../../../vendor/Package.3.mjs";
|
|
4
4
|
|
|
5
5
|
import { Singleton as n } from "../../decorators/di/Lifetime.mjs";
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@ import "../../../vendor/Package.1.mjs";
|
|
|
2
2
|
|
|
3
3
|
import "../ioc/DependencyInjectionContainer.mjs";
|
|
4
4
|
|
|
5
|
-
export { Container, containerSymbol, ownerSymbol } from "../../../vendor/Package.3.mjs";
|
|
5
|
+
export { C as Container, c as containerSymbol, o as ownerSymbol } from "../../../vendor/Package.3.mjs";
|
|
6
6
|
|
|
7
7
|
import "../base/internal/ConstructorSymbol.mjs";
|
|
8
8
|
|
package/src/lib/core/DTO.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import "../../../vendor/Package.1.mjs";
|
|
|
2
2
|
|
|
3
3
|
import "../base/internal/DataValidator.mjs";
|
|
4
4
|
|
|
5
|
-
export { DTO } from "../../../vendor/Package.2.mjs";
|
|
5
|
+
export { D as DTO } from "../../../vendor/Package.2.mjs";
|
|
6
6
|
|
|
7
7
|
import "../../exceptions/dto/InvalidValueException.mjs";
|
|
8
8
|
|
package/src/lib/core/Module.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as t, a as o } from "../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
3
|
import { Component as e } from "./Component.mjs";
|
|
4
4
|
|
|
5
5
|
import { Singleton as s } from "../../decorators/di/Lifetime.mjs";
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { _ as r, a as i, D as m, O as p } from "../../../vendor/Package.3.mjs";
|
|
8
8
|
|
|
9
9
|
import { GetObjectContainer as n } from "../base/internal/ObjectContainer.mjs";
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as t } from "../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { B as e, D as o, O as r } from "../../../vendor/Package.3.mjs";
|
|
4
4
|
|
|
5
5
|
import { Scoped as i } from "../../decorators/di/Lifetime.mjs";
|
|
6
6
|
|
|
@@ -142,13 +142,13 @@ import "../../exceptions/dto/InvalidMethodReturnException.mjs";
|
|
|
142
142
|
|
|
143
143
|
import "../helpers/IsEmptyObject.mjs";
|
|
144
144
|
|
|
145
|
-
let
|
|
145
|
+
let s = class Provider extends e {
|
|
146
146
|
getEnv(t, e) {
|
|
147
147
|
const o = process.env[t];
|
|
148
148
|
return o === undefined && e !== undefined ? e : o;
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
151
|
|
|
152
|
-
|
|
152
|
+
s = t([ i(), o(r.Provider) ], s);
|
|
153
153
|
|
|
154
|
-
export {
|
|
154
|
+
export { s as Provider };
|
package/src/lib/core/Time.mjs
CHANGED
package/src/lib/helpers/Glob.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as t } from "../../../vendor/Package.5.mjs";
|
|
2
2
|
|
|
3
3
|
const e = [ "a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "math", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rb", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "search", "section", "select", "slot", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr" ];
|
|
4
4
|
|
|
@@ -10,11 +10,11 @@ const o = t(a);
|
|
|
10
10
|
|
|
11
11
|
const r = /\s?<!doctype html>|(<html\b[^>]*>|<body\b[^>]*>|<x-[^>]+>)+/i;
|
|
12
12
|
|
|
13
|
-
const
|
|
13
|
+
const s = new RegExp(o.map((t => `<${t}\\b[^>]*>`)).join("|"), "i");
|
|
14
14
|
|
|
15
|
-
function
|
|
15
|
+
function i(t) {
|
|
16
16
|
t = t.trim().slice(0, 1e3);
|
|
17
|
-
return r.test(t) ||
|
|
17
|
+
return r.test(t) || s.test(t);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export {
|
|
20
|
+
export { i as IsHtml };
|
package/src/lib/helpers/MD5.mjs
CHANGED
package/src/lib/helpers/SHA1.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as r } from "../../../vendor/Package.65.mjs";
|
|
2
2
|
|
|
3
3
|
import { getHashes as e, createHash as o } from "node:crypto";
|
|
4
4
|
|
|
@@ -8,9 +8,9 @@ import "../../../vendor/Package.7.mjs";
|
|
|
8
8
|
|
|
9
9
|
const t = e().includes("sha1");
|
|
10
10
|
|
|
11
|
-
function
|
|
11
|
+
function a(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 { a as SHA1 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as r } from "../../../vendor/Package.65.mjs";
|
|
2
2
|
|
|
3
3
|
import { getHashes as e, createHash as o } from "node:crypto";
|
|
4
4
|
|
|
@@ -8,9 +8,9 @@ import "../../../vendor/Package.7.mjs";
|
|
|
8
8
|
|
|
9
9
|
const t = e().includes("sha256");
|
|
10
10
|
|
|
11
|
-
function
|
|
11
|
+
function a(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 { a as SHA256 };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as r } from "../../../vendor/Package.64.mjs";
|
|
2
2
|
|
|
3
|
-
function e(o, ...
|
|
4
|
-
if (
|
|
3
|
+
function e(o, ...s) {
|
|
4
|
+
if (s.length < 2) {
|
|
5
5
|
let e = {
|
|
6
6
|
order: "asc"
|
|
7
7
|
};
|
|
8
|
-
if (
|
|
9
|
-
by:
|
|
10
|
-
order:
|
|
11
|
-
computed:
|
|
8
|
+
if (s.length) e = Object.assign(e, {
|
|
9
|
+
by: s[0].by,
|
|
10
|
+
order: s[0].order,
|
|
11
|
+
computed: s[0].computed
|
|
12
12
|
});
|
|
13
13
|
return r(o, e);
|
|
14
14
|
} else {
|
|
15
|
-
const
|
|
15
|
+
const t = {
|
|
16
16
|
by: [],
|
|
17
17
|
order: [],
|
|
18
18
|
customOrders: {}
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
s.forEach((r => {
|
|
21
21
|
if (r.by) {
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
const s = r.by;
|
|
23
|
+
t.by.push(s);
|
|
24
|
+
t.order.push(s);
|
|
25
|
+
t.customOrders[s] = e(o, r).map((r => r[s]));
|
|
26
26
|
}
|
|
27
27
|
}));
|
|
28
|
-
return r(o,
|
|
28
|
+
return r(o, t);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as t, m as a, a as s, s as r, q as e, p as i, b as n, c, d as u, f as o, h as m, g as l, r as p, i as d, v as b, j as g, k as v, l as h, n as S, o as k, t as M, z as R, u as f, w as q, x as D, y as P, A as T, B as x, C as A, D as w, E as L, F as V, G as j, H as y, I as F, J as O, K as z, L as C, M as E, N, O as W, P as B, Q as G, R as H, S as I, T as J, U as K, V as Q, W as U, X, Y, Z, _ as $, $ as _, a0 as tt } from "../../../vendor/Package.16.mjs";
|
|
2
2
|
|
|
3
3
|
class Statistics {
|
|
4
4
|
static {
|
|
5
5
|
this.epsilon = t;
|
|
6
6
|
}
|
|
7
7
|
static min(t) {
|
|
8
|
-
return
|
|
8
|
+
return a(t);
|
|
9
9
|
}
|
|
10
10
|
static max(t) {
|
|
11
|
-
return
|
|
11
|
+
return s(t);
|
|
12
12
|
}
|
|
13
13
|
static sum(t) {
|
|
14
|
-
return
|
|
14
|
+
return r(t);
|
|
15
15
|
}
|
|
16
|
-
static quantile(t,
|
|
17
|
-
return
|
|
16
|
+
static quantile(t, a) {
|
|
17
|
+
return e(t, a);
|
|
18
18
|
}
|
|
19
19
|
static product(t) {
|
|
20
|
-
return
|
|
20
|
+
return i(t);
|
|
21
21
|
}
|
|
22
22
|
static mean(t) {
|
|
23
|
-
return
|
|
23
|
+
return n(t);
|
|
24
24
|
}
|
|
25
25
|
static average(t) {
|
|
26
|
-
return
|
|
26
|
+
return n(t);
|
|
27
27
|
}
|
|
28
|
-
static addToMean(t,
|
|
29
|
-
return c(t,
|
|
28
|
+
static addToMean(t, a, s) {
|
|
29
|
+
return c(t, a, s);
|
|
30
30
|
}
|
|
31
|
-
static addToAverage(t,
|
|
32
|
-
return c(t,
|
|
31
|
+
static addToAverage(t, a, s) {
|
|
32
|
+
return c(t, a, s);
|
|
33
33
|
}
|
|
34
34
|
static mode(t) {
|
|
35
35
|
return u(t);
|
|
@@ -67,17 +67,17 @@ class Statistics {
|
|
|
67
67
|
static interquartileRange(t) {
|
|
68
68
|
return k(t);
|
|
69
69
|
}
|
|
70
|
-
static sumNthPowerDeviations(t,
|
|
71
|
-
return M(t,
|
|
70
|
+
static sumNthPowerDeviations(t, a) {
|
|
71
|
+
return M(t, a);
|
|
72
72
|
}
|
|
73
|
-
static zScore(t,
|
|
74
|
-
return R(t,
|
|
73
|
+
static zScore(t, a, s) {
|
|
74
|
+
return R(t, a, s);
|
|
75
75
|
}
|
|
76
|
-
static correlation(t,
|
|
77
|
-
return f(t,
|
|
76
|
+
static correlation(t, a) {
|
|
77
|
+
return f(t, a);
|
|
78
78
|
}
|
|
79
|
-
static sampleCovariance(t,
|
|
80
|
-
return q(t,
|
|
79
|
+
static sampleCovariance(t, a) {
|
|
80
|
+
return q(t, a);
|
|
81
81
|
}
|
|
82
82
|
static rSquared(t) {
|
|
83
83
|
return D(t, this.linearRegressionLine(this.linearRegression(t)));
|
|
@@ -91,35 +91,35 @@ class Statistics {
|
|
|
91
91
|
static shuffle(t) {
|
|
92
92
|
return x(t);
|
|
93
93
|
}
|
|
94
|
-
static sampleWithReplacement(t,
|
|
95
|
-
return A(t,
|
|
94
|
+
static sampleWithReplacement(t, a) {
|
|
95
|
+
return A(t, a);
|
|
96
96
|
}
|
|
97
|
-
static sample(t,
|
|
98
|
-
return w(t,
|
|
97
|
+
static sample(t, a) {
|
|
98
|
+
return w(t, a, Math.random);
|
|
99
99
|
}
|
|
100
100
|
static randomPickOne(t) {
|
|
101
101
|
return this.sample(t, 1)[0];
|
|
102
102
|
}
|
|
103
|
-
static randomPickMany(t,
|
|
104
|
-
return this.sample(t,
|
|
103
|
+
static randomPickMany(t, a) {
|
|
104
|
+
return this.sample(t, a);
|
|
105
105
|
}
|
|
106
106
|
static bernoulliDistribution(t) {
|
|
107
107
|
return L(t);
|
|
108
108
|
}
|
|
109
|
-
static binomialDistribution(t,
|
|
110
|
-
return V(t,
|
|
109
|
+
static binomialDistribution(t, a) {
|
|
110
|
+
return V(t, a);
|
|
111
111
|
}
|
|
112
112
|
static poissonDistribution(t) {
|
|
113
113
|
return j(t);
|
|
114
114
|
}
|
|
115
|
-
static tTest(t,
|
|
116
|
-
return y(t,
|
|
115
|
+
static tTest(t, a) {
|
|
116
|
+
return y(t, a);
|
|
117
117
|
}
|
|
118
|
-
static tTestTwoSample(t,
|
|
119
|
-
return F(t,
|
|
118
|
+
static tTestTwoSample(t, a, s = 0) {
|
|
119
|
+
return F(t, a, s);
|
|
120
120
|
}
|
|
121
|
-
static chunk(t,
|
|
122
|
-
return O(t,
|
|
121
|
+
static chunk(t, a) {
|
|
122
|
+
return O(t, a);
|
|
123
123
|
}
|
|
124
124
|
static factorial(t) {
|
|
125
125
|
return z(t);
|
|
@@ -127,26 +127,26 @@ class Statistics {
|
|
|
127
127
|
static gamma(t) {
|
|
128
128
|
return C(t);
|
|
129
129
|
}
|
|
130
|
-
static approxEqual(t,
|
|
131
|
-
return E(t,
|
|
130
|
+
static approxEqual(t, a, s) {
|
|
131
|
+
return E(t, a, s);
|
|
132
132
|
}
|
|
133
|
-
static bisect(t,
|
|
134
|
-
return N(t,
|
|
133
|
+
static bisect(t, a, s, r, e) {
|
|
134
|
+
return N(t, a, s, r, e);
|
|
135
135
|
}
|
|
136
136
|
static coefficientOfVariation(t) {
|
|
137
137
|
return W(t);
|
|
138
138
|
}
|
|
139
|
-
static combinationsReplacement(t,
|
|
140
|
-
return B(t,
|
|
139
|
+
static combinationsReplacement(t, a) {
|
|
140
|
+
return B(t, a);
|
|
141
141
|
}
|
|
142
|
-
static combinations(t,
|
|
143
|
-
return G(t,
|
|
142
|
+
static combinations(t, a) {
|
|
143
|
+
return G(t, a);
|
|
144
144
|
}
|
|
145
|
-
static combineMeans(t,
|
|
146
|
-
return H(t,
|
|
145
|
+
static combineMeans(t, a, s, r) {
|
|
146
|
+
return H(t, a, s, r);
|
|
147
147
|
}
|
|
148
|
-
static combineVariances(t,
|
|
149
|
-
return I(t,
|
|
148
|
+
static combineVariances(t, a, s, r, e, i) {
|
|
149
|
+
return I(t, a, s, r, e, i);
|
|
150
150
|
}
|
|
151
151
|
static cumulativeStdLogisticProbability(t) {
|
|
152
152
|
return J(t);
|
|
@@ -157,8 +157,8 @@ class Statistics {
|
|
|
157
157
|
static gammaln(t) {
|
|
158
158
|
return Q(t);
|
|
159
159
|
}
|
|
160
|
-
static jenks(t,
|
|
161
|
-
return U(t,
|
|
160
|
+
static jenks(t, a) {
|
|
161
|
+
return U(t, a);
|
|
162
162
|
}
|
|
163
163
|
static logAverage(t) {
|
|
164
164
|
return X(t);
|
|
@@ -169,19 +169,19 @@ class Statistics {
|
|
|
169
169
|
static probit(t) {
|
|
170
170
|
return Z(t);
|
|
171
171
|
}
|
|
172
|
-
static quantileRank(t,
|
|
173
|
-
return $(t,
|
|
172
|
+
static quantileRank(t, a) {
|
|
173
|
+
return $(t, a);
|
|
174
174
|
}
|
|
175
|
-
static quickselect(t,
|
|
176
|
-
const
|
|
177
|
-
_(
|
|
178
|
-
return
|
|
175
|
+
static quickselect(t, a, s, r) {
|
|
176
|
+
const e = [ ...t ];
|
|
177
|
+
_(e, a, s, r);
|
|
178
|
+
return e;
|
|
179
179
|
}
|
|
180
|
-
static subtractFromMean(t,
|
|
181
|
-
return tt(t,
|
|
180
|
+
static subtractFromMean(t, a, s) {
|
|
181
|
+
return tt(t, a, s);
|
|
182
182
|
}
|
|
183
|
-
static subtractFromAverage(t,
|
|
184
|
-
return tt(t,
|
|
183
|
+
static subtractFromAverage(t, a, s) {
|
|
184
|
+
return tt(t, a, s);
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
|