ag-awsauth 0.0.245 → 0.0.247
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/dist/helpers/browser.js +4 -3
- package/package.json +3 -3
package/dist/helpers/browser.js
CHANGED
|
@@ -105,6 +105,7 @@ function getMFA(p) {
|
|
|
105
105
|
yield page.waitForNetworkIdle({ idleTime: 250 });
|
|
106
106
|
//
|
|
107
107
|
try {
|
|
108
|
+
(0, log_1.info)('wait optional alert message');
|
|
108
109
|
const messageDiv = yield page.waitForSelector('.awsui-alert-message', {
|
|
109
110
|
timeout: config_1.timeoutShortMs,
|
|
110
111
|
});
|
|
@@ -161,11 +162,11 @@ function getMFA(p) {
|
|
|
161
162
|
yield (0, sleep_1.sleep)(config_1.timeoutShortMs);
|
|
162
163
|
yield page.waitForNetworkIdle({ idleTime: 250 });
|
|
163
164
|
(0, log_1.info)('waiting for sign in button');
|
|
164
|
-
yield page.waitForSelector('
|
|
165
|
+
yield page.waitForSelector('#cli_login_button', {
|
|
165
166
|
timeout: config_1.timeoutShortMs,
|
|
166
167
|
});
|
|
167
168
|
(0, log_1.info)('pressing sign in');
|
|
168
|
-
yield page.$eval('
|
|
169
|
+
yield page.$eval('#cli_login_button', (el) => el.click());
|
|
169
170
|
(0, log_1.info)('waiting for completion');
|
|
170
171
|
yield (0, sleep_1.sleep)(250);
|
|
171
172
|
try {
|
|
@@ -175,7 +176,7 @@ function getMFA(p) {
|
|
|
175
176
|
//
|
|
176
177
|
}
|
|
177
178
|
(0, log_1.info)('waiting for success');
|
|
178
|
-
yield page.waitForSelector('
|
|
179
|
+
yield page.waitForSelector('[data-analytics-alert="success"]', {
|
|
179
180
|
timeout: config_1.timeoutMs,
|
|
180
181
|
});
|
|
181
182
|
(0, log_1.warn)('mfa success');
|
package/package.json
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
"author": "andrei gec (andreigec@hotmail.com)",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"private": false,
|
|
8
|
-
"version": "0.0.
|
|
8
|
+
"version": "0.0.247",
|
|
9
9
|
"preferGlobal": true,
|
|
10
10
|
"scripts": {
|
|
11
|
-
"format": "eslint --ext .ts,.tsx
|
|
11
|
+
"format": "eslint --ext .ts,.tsx src --fix",
|
|
12
12
|
"lint:tsc": "tsc --noEmit",
|
|
13
|
-
"lint:eslint": "eslint --ext .ts,.tsx
|
|
13
|
+
"lint:eslint": "eslint --ext .ts,.tsx src",
|
|
14
14
|
"lint": "pnpm run /^lint:/",
|
|
15
15
|
"start": "tsc && node bin/awsauth.js",
|
|
16
16
|
"build": "tsc"
|