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

@niobium/api-transport

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@niobium/api-transport - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

package.json
{
"name" : "@niobium/api-transport",
"description" : "Niobium API transport layer",
"version" : "0.1.3",
"version" : "0.1.4",
"license" : "MIT",

@@ -6,0 +6,0 @@ "author" : {

@@ -9,3 +9,3 @@ const nTools = require('@niobium/tools');

module.exports = class ApiTransportProto extends Events {
constructor(options, isServer) {
constructor(options = {}, isServer) {
super();

@@ -12,0 +12,0 @@ this.options = options;

@@ -24,2 +24,3 @@ require('./common');

});
this.coderOverride = this.options.coderOverride || false;
};

@@ -79,3 +80,3 @@

local() {
const clientProcessor = new ApiTransport(false, true, {local: true});
const clientProcessor = new ApiTransport(false, true, {local: true, coderOverride: this.coderOverride});

@@ -96,4 +97,4 @@ this.assignMw(clientProcessor);

const clientProcessor = this.options.clientProcessor
? this.options.clientProcessor(socket, true, this.options)
: new ApiTransport(socket, true, this.options);
? this.options.clientProcessor(socket, true, this.options)
: new ApiTransport(socket, true, Object.assign(this.options, {coderOverride: this.coderOverride}));

@@ -100,0 +101,0 @@ this.assignMw(clientProcessor);

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