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

@nimiq/rpc

Package Overview
Dependencies
Maintainers
7
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nimiq/rpc - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

10

dist/rpc.common.js

@@ -545,2 +545,8 @@ 'use strict';

console.debug('RpcServer REPLY', result);
if (status === exports.ResponseStatus.ERROR) {
// serialize error objects
result = typeof result === 'object'
? { message: result.message, stack: result.stack }
: { message: result };
}
if (this._postMessage) {

@@ -583,5 +589,3 @@ // Send via postMessage (e.g., popup)

static _error(state, error) {
state.reply(exports.ResponseStatus.ERROR, error.message
? { message: error.message, stack: error.stack }
: { message: error });
state.reply(exports.ResponseStatus.ERROR, error);
}

@@ -588,0 +592,0 @@ constructor(allowedOrigin) {

@@ -547,2 +547,8 @@ (function (global, factory) {

console.debug('RpcServer REPLY', result);
if (status === exports.ResponseStatus.ERROR) {
// serialize error objects
result = typeof result === 'object'
? { message: result.message, stack: result.stack }
: { message: result };
}
if (this._postMessage) {

@@ -585,5 +591,3 @@ // Send via postMessage (e.g., popup)

static _error(state, error) {
state.reply(exports.ResponseStatus.ERROR, error.message
? { message: error.message, stack: error.stack }
: { message: error });
state.reply(exports.ResponseStatus.ERROR, error);
}

@@ -590,0 +594,0 @@ constructor(allowedOrigin) {

{
"name": "@nimiq/rpc",
"version": "0.0.4",
"version": "0.0.5",
"description": "RPC Client/Server",

@@ -5,0 +5,0 @@ "repository": {

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