@owlnext/heimdall-js
Advanced tools
Comparing version 1.0.19 to 1.0.20
@@ -63,4 +63,2 @@ "use strict"; | ||
return this.generateSecurityHeader().then(secHeader => { | ||
console.log("--- complete security header ---"); | ||
console.log(secHeader); | ||
payload.headers = { | ||
@@ -76,4 +74,2 @@ 'Content-Type': 'application/json', | ||
} | ||
console.log("--- request payload ---"); | ||
console.log(payload); | ||
return axios_1.default.request(payload) | ||
@@ -95,4 +91,2 @@ .then(res => { | ||
return this._fingerprintUtils.getFingerprint().then(fingerprint => { | ||
console.log("--- request fingerprint ---"); | ||
console.log(fingerprint); | ||
this._fingerprint = fingerprint; | ||
@@ -103,4 +97,2 @@ return Promise.resolve(this.makeHeimdallHeader(fingerprint)); | ||
this.makeHeimdallHeader = (fingerprint) => { | ||
console.log("--- heimdall header fingerprint ---"); | ||
console.log(fingerprint); | ||
const nonce = (0, uuid_1.v4)(); | ||
@@ -107,0 +99,0 @@ const cipher = (0, js_sha512_1.sha512)(fingerprint + '' + nonce); |
@@ -64,4 +64,2 @@ "use strict"; | ||
return this.api.authenticate_by_token(props).then((result) => { | ||
console.log("--- auth result ---"); | ||
console.log(result); | ||
resolve(result); | ||
@@ -219,4 +217,2 @@ }); | ||
let fingerprint = yield this.api.httpClient.fingerprintUtils.getFingerprint(); | ||
console.log("--- generated fingerprint ---"); | ||
console.log(fingerprint); | ||
return Promise.resolve(fingerprint); | ||
@@ -223,0 +219,0 @@ }); |
{ | ||
"name": "@owlnext/heimdall-js", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"description": "Heimdall API client & utils for javascript technologies", | ||
@@ -49,2 +49,2 @@ "main": "dist/index.js", | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
89295
1212