@xuda.io/xuda-worker-bundle-min 1.3.1144 → 1.3.1146

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.js +17 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1126,6 +1126,23 @@ func.api.dbs_read = async function (table_id, selector, fields, sort, limit, ski
1126
1126
 
1127
1127
  return await api_utils.dbs_read(table_id, selector, fields, sort, limit, skip,);
1128
1128
  };
1129
+ func.api.dbs_create = async function (table_id, data) {
1130
+ const SESSION_ID = Object.keys(SESSION_OBJ)[0];
1131
+ const api_utils = await func.common.get_module(
1132
+ SESSION_ID,
1133
+ "xuda-api-library.mjs",
1134
+ {
1135
+ func,
1136
+ glb,
1137
+ SESSION_OBJ,
1138
+ SESSION_ID,
1139
+ APP_OBJ,
1140
+ dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).at(-1),
1141
+ }
1142
+ );
1143
+
1144
+ return await api_utils.dbs_create(table_id, data);
1145
+ };
1129
1146
 
1130
1147
  func.api.call_javascript = async function (prog_id, params, evaluate) {
1131
1148
  const SESSION_ID = Object.keys(SESSION_OBJ)[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.1144",
3
+ "version": "1.3.1146",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {