190proof 1.0.4 → 1.0.5

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.mjs CHANGED
@@ -31427,11 +31427,15 @@ function parseStreamedResponse(identifier, paragraph, functionCallName, function
31427
31427
  "Stream error: received function call with unknown name: " + functionCallName
31428
31428
  );
31429
31429
  }
31430
- functionCall = {
31431
- name: functionCallName,
31432
- arguments: JSON.parse(functionCallArgs)
31433
- // allow JSON.parse to throw
31434
- };
31430
+ try {
31431
+ functionCall = {
31432
+ name: functionCallName,
31433
+ arguments: JSON.parse(functionCallArgs)
31434
+ };
31435
+ } catch (error) {
31436
+ console.error("Error parsing functionCallArgs:", functionCallArgs);
31437
+ throw error;
31438
+ }
31435
31439
  }
31436
31440
  if (!paragraph && !functionCall) {
31437
31441
  console.error(