presidium 0.16.5 → 0.16.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ECR.js +5 -5
- package/ECR.test.js +2 -2
- package/package.json +1 -1
package/ECR.js
CHANGED
|
@@ -43,17 +43,17 @@ const ECR = function (options) {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* @name ECR.prototype.
|
|
46
|
+
* @name ECR.prototype.getAuthorizationToken
|
|
47
47
|
*
|
|
48
48
|
* @synopsis
|
|
49
49
|
* ```coffeescript [specscript]
|
|
50
|
-
* new ECR(...).
|
|
50
|
+
* new ECR(...).getAuthorizationToken() -> Promise<{
|
|
51
51
|
* }>
|
|
52
52
|
* ```
|
|
53
53
|
*/
|
|
54
|
-
ECR.prototype.
|
|
55
|
-
return this.awsEcr.getAuthorizationToken()
|
|
56
|
-
.then(get('authorizationData[0]
|
|
54
|
+
ECR.prototype.getAuthorizationToken = function getAuthorizationToken() {
|
|
55
|
+
return this.awsEcr.getAuthorizationToken()
|
|
56
|
+
.promise().then(get('authorizationData[0]'))
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
module.exports = ECR
|
package/ECR.test.js
CHANGED
|
@@ -21,8 +21,8 @@ const test = new Test('ECR', async function () {
|
|
|
21
21
|
...awsCreds,
|
|
22
22
|
})
|
|
23
23
|
|
|
24
|
-
const
|
|
25
|
-
assert.equal(typeof
|
|
24
|
+
const { authorizationToken } = await ecr.getAuthorizationToken()
|
|
25
|
+
assert.equal(typeof authorizationToken, 'string')
|
|
26
26
|
}).case()
|
|
27
27
|
|
|
28
28
|
if (process.argv[1] == __filename) {
|