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
package/vendor/Package.62.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getDefaultExportFromCjs 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 n = {
|
|
20
20
|
exports: {}
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var s = {
|
|
24
24
|
exports: {}
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
var o =
|
|
27
|
+
var o = s.exports;
|
|
28
28
|
|
|
29
29
|
var i;
|
|
30
30
|
|
|
31
|
-
function
|
|
32
|
-
if (i) return
|
|
31
|
+
function c() {
|
|
32
|
+
if (i) return s.exports;
|
|
33
33
|
i = 1;
|
|
34
34
|
if (typeof Object.create === "function") {
|
|
35
|
-
|
|
35
|
+
s.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 a() {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
} else {
|
|
49
|
-
|
|
49
|
+
s.exports = function e(t, r) {
|
|
50
50
|
if (r) {
|
|
51
51
|
t.super_ = r;
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
t.prototype = new
|
|
52
|
+
var n = function() {};
|
|
53
|
+
n.prototype = r.prototype;
|
|
54
|
+
t.prototype = new n;
|
|
55
55
|
t.prototype.constructor = t;
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return s.exports;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var a = n.exports;
|
|
63
63
|
|
|
64
64
|
var u;
|
|
65
65
|
|
|
66
66
|
function f() {
|
|
67
|
-
if (u) return
|
|
67
|
+
if (u) return n.exports;
|
|
68
68
|
u = 1;
|
|
69
69
|
try {
|
|
70
70
|
var e = require("util");
|
|
71
71
|
if (typeof e.inherits !== "function") throw "";
|
|
72
|
-
|
|
72
|
+
n.exports = e.inherits;
|
|
73
73
|
} catch (e) {
|
|
74
|
-
|
|
74
|
+
n.exports = c();
|
|
75
75
|
}
|
|
76
|
-
return
|
|
76
|
+
return n.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 n = r * 24;
|
|
98
|
+
var s = n * 7;
|
|
99
|
+
var o = n * 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 ? a(e) : c(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 c = /^(-?(?:\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 (!c) {
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
|
-
var
|
|
120
|
-
var u = (
|
|
119
|
+
var a = parseFloat(c[1]);
|
|
120
|
+
var u = (c[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 a * o;
|
|
128
128
|
|
|
129
129
|
case "weeks":
|
|
130
130
|
case "week":
|
|
131
131
|
case "w":
|
|
132
|
-
return
|
|
132
|
+
return a * s;
|
|
133
133
|
|
|
134
134
|
case "days":
|
|
135
135
|
case "day":
|
|
136
136
|
case "d":
|
|
137
|
-
return
|
|
137
|
+
return a * n;
|
|
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 a * 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 a * 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 a * 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 a;
|
|
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 c(s) {
|
|
172
|
+
var o = Math.abs(s);
|
|
173
|
+
if (o >= n) {
|
|
174
|
+
return Math.round(s / n) + "d";
|
|
175
175
|
}
|
|
176
176
|
if (o >= r) {
|
|
177
|
-
return Math.round(
|
|
177
|
+
return Math.round(s / r) + "h";
|
|
178
178
|
}
|
|
179
179
|
if (o >= t) {
|
|
180
|
-
return Math.round(
|
|
180
|
+
return Math.round(s / t) + "m";
|
|
181
181
|
}
|
|
182
182
|
if (o >= e) {
|
|
183
|
-
return Math.round(
|
|
183
|
+
return Math.round(s / e) + "s";
|
|
184
184
|
}
|
|
185
|
-
return
|
|
185
|
+
return s + "ms";
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
var o = Math.abs(
|
|
189
|
-
if (o >=
|
|
190
|
-
return u(
|
|
187
|
+
function a(s) {
|
|
188
|
+
var o = Math.abs(s);
|
|
189
|
+
if (o >= n) {
|
|
190
|
+
return u(s, o, n, "day");
|
|
191
191
|
}
|
|
192
192
|
if (o >= r) {
|
|
193
|
-
return u(
|
|
193
|
+
return u(s, o, r, "hour");
|
|
194
194
|
}
|
|
195
195
|
if (o >= t) {
|
|
196
|
-
return u(
|
|
196
|
+
return u(s, o, t, "minute");
|
|
197
197
|
}
|
|
198
198
|
if (o >= e) {
|
|
199
|
-
return u(
|
|
199
|
+
return u(s, o, e, "second");
|
|
200
200
|
}
|
|
201
|
-
return
|
|
201
|
+
return s + " ms";
|
|
202
202
|
}
|
|
203
|
-
function u(e, t, r,
|
|
204
|
-
var
|
|
205
|
-
return Math.round(e / r) + " " +
|
|
203
|
+
function u(e, t, r, n) {
|
|
204
|
+
var s = t >= r * 1.5;
|
|
205
|
+
return Math.round(e / r) + " " + n + (s ? "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 = a;
|
|
221
221
|
r.disable = i;
|
|
222
|
-
r.enable =
|
|
223
|
-
r.enabled =
|
|
222
|
+
r.enable = s;
|
|
223
|
+
r.enabled = c;
|
|
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 s = null;
|
|
244
244
|
let o;
|
|
245
245
|
let i;
|
|
246
|
-
function
|
|
247
|
-
if (!
|
|
246
|
+
function c(...e) {
|
|
247
|
+
if (!c.enabled) {
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
|
-
const
|
|
251
|
-
const
|
|
252
|
-
const o =
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
t =
|
|
250
|
+
const n = c;
|
|
251
|
+
const s = Number(new Date);
|
|
252
|
+
const o = s - (t || s);
|
|
253
|
+
n.diff = o;
|
|
254
|
+
n.prev = t;
|
|
255
|
+
n.curr = s;
|
|
256
|
+
t = s;
|
|
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, s) => {
|
|
263
263
|
if (t === "%%") {
|
|
264
264
|
return "%";
|
|
265
265
|
}
|
|
266
266
|
i++;
|
|
267
|
-
const o = r.formatters[
|
|
267
|
+
const o = r.formatters[s];
|
|
268
268
|
if (typeof o === "function") {
|
|
269
269
|
const r = e[i];
|
|
270
|
-
t = o.call(
|
|
270
|
+
t = o.call(n, 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(n, e);
|
|
277
|
+
const a = n.log || r.log;
|
|
278
|
+
a.apply(n, e);
|
|
279
279
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
Object.defineProperty(
|
|
280
|
+
c.namespace = e;
|
|
281
|
+
c.useColors = r.useColors();
|
|
282
|
+
c.color = r.selectColor(e);
|
|
283
|
+
c.extend = n;
|
|
284
|
+
c.destroy = r.destroy;
|
|
285
|
+
Object.defineProperty(c, "enabled", {
|
|
286
286
|
enumerable: true,
|
|
287
287
|
configurable: false,
|
|
288
288
|
get: () => {
|
|
289
|
-
if (
|
|
290
|
-
return
|
|
289
|
+
if (s !== null) {
|
|
290
|
+
return s;
|
|
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
|
+
s = e;
|
|
300
300
|
}
|
|
301
301
|
});
|
|
302
302
|
if (typeof r.init === "function") {
|
|
303
|
-
r.init(
|
|
303
|
+
r.init(c);
|
|
304
304
|
}
|
|
305
|
-
return
|
|
305
|
+
return c;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
308
|
-
const
|
|
309
|
-
|
|
310
|
-
return
|
|
307
|
+
function n(e, t) {
|
|
308
|
+
const n = r(this.namespace + (typeof t === "undefined" ? ":" : t) + e);
|
|
309
|
+
n.log = this.log;
|
|
310
|
+
return n;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function s(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 n = 0;
|
|
329
|
+
let s = -1;
|
|
330
330
|
let o = 0;
|
|
331
331
|
while (r < e.length) {
|
|
332
|
-
if (
|
|
333
|
-
if (t[
|
|
334
|
-
|
|
332
|
+
if (n < t.length && (t[n] === e[r] || t[n] === "*")) {
|
|
333
|
+
if (t[n] === "*") {
|
|
334
|
+
s = n;
|
|
335
335
|
o = r;
|
|
336
|
-
|
|
336
|
+
n++;
|
|
337
337
|
} else {
|
|
338
338
|
r++;
|
|
339
|
-
|
|
339
|
+
n++;
|
|
340
340
|
}
|
|
341
|
-
} else if (
|
|
342
|
-
|
|
341
|
+
} else if (s !== -1) {
|
|
342
|
+
n = s + 1;
|
|
343
343
|
o++;
|
|
344
344
|
r = o;
|
|
345
345
|
} else {
|
|
346
346
|
return false;
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
while (
|
|
350
|
-
|
|
349
|
+
while (n < t.length && t[n] === "*") {
|
|
350
|
+
n++;
|
|
351
351
|
}
|
|
352
|
-
return
|
|
352
|
+
return n === 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 c(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 a(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 = n;
|
|
397
|
+
t.save = s;
|
|
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 n(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 s = 0;
|
|
429
428
|
let n = 0;
|
|
429
|
+
let s = 0;
|
|
430
430
|
t[0].replace(/%[a-zA-Z%]/g, (e => {
|
|
431
431
|
if (e === "%%") {
|
|
432
432
|
return;
|
|
433
433
|
}
|
|
434
|
-
|
|
434
|
+
n++;
|
|
435
435
|
if (e === "%c") {
|
|
436
|
-
|
|
436
|
+
s = n;
|
|
437
437
|
}
|
|
438
438
|
}));
|
|
439
|
-
t.splice(
|
|
439
|
+
t.splice(s, 0, r);
|
|
440
440
|
}
|
|
441
441
|
t.log = console.debug || console.log || (() => {});
|
|
442
|
-
function
|
|
442
|
+
function s(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: c} = e.exports;
|
|
468
|
+
c.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, n) {
|
|
519
|
+
const s = t;
|
|
520
520
|
const o = r;
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
521
|
+
n.init = p;
|
|
522
|
+
n.log = u;
|
|
523
|
+
n.formatArgs = c;
|
|
524
|
+
n.save = f;
|
|
525
|
+
n.load = l;
|
|
526
|
+
n.useColors = i;
|
|
527
|
+
n.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
|
+
n.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
|
+
n.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
|
+
n.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 n = process.env[t];
|
|
538
|
+
if (/^(yes|on|true|enabled)$/i.test(n)) {
|
|
539
|
+
n = true;
|
|
540
|
+
} else if (/^(no|off|false|disabled)$/i.test(n)) {
|
|
541
|
+
n = false;
|
|
542
|
+
} else if (n === "null") {
|
|
543
|
+
n = null;
|
|
544
544
|
} else {
|
|
545
|
-
|
|
545
|
+
n = Number(n);
|
|
546
546
|
}
|
|
547
|
-
e[r] =
|
|
547
|
+
e[r] = n;
|
|
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 n.inspectOpts ? Boolean(n.inspectOpts.colors) : s.isatty(process.stderr.fd);
|
|
552
|
+
}
|
|
553
|
+
function c(t) {
|
|
554
|
+
const {namespace: r, useColors: n} = this;
|
|
555
|
+
if (n) {
|
|
556
|
+
const n = this.color;
|
|
557
|
+
const s = "[3" + (n < 8 ? n : "8;5;" + n);
|
|
558
|
+
const o = ` ${s};1m${r} [0m`;
|
|
559
559
|
t[0] = o + t[0].split("\n").join("\n" + o);
|
|
560
|
-
t.push(
|
|
560
|
+
t.push(s + "m+" + e.exports.humanize(this.diff) + "[0m");
|
|
561
561
|
} else {
|
|
562
|
-
t[0] =
|
|
562
|
+
t[0] = a() + r + " " + t[0];
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
function
|
|
566
|
-
if (
|
|
565
|
+
function a() {
|
|
566
|
+
if (n.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(n.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(n.inspectOpts);
|
|
587
587
|
for (let r = 0; r < t.length; r++) {
|
|
588
|
-
e.inspectOpts[t[r]] =
|
|
588
|
+
e.inspectOpts[t[r]] = n.inspectOpts[t[r]];
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
e.exports = F()(
|
|
591
|
+
e.exports = F()(n);
|
|
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 requireInherits, B as srcExports };
|