@calimero-network/mero-js 21.2.0 → 21.2.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/dist/http-client/web-client.js +6 -1
- package/dist/index.browser.mjs +2 -2
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +2 -2
- package/dist/namespace-op/namespace-op.d.ts +1 -1
- package/dist/namespace-op/namespace-op.js +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -49,7 +49,7 @@ function extractErrorMessage(bodyText) {
|
|
|
49
49
|
}
|
|
50
50
|
var HTTPError = class extends Error {
|
|
51
51
|
constructor(status, statusText, url, headers, bodyText) {
|
|
52
|
-
const explanation = extractErrorMessage(bodyText);
|
|
52
|
+
const explanation = extractErrorMessage(bodyText) ?? (status === 0 && bodyText?.trim() ? bodyText.trim() : void 0);
|
|
53
53
|
super(
|
|
54
54
|
explanation ? `HTTP ${status} ${statusText}: ${explanation}` : `HTTP ${status} ${statusText}`
|
|
55
55
|
);
|
|
@@ -7203,7 +7203,7 @@ function tcbStatus(status, release) {
|
|
|
7203
7203
|
}
|
|
7204
7204
|
|
|
7205
7205
|
// src/namespace-op/namespace-op.ts
|
|
7206
|
-
var SIGNED_NAMESPACE_OP_SCHEMA_VERSION =
|
|
7206
|
+
var SIGNED_NAMESPACE_OP_SCHEMA_VERSION = 9;
|
|
7207
7207
|
var NAMESPACE_SIGN_DOMAIN = new TextEncoder().encode("calimero.namespace.v1");
|
|
7208
7208
|
var NAMESPACE_OP_ROOT = 0;
|
|
7209
7209
|
var ROOT_OP = {
|