@substrate/playground-client
Advanced tools
Comparing version 1.9.25 to 1.9.26
@@ -67,3 +67,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
return Promise.reject({ code: RpcErrorCode.SERVER_ERROR, message: response.statusText }); | ||
else if (response.status == 503) { | ||
return Promise.reject({ code: RpcErrorCode.SERVER_ERROR, message: 'Missing backend' }); | ||
} | ||
return Promise.reject({ code: RpcErrorCode.SERVER_ERROR, message: response.statusText || `Unknown error: ${response.status}` }); | ||
} | ||
@@ -70,0 +73,0 @@ } |
@@ -123,3 +123,6 @@ "use strict"; | ||
} | ||
return [2 /*return*/, Promise.reject({ code: RpcErrorCode.SERVER_ERROR, message: response.statusText })]; | ||
else if (response.status == 503) { | ||
return [2 /*return*/, Promise.reject({ code: RpcErrorCode.SERVER_ERROR, message: 'Missing backend' })]; | ||
} | ||
return [2 /*return*/, Promise.reject({ code: RpcErrorCode.SERVER_ERROR, message: response.statusText || "Unknown error: ".concat(response.status) })]; | ||
case 7: return [3 /*break*/, 9]; | ||
@@ -126,0 +129,0 @@ case 8: |
{ | ||
"name": "@substrate/playground-client", | ||
"version": "1.9.25", | ||
"version": "1.9.26", | ||
"description": "An isomorphic client for Substrate Playground", | ||
@@ -5,0 +5,0 @@ "main": "dist/main/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
107383
2201