@quantovainc/qcore 0.5.2 → 0.5.3
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 +1 -1
- package/pkg/package.json +1 -1
- package/pkg/qcore_js_bg.wasm +0 -0
- package/pkg-node/package.json +1 -1
- package/pkg-node/qcore_js_bg.wasm +0 -0
- package/shared.js +1 -1
- package/shared.mjs +1 -1
package/package.json
CHANGED
package/pkg/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "qcore-js",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "The JavaScript binding for the Quantova client core, generated over QCore with wasm-bindgen. The core does the key derivation, the post quantum signing, and the wire, the page does the fetch.",
|
|
5
|
-
"version": "0.5.
|
|
5
|
+
"version": "0.5.3",
|
|
6
6
|
"license": "Apache-2.0 OR MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
package/pkg/qcore_js_bg.wasm
CHANGED
|
Binary file
|
package/pkg-node/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcore-js",
|
|
3
3
|
"description": "The JavaScript binding for the Quantova client core, generated over QCore with wasm-bindgen. The core does the key derivation, the post quantum signing, and the wire, the page does the fetch.",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.3",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
Binary file
|
package/shared.js
CHANGED
|
@@ -419,7 +419,7 @@ function makeClient(core) {
|
|
|
419
419
|
redirect: 'error',
|
|
420
420
|
});
|
|
421
421
|
const text = await readBounded(res);
|
|
422
|
-
if (
|
|
422
|
+
if (res.status === 200) core.checkGatewayJson(text);
|
|
423
423
|
let data;
|
|
424
424
|
try { data = JSON.parse(text); } catch { throw new Error('the node returned a non JSON response'); }
|
|
425
425
|
if (res.status !== 200) {
|
package/shared.mjs
CHANGED
|
@@ -419,7 +419,7 @@ function makeClient(core) {
|
|
|
419
419
|
redirect: 'error',
|
|
420
420
|
});
|
|
421
421
|
const text = await readBounded(res);
|
|
422
|
-
if (
|
|
422
|
+
if (res.status === 200) core.checkGatewayJson(text);
|
|
423
423
|
let data;
|
|
424
424
|
try { data = JSON.parse(text); } catch { throw new Error('the node returned a non JSON response'); }
|
|
425
425
|
if (res.status !== 200) {
|