@jcoreio/aws-ecr-utils 1.3.0 → 1.3.1

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.
@@ -96,7 +96,7 @@ function _checkECRImageAccess() {
96
96
  }]
97
97
  }, null, 2).replace(/\n/gm, '\n '), "\n"));
98
98
  if (!(repoAccountAwsConfig && (0, _isInteractive["default"])())) {
99
- _context.next = 55;
99
+ _context.next = 57;
100
100
  break;
101
101
  }
102
102
  _context.next = 34;
@@ -166,10 +166,18 @@ function _checkECRImageAccess() {
166
166
  region: region,
167
167
  repositoryName: repositoryName
168
168
  })));
169
- return _context.abrupt("return", true);
170
- case 55:
171
- return _context.abrupt("return", false);
169
+ _context.next = 56;
170
+ return checkECRImageAccess({
171
+ awsConfig: awsConfig,
172
+ imageUri: imageUri,
173
+ log: log,
174
+ ecr: ecr
175
+ });
172
176
  case 56:
177
+ return _context.abrupt("return", _context.sent);
178
+ case 57:
179
+ return _context.abrupt("return", false);
180
+ case 58:
173
181
  case "end":
174
182
  return _context.stop();
175
183
  }
@@ -127,7 +127,12 @@ The policy should include:
127
127
  region,
128
128
  repositoryName
129
129
  })}`);
130
- return true;
130
+ return await checkECRImageAccess({
131
+ awsConfig,
132
+ imageUri,
133
+ log,
134
+ ecr
135
+ });
131
136
  }
132
137
  return false;
133
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcoreio/aws-ecr-utils",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "utilities for working with AWS Elastic Container Registry",
5
5
  "sideEffects": false,
6
6
  "repository": {