pusher-platform-node
Advanced tools
Comparing version 0.6.0 to 0.6.1
{ | ||
"name": "pusher-platform-node", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"main": "./target/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./target/index.d.ts", |
@@ -31,3 +31,3 @@ import {Readable} from "stream"; | ||
userId?: string; | ||
serviceClaims: any; | ||
serviceClaims?: any; | ||
} | ||
@@ -34,0 +34,0 @@ |
@@ -65,17 +65,8 @@ import extend = require("extend"); | ||
let host = `${this.cluster}.${HOST_BASE}` | ||
if(options.host) { | ||
host = options.host; | ||
} | ||
let port = HTTPS_PORT; | ||
if(options.port){ | ||
port = options.port; | ||
} | ||
this.client = options.client || new BaseClient({ | ||
host: host, | ||
host: options.host || `${this.cluster}.${HOST_BASE}`, | ||
instanceId: this.instanceId, | ||
serviceName: this.serviceName, | ||
serviceVersion: this.serviceVersion, | ||
port: port | ||
port: options.port || HTTPS_PORT | ||
}); | ||
@@ -82,0 +73,0 @@ |
@@ -25,3 +25,3 @@ /// <reference types="node" /> | ||
userId?: string; | ||
serviceClaims: any; | ||
serviceClaims?: any; | ||
} | ||
@@ -28,0 +28,0 @@ export interface AuthenticatePayload { |
@@ -33,16 +33,8 @@ "use strict"; | ||
this.keySecret = keyParts[2]; | ||
var host = this.cluster + "." + HOST_BASE; | ||
if (options.host) { | ||
host = options.host; | ||
} | ||
var port = HTTPS_PORT; | ||
if (options.port) { | ||
port = options.port; | ||
} | ||
this.client = options.client || new base_client_1.default({ | ||
host: host, | ||
host: options.host || this.cluster + "." + HOST_BASE, | ||
instanceId: this.instanceId, | ||
serviceName: this.serviceName, | ||
serviceVersion: this.serviceVersion, | ||
port: port | ||
port: options.port || HTTPS_PORT | ||
}); | ||
@@ -49,0 +41,0 @@ this.authenticator = new authenticator_1.default(this.instanceId, this.keyId, this.keySecret); |
Sorry, the diff of this file is not supported yet
53728
933