ag-awsauth 0.0.285 → 0.0.286

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 (2) hide show
  1. package/dist/index.js +1 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -83,8 +83,6 @@ function main(args) {
83
83
  const lastSite = yield (0, awsconfig_1.getLastSite)();
84
84
  const instances = yield (0, sso_1.appInstances)(Object.assign(Object.assign({}, credentials), { lastSite }));
85
85
  const instance = yield (0, input_1.chooseAppInstance)(instances, args);
86
- // Save the selected site as last_site for next run
87
- yield (0, awsconfig_1.setLastSite)(instance.name);
88
86
  let debugRole = '';
89
87
  if (instance.searchMetadata) {
90
88
  (0, log_1.info)('account is native aws, directly connecting');
@@ -102,6 +100,7 @@ function main(args) {
102
100
  debugRole = samlDetails.roleArn;
103
101
  }
104
102
  yield (0, awsconfig_1.updateAwsCredentials)(credentials);
103
+ yield (0, awsconfig_1.setLastSite)(instance.name);
105
104
  (0, log_1.warn)(`successfully authed into ${debugRole}`);
106
105
  });
107
106
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "author": "andreigec@hotmail.com",
6
6
  "license": "ISC",
7
7
  "private": false,
8
- "version": "0.0.285",
8
+ "version": "0.0.286",
9
9
  "preferGlobal": true,
10
10
  "bin": {
11
11
  "ag-awsauth": "./bin/awsauth.js"