@poe-platform/safe-js 0.1.729 → 0.1.730

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.
@@ -2,7 +2,7 @@ import {
2
2
  McpError,
3
3
  connectMcpTransport,
4
4
  normalizeMcpOptions
5
- } from "./chunk-BRBOVGNC.js";
5
+ } from "./chunk-MW2QLYVN.js";
6
6
  import {
7
7
  declareHostOperation,
8
8
  runResources
@@ -402,4 +402,4 @@ function isPlainObjectRecord(value) {
402
402
  export {
403
403
  makeMcpModule
404
404
  };
405
- //# sourceMappingURL=chunk-2S4YRXI6.js.map
405
+ //# sourceMappingURL=chunk-3LSNBW5N.js.map
@@ -147,7 +147,7 @@ var HttpResponseMessages = class {
147
147
  function isJsonValue(value, options = {}) {
148
148
  const maxNodes = options.maxNodes ?? 1e4;
149
149
  const maxDepth = options.maxDepth ?? 64;
150
- if (!Number.isSafeInteger(maxNodes) || maxNodes < 1) throw new Error("maxNodes must be a positive safe integer");
150
+ if (maxNodes !== Infinity && (!Number.isSafeInteger(maxNodes) || maxNodes < 1)) throw new Error("maxNodes must be a positive safe integer");
151
151
  if (!Number.isSafeInteger(maxDepth) || maxDepth < 0 || maxDepth > 256) throw new Error("maxDepth must be an integer between 0 and 256");
152
152
  const ancestors = /* @__PURE__ */ new Set();
153
153
  let nodes = 0;
@@ -5183,7 +5183,7 @@ function generateCodeChallenge(verifier) {
5183
5183
 
5184
5184
  // packages/mcp-oauth/src/http-response.ts
5185
5185
  async function readBoundedResponseText(response, maxBytes, readers, signal) {
5186
- if (!Number.isSafeInteger(maxBytes) || maxBytes < 1)
5186
+ if (maxBytes !== Infinity && (!Number.isSafeInteger(maxBytes) || maxBytes < 1))
5187
5187
  throw new Error("HTTP response byte limit must be a positive safe integer");
5188
5188
  if (signal?.aborted) {
5189
5189
  void response.body?.cancel().catch(() => void 0);
@@ -7777,7 +7777,7 @@ var HttpTransport = class {
7777
7777
  onWarning,
7778
7778
  maxResponseBytes = 16 * 1024 * 1024
7779
7779
  }) {
7780
- if (!Number.isSafeInteger(maxResponseBytes) || maxResponseBytes < 1)
7780
+ if (maxResponseBytes !== Infinity && (!Number.isSafeInteger(maxResponseBytes) || maxResponseBytes < 1))
7781
7781
  throw new Error("HTTP response byte limit must be a positive safe integer");
7782
7782
  try {
7783
7783
  const target = new URL(url);
@@ -8520,7 +8520,7 @@ var SseParser = class {
8520
8520
  constructor(maxEventBytes = 16 * 1024 * 1024, acceptEndpoint = false) {
8521
8521
  this.maxEventBytes = maxEventBytes;
8522
8522
  this.acceptEndpoint = acceptEndpoint;
8523
- if (!Number.isSafeInteger(maxEventBytes) || maxEventBytes < 1)
8523
+ if (maxEventBytes !== Infinity && (!Number.isSafeInteger(maxEventBytes) || maxEventBytes < 1))
8524
8524
  throw new Error("SSE event byte limit must be a positive safe integer");
8525
8525
  }
8526
8526
  maxEventBytes;
@@ -9818,4 +9818,4 @@ CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for
9818
9818
  the full license text.
9819
9819
 
9820
9820
  */
9821
- //# sourceMappingURL=chunk-BRBOVGNC.js.map
9821
+ //# sourceMappingURL=chunk-MW2QLYVN.js.map