vmlive 1.0.22 → 1.0.23
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/package.json +2 -2
- package/src/string-shim.js +3 -0
package/package.json
CHANGED
package/src/string-shim.js
CHANGED
|
@@ -139,6 +139,9 @@ export default {
|
|
|
139
139
|
if (res.headers.get("Content-Type")?.includes("text/event-stream")) {
|
|
140
140
|
return res.body;
|
|
141
141
|
}
|
|
142
|
+
if (serviceName === "AI" && method === "draw") {
|
|
143
|
+
return await res.arrayBuffer();
|
|
144
|
+
}
|
|
142
145
|
return await res.json();
|
|
143
146
|
}
|
|
144
147
|
}
|