@gandalan/weblibs 1.3.7 → 1.3.9

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.
@@ -132,7 +132,9 @@ export function restClient() {
132
132
  return await res.json();
133
133
  }
134
134
 
135
- if (contentType.includes("image") || contentType.includes("application/pdf")) {
135
+ const blobTypes = ["pdf", "zip", "octet-stream"];
136
+ if (contentType.includes("image") ||
137
+ blobTypes.some(type => contentType.includes(`application/${type}`))) {
136
138
  return await res.blob();
137
139
  }
138
140
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gandalan/weblibs",
3
- "version": "1.3.7",
3
+ "version": "1.3.9",
4
4
  "description": "WebLibs for Gandalan JS/TS/Svelte projects",
5
5
  "keywords": [
6
6
  "gandalan"