hbsig 0.3.0 → 0.3.2
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/bin/install-deps +0 -0
- package/cjs/send.js +3 -5
- package/cjs/signer-utils.js +9 -11
- package/package.json +4 -2
package/bin/install-deps
ADDED
|
Binary file
|
package/cjs/send.js
CHANGED
|
@@ -78,8 +78,7 @@ function _send() {
|
|
|
78
78
|
_args3 = arguments,
|
|
79
79
|
_t,
|
|
80
80
|
_t2,
|
|
81
|
-
_t3
|
|
82
|
-
_t4;
|
|
81
|
+
_t3;
|
|
83
82
|
return _regenerator().w(function (_context3) {
|
|
84
83
|
while (1) switch (_context3.n) {
|
|
85
84
|
case 0:
|
|
@@ -105,9 +104,8 @@ function _send() {
|
|
|
105
104
|
_context3.n = 2;
|
|
106
105
|
return response.text();
|
|
107
106
|
case 2:
|
|
108
|
-
_t3 = _context3.v;
|
|
109
|
-
|
|
110
|
-
throw new _t(_t4);
|
|
107
|
+
_t3 = _t2.concat.call(_t2, _context3.v);
|
|
108
|
+
throw new _t(_t3);
|
|
111
109
|
case 3:
|
|
112
110
|
_context3.n = 4;
|
|
113
111
|
return (0, _sendUtils.result)(response);
|
package/cjs/signer-utils.js
CHANGED
|
@@ -308,8 +308,7 @@ function _send() {
|
|
|
308
308
|
_t6,
|
|
309
309
|
_t7,
|
|
310
310
|
_t8,
|
|
311
|
-
_t9
|
|
312
|
-
_t0;
|
|
311
|
+
_t9;
|
|
313
312
|
return _regenerator().w(function (_context7) {
|
|
314
313
|
while (1) switch (_context7.n) {
|
|
315
314
|
case 0:
|
|
@@ -335,20 +334,19 @@ function _send() {
|
|
|
335
334
|
_context7.n = 2;
|
|
336
335
|
return response.text();
|
|
337
336
|
case 2:
|
|
338
|
-
_t6 = _context7.v;
|
|
339
|
-
|
|
340
|
-
throw new _t4(_t7);
|
|
337
|
+
_t6 = _t5.concat.call(_t5, _context7.v);
|
|
338
|
+
throw new _t4(_t6);
|
|
341
339
|
case 3:
|
|
342
|
-
|
|
340
|
+
_t7 = response.headers;
|
|
343
341
|
_context7.n = 4;
|
|
344
342
|
return response.text();
|
|
345
343
|
case 4:
|
|
346
|
-
|
|
347
|
-
|
|
344
|
+
_t8 = _context7.v;
|
|
345
|
+
_t9 = response.status;
|
|
348
346
|
return _context7.a(2, {
|
|
349
|
-
headers:
|
|
350
|
-
body:
|
|
351
|
-
status:
|
|
347
|
+
headers: _t7,
|
|
348
|
+
body: _t8,
|
|
349
|
+
status: _t9
|
|
352
350
|
});
|
|
353
351
|
}
|
|
354
352
|
}, _callee7);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hbsig",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"main": "cjs/index.js",
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"@permaweb/aoconnect": "^0.0.85",
|
|
26
26
|
"base64url": "^3.0.1",
|
|
27
27
|
"fast-sha256": "^1.3.0",
|
|
28
|
+
"hbsig": "^0.1.5",
|
|
28
29
|
"ramda": "^0.31.3",
|
|
29
30
|
"structured-headers": "1.0.1"
|
|
30
31
|
},
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
"wao-esm": "./esm/cli.js"
|
|
34
35
|
},
|
|
35
36
|
"scripts": {
|
|
36
|
-
"server": "node --experimental-wasm-memory64 cjs/run.js"
|
|
37
|
+
"server": "node --experimental-wasm-memory64 cjs/run.js",
|
|
38
|
+
"preinstall": "./bin/install-deps"
|
|
37
39
|
}
|
|
38
40
|
}
|