neru-alpha
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -71,4 +71,6 @@ import { Config } from './config.js'; | ||
'X-Neru-ApiApplicationId': string; | ||
"X-Neru-InstanceId": string; | ||
"X-Neru-SessionId": string; | ||
'Authorization'?: string; | ||
constructor(id: string, apiAccountId: string, apiApplicationId: string, token?: string); | ||
constructor(sessionId: string, apiAccountId: string, apiApplicationId: string, instanceId: string, traceId: string, token: string); | ||
} | ||
@@ -75,0 +77,0 @@ export declare class RequestParams<T> { |
@@ -95,6 +95,8 @@ "use strict"; | ||
class RequestHeaders { | ||
constructor(id, apiAccountId, apiApplicationId, token = null) { | ||
this['X-Neru-TraceId'] = id; | ||
constructor(sessionId, apiAccountId, apiApplicationId, instanceId, traceId, token) { | ||
this["X-Neru-SessionId"] = sessionId; | ||
this['X-Neru-ApiAccountId'] = apiAccountId; | ||
this['X-Neru-ApiApplicationId'] = apiApplicationId; | ||
this["X-Neru-InstanceId"] = instanceId; | ||
this['X-Neru-TraceId'] = traceId; | ||
if (token != null) { | ||
@@ -101,0 +103,0 @@ this['Authorization'] = `Bearer ${token}`; |
@@ -116,7 +116,6 @@ "use strict"; | ||
constructCommandHeaders() { | ||
const headers = new CommandHeaders(this.createUUID(), this.config.instanceId, this.id, this.config.apiAccountId, this.config.apiApplicationId, this.config.instanceServiceName, this.config.applicationId); | ||
return headers; | ||
return new CommandHeaders(this.createUUID(), this.config.instanceId, this.id, this.config.apiAccountId, this.config.apiApplicationId, this.config.instanceServiceName, this.config.applicationId); | ||
} | ||
constructRequestHeaders() { | ||
return new neru_js_1.RequestHeaders(this.id, this.config.apiAccountId, this.config.apiApplicationId, this.getToken()); | ||
return new neru_js_1.RequestHeaders(this.id, this.config.apiAccountId, this.config.apiApplicationId, this.config.instanceId, this.bridge.uuid(), this.getToken()); | ||
} | ||
@@ -123,0 +122,0 @@ executeAction(actionPayload) { |
@@ -71,4 +71,6 @@ import { Config } from './config.js'; | ||
'X-Neru-ApiApplicationId': string; | ||
"X-Neru-InstanceId": string; | ||
"X-Neru-SessionId": string; | ||
'Authorization'?: string; | ||
constructor(id: string, apiAccountId: string, apiApplicationId: string, token?: string); | ||
constructor(sessionId: string, apiAccountId: string, apiApplicationId: string, instanceId: string, traceId: string, token: string); | ||
} | ||
@@ -75,0 +77,0 @@ export declare class RequestParams<T> { |
@@ -85,7 +85,8 @@ import { Config } from './config.js'; | ||
var RequestHeaders = /** @class */ (function () { | ||
function RequestHeaders(id, apiAccountId, apiApplicationId, token) { | ||
if (token === void 0) { token = null; } | ||
this['X-Neru-TraceId'] = id; | ||
function RequestHeaders(sessionId, apiAccountId, apiApplicationId, instanceId, traceId, token) { | ||
this["X-Neru-SessionId"] = sessionId; | ||
this['X-Neru-ApiAccountId'] = apiAccountId; | ||
this['X-Neru-ApiApplicationId'] = apiApplicationId; | ||
this["X-Neru-InstanceId"] = instanceId; | ||
this['X-Neru-TraceId'] = traceId; | ||
if (token != null) { | ||
@@ -92,0 +93,0 @@ this['Authorization'] = "Bearer ".concat(token); |
@@ -161,7 +161,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
Session.prototype.constructCommandHeaders = function () { | ||
var headers = new CommandHeaders(this.createUUID(), this.config.instanceId, this.id, this.config.apiAccountId, this.config.apiApplicationId, this.config.instanceServiceName, this.config.applicationId); | ||
return headers; | ||
return new CommandHeaders(this.createUUID(), this.config.instanceId, this.id, this.config.apiAccountId, this.config.apiApplicationId, this.config.instanceServiceName, this.config.applicationId); | ||
}; | ||
Session.prototype.constructRequestHeaders = function () { | ||
return new RequestHeaders(this.id, this.config.apiAccountId, this.config.apiApplicationId, this.getToken()); | ||
return new RequestHeaders(this.id, this.config.apiAccountId, this.config.apiApplicationId, this.config.instanceId, this.bridge.uuid(), this.getToken()); | ||
}; | ||
@@ -168,0 +167,0 @@ Session.prototype.executeAction = function (actionPayload) { |
{ | ||
"name": "neru-alpha", | ||
"type": "module", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "", | ||
@@ -6,0 +6,0 @@ "main": "dist/cjs/neru.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
384326
5622