@wxn0brp/db-core 0.6.0 → 0.6.1
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/dist/db/valthera.js
CHANGED
package/dist/helpers/forge.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Collection } from "./collection.js";
|
|
2
2
|
export function forgeValthera(target) {
|
|
3
|
+
return forgeTypedValthera(target);
|
|
4
|
+
}
|
|
5
|
+
export function forgeTypedValthera(target) {
|
|
3
6
|
return new Proxy(target, {
|
|
4
7
|
get(target, prop, receiver) {
|
|
5
8
|
if (prop in target) {
|
|
@@ -14,6 +17,3 @@ export function forgeValthera(target) {
|
|
|
14
17
|
}
|
|
15
18
|
});
|
|
16
19
|
}
|
|
17
|
-
export function forgeTypedValthera(target) {
|
|
18
|
-
return forgeValthera(target);
|
|
19
|
-
}
|
package/dist/types/valthera.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { VQuery } from "./query.js";
|
|
|
5
5
|
import { VContext } from "./types.js";
|
|
6
6
|
export type QueryBase = Required<Pick<VQuery, "collection" | "search">> & Pick<VQuery, "control">;
|
|
7
7
|
export type AddQuery = Required<Pick<VQuery, "data" | "collection">> & Pick<VQuery, "id_gen" | "control">;
|
|
8
|
-
export type FindQuery = QueryBase & Pick<VQuery, "findOpts" | "dbFindOpts" | "context">;
|
|
8
|
+
export type FindQuery = Omit<QueryBase, "search"> & Pick<VQuery, "search"> & Pick<VQuery, "findOpts" | "dbFindOpts" | "context">;
|
|
9
9
|
export type FindOneQuery = QueryBase & Pick<VQuery, "findOpts" | "context">;
|
|
10
10
|
export type UpdateQuery = QueryBase & Required<Pick<VQuery, "updater">> & Pick<VQuery, "context">;
|
|
11
11
|
export type RemoveQuery = QueryBase & Pick<VQuery, "context">;
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "0.6.
|
|
1
|
+
export const version = "0.6.1";
|