@ateam-ai-mobile/plugin-runtime 0.1.22 → 0.1.23

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/dist/index.js CHANGED
@@ -3358,12 +3358,12 @@ var init_bundleManager = __esm({
3358
3358
  evaluate(content, bundleUrl, verifiedHash) {
3359
3359
  assertBundleIntegrity(content, verifiedHash, bundleUrl);
3360
3360
  let cleaned = content.replace(
3361
- /__toESM\(require\(("[^"]+")\)(?:,\s*\d+)?\)/g,
3361
+ /__toESM\((?:__)?require\(("[^"]+")\)(?:,\s*\d+)?\)/g,
3362
3362
  "require($1)"
3363
3363
  );
3364
3364
  cleaned = cleaned.replace(
3365
- /module\.exports\s*=\s*__toCommonJS\((\w+)\)/g,
3366
- "module.exports = $1"
3365
+ /(module\.exports\s*=|return)\s*__toCommonJS\((\w+)\)/g,
3366
+ "$1 $2"
3367
3367
  );
3368
3368
  const mod = { exports: {} };
3369
3369
  try {