Socket
Socket
Sign inDemoInstall

@fleekhq/browser-rpc

Package Overview
Dependencies
8
Maintainers
8
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.0.3

1

dist/constants.d.ts

@@ -7,4 +7,5 @@ export declare const JSON_RPC_ERROR_CODES: {

INTERNAL_ERROR: number;
TIMEOUT_ERROR: number;
SERVER_ERROR: number;
};
export declare const JSON_RPC_VERSION = "2.0";

@@ -10,4 +10,5 @@ "use strict";

INTERNAL_ERROR: -32603,
TIMEOUT_ERROR: -32604,
SERVER_ERROR: -32000,
};
exports.JSON_RPC_VERSION = '2.0';

@@ -7,4 +7,5 @@ export var JSON_RPC_ERROR_CODES = {

INTERNAL_ERROR: -32603,
TIMEOUT_ERROR: -32604,
SERVER_ERROR: -32000,
};
export var JSON_RPC_VERSION = '2.0';

3

dist/esm/RPC.js

@@ -90,3 +90,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

if (err) {
console.error(err);
reject(new Error(err.message));

@@ -103,3 +102,3 @@ return;

resolver({
code: JSON_RPC_ERROR_CODES.INTERNAL_ERROR,
code: JSON_RPC_ERROR_CODES.TIMEOUT_ERROR,
message: 'Request Timeout',

@@ -106,0 +105,0 @@ });

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

if (err) {
console.error(err);
reject(new Error(err.message));

@@ -69,3 +68,3 @@ return;

resolver({
code: constants_1.JSON_RPC_ERROR_CODES.INTERNAL_ERROR,
code: constants_1.JSON_RPC_ERROR_CODES.TIMEOUT_ERROR,
message: 'Request Timeout',

@@ -72,0 +71,0 @@ });

{
"name": "@fleekhq/browser-rpc",
"version": "2.0.2",
"version": "2.0.3",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "module": "dist/esm/index.js",

@@ -7,2 +7,3 @@ export const JSON_RPC_ERROR_CODES = {

INTERNAL_ERROR: -32603,
TIMEOUT_ERROR: -32604,
SERVER_ERROR: -32000,

@@ -9,0 +10,0 @@ };

@@ -67,4 +67,2 @@ import { v4 as uuid } from 'uuid';

if (err) {
console.error(err);
reject(new Error(err.message));

@@ -85,3 +83,3 @@ return;

resolver({
code: JSON_RPC_ERROR_CODES.INTERNAL_ERROR,
code: JSON_RPC_ERROR_CODES.TIMEOUT_ERROR,
message: 'Request Timeout',

@@ -88,0 +86,0 @@ });

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc