@placeos/ts-client 4.2.4 → 4.2.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.
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/http/functions.ts +1 -3
- package/src/http/mock.ts +3 -0
package/dist/index.es.js
CHANGED
|
@@ -2456,6 +2456,7 @@ function yo(t, e, n = Et) {
|
|
|
2456
2456
|
n[r] && (delete n[r], d("HTTP(M)", `- ${t} ${e}`));
|
|
2457
2457
|
}
|
|
2458
2458
|
function go(t, e, n, r = Et) {
|
|
2459
|
+
window.debug && console.log("Resolving request:", t, e, n);
|
|
2459
2460
|
const i = vo(t, e, r);
|
|
2460
2461
|
if (i) {
|
|
2461
2462
|
const o = bo(e, i, n);
|
|
@@ -2555,8 +2556,7 @@ const vr = () => (hn(), dr().then(
|
|
|
2555
2556
|
function Be(t, e, n, r = ln, i = go, o = xo) {
|
|
2556
2557
|
if (r()) {
|
|
2557
2558
|
const s = i(t, e, n?.body);
|
|
2558
|
-
if (s)
|
|
2559
|
-
return s;
|
|
2559
|
+
if (s) return s;
|
|
2560
2560
|
}
|
|
2561
2561
|
return n.headers = n.headers || {}, !n.headers["Content-Type"] && !n.headers["content-type"] && (n.headers["Content-Type"] = "application/json"), io().pipe(
|
|
2562
2562
|
xi((s) => s),
|