@forklaunch/core 4.1.0 → 4.1.1

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/lib/http/index.js CHANGED
@@ -1775,7 +1775,11 @@ var import_common7 = require("@forklaunch/common");
1775
1775
  // src/persistence/encryptedType.ts
1776
1776
  var import_core = require("@mikro-orm/core");
1777
1777
  var import_node_async_hooks = require("async_hooks");
1778
- var _tenantContext = new import_node_async_hooks.AsyncLocalStorage();
1778
+ var _encryptionState = globalThis[/* @__PURE__ */ Symbol.for("forklaunch.persistence.encryptionState")] ??= {
1779
+ encryptor: void 0,
1780
+ tenantContext: new import_node_async_hooks.AsyncLocalStorage()
1781
+ };
1782
+ var _tenantContext = _encryptionState.tenantContext;
1779
1783
 
1780
1784
  // src/persistence/complianceChanges.ts
1781
1785
  var LISTENERS = globalThis[/* @__PURE__ */ Symbol.for("forklaunch.compliance.changeListeners")] ??= /* @__PURE__ */ new Set();
@@ -5629,7 +5633,7 @@ function generateMcpServer(schemaValidator, protocol, host, port, version, appli
5629
5633
  break;
5630
5634
  }
5631
5635
  case "file": {
5632
- parsedBody = Buffer.from((0, import_common12.safeStringify)(body));
5636
+ parsedBody = Buffer.from((0, import_common12.toPlainString)(body));
5633
5637
  break;
5634
5638
  }
5635
5639
  case "multipart": {
@@ -5663,7 +5667,7 @@ function generateMcpServer(schemaValidator, protocol, host, port, version, appli
5663
5667
  parsedBody = new URLSearchParams(
5664
5668
  Object.entries(body).map(([key, value]) => [
5665
5669
  key,
5666
- (0, import_common12.safeStringify)(value)
5670
+ (0, import_common12.toPlainString)(value)
5667
5671
  ])
5668
5672
  );
5669
5673
  } else {
@@ -5682,7 +5686,7 @@ function generateMcpServer(schemaValidator, protocol, host, port, version, appli
5682
5686
  const queryString = new URLSearchParams(
5683
5687
  Object.entries(query).map(([key, value]) => [
5684
5688
  key,
5685
- (0, import_common12.safeStringify)(value)
5689
+ (0, import_common12.toPlainString)(value)
5686
5690
  ])
5687
5691
  ).toString();
5688
5692
  url += queryString ? `?${queryString}` : "";