@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.cjs
CHANGED
|
@@ -158,7 +158,7 @@ function extractErrorMessage(bodyText) {
|
|
|
158
158
|
}
|
|
159
159
|
var HTTPError = class extends Error {
|
|
160
160
|
constructor(status, statusText, url, headers, bodyText) {
|
|
161
|
-
const explanation = extractErrorMessage(bodyText);
|
|
161
|
+
const explanation = extractErrorMessage(bodyText) ?? (status === 0 && bodyText?.trim() ? bodyText.trim() : void 0);
|
|
162
162
|
super(
|
|
163
163
|
explanation ? `HTTP ${status} ${statusText}: ${explanation}` : `HTTP ${status} ${statusText}`
|
|
164
164
|
);
|
|
@@ -7312,7 +7312,7 @@ function tcbStatus(status, release) {
|
|
|
7312
7312
|
}
|
|
7313
7313
|
|
|
7314
7314
|
// src/namespace-op/namespace-op.ts
|
|
7315
|
-
var SIGNED_NAMESPACE_OP_SCHEMA_VERSION =
|
|
7315
|
+
var SIGNED_NAMESPACE_OP_SCHEMA_VERSION = 9;
|
|
7316
7316
|
var NAMESPACE_SIGN_DOMAIN = new TextEncoder().encode("calimero.namespace.v1");
|
|
7317
7317
|
var NAMESPACE_OP_ROOT = 0;
|
|
7318
7318
|
var ROOT_OP = {
|