tauri-kargo-tools 0.3.7 → 0.3.8

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/test.ts +8 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tauri-kargo-tools",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "",
5
5
  "files": ["src"],
6
6
  "exports": { "./*": "./src/*" },
package/src/test.ts CHANGED
@@ -362,7 +362,14 @@ export async function assertEqualsSnapshot(actual: unknown, name: string, msg?:
362
362
  }
363
363
  }
364
364
  if (response.ok) {
365
- const value = await response.json()
365
+ let valueSrc = await response.text()
366
+ let value = undefined
367
+ try {
368
+ value = JSON.parse(valueSrc)
369
+ } catch (error) {
370
+
371
+ }
372
+
366
373
  if (deepEqual(actual, value)) {
367
374
  const a: Assert = { type: "assert", message: msg ?? "", value: true }
368
375
  if (self) {