@wasm-fmt/gofmt 0.4.4 → 0.4.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.
Files changed (2) hide show
  1. package/gofmt.js +1 -1
  2. package/package.json +1 -1
package/gofmt.js CHANGED
@@ -316,7 +316,7 @@
316
316
  /**/ module = await fetch(module);
317
317
  /**/ }
318
318
  /**/ }
319
- /**/ if (module instanceof Response) {
319
+ /**/ if (typeof Response === 'function' && module instanceof Response) {
320
320
  /**/ if ("instantiateStreaming" in WebAssembly) {
321
321
  /**/ try {
322
322
  /**/ return await WebAssembly.instantiateStreaming(
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@wasm-fmt/gofmt",
3
3
  "description": "A wasm based golang formatter",
4
4
  "author": "magic-akari <akari.ccino@gamil.com>",
5
- "version": "0.4.4",
5
+ "version": "0.4.5",
6
6
  "license": "MIT",
7
7
  "keywords": [
8
8
  "wasm",