@xuda.io/xuda-dbs-plugin-xuda 1.0.5 → 1.0.6

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.
Files changed (2) hide show
  1. package/index.mjs +4 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1028,7 +1028,10 @@ export const Restore = async (e, db, table_obj) => {
1028
1028
  export const test_connection = async (node_modules_path, setup_doc) => {
1029
1029
  try {
1030
1030
  if (!setup_doc.db_connection_string) throw "db_connection_string missing";
1031
- const nano = require(node_modules_path + "/nano")(
1031
+ // const nano = require(node_modules_path + "/nano")(
1032
+ // setup_doc.db_connection_string
1033
+ // );
1034
+ const nano = await import(node_modules_path + "/nano")(
1032
1035
  setup_doc.db_connection_string
1033
1036
  );
1034
1037
  if (!nano) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-dbs-plugin-xuda",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Xuda Database Socket for Xuda's proprietary structure powered by CouchDB",
5
5
  "scripts": {
6
6
  "pub": "npm version patch --force && npm publish --access public"