ag-awsauth 0.0.9 → 0.0.11

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.
@@ -147,8 +147,11 @@ function getMFA(p) {
147
147
  //
148
148
  yield (0, sleep_1.sleep)(3000);
149
149
  yield page.waitForNetworkIdle({ idleTime: 250 });
150
- yield page.waitForSelector('#cli_login_button', { timeout: config_1.timeoutMs });
151
- yield page.$eval('#cli_login_button', (el) => el.click());
150
+ yield page.waitForSelector('.awsui-signin-button', {
151
+ timeout: config_1.timeoutMs,
152
+ visible: true, //may need this for more calls
153
+ });
154
+ yield page.$eval('.awsui-signin-button', (el) => el.click());
152
155
  yield (0, sleep_1.sleep)(250);
153
156
  yield page.waitForNetworkIdle({ idleTime: 250 });
154
157
  yield page.waitForSelector('.awsui-icon-variant-success', {
@@ -122,7 +122,13 @@ const tryExistingCredentials = () => __awaiter(void 0, void 0, void 0, function*
122
122
  }
123
123
  catch (e) {
124
124
  //
125
- (0, log_1.info)('access token or sso expired, need to wipe', e);
125
+ const em = e.toString();
126
+ if (em.includes('is expired') || em.includes('or invalid')) {
127
+ (0, log_1.info)('access token or sso expired, need to wipe');
128
+ }
129
+ else {
130
+ (0, log_1.info)(e);
131
+ }
126
132
  }
127
133
  }
128
134
  return {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "author": "andrei gec (andreigec@hotmail.com)",
6
6
  "license": "ISC",
7
7
  "private": false,
8
- "version": "0.0.9",
8
+ "version": "0.0.11",
9
9
  "preferGlobal": true,
10
10
  "scripts": {
11
11
  "format": "eslint --ext .ts,.tsx ./src --fix",
@@ -23,27 +23,27 @@
23
23
  "LICENSE.md"
24
24
  ],
25
25
  "dependencies": {
26
- "@aws-sdk/client-sso": "3.272.0",
27
- "@aws-sdk/client-sso-oidc": "3.272.0",
28
- "@aws-sdk/client-sts": "3.272.0",
26
+ "@aws-sdk/client-sso": "3.278.0",
27
+ "@aws-sdk/client-sso-oidc": "3.278.0",
28
+ "@aws-sdk/client-sts": "3.278.0",
29
29
  "@aws-sdk/shared-ini-file-loader": "3.272.0",
30
30
  "ag-common": "0.0.414",
31
31
  "cli-select": "1.1.2",
32
32
  "dotenv": "16.0.3",
33
33
  "envfile": "6.18.0",
34
- "esbuild": "0.17.8",
34
+ "esbuild": "0.17.10",
35
35
  "eslint-config-e7npm": "0.0.8",
36
36
  "ini": "3.0.1",
37
37
  "node-fetch": "2.6.9",
38
- "puppeteer": "19.7.1",
38
+ "puppeteer": "19.7.2",
39
39
  "readline-sync": "1.4.10",
40
40
  "ts-node": "10.9.1",
41
41
  "typescript": "4.9.5",
42
- "yargs": "17.7.0"
42
+ "yargs": "17.7.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/ini": "1.3.31",
46
- "@types/node": "18.14.0",
46
+ "@types/node": "18.14.1",
47
47
  "@types/node-fetch": "2.6.2",
48
48
  "@types/readline-sync": "1.4.4",
49
49
  "@types/yargs": "17.0.22"