@xuda.io/xuda-dbs-plugin-xuda 1.0.10 → 1.0.12
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/index.mjs +5 -5
- package/package.json +1 -1
- package/test_connection.js +1 -1
package/index.mjs
CHANGED
@@ -154,7 +154,7 @@ const get_index_json = async function (docInP, table_obj) {
|
|
154
154
|
}
|
155
155
|
};
|
156
156
|
|
157
|
-
export const Create = async (e, db, table_obj) => {
|
157
|
+
export const Create = async (_, e, db, table_obj) => {
|
158
158
|
const batch = async function () {
|
159
159
|
var docs = [];
|
160
160
|
try {
|
@@ -229,7 +229,7 @@ export const Create = async (e, db, table_obj) => {
|
|
229
229
|
}
|
230
230
|
return await single();
|
231
231
|
};
|
232
|
-
export const Read = async (e, db, table_obj) => {
|
232
|
+
export const Read = async (_, e, db, table_obj) => {
|
233
233
|
var key;
|
234
234
|
|
235
235
|
const runtime_get_mango_data = async function () {
|
@@ -925,7 +925,7 @@ export const Read = async (e, db, table_obj) => {
|
|
925
925
|
}
|
926
926
|
return await runtime_get_mango_data();
|
927
927
|
};
|
928
|
-
export const Update = async (e, db, table_obj) => {
|
928
|
+
export const Update = async (_, e, db, table_obj) => {
|
929
929
|
try {
|
930
930
|
const doc = await db.get(e.row_id, {});
|
931
931
|
let data = doc.udfData.data;
|
@@ -976,7 +976,7 @@ export const Update = async (e, db, table_obj) => {
|
|
976
976
|
return { code: -550, data: error };
|
977
977
|
}
|
978
978
|
};
|
979
|
-
export const Delete = async (e, db, table_obj) => {
|
979
|
+
export const Delete = async (_, e, db, table_obj) => {
|
980
980
|
const data = await db.fetch({ keys: e.ids });
|
981
981
|
for await (var val of data.rows) {
|
982
982
|
var doc = val.doc;
|
@@ -1003,7 +1003,7 @@ export const Delete = async (e, db, table_obj) => {
|
|
1003
1003
|
}
|
1004
1004
|
};
|
1005
1005
|
|
1006
|
-
export const Restore = async (e, db, table_obj) => {
|
1006
|
+
export const Restore = async (_, e, db, table_obj) => {
|
1007
1007
|
var docs_to_restore = [];
|
1008
1008
|
const data = await db.fetch({ keys: e.ids });
|
1009
1009
|
|
package/package.json
CHANGED
package/test_connection.js
CHANGED
@@ -8,7 +8,7 @@ exports.test_connection = async (node_modules_path, setup_doc) => {
|
|
8
8
|
if (!nano) {
|
9
9
|
return { code: -450, data: "connection error" };
|
10
10
|
}
|
11
|
-
await nano.get("_design");
|
11
|
+
await nano.get("_design/xuda");
|
12
12
|
return { code: 450, data: nano };
|
13
13
|
} catch (err) {
|
14
14
|
return { code: -450, data: err };
|