@xuda.io/xuda-worker-bundle-min 1.3.709 → 1.3.711
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.js +59 -43
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -168,46 +168,46 @@ glb.API_OUTPUT_ARR = ["json", "html", "xml", "text", "css"];
|
|
|
168
168
|
|
|
169
169
|
const PROTECTED_NAMES_ARR = ["THIS", "ROWID"]; //tbd
|
|
170
170
|
|
|
171
|
-
func.common.get_custom_icon = async function (
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
) {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
};
|
|
171
|
+
// func.common.get_custom_icon = async function (
|
|
172
|
+
// SESSION_ID,
|
|
173
|
+
// menuIdP,
|
|
174
|
+
// fromTreeP,
|
|
175
|
+
// get_image_onlyP
|
|
176
|
+
// ) {
|
|
177
|
+
// var ret = "";
|
|
178
|
+
// var iconItemId;
|
|
179
|
+
// let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, menuIdP);
|
|
180
|
+
// if (tree_ret) {
|
|
181
|
+
// if (tree_ret.menuType === "icon") {
|
|
182
|
+
// iconItemId = menuIdP;
|
|
183
|
+
// } else {
|
|
184
|
+
// if (tree_ret.rICN) iconItemId = tree_ret.rICN;
|
|
185
|
+
// }
|
|
186
|
+
// if (iconItemId) {
|
|
187
|
+
// let tree_ret2 = await func.utils.TREE_OBJ.get(SESSION_ID, iconItemId);
|
|
188
|
+
// if (tree_ret2) {
|
|
189
|
+
// if (get_image_onlyP) {
|
|
190
|
+
// return tree_ret2.rPTH;
|
|
191
|
+
// } else {
|
|
192
|
+
// const app_obj = APP_OBJ[SESSION_OBJ[SESSION_ID].app_id];
|
|
193
|
+
// const url = func.common.get_url(
|
|
194
|
+
// SESSION_ID,
|
|
195
|
+
// "studio-drive",
|
|
196
|
+
// `${app_obj.app_replicate ? app_obj.app_replicate : app_obj._id}/${
|
|
197
|
+
// tree_ret2.rPTH
|
|
198
|
+
// }`
|
|
199
|
+
// );
|
|
200
|
+
// return url;
|
|
201
|
+
// }
|
|
202
|
+
// // }
|
|
203
|
+
// } else {
|
|
204
|
+
// return ret;
|
|
205
|
+
// }
|
|
206
|
+
// } else {
|
|
207
|
+
// return ret;
|
|
208
|
+
// }
|
|
209
|
+
// } else return ret;
|
|
210
|
+
// };
|
|
211
211
|
|
|
212
212
|
func.common.db = async function (
|
|
213
213
|
SESSION_ID,
|
|
@@ -9227,8 +9227,6 @@ func.expression.get = async function (
|
|
|
9227
9227
|
}
|
|
9228
9228
|
}
|
|
9229
9229
|
|
|
9230
|
-
const is_email = glb.emailRegex.test(valP);
|
|
9231
|
-
|
|
9232
9230
|
ret = ret.replace(/\&/g, "&");
|
|
9233
9231
|
ret = func.utils.replace_studio_drive_url(SESSION_ID, ret);
|
|
9234
9232
|
|
|
@@ -9313,9 +9311,27 @@ func.expression.get = async function (
|
|
|
9313
9311
|
return end_results();
|
|
9314
9312
|
}
|
|
9315
9313
|
};
|
|
9316
|
-
if (!func.expression.validate_variables(valP)
|
|
9314
|
+
if (!func.expression.validate_variables(valP)) {
|
|
9317
9315
|
return await variable_not_exist();
|
|
9318
9316
|
}
|
|
9317
|
+
|
|
9318
|
+
const validate_email = async function () {
|
|
9319
|
+
const ret = await func.expression.secure_eval(
|
|
9320
|
+
SESSION_ID,
|
|
9321
|
+
sourceP,
|
|
9322
|
+
valP,
|
|
9323
|
+
jobNo,
|
|
9324
|
+
dsSessionP,
|
|
9325
|
+
js_script_callback
|
|
9326
|
+
);
|
|
9327
|
+
|
|
9328
|
+
return glb.emailRegex.test(ret);
|
|
9329
|
+
};
|
|
9330
|
+
|
|
9331
|
+
if (await validate_email()) {
|
|
9332
|
+
return await variable_not_exist();
|
|
9333
|
+
}
|
|
9334
|
+
|
|
9319
9335
|
var split = [];
|
|
9320
9336
|
var var_Arr = [];
|
|
9321
9337
|
split = func.expression.parse(ret);
|