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
package/vendor/Package.62.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as e } from "./Package.5.mjs";
|
|
2
2
|
|
|
3
3
|
import "./Package.132.mjs";
|
|
4
4
|
|
|
@@ -16,23 +16,23 @@ import cjsModule from 'node:module';
|
|
|
16
16
|
const __filename = cjsUrl.fileURLToPath(import.meta.url);
|
|
17
17
|
const __dirname = cjsPath.dirname(__filename);
|
|
18
18
|
const require = cjsModule.createRequire(import.meta.url);
|
|
19
|
-
var
|
|
19
|
+
var s = {
|
|
20
20
|
exports: {}
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var n = {
|
|
24
24
|
exports: {}
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
var o =
|
|
27
|
+
var o = n.exports;
|
|
28
28
|
|
|
29
29
|
var i;
|
|
30
30
|
|
|
31
|
-
function
|
|
32
|
-
if (i) return
|
|
31
|
+
function a() {
|
|
32
|
+
if (i) return n.exports;
|
|
33
33
|
i = 1;
|
|
34
34
|
if (typeof Object.create === "function") {
|
|
35
|
-
|
|
35
|
+
n.exports = function e(t, r) {
|
|
36
36
|
if (r) {
|
|
37
37
|
t.super_ = r;
|
|
38
38
|
t.prototype = Object.create(r.prototype, {
|
|
@@ -46,34 +46,34 @@ function c() {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
} else {
|
|
49
|
-
|
|
49
|
+
n.exports = function e(t, r) {
|
|
50
50
|
if (r) {
|
|
51
51
|
t.super_ = r;
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
t.prototype = new
|
|
52
|
+
var s = function() {};
|
|
53
|
+
s.prototype = r.prototype;
|
|
54
|
+
t.prototype = new s;
|
|
55
55
|
t.prototype.constructor = t;
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return n.exports;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var c = s.exports;
|
|
63
63
|
|
|
64
64
|
var u;
|
|
65
65
|
|
|
66
66
|
function f() {
|
|
67
|
-
if (u) return
|
|
67
|
+
if (u) return s.exports;
|
|
68
68
|
u = 1;
|
|
69
69
|
try {
|
|
70
70
|
var e = require("util");
|
|
71
71
|
if (typeof e.inherits !== "function") throw "";
|
|
72
|
-
|
|
72
|
+
s.exports = e.inherits;
|
|
73
73
|
} catch (e) {
|
|
74
|
-
|
|
74
|
+
s.exports = a();
|
|
75
75
|
}
|
|
76
|
-
return
|
|
76
|
+
return s.exports;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
var l = {
|
|
@@ -94,16 +94,16 @@ function m() {
|
|
|
94
94
|
var e = 1e3;
|
|
95
95
|
var t = e * 60;
|
|
96
96
|
var r = t * 60;
|
|
97
|
-
var
|
|
98
|
-
var
|
|
99
|
-
var o =
|
|
97
|
+
var s = r * 24;
|
|
98
|
+
var n = s * 7;
|
|
99
|
+
var o = s * 365.25;
|
|
100
100
|
d = function(e, t) {
|
|
101
101
|
t = t || {};
|
|
102
102
|
var r = typeof e;
|
|
103
103
|
if (r === "string" && e.length > 0) {
|
|
104
104
|
return i(e);
|
|
105
105
|
} else if (r === "number" && isFinite(e)) {
|
|
106
|
-
return t.long ?
|
|
106
|
+
return t.long ? c(e) : a(e);
|
|
107
107
|
}
|
|
108
108
|
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(e));
|
|
109
109
|
};
|
|
@@ -112,97 +112,97 @@ function m() {
|
|
|
112
112
|
if (i.length > 100) {
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
|
-
var
|
|
116
|
-
if (!
|
|
115
|
+
var a = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);
|
|
116
|
+
if (!a) {
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
|
-
var
|
|
120
|
-
var u = (
|
|
119
|
+
var c = parseFloat(a[1]);
|
|
120
|
+
var u = (a[2] || "ms").toLowerCase();
|
|
121
121
|
switch (u) {
|
|
122
122
|
case "years":
|
|
123
123
|
case "year":
|
|
124
124
|
case "yrs":
|
|
125
125
|
case "yr":
|
|
126
126
|
case "y":
|
|
127
|
-
return
|
|
127
|
+
return c * o;
|
|
128
128
|
|
|
129
129
|
case "weeks":
|
|
130
130
|
case "week":
|
|
131
131
|
case "w":
|
|
132
|
-
return
|
|
132
|
+
return c * n;
|
|
133
133
|
|
|
134
134
|
case "days":
|
|
135
135
|
case "day":
|
|
136
136
|
case "d":
|
|
137
|
-
return
|
|
137
|
+
return c * s;
|
|
138
138
|
|
|
139
139
|
case "hours":
|
|
140
140
|
case "hour":
|
|
141
141
|
case "hrs":
|
|
142
142
|
case "hr":
|
|
143
143
|
case "h":
|
|
144
|
-
return
|
|
144
|
+
return c * r;
|
|
145
145
|
|
|
146
146
|
case "minutes":
|
|
147
147
|
case "minute":
|
|
148
148
|
case "mins":
|
|
149
149
|
case "min":
|
|
150
150
|
case "m":
|
|
151
|
-
return
|
|
151
|
+
return c * t;
|
|
152
152
|
|
|
153
153
|
case "seconds":
|
|
154
154
|
case "second":
|
|
155
155
|
case "secs":
|
|
156
156
|
case "sec":
|
|
157
157
|
case "s":
|
|
158
|
-
return
|
|
158
|
+
return c * e;
|
|
159
159
|
|
|
160
160
|
case "milliseconds":
|
|
161
161
|
case "millisecond":
|
|
162
162
|
case "msecs":
|
|
163
163
|
case "msec":
|
|
164
164
|
case "ms":
|
|
165
|
-
return
|
|
165
|
+
return c;
|
|
166
166
|
|
|
167
167
|
default:
|
|
168
168
|
return undefined;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
var o = Math.abs(
|
|
173
|
-
if (o >=
|
|
174
|
-
return Math.round(
|
|
171
|
+
function a(n) {
|
|
172
|
+
var o = Math.abs(n);
|
|
173
|
+
if (o >= s) {
|
|
174
|
+
return Math.round(n / s) + "d";
|
|
175
175
|
}
|
|
176
176
|
if (o >= r) {
|
|
177
|
-
return Math.round(
|
|
177
|
+
return Math.round(n / r) + "h";
|
|
178
178
|
}
|
|
179
179
|
if (o >= t) {
|
|
180
|
-
return Math.round(
|
|
180
|
+
return Math.round(n / t) + "m";
|
|
181
181
|
}
|
|
182
182
|
if (o >= e) {
|
|
183
|
-
return Math.round(
|
|
183
|
+
return Math.round(n / e) + "s";
|
|
184
184
|
}
|
|
185
|
-
return
|
|
185
|
+
return n + "ms";
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
var o = Math.abs(
|
|
189
|
-
if (o >=
|
|
190
|
-
return u(
|
|
187
|
+
function c(n) {
|
|
188
|
+
var o = Math.abs(n);
|
|
189
|
+
if (o >= s) {
|
|
190
|
+
return u(n, o, s, "day");
|
|
191
191
|
}
|
|
192
192
|
if (o >= r) {
|
|
193
|
-
return u(
|
|
193
|
+
return u(n, o, r, "hour");
|
|
194
194
|
}
|
|
195
195
|
if (o >= t) {
|
|
196
|
-
return u(
|
|
196
|
+
return u(n, o, t, "minute");
|
|
197
197
|
}
|
|
198
198
|
if (o >= e) {
|
|
199
|
-
return u(
|
|
199
|
+
return u(n, o, e, "second");
|
|
200
200
|
}
|
|
201
|
-
return
|
|
201
|
+
return n + " ms";
|
|
202
202
|
}
|
|
203
|
-
function u(e, t, r,
|
|
204
|
-
var
|
|
205
|
-
return Math.round(e / r) + " " +
|
|
203
|
+
function u(e, t, r, s) {
|
|
204
|
+
var n = t >= r * 1.5;
|
|
205
|
+
return Math.round(e / r) + " " + s + (n ? "s" : "");
|
|
206
206
|
}
|
|
207
207
|
return d;
|
|
208
208
|
}
|
|
@@ -217,10 +217,10 @@ function F() {
|
|
|
217
217
|
function e(e) {
|
|
218
218
|
r.debug = r;
|
|
219
219
|
r.default = r;
|
|
220
|
-
r.coerce =
|
|
220
|
+
r.coerce = c;
|
|
221
221
|
r.disable = i;
|
|
222
|
-
r.enable =
|
|
223
|
-
r.enabled =
|
|
222
|
+
r.enable = n;
|
|
223
|
+
r.enabled = a;
|
|
224
224
|
r.humanize = m();
|
|
225
225
|
r.destroy = u;
|
|
226
226
|
Object.keys(e).forEach((t => {
|
|
@@ -240,54 +240,54 @@ function F() {
|
|
|
240
240
|
r.selectColor = t;
|
|
241
241
|
function r(e) {
|
|
242
242
|
let t;
|
|
243
|
-
let
|
|
243
|
+
let n = null;
|
|
244
244
|
let o;
|
|
245
245
|
let i;
|
|
246
|
-
function
|
|
247
|
-
if (!
|
|
246
|
+
function a(...e) {
|
|
247
|
+
if (!a.enabled) {
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
|
-
const
|
|
251
|
-
const
|
|
252
|
-
const o =
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
t =
|
|
250
|
+
const s = a;
|
|
251
|
+
const n = Number(new Date);
|
|
252
|
+
const o = n - (t || n);
|
|
253
|
+
s.diff = o;
|
|
254
|
+
s.prev = t;
|
|
255
|
+
s.curr = n;
|
|
256
|
+
t = n;
|
|
257
257
|
e[0] = r.coerce(e[0]);
|
|
258
258
|
if (typeof e[0] !== "string") {
|
|
259
259
|
e.unshift("%O");
|
|
260
260
|
}
|
|
261
261
|
let i = 0;
|
|
262
|
-
e[0] = e[0].replace(/%([a-zA-Z%])/g, ((t,
|
|
262
|
+
e[0] = e[0].replace(/%([a-zA-Z%])/g, ((t, n) => {
|
|
263
263
|
if (t === "%%") {
|
|
264
264
|
return "%";
|
|
265
265
|
}
|
|
266
266
|
i++;
|
|
267
|
-
const o = r.formatters[
|
|
267
|
+
const o = r.formatters[n];
|
|
268
268
|
if (typeof o === "function") {
|
|
269
269
|
const r = e[i];
|
|
270
|
-
t = o.call(
|
|
270
|
+
t = o.call(s, r);
|
|
271
271
|
e.splice(i, 1);
|
|
272
272
|
i--;
|
|
273
273
|
}
|
|
274
274
|
return t;
|
|
275
275
|
}));
|
|
276
|
-
r.formatArgs.call(
|
|
277
|
-
const
|
|
278
|
-
|
|
276
|
+
r.formatArgs.call(s, e);
|
|
277
|
+
const c = s.log || r.log;
|
|
278
|
+
c.apply(s, e);
|
|
279
279
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
Object.defineProperty(
|
|
280
|
+
a.namespace = e;
|
|
281
|
+
a.useColors = r.useColors();
|
|
282
|
+
a.color = r.selectColor(e);
|
|
283
|
+
a.extend = s;
|
|
284
|
+
a.destroy = r.destroy;
|
|
285
|
+
Object.defineProperty(a, "enabled", {
|
|
286
286
|
enumerable: true,
|
|
287
287
|
configurable: false,
|
|
288
288
|
get: () => {
|
|
289
|
-
if (
|
|
290
|
-
return
|
|
289
|
+
if (n !== null) {
|
|
290
|
+
return n;
|
|
291
291
|
}
|
|
292
292
|
if (o !== r.namespaces) {
|
|
293
293
|
o = r.namespaces;
|
|
@@ -296,20 +296,20 @@ function F() {
|
|
|
296
296
|
return i;
|
|
297
297
|
},
|
|
298
298
|
set: e => {
|
|
299
|
-
|
|
299
|
+
n = e;
|
|
300
300
|
}
|
|
301
301
|
});
|
|
302
302
|
if (typeof r.init === "function") {
|
|
303
|
-
r.init(
|
|
303
|
+
r.init(a);
|
|
304
304
|
}
|
|
305
|
-
return
|
|
305
|
+
return a;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
308
|
-
const
|
|
309
|
-
|
|
310
|
-
return
|
|
307
|
+
function s(e, t) {
|
|
308
|
+
const s = r(this.namespace + (typeof t === "undefined" ? ":" : t) + e);
|
|
309
|
+
s.log = this.log;
|
|
310
|
+
return s;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function n(e) {
|
|
313
313
|
r.save(e);
|
|
314
314
|
r.namespaces = e;
|
|
315
315
|
r.names = [];
|
|
@@ -325,38 +325,38 @@ function F() {
|
|
|
325
325
|
}
|
|
326
326
|
function o(e, t) {
|
|
327
327
|
let r = 0;
|
|
328
|
-
let
|
|
329
|
-
let
|
|
328
|
+
let s = 0;
|
|
329
|
+
let n = -1;
|
|
330
330
|
let o = 0;
|
|
331
331
|
while (r < e.length) {
|
|
332
|
-
if (
|
|
333
|
-
if (t[
|
|
334
|
-
|
|
332
|
+
if (s < t.length && (t[s] === e[r] || t[s] === "*")) {
|
|
333
|
+
if (t[s] === "*") {
|
|
334
|
+
n = s;
|
|
335
335
|
o = r;
|
|
336
|
-
|
|
336
|
+
s++;
|
|
337
337
|
} else {
|
|
338
338
|
r++;
|
|
339
|
-
|
|
339
|
+
s++;
|
|
340
340
|
}
|
|
341
|
-
} else if (
|
|
342
|
-
|
|
341
|
+
} else if (n !== -1) {
|
|
342
|
+
s = n + 1;
|
|
343
343
|
o++;
|
|
344
344
|
r = o;
|
|
345
345
|
} else {
|
|
346
346
|
return false;
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
while (
|
|
350
|
-
|
|
349
|
+
while (s < t.length && t[s] === "*") {
|
|
350
|
+
s++;
|
|
351
351
|
}
|
|
352
|
-
return
|
|
352
|
+
return s === t.length;
|
|
353
353
|
}
|
|
354
354
|
function i() {
|
|
355
355
|
const e = [ ...r.names, ...r.skips.map((e => "-" + e)) ].join(",");
|
|
356
356
|
r.enable("");
|
|
357
357
|
return e;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function a(e) {
|
|
360
360
|
for (const t of r.skips) {
|
|
361
361
|
if (o(e, t)) {
|
|
362
362
|
return false;
|
|
@@ -369,7 +369,7 @@ function F() {
|
|
|
369
369
|
}
|
|
370
370
|
return false;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function c(e) {
|
|
373
373
|
if (e instanceof Error) {
|
|
374
374
|
return e.stack || e.message;
|
|
375
375
|
}
|
|
@@ -393,8 +393,8 @@ function b() {
|
|
|
393
393
|
if (y) return p.exports;
|
|
394
394
|
y = 1;
|
|
395
395
|
(function(e, t) {
|
|
396
|
-
t.formatArgs =
|
|
397
|
-
t.save =
|
|
396
|
+
t.formatArgs = s;
|
|
397
|
+
t.save = n;
|
|
398
398
|
t.load = o;
|
|
399
399
|
t.useColors = r;
|
|
400
400
|
t.storage = i();
|
|
@@ -418,28 +418,28 @@ function b() {
|
|
|
418
418
|
let e;
|
|
419
419
|
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (e = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(e[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function s(t) {
|
|
422
422
|
t[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + t[0] + (this.useColors ? "%c " : " ") + "+" + e.exports.humanize(this.diff);
|
|
423
423
|
if (!this.useColors) {
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
426
426
|
const r = "color: " + this.color;
|
|
427
427
|
t.splice(1, 0, r, "color: inherit");
|
|
428
|
-
let n = 0;
|
|
429
428
|
let s = 0;
|
|
429
|
+
let n = 0;
|
|
430
430
|
t[0].replace(/%[a-zA-Z%]/g, (e => {
|
|
431
431
|
if (e === "%%") {
|
|
432
432
|
return;
|
|
433
433
|
}
|
|
434
|
-
|
|
434
|
+
s++;
|
|
435
435
|
if (e === "%c") {
|
|
436
|
-
|
|
436
|
+
n = s;
|
|
437
437
|
}
|
|
438
438
|
}));
|
|
439
|
-
t.splice(
|
|
439
|
+
t.splice(n, 0, r);
|
|
440
440
|
}
|
|
441
441
|
t.log = console.debug || console.log || (() => {});
|
|
442
|
-
function
|
|
442
|
+
function n(e) {
|
|
443
443
|
try {
|
|
444
444
|
if (e) {
|
|
445
445
|
t.storage.setItem("debug", e);
|
|
@@ -464,8 +464,8 @@ function b() {
|
|
|
464
464
|
} catch (e) {}
|
|
465
465
|
}
|
|
466
466
|
e.exports = F()(t);
|
|
467
|
-
const {formatters:
|
|
468
|
-
|
|
467
|
+
const {formatters: a} = e.exports;
|
|
468
|
+
a.j = function(e) {
|
|
469
469
|
try {
|
|
470
470
|
return JSON.stringify(e);
|
|
471
471
|
} catch (e) {
|
|
@@ -515,61 +515,61 @@ var A;
|
|
|
515
515
|
function I() {
|
|
516
516
|
if (A) return w.exports;
|
|
517
517
|
A = 1;
|
|
518
|
-
(function(e,
|
|
519
|
-
const
|
|
518
|
+
(function(e, s) {
|
|
519
|
+
const n = t;
|
|
520
520
|
const o = r;
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
521
|
+
s.init = p;
|
|
522
|
+
s.log = u;
|
|
523
|
+
s.formatArgs = a;
|
|
524
|
+
s.save = f;
|
|
525
|
+
s.load = l;
|
|
526
|
+
s.useColors = i;
|
|
527
|
+
s.destroy = o.deprecate((() => {}), "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
528
|
+
s.colors = [ 6, 2, 3, 4, 5, 1 ];
|
|
529
529
|
try {
|
|
530
530
|
const e = j();
|
|
531
531
|
if (e && (e.stderr || e).level >= 2) {
|
|
532
|
-
|
|
532
|
+
s.colors = [ 20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221 ];
|
|
533
533
|
}
|
|
534
534
|
} catch (e) {}
|
|
535
|
-
|
|
535
|
+
s.inspectOpts = Object.keys(process.env).filter((e => /^debug_/i.test(e))).reduce(((e, t) => {
|
|
536
536
|
const r = t.substring(6).toLowerCase().replace(/_([a-z])/g, ((e, t) => t.toUpperCase()));
|
|
537
|
-
let
|
|
538
|
-
if (/^(yes|on|true|enabled)$/i.test(
|
|
539
|
-
|
|
540
|
-
} else if (/^(no|off|false|disabled)$/i.test(
|
|
541
|
-
|
|
542
|
-
} else if (
|
|
543
|
-
|
|
537
|
+
let s = process.env[t];
|
|
538
|
+
if (/^(yes|on|true|enabled)$/i.test(s)) {
|
|
539
|
+
s = true;
|
|
540
|
+
} else if (/^(no|off|false|disabled)$/i.test(s)) {
|
|
541
|
+
s = false;
|
|
542
|
+
} else if (s === "null") {
|
|
543
|
+
s = null;
|
|
544
544
|
} else {
|
|
545
|
-
|
|
545
|
+
s = Number(s);
|
|
546
546
|
}
|
|
547
|
-
e[r] =
|
|
547
|
+
e[r] = s;
|
|
548
548
|
return e;
|
|
549
549
|
}), {});
|
|
550
550
|
function i() {
|
|
551
|
-
return "colors" in
|
|
552
|
-
}
|
|
553
|
-
function
|
|
554
|
-
const {namespace: r, useColors:
|
|
555
|
-
if (
|
|
556
|
-
const
|
|
557
|
-
const
|
|
558
|
-
const o = ` ${
|
|
551
|
+
return "colors" in s.inspectOpts ? Boolean(s.inspectOpts.colors) : n.isatty(process.stderr.fd);
|
|
552
|
+
}
|
|
553
|
+
function a(t) {
|
|
554
|
+
const {namespace: r, useColors: s} = this;
|
|
555
|
+
if (s) {
|
|
556
|
+
const s = this.color;
|
|
557
|
+
const n = "[3" + (s < 8 ? s : "8;5;" + s);
|
|
558
|
+
const o = ` ${n};1m${r} [0m`;
|
|
559
559
|
t[0] = o + t[0].split("\n").join("\n" + o);
|
|
560
|
-
t.push(
|
|
560
|
+
t.push(n + "m+" + e.exports.humanize(this.diff) + "[0m");
|
|
561
561
|
} else {
|
|
562
|
-
t[0] =
|
|
562
|
+
t[0] = c() + r + " " + t[0];
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
function
|
|
566
|
-
if (
|
|
565
|
+
function c() {
|
|
566
|
+
if (s.inspectOpts.hideDate) {
|
|
567
567
|
return "";
|
|
568
568
|
}
|
|
569
569
|
return (new Date).toISOString() + " ";
|
|
570
570
|
}
|
|
571
571
|
function u(...e) {
|
|
572
|
-
return process.stderr.write(o.formatWithOptions(
|
|
572
|
+
return process.stderr.write(o.formatWithOptions(s.inspectOpts, ...e) + "\n");
|
|
573
573
|
}
|
|
574
574
|
function f(e) {
|
|
575
575
|
if (e) {
|
|
@@ -583,12 +583,12 @@ function I() {
|
|
|
583
583
|
}
|
|
584
584
|
function p(e) {
|
|
585
585
|
e.inspectOpts = {};
|
|
586
|
-
const t = Object.keys(
|
|
586
|
+
const t = Object.keys(s.inspectOpts);
|
|
587
587
|
for (let r = 0; r < t.length; r++) {
|
|
588
|
-
e.inspectOpts[t[r]] =
|
|
588
|
+
e.inspectOpts[t[r]] = s.inspectOpts[t[r]];
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
e.exports = F()(
|
|
591
|
+
e.exports = F()(s);
|
|
592
592
|
const {formatters: d} = e.exports;
|
|
593
593
|
d.o = function(e) {
|
|
594
594
|
this.inspectOpts.colors = this.useColors;
|
|
@@ -614,4 +614,4 @@ var B = l.exports;
|
|
|
614
614
|
|
|
615
615
|
const D = e(B);
|
|
616
616
|
|
|
617
|
-
export { f as
|
|
617
|
+
export { f as r, B as s };
|