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.
Files changed (3) hide show
  1. package/ECR.js +5 -5
  2. package/ECR.test.js +2 -2
  3. 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.getLoginPassword
46
+ * @name ECR.prototype.getAuthorizationToken
47
47
  *
48
48
  * @synopsis
49
49
  * ```coffeescript [specscript]
50
- * new ECR(...).getLoginPassword() -> Promise<{
50
+ * new ECR(...).getAuthorizationToken() -> Promise<{
51
51
  * }>
52
52
  * ```
53
53
  */
54
- ECR.prototype.getLoginPassword = function getLoginPassword() {
55
- return this.awsEcr.getAuthorizationToken().promise()
56
- .then(get('authorizationData[0].authorizationToken'))
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 token = await ecr.getLoginPassword()
25
- assert.equal(typeof token, 'string')
24
+ const { authorizationToken } = await ecr.getAuthorizationToken()
25
+ assert.equal(typeof authorizationToken, 'string')
26
26
  }).case()
27
27
 
28
28
  if (process.argv[1] == __filename) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "presidium",
3
- "version": "0.16.5",
3
+ "version": "0.16.6",
4
4
  "description": "A library for creating web services",
5
5
  "author": "Richard Tong",
6
6
  "license": "MIT",