@xuda.io/xuda-worker-bundle-min 1.3.935 → 1.3.937
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 +10 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -7240,11 +7240,11 @@ func.utils.get_plugin_resource = function (
|
|
|
7240
7240
|
);
|
|
7241
7241
|
resolve(plugin_resource_res);
|
|
7242
7242
|
|
|
7243
|
-
var doc = {
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
};
|
|
7243
|
+
// var doc = {
|
|
7244
|
+
// _id: `cache_plugin_${plugin_name}_${plugin_resource}`,
|
|
7245
|
+
// data: JSON.stringify(plugin_resource_res),
|
|
7246
|
+
// docType: "cache_plugin",
|
|
7247
|
+
// };
|
|
7248
7248
|
// db.put(doc);
|
|
7249
7249
|
} catch (err) {
|
|
7250
7250
|
console.error(err);
|
|
@@ -8143,10 +8143,13 @@ func.events.execute = async function (
|
|
|
8143
8143
|
};
|
|
8144
8144
|
|
|
8145
8145
|
try {
|
|
8146
|
+
const _plugin =
|
|
8147
|
+
APP_OBJ[_session.app_id]?.app_plugins_purchased?.[plugin_name];
|
|
8148
|
+
|
|
8146
8149
|
const index = await func.utils.get_plugin_resource(
|
|
8147
8150
|
SESSION_ID,
|
|
8148
8151
|
plugin_name,
|
|
8149
|
-
"index.mjs"
|
|
8152
|
+
`${_plugin.manifest["index.mjs"].dist ? "dist/" : ""}index.mjs`
|
|
8150
8153
|
);
|
|
8151
8154
|
|
|
8152
8155
|
const methods = index.methods;
|
|
@@ -8206,7 +8209,7 @@ func.events.execute = async function (
|
|
|
8206
8209
|
const fx = await func.utils.get_plugin_resource(
|
|
8207
8210
|
SESSION_ID,
|
|
8208
8211
|
plugin_name,
|
|
8209
|
-
"runtime.mjs"
|
|
8212
|
+
`${_plugin.manifest["runtime.mjs"].dist ? "dist/" : ""}runtime.mjs`
|
|
8210
8213
|
);
|
|
8211
8214
|
|
|
8212
8215
|
if (!fx[method]) {
|