wao 0.35.4 → 0.35.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/cjs/hb.js +5 -7
- package/cjs/workspace/package.json +1 -1
- package/esm/hb.js +0 -2
- package/esm/workspace/package.json +1 -1
- package/package.json +1 -1
package/cjs/hb.js
CHANGED
|
@@ -1316,20 +1316,18 @@ var HB = /*#__PURE__*/function () {
|
|
|
1316
1316
|
i++;
|
|
1317
1317
|
}
|
|
1318
1318
|
}
|
|
1319
|
-
|
|
1320
|
-
_context34.next = 10;
|
|
1319
|
+
_context34.next = 9;
|
|
1321
1320
|
return fetch("".concat(this.url).concat(path).concat(_json).concat(_params));
|
|
1322
|
-
case
|
|
1321
|
+
case 9:
|
|
1323
1322
|
response = _context34.sent;
|
|
1324
|
-
console.log(response);
|
|
1325
1323
|
headers = {};
|
|
1326
1324
|
response.headers.forEach(function (v, k) {
|
|
1327
1325
|
return headers[k] = v;
|
|
1328
1326
|
});
|
|
1329
1327
|
_context34.t0 = headers;
|
|
1330
|
-
_context34.next =
|
|
1328
|
+
_context34.next = 15;
|
|
1331
1329
|
return response.text();
|
|
1332
|
-
case
|
|
1330
|
+
case 15:
|
|
1333
1331
|
_context34.t1 = _context34.sent;
|
|
1334
1332
|
_context34.t2 = response.status;
|
|
1335
1333
|
http = {
|
|
@@ -1338,7 +1336,7 @@ var HB = /*#__PURE__*/function () {
|
|
|
1338
1336
|
status: _context34.t2
|
|
1339
1337
|
};
|
|
1340
1338
|
return _context34.abrupt("return", _objectSpread(_objectSpread({}, (0, _httpsigUtils.from)(http)), http));
|
|
1341
|
-
case
|
|
1339
|
+
case 19:
|
|
1342
1340
|
case "end":
|
|
1343
1341
|
return _context34.stop();
|
|
1344
1342
|
}
|
package/esm/hb.js
CHANGED
|
@@ -299,9 +299,7 @@ class HB {
|
|
|
299
299
|
i++
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
console.log(`${this.url}${path}${_json}${_params}`)
|
|
303
302
|
const response = await fetch(`${this.url}${path}${_json}${_params}`)
|
|
304
|
-
console.log(response)
|
|
305
303
|
let headers = {}
|
|
306
304
|
response.headers.forEach((v, k) => (headers[k] = v))
|
|
307
305
|
const http = {
|