@forklaunch/core 1.6.6 → 1.6.7

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.
@@ -1294,23 +1294,14 @@ function wrapEmWithTenantContext(em, tenantId) {
1294
1294
  tenantId,
1295
1295
  () => value.apply(target, args)
1296
1296
  );
1297
- return rebind(result, target, proxy, tenantId);
1297
+ return rebind(result, target, proxy);
1298
1298
  };
1299
1299
  }
1300
1300
  });
1301
1301
  return proxy;
1302
1302
  }
1303
- function rebind(result, target, proxy, tenantId) {
1304
- if (result === target) {
1305
- return proxy;
1306
- }
1307
- if (isEntityManager(result) && result !== proxy) {
1308
- return wrapEmWithTenantContext(result, tenantId);
1309
- }
1310
- return result;
1311
- }
1312
- function isEntityManager(value) {
1313
- return typeof value === "object" && value !== null && "fork" in value && typeof value.fork === "function" && "flush" in value && typeof value.flush === "function" && "persist" in value && typeof value.persist === "function";
1303
+ function rebind(result, target, proxy) {
1304
+ return result === target ? proxy : result;
1314
1305
  }
1315
1306
  // Annotate the CommonJS export names for ESM import in node:
1316
1307
  0 && (module.exports = {