@xuda.io/xuda-dbs-plugin-xuda 1.0.120 → 1.0.122

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/package.json +1 -1
  2. package/studio.mjs +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-dbs-plugin-xuda",
3
- "version": "1.0.120",
3
+ "version": "1.0.122",
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"
package/studio.mjs CHANGED
@@ -1278,8 +1278,8 @@ export const create = async (params, resolve, reject) => {
1278
1278
  try {
1279
1279
  for await (var val of e.table_data) {
1280
1280
  var doc = {
1281
+ _id: crypto.randomUUID(),
1281
1282
  docType: "database",
1282
-
1283
1283
  user: e.uid,
1284
1284
  stat: 3,
1285
1285
  udfData: {
@@ -1288,8 +1288,8 @@ export const create = async (params, resolve, reject) => {
1288
1288
  error: {},
1289
1289
  },
1290
1290
 
1291
- ts: new Date().valueOf(),
1292
- date: new Date().valueOf(),
1291
+ ts: Date.now(),
1292
+ date: Date.now(),
1293
1293
  };
1294
1294
  const index_ret = await get_index_json(doc, table_obj);
1295
1295
  if (index_ret < 0) throw index_ret.data;
@@ -1313,8 +1313,8 @@ export const create = async (params, resolve, reject) => {
1313
1313
  };
1314
1314
  const single = async function () {
1315
1315
  var doc = {
1316
+ _id: crypto.randomUUID(),
1316
1317
  docType: "database",
1317
-
1318
1318
  user: e.uid,
1319
1319
  stat: 3,
1320
1320
  udfData: {