@ntegral/lulu
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -94,11 +94,13 @@ import * as request from 'request'; | ||
await this.initialization; | ||
let result = await rp(this.url, opts).catch((this.handleError)); | ||
// let result = await rp(this.url, opts).catch((this.handleError)); | ||
if (result.access_token) { | ||
// console.log('authentication successful', result.token_type); | ||
this.authorizeHeader(result); | ||
this.isAuthenticated = true; | ||
} | ||
rp(this.url, opts).then((result) => { | ||
if (result.access_token) { | ||
// console.log('authentication successful', result.token_type); | ||
this.authorizeHeader(result); | ||
this.isAuthenticated = true; | ||
} | ||
return result; | ||
return result; | ||
}).catch(this.handleError); | ||
} | ||
@@ -125,3 +127,3 @@ | ||
await this.initialization; | ||
let result = await rp(this.url, opts).catch((this.handleError)); | ||
/* let result = await rp(this.url, opts).catch((this.handleError)); | ||
@@ -134,3 +136,13 @@ if (result.access_token) { | ||
return result; | ||
return result; */ | ||
rp(this.url, opts).then((result) => { | ||
if (result.access_token) { | ||
// console.log('authentication successful', result.token_type); | ||
this.authorizeHeader(result); | ||
this.isAuthenticated = true; | ||
} | ||
return result; | ||
}).catch(this.handleError); | ||
} | ||
@@ -137,0 +149,0 @@ |
@@ -10,3 +10,3 @@ { | ||
"name": "@ntegral/lulu", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Lulu Print API Client", | ||
@@ -13,0 +13,0 @@ "main": "./dist/index.js", |
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
45985
1212