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.3.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as e } from "./Package.1.mjs";
|
|
2
2
|
|
|
3
3
|
import { AsyncConstructor as s } from "../src/lib/base/async-constructor/AsyncConstructor.mjs";
|
|
4
4
|
|
|
@@ -18,7 +18,7 @@ import { GetObjectIsAutoload as u, GetObjectInjectItemsByPrototype as f } from "
|
|
|
18
18
|
|
|
19
19
|
import { SetObjectContainerGetter as b } from "../src/lib/base/internal/ObjectContainer.mjs";
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { DTO as y, IsSymbol as g } from "./Package.2.mjs";
|
|
22
22
|
|
|
23
23
|
import { ObjectConstructor as j } from "../src/lib/helpers/ObjectConstructor.mjs";
|
|
24
24
|
|
|
@@ -28,9 +28,9 @@ import { DevNull as O } from "../src/lib/helpers/DevNull.mjs";
|
|
|
28
28
|
|
|
29
29
|
import { ObjectParentConstructors as P } from "../src/lib/helpers/ObjectParentConstructors.mjs";
|
|
30
30
|
|
|
31
|
-
import { DependencyInjectionException as
|
|
31
|
+
import { DependencyInjectionException as R } from "../src/exceptions/di/DependencyInjectionException.mjs";
|
|
32
32
|
|
|
33
|
-
import { ConstructorSymbol as
|
|
33
|
+
import { ConstructorSymbol as C } from "../src/lib/base/internal/ConstructorSymbol.mjs";
|
|
34
34
|
|
|
35
35
|
import { Expect as S } from "../src/decorators/dto/Expect.mjs";
|
|
36
36
|
|
|
@@ -50,27 +50,27 @@ import { isClass as L } from "../src/lib/ioc/Utils.mjs";
|
|
|
50
50
|
|
|
51
51
|
import { IsEmptyObject as k } from "../src/lib/helpers/IsEmptyObject.mjs";
|
|
52
52
|
|
|
53
|
-
import { AppendObjectWeakRefs as
|
|
53
|
+
import { AppendObjectWeakRefs as U, GetObjectWeakRefs as x, ClearObjectWeakRefs as D } from "../src/lib/base/internal/ObjectWeakRefs.mjs";
|
|
54
54
|
|
|
55
55
|
var B;
|
|
56
56
|
|
|
57
|
-
const
|
|
57
|
+
const F = Symbol("OBJECT_ID");
|
|
58
58
|
|
|
59
|
-
let
|
|
59
|
+
let Y = class LoadObjectOptions extends y {
|
|
60
60
|
static {
|
|
61
|
-
B =
|
|
61
|
+
B = F;
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
t([ S(y.Alternatives(y.String(), y.Symbol()).optional()), e("design:type", Object) ],
|
|
65
|
+
t([ S(y.Alternatives(y.String(), y.Symbol()).optional()), e("design:type", Object) ], Y.prototype, B, void 0);
|
|
66
66
|
|
|
67
|
-
t([ S(y.Class((() => tt)).required()), e("design:type", Object) ],
|
|
67
|
+
t([ S(y.Class((() => tt)).required()), e("design:type", Object) ], Y.prototype, "class", void 0);
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
Y = t([ N(y.Any()) ], Y);
|
|
70
70
|
|
|
71
|
-
const
|
|
71
|
+
const _ = Symbol("LAKUTATA.DI.CONTAINER.SYMBOL");
|
|
72
72
|
|
|
73
|
-
const
|
|
73
|
+
const G = Symbol("LAKUTATA.DI.OWNER.SYMBOL");
|
|
74
74
|
|
|
75
75
|
class Container {
|
|
76
76
|
#t;
|
|
@@ -86,8 +86,8 @@ class Container {
|
|
|
86
86
|
strict: false
|
|
87
87
|
});
|
|
88
88
|
if (this.parent) this.parent.#e.add(this);
|
|
89
|
-
this.#t.register(
|
|
90
|
-
if (e) this.#t.register(
|
|
89
|
+
this.#t.register(_, v(this));
|
|
90
|
+
if (e) this.#t.register(G, v(new WeakRef(e)));
|
|
91
91
|
}
|
|
92
92
|
async disposer(t) {
|
|
93
93
|
try {
|
|
@@ -117,7 +117,7 @@ class Container {
|
|
|
117
117
|
}
|
|
118
118
|
buildNameAndRegistrationPairFromOptions(t) {
|
|
119
119
|
const e = {};
|
|
120
|
-
const s = t[
|
|
120
|
+
const s = t[F] ? t[F] : C(t.class);
|
|
121
121
|
const i = {
|
|
122
122
|
...t,
|
|
123
123
|
class: void 0
|
|
@@ -138,7 +138,7 @@ class Container {
|
|
|
138
138
|
if (L(i) && y.isValid(i, y.Class(tt))) {
|
|
139
139
|
const t = i;
|
|
140
140
|
const s = {};
|
|
141
|
-
s[
|
|
141
|
+
s[C(t)] = I(t, this.buildResolverOptions(t));
|
|
142
142
|
return e(s);
|
|
143
143
|
} else {
|
|
144
144
|
return e({});
|
|
@@ -158,7 +158,7 @@ class Container {
|
|
|
158
158
|
return i;
|
|
159
159
|
}
|
|
160
160
|
owner() {
|
|
161
|
-
const t = this.#t.resolve(
|
|
161
|
+
const t = this.#t.resolve(G, {
|
|
162
162
|
allowUnregistered: true
|
|
163
163
|
});
|
|
164
164
|
return t ? t.deref() : undefined;
|
|
@@ -201,7 +201,7 @@ class Container {
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
async get(t, e = {}) {
|
|
204
|
-
const s = typeof t === "function" ?
|
|
204
|
+
const s = typeof t === "function" ? C(t) : t;
|
|
205
205
|
if (!this.#t.hasRegistration(s) && typeof t === "function" && u(w(t))) {
|
|
206
206
|
await this.load([ {
|
|
207
207
|
id: s,
|
|
@@ -211,7 +211,7 @@ class Container {
|
|
|
211
211
|
return (this.#t.getRegistration(s)?.lifetime === "SINGLETON" || this.#t.getRegistration(s)?.lifetime === "MODULE_SINGLETON") && !this.injectionNames.has(s) && this.parent ? await this.parent.get(s, e) : await this.processResolved(this.#t.resolve(s), s, e);
|
|
212
212
|
}
|
|
213
213
|
has(t) {
|
|
214
|
-
if (typeof t === "function") return this.#t.hasRegistration(
|
|
214
|
+
if (typeof t === "function") return this.#t.hasRegistration(C(t));
|
|
215
215
|
return this.#t.hasRegistration(t);
|
|
216
216
|
}
|
|
217
217
|
async set(t, e = {}) {
|
|
@@ -225,7 +225,7 @@ class Container {
|
|
|
225
225
|
await this.load([ {
|
|
226
226
|
...s,
|
|
227
227
|
class: e,
|
|
228
|
-
[
|
|
228
|
+
[F]: t
|
|
229
229
|
} ]);
|
|
230
230
|
return await this.get(t);
|
|
231
231
|
}
|
|
@@ -239,12 +239,12 @@ class Container {
|
|
|
239
239
|
await this.load([ {
|
|
240
240
|
...s,
|
|
241
241
|
class: e,
|
|
242
|
-
[
|
|
242
|
+
[F]: t
|
|
243
243
|
} ]);
|
|
244
244
|
}
|
|
245
245
|
async build(t, e = {}) {
|
|
246
|
-
const s = await this.processResolved(this.#t.build(t, this.buildResolverOptions(t)),
|
|
247
|
-
|
|
246
|
+
const s = await this.processResolved(this.#t.build(t, this.buildResolverOptions(t)), C(t), e);
|
|
247
|
+
U(this.#t, s);
|
|
248
248
|
return s;
|
|
249
249
|
}
|
|
250
250
|
createScope() {
|
|
@@ -259,7 +259,7 @@ class Container {
|
|
|
259
259
|
await Promise.all(t);
|
|
260
260
|
await this.#t.dispose();
|
|
261
261
|
const e = [];
|
|
262
|
-
|
|
262
|
+
x(this.#t).forEach((t => {
|
|
263
263
|
let s = t.deref();
|
|
264
264
|
if (!s) return;
|
|
265
265
|
if (s[H]) {
|
|
@@ -270,7 +270,7 @@ class Container {
|
|
|
270
270
|
}
|
|
271
271
|
}));
|
|
272
272
|
await Promise.all(e);
|
|
273
|
-
|
|
273
|
+
D(this.#t);
|
|
274
274
|
}
|
|
275
275
|
async destroy() {
|
|
276
276
|
if (this.#s) return;
|
|
@@ -280,7 +280,7 @@ class Container {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
t([ M(y.Array(y.Alternatives(
|
|
283
|
+
t([ M(y.Array(y.Alternatives(Y.Schema(), y.Class((() => tt)), y.Glob()))), e("design:type", Function), e("design:paramtypes", [ Array ]), e("design:returntype", Promise) ], Container.prototype, "load", null);
|
|
284
284
|
|
|
285
285
|
const $ = Symbol("OBJECT.TYPE");
|
|
286
286
|
|
|
@@ -361,7 +361,7 @@ let tt = K = class BaseObject extends s {
|
|
|
361
361
|
Reflect.set(this, s, t);
|
|
362
362
|
return e();
|
|
363
363
|
})).catch(r);
|
|
364
|
-
})).catch((t => r(new
|
|
364
|
+
})).catch((t => r(new R("Unable to inject value for property {0} of {1} because: {2}", [ s, this.className, t.message ]))));
|
|
365
365
|
})));
|
|
366
366
|
}));
|
|
367
367
|
await Promise.all(e);
|
|
@@ -379,7 +379,7 @@ let tt = K = class BaseObject extends s {
|
|
|
379
379
|
});
|
|
380
380
|
await this[X]();
|
|
381
381
|
}));
|
|
382
|
-
this.#i = new Container(t[
|
|
382
|
+
this.#i = new Container(t[_], this);
|
|
383
383
|
b(this, this.#i);
|
|
384
384
|
}
|
|
385
385
|
static get className() {
|
|
@@ -472,4 +472,4 @@ let tt = K = class BaseObject extends s {
|
|
|
472
472
|
|
|
473
473
|
tt = K = t([ i(), z(q.Object), e("design:paramtypes", [ Object ]) ], tt);
|
|
474
474
|
|
|
475
|
-
export { tt as
|
|
475
|
+
export { tt as BaseObject, Container, z as DefineObjectType, V as GetObjectType, Y as LoadObjectOptions, F as OBJECT_ID, q as ObjectType, J as SetObjectType, H as __destroy, X as __init, Q as anonymousId, _ as containerSymbol, G as ownerSymbol };
|
package/vendor/Package.4.mjs
CHANGED
package/vendor/Package.5.mjs
CHANGED
package/vendor/Package.6.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { commonjsGlobal as M, getDefaultExportFromCjs as z } from "./Package.5.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { commonjsRequire as b } from "./Package.7.mjs";
|
|
4
4
|
|
|
5
5
|
var p = {
|
|
6
6
|
exports: {}
|
|
@@ -4307,4 +4307,4 @@ var L = p.exports;
|
|
|
4307
4307
|
|
|
4308
4308
|
const u = z(L);
|
|
4309
4309
|
|
|
4310
|
-
export { u as
|
|
4310
|
+
export { u as MomentTimezone };
|
package/vendor/Package.610.mjs
CHANGED
package/vendor/Package.611.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t from "events";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { index_default as s } from "./Package.66.mjs";
|
|
4
4
|
|
|
5
5
|
import e from "pg";
|
|
6
6
|
|
|
@@ -22,12 +22,12 @@ var o = (t, s = {}) => {
|
|
|
22
22
|
return a;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var n = async () => {
|
|
26
26
|
await a.end();
|
|
27
27
|
i = void 0;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var r = class extends t {
|
|
31
31
|
ttlSupport;
|
|
32
32
|
opts;
|
|
33
33
|
query;
|
|
@@ -125,12 +125,12 @@ var n = class extends t {
|
|
|
125
125
|
async* iterator(t) {
|
|
126
126
|
const s = Number.parseInt(String(this.opts.iterationLimit), 10) || 10;
|
|
127
127
|
async function* e(a, i, o) {
|
|
128
|
-
const
|
|
129
|
-
const
|
|
130
|
-
if (
|
|
128
|
+
const n = `SELECT * FROM ${i.schema}.${i.table} WHERE key LIKE $1 LIMIT $2 OFFSET $3`;
|
|
129
|
+
const r = await o(n, [ `${t ? t + ":" : ""}%`, s, a ]);
|
|
130
|
+
if (r.length === 0) {
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
|
-
for (const t of
|
|
133
|
+
for (const t of r) {
|
|
134
134
|
a += 1;
|
|
135
135
|
yield [ t.key, t.value ];
|
|
136
136
|
}
|
|
@@ -144,14 +144,14 @@ var n = class extends t {
|
|
|
144
144
|
return e[0].exists;
|
|
145
145
|
}
|
|
146
146
|
async disconnect() {
|
|
147
|
-
await
|
|
147
|
+
await n();
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
var c = t => new s({
|
|
152
|
-
store: new
|
|
152
|
+
store: new r(t)
|
|
153
153
|
});
|
|
154
154
|
|
|
155
|
-
var h =
|
|
155
|
+
var h = r;
|
|
156
156
|
|
|
157
|
-
export {
|
|
157
|
+
export { r as KeyvPostgres, c as createKeyv, h as default };
|