@niobium/api-transport
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"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); |
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
19062
533