@ntegral/lulu
Advanced tools
Comparing version 1.0.9 to 1.1.0
@@ -18,6 +18,6 @@ import * as request from 'request'; | ||
constructor(config: LuluConfigOptions); | ||
init: () => Promise<any>; | ||
init: () => Promise<void>; | ||
authorizeHeader(data: IAuthenticationResponse): request.Headers; | ||
getToken(): Promise<any>; | ||
refreshToken(data: IAuthenticationResponse): Promise<any>; | ||
getToken(): Promise<void>; | ||
refreshToken(data: IAuthenticationResponse): Promise<void>; | ||
request(data: rp.OptionsWithUri): Promise<any>; | ||
@@ -24,0 +24,0 @@ private createHeaders; |
@@ -81,8 +81,9 @@ "use strict"; | ||
yield this.initialization; | ||
let result = yield rp(this.url, opts).catch((this.handleError)); | ||
if (result.access_token) { | ||
this.authorizeHeader(result); | ||
this.isAuthenticated = true; | ||
} | ||
return result; | ||
rp(this.url, opts).then((result) => { | ||
if (result.access_token) { | ||
this.authorizeHeader(result); | ||
this.isAuthenticated = true; | ||
} | ||
return result; | ||
}).catch(this.handleError); | ||
}); | ||
@@ -106,8 +107,9 @@ } | ||
yield this.initialization; | ||
let result = yield rp(this.url, opts).catch((this.handleError)); | ||
if (result.access_token) { | ||
this.authorizeHeader(result); | ||
this.isAuthenticated = true; | ||
} | ||
return result; | ||
rp(this.url, opts).then((result) => { | ||
if (result.access_token) { | ||
this.authorizeHeader(result); | ||
this.isAuthenticated = true; | ||
} | ||
return result; | ||
}).catch(this.handleError); | ||
}); | ||
@@ -114,0 +116,0 @@ } |
@@ -10,3 +10,3 @@ { | ||
"name": "@ntegral/lulu", | ||
"version": "1.0.9", | ||
"version": "1.1.0", | ||
"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
46054
1214