lakutata 2.0.64 → 2.0.66
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/database.cjs +0 -2
- package/com/database.d.ts +2 -2
- package/com/database.mjs +0 -2
- package/com/docker.mjs +1 -1
- package/com/logger.mjs +1 -1
- package/decorator/orm.cjs +86 -88
- package/decorator/orm.d.ts +50 -74
- package/decorator/orm.mjs +44 -46
- package/helper.mjs +2 -2
- package/lakutata.mjs +2 -2
- package/orm.cjs +1075 -112
- package/orm.d.ts +4 -4
- package/orm.mjs +1015 -17
- package/package.json +1 -1
- package/provider/database.cjs +0 -2
- package/provider/database.d.ts +2 -2
- package/provider/database.mjs +0 -2
- package/src/components/Database.cjs +0 -2
- package/src/components/Database.mjs +2 -4
- 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.cjs +27 -7
- package/src/decorators/orm/AfterInsert.mjs +28 -6
- package/src/decorators/orm/AfterLoad.cjs +27 -7
- package/src/decorators/orm/AfterLoad.mjs +28 -6
- package/src/decorators/orm/AfterRecover.cjs +27 -7
- package/src/decorators/orm/AfterRecover.mjs +28 -6
- package/src/decorators/orm/AfterRemove.cjs +27 -7
- package/src/decorators/orm/AfterRemove.mjs +28 -6
- package/src/decorators/orm/AfterSoftRemove.cjs +27 -7
- package/src/decorators/orm/AfterSoftRemove.mjs +28 -6
- package/src/decorators/orm/AfterUpdate.cjs +27 -7
- package/src/decorators/orm/AfterUpdate.mjs +28 -6
- package/src/decorators/orm/BeforeInsert.cjs +27 -7
- package/src/decorators/orm/BeforeInsert.mjs +28 -6
- package/src/decorators/orm/BeforeRecover.cjs +27 -7
- package/src/decorators/orm/BeforeRecover.mjs +28 -6
- package/src/decorators/orm/BeforeRemove.cjs +27 -7
- package/src/decorators/orm/BeforeRemove.mjs +28 -6
- package/src/decorators/orm/BeforeSoftRemove.cjs +27 -7
- package/src/decorators/orm/BeforeSoftRemove.mjs +28 -6
- package/src/decorators/orm/BeforeUpdate.cjs +27 -7
- package/src/decorators/orm/BeforeUpdate.mjs +28 -6
- package/src/decorators/orm/Check.cjs +30 -7
- package/src/decorators/orm/Check.mjs +31 -6
- package/src/decorators/orm/ChildEntity.cjs +30 -7
- package/src/decorators/orm/ChildEntity.mjs +31 -6
- package/src/decorators/orm/Column.cjs +62 -7
- package/src/decorators/orm/Column.mjs +63 -6
- package/src/decorators/orm/CreateDateColumn.cjs +26 -7
- package/src/decorators/orm/CreateDateColumn.mjs +27 -6
- package/src/decorators/orm/DeleteDateColumn.cjs +26 -7
- package/src/decorators/orm/DeleteDateColumn.mjs +27 -6
- package/src/decorators/orm/Entity.cjs +36 -7
- package/src/decorators/orm/Entity.mjs +37 -6
- package/src/decorators/orm/EventSubscriber.cjs +23 -7
- package/src/decorators/orm/EventSubscriber.mjs +24 -6
- package/src/decorators/orm/Exclusion.cjs +30 -7
- package/src/decorators/orm/Exclusion.mjs +31 -6
- package/src/decorators/orm/Generated.cjs +25 -7
- package/src/decorators/orm/Generated.mjs +26 -6
- package/src/decorators/orm/Index.cjs +42 -7
- package/src/decorators/orm/Index.mjs +43 -6
- package/src/decorators/orm/JoinColumn.cjs +30 -7
- package/src/decorators/orm/JoinColumn.mjs +31 -6
- package/src/decorators/orm/JoinTable.cjs +31 -7
- package/src/decorators/orm/JoinTable.mjs +32 -6
- package/src/decorators/orm/ManyToMany.cjs +43 -7
- package/src/decorators/orm/ManyToMany.mjs +44 -6
- package/src/decorators/orm/ManyToOne.cjs +43 -7
- package/src/decorators/orm/ManyToOne.mjs +44 -6
- package/src/decorators/orm/ObjectIdColumn.cjs +29 -7
- package/src/decorators/orm/ObjectIdColumn.mjs +30 -6
- package/src/decorators/orm/OneToMany.cjs +35 -7
- package/src/decorators/orm/OneToMany.mjs +36 -6
- package/src/decorators/orm/OneToOne.cjs +43 -7
- package/src/decorators/orm/OneToOne.mjs +44 -6
- package/src/decorators/orm/PrimaryColumn.cjs +50 -7
- package/src/decorators/orm/PrimaryColumn.mjs +51 -6
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +55 -7
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +56 -6
- package/src/decorators/orm/RelationId.cjs +27 -7
- package/src/decorators/orm/RelationId.mjs +28 -6
- package/src/decorators/orm/TableInheritance.cjs +27 -7
- package/src/decorators/orm/TableInheritance.mjs +28 -6
- package/src/decorators/orm/Tree.cjs +25 -7
- package/src/decorators/orm/Tree.mjs +26 -6
- package/src/decorators/orm/TreeChildren.cjs +32 -7
- package/src/decorators/orm/TreeChildren.mjs +33 -6
- package/src/decorators/orm/TreeLevelColumn.cjs +26 -7
- package/src/decorators/orm/TreeLevelColumn.mjs +27 -6
- package/src/decorators/orm/TreeParent.cjs +32 -7
- package/src/decorators/orm/TreeParent.mjs +33 -6
- package/src/decorators/orm/Unique.cjs +45 -7
- package/src/decorators/orm/Unique.mjs +46 -6
- package/src/decorators/orm/UpdateDateColumn.cjs +26 -7
- package/src/decorators/orm/UpdateDateColumn.mjs +27 -6
- package/src/decorators/orm/VersionColumn.cjs +26 -7
- package/src/decorators/orm/VersionColumn.mjs +27 -6
- package/src/decorators/orm/ViewColumn.cjs +26 -7
- package/src/decorators/orm/ViewColumn.mjs +27 -6
- package/src/decorators/orm/ViewEntity.cjs +35 -7
- package/src/decorators/orm/ViewEntity.mjs +36 -6
- package/src/decorators/orm/VirtualColumn.cjs +43 -7
- package/src/decorators/orm/VirtualColumn.mjs +44 -6
- 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.cjs +0 -2
- package/src/providers/Database.mjs +2 -4
- 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.cjs +13223 -16706
- package/vendor/Package.122.mjs +15550 -18933
- 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 +1 -1
- 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.4.d.ts +181 -347
|
@@ -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
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as e, c as t } from "../../../vendor/Package.5.mjs";
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
4
|
|
|
@@ -61,7 +61,7 @@ function l(e) {
|
|
|
61
61
|
return s;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
function
|
|
64
|
+
function c(e, t) {
|
|
65
65
|
t = t || "";
|
|
66
66
|
var s = [], o, r;
|
|
67
67
|
if ("string" !== typeof t) t = "?";
|
|
@@ -80,7 +80,7 @@ function f(e, t) {
|
|
|
80
80
|
return s.length ? t + s.join("&") : "";
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
var
|
|
83
|
+
var f = r.stringify = c;
|
|
84
84
|
|
|
85
85
|
var u = r.parse = l;
|
|
86
86
|
|
|
@@ -201,8 +201,8 @@ function x(e, t, s) {
|
|
|
201
201
|
if (!(this instanceof x)) {
|
|
202
202
|
return new x(e, t, s);
|
|
203
203
|
}
|
|
204
|
-
var o, r, n, i, a, h, l = O.slice(),
|
|
205
|
-
if ("object" !==
|
|
204
|
+
var o, r, n, i, a, h, l = O.slice(), c = typeof t, f = this, u = 0;
|
|
205
|
+
if ("object" !== c && "string" !== c) {
|
|
206
206
|
s = t;
|
|
207
207
|
t = null;
|
|
208
208
|
}
|
|
@@ -210,66 +210,66 @@ function x(e, t, s) {
|
|
|
210
210
|
t = R(t);
|
|
211
211
|
r = I(e || "", t);
|
|
212
212
|
o = !r.protocol && !r.slashes;
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
f.slashes = r.slashes || o && t.slashes;
|
|
214
|
+
f.protocol = r.protocol || t.protocol || "";
|
|
215
215
|
e = r.rest;
|
|
216
|
-
if (r.protocol === "file:" && (r.slashesCount !== 2 || b.test(e)) || !r.slashes && (r.protocol || r.slashesCount < 2 || !U(
|
|
216
|
+
if (r.protocol === "file:" && (r.slashesCount !== 2 || b.test(e)) || !r.slashes && (r.protocol || r.slashesCount < 2 || !U(f.protocol))) {
|
|
217
217
|
l[3] = [ /(.*)/, "pathname" ];
|
|
218
218
|
}
|
|
219
219
|
for (;u < l.length; u++) {
|
|
220
220
|
i = l[u];
|
|
221
221
|
if (typeof i === "function") {
|
|
222
|
-
e = i(e,
|
|
222
|
+
e = i(e, f);
|
|
223
223
|
continue;
|
|
224
224
|
}
|
|
225
225
|
n = i[0];
|
|
226
226
|
h = i[1];
|
|
227
227
|
if (n !== n) {
|
|
228
|
-
|
|
228
|
+
f[h] = e;
|
|
229
229
|
} else if ("string" === typeof n) {
|
|
230
230
|
a = n === "@" ? e.lastIndexOf(n) : e.indexOf(n);
|
|
231
231
|
if (~a) {
|
|
232
232
|
if ("number" === typeof i[2]) {
|
|
233
|
-
|
|
233
|
+
f[h] = e.slice(0, a);
|
|
234
234
|
e = e.slice(a + i[2]);
|
|
235
235
|
} else {
|
|
236
|
-
|
|
236
|
+
f[h] = e.slice(a);
|
|
237
237
|
e = e.slice(0, a);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
} else if (a = n.exec(e)) {
|
|
241
|
-
|
|
241
|
+
f[h] = a[1];
|
|
242
242
|
e = e.slice(0, a.index);
|
|
243
243
|
}
|
|
244
|
-
|
|
245
|
-
if (i[4])
|
|
244
|
+
f[h] = f[h] || (o && i[3] ? t[h] || "" : "");
|
|
245
|
+
if (i[4]) f[h] = f[h].toLowerCase();
|
|
246
246
|
}
|
|
247
|
-
if (s)
|
|
248
|
-
if (o && t.slashes &&
|
|
249
|
-
|
|
247
|
+
if (s) f.query = s(f.query);
|
|
248
|
+
if (o && t.slashes && f.pathname.charAt(0) !== "/" && (f.pathname !== "" || t.pathname !== "")) {
|
|
249
|
+
f.pathname = q(f.pathname, t.pathname);
|
|
250
250
|
}
|
|
251
|
-
if (
|
|
252
|
-
|
|
251
|
+
if (f.pathname.charAt(0) !== "/" && U(f.protocol)) {
|
|
252
|
+
f.pathname = "/" + f.pathname;
|
|
253
253
|
}
|
|
254
|
-
if (!p(
|
|
255
|
-
|
|
256
|
-
|
|
254
|
+
if (!p(f.port, f.protocol)) {
|
|
255
|
+
f.host = f.hostname;
|
|
256
|
+
f.port = "";
|
|
257
257
|
}
|
|
258
|
-
|
|
259
|
-
if (
|
|
260
|
-
a =
|
|
258
|
+
f.username = f.password = "";
|
|
259
|
+
if (f.auth) {
|
|
260
|
+
a = f.auth.indexOf(":");
|
|
261
261
|
if (~a) {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
262
|
+
f.username = f.auth.slice(0, a);
|
|
263
|
+
f.username = encodeURIComponent(decodeURIComponent(f.username));
|
|
264
|
+
f.password = f.auth.slice(a + 1);
|
|
265
|
+
f.password = encodeURIComponent(decodeURIComponent(f.password));
|
|
266
266
|
} else {
|
|
267
|
-
|
|
267
|
+
f.username = encodeURIComponent(decodeURIComponent(f.auth));
|
|
268
268
|
}
|
|
269
|
-
|
|
269
|
+
f.auth = f.password ? f.username + ":" + f.password : f.username;
|
|
270
270
|
}
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
f.origin = f.protocol !== "file:" && U(f.protocol) && f.host ? f.protocol + "//" + f.host : "null";
|
|
272
|
+
f.href = f.toString();
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
function S(e, t, s) {
|
package/src/lib/ioc/Errors.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { ResolveConstructorNameBySymbol as r } from "../base/internal/Constructo
|
|
|
4
4
|
|
|
5
5
|
import { As as t } from "../helpers/As.mjs";
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { I as o } from "../../../vendor/Package.2.mjs";
|
|
8
8
|
|
|
9
9
|
import "../base/abstracts/Exception.mjs";
|
|
10
10
|
|
|
@@ -92,23 +92,23 @@ class DependencyInjectionTypeError extends ExtendableError {
|
|
|
92
92
|
constructor(e, r, t, o) {
|
|
93
93
|
super(`${e}: expected ${r} to be ${t}, but got ${o}.`);
|
|
94
94
|
}
|
|
95
|
-
static assert(e, r, t, o,
|
|
95
|
+
static assert(e, r, t, o, s) {
|
|
96
96
|
if (!e) {
|
|
97
|
-
throw new DependencyInjectionTypeError(r, t, o,
|
|
97
|
+
throw new DependencyInjectionTypeError(r, t, o, s);
|
|
98
98
|
}
|
|
99
99
|
return e;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
class DependencyInjectionResolutionError extends ExtendableError {
|
|
104
|
-
constructor(e,
|
|
104
|
+
constructor(e, s, n) {
|
|
105
105
|
if (o(e)) e = r(e).toString();
|
|
106
106
|
const a = e.split("_$$").reverse()[0];
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
const i =
|
|
107
|
+
s = s.map((e => o(e) ? r(e).toString() : e.name));
|
|
108
|
+
s.push(t(a));
|
|
109
|
+
const i = s.join(" -> ");
|
|
110
110
|
let m = `Could not resolve '${a}'.`;
|
|
111
|
-
if (
|
|
111
|
+
if (n) m = `${m} ${n}`;
|
|
112
112
|
m = `${m} Resolution path: ${i}`;
|
|
113
113
|
super(m);
|
|
114
114
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as t, c as e } from "../../../vendor/Package.5.mjs";
|
|
2
2
|
|
|
3
3
|
import "../../../vendor/Package.8.mjs";
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ import * as n from "path";
|
|
|
8
8
|
|
|
9
9
|
import s from "path";
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { i } from "../../../vendor/Package.9.mjs";
|
|
12
12
|
|
|
13
13
|
import "../../../vendor/Package.10.mjs";
|
|
14
14
|
|
package/src/lib/ioc/Utils.mjs
CHANGED