@wxn0brp/db-core 0.12.2-alpha.0 → 0.12.2
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/base/actions.d.ts +1 -4
- package/dist/base/actions.js +2 -12
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/base/actions.d.ts
CHANGED
|
@@ -6,10 +6,7 @@ export declare abstract class ActionsBase implements ActionsBaseInterface {
|
|
|
6
6
|
_inited: boolean;
|
|
7
7
|
adapterOpts: AdapterOpts;
|
|
8
8
|
smartExecutor: boolean;
|
|
9
|
-
|
|
10
|
-
set numberId(value: boolean);
|
|
11
|
-
get idKey(): string;
|
|
12
|
-
set idKey(value: string);
|
|
9
|
+
version: string;
|
|
13
10
|
init(...args: any[]): Promise<void>;
|
|
14
11
|
close(...args: any[]): Promise<void>;
|
|
15
12
|
abstract getCollections(): Promise<string[]>;
|
package/dist/base/actions.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { setDataForToggleOne, setDataForUpdateOneOrAdd, } from "../helpers/assignDataPush.js";
|
|
2
|
+
import { version } from "../version.js";
|
|
2
3
|
export class ActionsBase {
|
|
3
4
|
_inited = true;
|
|
4
5
|
adapterOpts = {
|
|
@@ -6,18 +7,7 @@ export class ActionsBase {
|
|
|
6
7
|
idKey: "_id",
|
|
7
8
|
};
|
|
8
9
|
smartExecutor = false;
|
|
9
|
-
|
|
10
|
-
return this.adapterOpts.numberId ?? false;
|
|
11
|
-
}
|
|
12
|
-
set numberId(value) {
|
|
13
|
-
this.adapterOpts.numberId = value;
|
|
14
|
-
}
|
|
15
|
-
get idKey() {
|
|
16
|
-
return this.adapterOpts.idKey ?? "_id";
|
|
17
|
-
}
|
|
18
|
-
set idKey(value) {
|
|
19
|
-
this.adapterOpts.idKey = value;
|
|
20
|
-
}
|
|
10
|
+
version = "ActionsBase-core-" + version;
|
|
21
11
|
async init(...args) { }
|
|
22
12
|
async close(...args) { }
|
|
23
13
|
async updateOneOrAdd(config) {
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.
|
|
1
|
+
export declare const version = "0.12.2";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "0.12.2
|
|
1
|
+
export const version = "0.12.2";
|