ywana-core8 0.1.25 → 0.1.26
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/http/client.js +1 -1
package/package.json
CHANGED
package/src/http/client.js
CHANGED
@@ -25,7 +25,7 @@ async function fetchAsync(method, URL, body = null, token, headers) {
|
|
25
25
|
throw response
|
26
26
|
|
27
27
|
} catch (response) {
|
28
|
-
if (response instanceof
|
28
|
+
if (response instanceof Error) { throw { response } }
|
29
29
|
const json = await response.json()
|
30
30
|
throw {
|
31
31
|
success: false,
|