ag-awsauth 0.0.132 → 0.0.134

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.
@@ -95,6 +95,7 @@ function getSamlAssertion(p, instance) {
95
95
  }
96
96
  exports.getSamlAssertion = getSamlAssertion;
97
97
  const tryExistingCredentials = () => __awaiter(void 0, void 0, void 0, function* () {
98
+ var _e;
98
99
  const credraw = yield (0, awsconfig_1.getAwsCredentials)();
99
100
  if (!credraw.default.aws_access_token) {
100
101
  return undefined;
@@ -123,7 +124,7 @@ const tryExistingCredentials = () => __awaiter(void 0, void 0, void 0, function*
123
124
  catch (e) {
124
125
  //
125
126
  const em = e.toString();
126
- if (em.includes('is expired') || em.includes('or invalid')) {
127
+ if ((_e = em.includes('is expired')) !== null && _e !== void 0 ? _e : em.includes('or invalid')) {
127
128
  (0, log_1.info)('access token or sso expired, need to wipe');
128
129
  }
129
130
  else {
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.132",
8
+ "version": "0.0.134",
9
9
  "preferGlobal": true,
10
10
  "scripts": {
11
11
  "format": "eslint --ext .ts,.tsx ./src --fix",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/ini": "1.3.31",
44
- "@types/node": "20.6.1",
44
+ "@types/node": "20.6.2",
45
45
  "@types/node-fetch": "2.6.5",
46
46
  "@types/readline-sync": "1.4.4",
47
47
  "@types/yargs": "17.0.24"