ag-awsauth 0.0.44 → 0.0.46

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.
@@ -124,6 +124,7 @@ function getMFA(p) {
124
124
  try {
125
125
  yield (0, sleep_1.sleep)(250);
126
126
  yield page.waitForNetworkIdle({ idleTime: 250 });
127
+ (0, log_1.info)('waiting for potential error');
127
128
  const messageDiv = yield page.waitForSelector('.awsui-alert-message', {
128
129
  timeout: 2000, // can be short
129
130
  });
@@ -147,13 +148,16 @@ function getMFA(p) {
147
148
  //
148
149
  yield (0, sleep_1.sleep)(3000);
149
150
  yield page.waitForNetworkIdle({ idleTime: 250 });
151
+ (0, log_1.info)('waiting for sign in button');
150
152
  yield page.waitForSelector('.awsui-signin-button', {
151
- timeout: config_1.timeoutMs,
152
- visible: true, //may need this for more calls
153
+ timeout: 2000,
153
154
  });
155
+ (0, log_1.info)('pressing sign in');
154
156
  yield page.$eval('.awsui-signin-button', (el) => el.click());
157
+ (0, log_1.info)('waiting for completion');
155
158
  yield (0, sleep_1.sleep)(250);
156
159
  yield page.waitForNetworkIdle({ idleTime: 250 });
160
+ (0, log_1.info)('waiting for success');
157
161
  yield page.waitForSelector('.awsui-icon-variant-success', {
158
162
  timeout: config_1.timeoutMs,
159
163
  });
@@ -44,7 +44,7 @@ function chooseAppInstance(ai, args) {
44
44
  exports.chooseAppInstance = chooseAppInstance;
45
45
  function readArguments() {
46
46
  return __awaiter(this, void 0, void 0, function* () {
47
- const { applicationfilter, verbose, wipe, config } = yield (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv))
47
+ const { version, applicationfilter, verbose, wipe, config } = yield (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv))
48
48
  .help('h')
49
49
  .alias('h', 'help')
50
50
  .option('applicationfilter', {
@@ -69,9 +69,14 @@ function readArguments() {
69
69
  type: 'boolean',
70
70
  description: 'Configure application settings',
71
71
  default: false,
72
+ })
73
+ .option('version', {
74
+ type: 'boolean',
75
+ description: 'Show application version',
76
+ default: false,
72
77
  })
73
78
  .parse();
74
- return { applicationfilter, verbose, wipe, config };
79
+ return { applicationfilter, verbose, wipe, config, version };
75
80
  });
76
81
  }
77
82
  exports.readArguments = readArguments;
package/dist/index.js CHANGED
@@ -45,6 +45,12 @@ function main(args) {
45
45
  //
46
46
  }
47
47
  });
48
+ if (args.version) {
49
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
50
+ const p = require('../../package.json');
51
+ (0, log_1.warn)('version=' + p.version);
52
+ return;
53
+ }
48
54
  if (args.config) {
49
55
  (0, log_1.info)('running config');
50
56
  (0, config_1.runConfig)();
package/dist/types.d.ts CHANGED
@@ -52,4 +52,5 @@ export interface IApplicationArgs {
52
52
  verbose: boolean;
53
53
  wipe: boolean;
54
54
  config: boolean;
55
+ version: boolean;
55
56
  }
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.44",
8
+ "version": "0.0.46",
9
9
  "preferGlobal": true,
10
10
  "scripts": {
11
11
  "format": "eslint --ext .ts,.tsx ./src --fix",