Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rarible/biconomy-middleware

Package Overview
Dependencies
Maintainers
1
Versions
165
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rarible/biconomy-middleware - npm Package Compare versions

Comparing version 0.12.92 to 0.12.93

28

build/limits-registry.js

@@ -5,2 +5,3 @@ "use strict";

var tslib_1 = require("tslib");
var build_1 = require("@rarible/logger/build");
var API_URL = "https://api.biconomy.io/api/v1/dapp/checkLimits";

@@ -13,3 +14,3 @@ var LimitsRegistry = /** @class */ (function () {

return tslib_1.__awaiter(this, void 0, void 0, function () {
var request;
var response, value, e_1;
return tslib_1.__generator(this, function (_a) {

@@ -23,4 +24,25 @@ switch (_a.label) {

case 1:
request = _a.sent();
return [2 /*return*/, request.json()];
response = _a.sent();
if (!!response.ok) return [3 /*break*/, 7];
value = void 0;
_a.label = 2;
case 2:
_a.trys.push([2, 4, , 6]);
return [4 /*yield*/, response.clone().json()];
case 3:
value = _a.sent();
return [3 /*break*/, 6];
case 4:
e_1 = _a.sent();
return [4 /*yield*/, response.clone().text()];
case 5:
value = _a.sent();
return [3 /*break*/, 6];
case 6: throw new build_1.NetworkError({
status: response.status,
url: response.url,
value: value,
code: "BICONOMY_EXTERNAL_ERR",
});
case 7: return [2 /*return*/, response.json()];
}

@@ -27,0 +49,0 @@ });

@@ -5,2 +5,3 @@ "use strict";

var tslib_1 = require("tslib");
var build_1 = require("@rarible/logger/build");
var Registry = /** @class */ (function () {

@@ -12,3 +13,3 @@ function Registry(registryUrl) {

return tslib_1.__awaiter(this, void 0, void 0, function () {
var resp, _a;
var resp, value, e_1, _a;
return tslib_1.__generator(this, function (_b) {

@@ -19,5 +20,27 @@ switch (_b.label) {

resp = _b.sent();
if (!!resp.ok) return [3 /*break*/, 7];
value = void 0;
_b.label = 2;
case 2:
_b.trys.push([2, 4, , 6]);
return [4 /*yield*/, resp.clone().json()];
case 3:
value = _b.sent();
return [3 /*break*/, 6];
case 4:
e_1 = _b.sent();
return [4 /*yield*/, resp.clone().text()];
case 5:
value = _b.sent();
return [3 /*break*/, 6];
case 6: throw new build_1.NetworkError({
status: resp.status,
url: resp.url,
value: value,
code: "BICONOMY_EXTERNAL_ERR",
});
case 7:
_a = this;
return [4 /*yield*/, resp.json()];
case 2:
case 8:
_a.registryData = _b.sent();

@@ -24,0 +47,0 @@ return [2 /*return*/];

5

package.json
{
"name": "@rarible/biconomy-middleware",
"version": "0.12.92",
"version": "0.12.93",
"description": "Middleware for biconomy integration",

@@ -24,2 +24,3 @@ "keywords": [

"@biconomy/mexa": "^2.0.25",
"@rarible/logger": "~0.9.8",
"eth-json-rpc-middleware": "^7.0.1",

@@ -46,3 +47,3 @@ "json-rpc-engine": "^6.1.0"

},
"gitHead": "11eeb9c0d0b97dd21a48c922d6e3709a637fee9e"
"gitHead": "434985138b297358bff252afc3cbeb46e9f72ba6"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc