@utaba/deep-memory-storage-cosmosdb 0.4.0 → 0.5.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/dist/index.cjs CHANGED
@@ -1646,13 +1646,7 @@ async function cosmosRestPut(restBase, key, urlPath, resourceLink, resourceType,
1646
1646
  body: JSON.stringify(body)
1647
1647
  };
1648
1648
  if (!rejectUnauthorized) {
1649
- try {
1650
- options.dispatcher = new (await import("undici")).Agent({
1651
- connect: { rejectUnauthorized: false }
1652
- });
1653
- } catch {
1654
- process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = "0";
1655
- }
1649
+ process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = "0";
1656
1650
  }
1657
1651
  const response = await fetch(url, options);
1658
1652
  if (response.status === 201) return true;