@wxn0brp/db-core 0.2.1 → 0.2.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/db/valthera.d.ts +1 -1
- package/dist/db/valthera.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/db/valthera.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ declare class ValtheraClass implements ValtheraCompatible {
|
|
|
73
73
|
/**
|
|
74
74
|
* Asynchronously updates one entry in a database or adds a new one if it doesn't exist.
|
|
75
75
|
*/
|
|
76
|
-
updateOneOrAdd<T = Data>(collection: string, search: Search<T>, updater: Updater<T>, { add_arg, context, id_gen }
|
|
76
|
+
updateOneOrAdd<T = Data>(collection: string, search: Search<T>, updater: Updater<T>, { add_arg, context, id_gen }?: UpdateOneOrAdd<T>): Promise<boolean>;
|
|
77
77
|
/**
|
|
78
78
|
* Removes a database collection from the file system.
|
|
79
79
|
*/
|
package/dist/db/valthera.js
CHANGED
|
@@ -102,7 +102,7 @@ class ValtheraClass {
|
|
|
102
102
|
/**
|
|
103
103
|
* Asynchronously updates one entry in a database or adds a new one if it doesn't exist.
|
|
104
104
|
*/
|
|
105
|
-
async updateOneOrAdd(collection, search, updater, { add_arg = {}, context = {}, id_gen = true }) {
|
|
105
|
+
async updateOneOrAdd(collection, search, updater, { add_arg = {}, context = {}, id_gen = true } = {}) {
|
|
106
106
|
return await this.execute("updateOneOrAdd", { collection, search, updater, add_arg, context, id_gen });
|
|
107
107
|
}
|
|
108
108
|
/**
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "0.2.
|
|
1
|
+
export const version = "0.2.2";
|