@jjrawlins/cdk-iam-policy-builder-helper 0.0.67 → 0.0.68

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 (43) hide show
  1. package/.jsii +3 -3
  2. package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
  3. package/cdk-iam-policy-builder-helper/version +1 -1
  4. package/lib/constructs/Actions.d.ts +1 -0
  5. package/lib/constructs/Actions.js +2 -1
  6. package/methods_list.txt +1 -0
  7. package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +7 -0
  8. package/node_modules/@aws-sdk/client-iam/dist-es/models/models_0.js +7 -0
  9. package/node_modules/@aws-sdk/client-iam/dist-types/models/models_0.d.ts +7 -0
  10. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/models_0.d.ts +7 -0
  11. package/node_modules/@aws-sdk/client-iam/package.json +2 -2
  12. package/node_modules/@aws-sdk/credential-provider-ini/package.json +2 -2
  13. package/node_modules/@aws-sdk/credential-provider-node/package.json +3 -3
  14. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +1 -2
  15. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromTokenFile.d.ts +4 -2
  16. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +1 -1
  17. package/node_modules/axios/CHANGELOG.md +402 -368
  18. package/node_modules/axios/README.md +80 -49
  19. package/node_modules/axios/dist/axios.js +121 -46
  20. package/node_modules/axios/dist/axios.js.map +1 -1
  21. package/node_modules/axios/dist/axios.min.js +2 -2
  22. package/node_modules/axios/dist/axios.min.js.map +1 -1
  23. package/node_modules/axios/dist/browser/axios.cjs +126 -57
  24. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  25. package/node_modules/axios/dist/esm/axios.js +126 -57
  26. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  27. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  28. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  29. package/node_modules/axios/dist/node/axios.cjs +347 -98
  30. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  31. package/node_modules/axios/index.d.cts +4 -0
  32. package/node_modules/axios/index.d.ts +4 -0
  33. package/node_modules/axios/lib/adapters/adapters.js +85 -40
  34. package/node_modules/axios/lib/adapters/fetch.js +1 -1
  35. package/node_modules/axios/lib/adapters/http.js +221 -43
  36. package/node_modules/axios/lib/core/InterceptorManager.js +1 -1
  37. package/node_modules/axios/lib/core/mergeConfig.js +4 -4
  38. package/node_modules/axios/lib/env/data.js +1 -1
  39. package/node_modules/axios/lib/helpers/HttpStatusCode.js +6 -0
  40. package/node_modules/axios/lib/helpers/bind.js +7 -0
  41. package/node_modules/axios/lib/helpers/cookies.js +24 -13
  42. package/node_modules/axios/package.json +9 -4
  43. package/package.json +2 -2
@@ -1,6 +1,13 @@
1
- /*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors */
1
+ /*! Axios v1.13.0 Copyright (c) 2025 Matt Zabriskie and contributors */
2
2
  'use strict';
3
3
 
4
+ /**
5
+ * Create a bound version of a function with a specified `this` context
6
+ *
7
+ * @param {Function} fn - The function to bind
8
+ * @param {*} thisArg - The value to be passed as the `this` parameter
9
+ * @returns {Function} A new function that will call the original function with the specified `this` context
10
+ */
4
11
  function bind(fn, thisArg) {
5
12
  return function wrap() {
6
13
  return fn.apply(thisArg, arguments);
@@ -1253,7 +1260,7 @@ class InterceptorManager {
1253
1260
  *
1254
1261
  * @param {Number} id The ID that was returned by `use`
1255
1262
  *
1256
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
1263
+ * @returns {void}
1257
1264
  */
1258
1265
  eject(id) {
1259
1266
  if (this.handlers[id]) {
@@ -2219,27 +2226,38 @@ var cookies = platform.hasStandardBrowserEnv ?
2219
2226
 
2220
2227
  // Standard browser envs support document.cookie
2221
2228
  {
2222
- write(name, value, expires, path, domain, secure) {
2223
- const cookie = [name + '=' + encodeURIComponent(value)];
2224
-
2225
- utils$1.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
2226
-
2227
- utils$1.isString(path) && cookie.push('path=' + path);
2229
+ write(name, value, expires, path, domain, secure, sameSite) {
2230
+ if (typeof document === 'undefined') return;
2228
2231
 
2229
- utils$1.isString(domain) && cookie.push('domain=' + domain);
2232
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
2230
2233
 
2231
- secure === true && cookie.push('secure');
2234
+ if (utils$1.isNumber(expires)) {
2235
+ cookie.push(`expires=${new Date(expires).toUTCString()}`);
2236
+ }
2237
+ if (utils$1.isString(path)) {
2238
+ cookie.push(`path=${path}`);
2239
+ }
2240
+ if (utils$1.isString(domain)) {
2241
+ cookie.push(`domain=${domain}`);
2242
+ }
2243
+ if (secure === true) {
2244
+ cookie.push('secure');
2245
+ }
2246
+ if (utils$1.isString(sameSite)) {
2247
+ cookie.push(`SameSite=${sameSite}`);
2248
+ }
2232
2249
 
2233
2250
  document.cookie = cookie.join('; ');
2234
2251
  },
2235
2252
 
2236
2253
  read(name) {
2237
- const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
2238
- return (match ? decodeURIComponent(match[3]) : null);
2254
+ if (typeof document === 'undefined') return null;
2255
+ const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
2256
+ return match ? decodeURIComponent(match[1]) : null;
2239
2257
  },
2240
2258
 
2241
2259
  remove(name) {
2242
- this.write(name, '', Date.now() - 86400000);
2260
+ this.write(name, '', Date.now() - 86400000, '/');
2243
2261
  }
2244
2262
  }
2245
2263
 
@@ -2328,11 +2346,11 @@ function mergeConfig(config1, config2) {
2328
2346
  }
2329
2347
 
2330
2348
  // eslint-disable-next-line consistent-return
2331
- function mergeDeepProperties(a, b, prop , caseless) {
2349
+ function mergeDeepProperties(a, b, prop, caseless) {
2332
2350
  if (!utils$1.isUndefined(b)) {
2333
- return getMergedValue(a, b, prop , caseless);
2351
+ return getMergedValue(a, b, prop, caseless);
2334
2352
  } else if (!utils$1.isUndefined(a)) {
2335
- return getMergedValue(undefined, a, prop , caseless);
2353
+ return getMergedValue(undefined, a, prop, caseless);
2336
2354
  }
2337
2355
  }
2338
2356
 
@@ -2390,7 +2408,7 @@ function mergeConfig(config1, config2) {
2390
2408
  socketPath: defaultToConfig2,
2391
2409
  responseEncoding: defaultToConfig2,
2392
2410
  validateStatus: mergeDirectKeys,
2393
- headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
2411
+ headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
2394
2412
  };
2395
2413
 
2396
2414
  utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
@@ -3030,7 +3048,7 @@ const factory = (env) => {
3030
3048
  const seedCache = new Map();
3031
3049
 
3032
3050
  const getFetch = (config) => {
3033
- let env = config ? config.env : {};
3051
+ let env = (config && config.env) || {};
3034
3052
  const {fetch, Request, Response} = env;
3035
3053
  const seeds = [
3036
3054
  Request, Response, fetch
@@ -3053,6 +3071,15 @@ const getFetch = (config) => {
3053
3071
 
3054
3072
  getFetch();
3055
3073
 
3074
+ /**
3075
+ * Known adapters mapping.
3076
+ * Provides environment-specific adapters for Axios:
3077
+ * - `http` for Node.js
3078
+ * - `xhr` for browsers
3079
+ * - `fetch` for fetch API-based requests
3080
+ *
3081
+ * @type {Object<string, Function|Object>}
3082
+ */
3056
3083
  const knownAdapters = {
3057
3084
  http: httpAdapter,
3058
3085
  xhr: xhrAdapter,
@@ -3061,71 +3088,107 @@ const knownAdapters = {
3061
3088
  }
3062
3089
  };
3063
3090
 
3091
+ // Assign adapter names for easier debugging and identification
3064
3092
  utils$1.forEach(knownAdapters, (fn, value) => {
3065
3093
  if (fn) {
3066
3094
  try {
3067
- Object.defineProperty(fn, 'name', {value});
3095
+ Object.defineProperty(fn, 'name', { value });
3068
3096
  } catch (e) {
3069
3097
  // eslint-disable-next-line no-empty
3070
3098
  }
3071
- Object.defineProperty(fn, 'adapterName', {value});
3099
+ Object.defineProperty(fn, 'adapterName', { value });
3072
3100
  }
3073
3101
  });
3074
3102
 
3103
+ /**
3104
+ * Render a rejection reason string for unknown or unsupported adapters
3105
+ *
3106
+ * @param {string} reason
3107
+ * @returns {string}
3108
+ */
3075
3109
  const renderReason = (reason) => `- ${reason}`;
3076
3110
 
3111
+ /**
3112
+ * Check if the adapter is resolved (function, null, or false)
3113
+ *
3114
+ * @param {Function|null|false} adapter
3115
+ * @returns {boolean}
3116
+ */
3077
3117
  const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
3078
3118
 
3079
- var adapters = {
3080
- getAdapter: (adapters, config) => {
3081
- adapters = utils$1.isArray(adapters) ? adapters : [adapters];
3119
+ /**
3120
+ * Get the first suitable adapter from the provided list.
3121
+ * Tries each adapter in order until a supported one is found.
3122
+ * Throws an AxiosError if no adapter is suitable.
3123
+ *
3124
+ * @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
3125
+ * @param {Object} config - Axios request configuration
3126
+ * @throws {AxiosError} If no suitable adapter is available
3127
+ * @returns {Function} The resolved adapter function
3128
+ */
3129
+ function getAdapter(adapters, config) {
3130
+ adapters = utils$1.isArray(adapters) ? adapters : [adapters];
3082
3131
 
3083
- const {length} = adapters;
3084
- let nameOrAdapter;
3085
- let adapter;
3132
+ const { length } = adapters;
3133
+ let nameOrAdapter;
3134
+ let adapter;
3086
3135
 
3087
- const rejectedReasons = {};
3136
+ const rejectedReasons = {};
3088
3137
 
3089
- for (let i = 0; i < length; i++) {
3090
- nameOrAdapter = adapters[i];
3091
- let id;
3138
+ for (let i = 0; i < length; i++) {
3139
+ nameOrAdapter = adapters[i];
3140
+ let id;
3092
3141
 
3093
- adapter = nameOrAdapter;
3142
+ adapter = nameOrAdapter;
3094
3143
 
3095
- if (!isResolvedHandle(nameOrAdapter)) {
3096
- adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
3144
+ if (!isResolvedHandle(nameOrAdapter)) {
3145
+ adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
3097
3146
 
3098
- if (adapter === undefined) {
3099
- throw new AxiosError(`Unknown adapter '${id}'`);
3100
- }
3101
- }
3102
-
3103
- if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
3104
- break;
3147
+ if (adapter === undefined) {
3148
+ throw new AxiosError(`Unknown adapter '${id}'`);
3105
3149
  }
3150
+ }
3106
3151
 
3107
- rejectedReasons[id || '#' + i] = adapter;
3152
+ if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
3153
+ break;
3108
3154
  }
3109
3155
 
3110
- if (!adapter) {
3156
+ rejectedReasons[id || '#' + i] = adapter;
3157
+ }
3111
3158
 
3112
- const reasons = Object.entries(rejectedReasons)
3113
- .map(([id, state]) => `adapter ${id} ` +
3114
- (state === false ? 'is not supported by the environment' : 'is not available in the build')
3115
- );
3159
+ if (!adapter) {
3160
+ const reasons = Object.entries(rejectedReasons)
3161
+ .map(([id, state]) => `adapter ${id} ` +
3162
+ (state === false ? 'is not supported by the environment' : 'is not available in the build')
3163
+ );
3116
3164
 
3117
- let s = length ?
3118
- (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
3119
- 'as no adapter specified';
3165
+ let s = length ?
3166
+ (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
3167
+ 'as no adapter specified';
3120
3168
 
3121
- throw new AxiosError(
3122
- `There is no suitable adapter to dispatch the request ` + s,
3123
- 'ERR_NOT_SUPPORT'
3124
- );
3125
- }
3169
+ throw new AxiosError(
3170
+ `There is no suitable adapter to dispatch the request ` + s,
3171
+ 'ERR_NOT_SUPPORT'
3172
+ );
3173
+ }
3126
3174
 
3127
- return adapter;
3128
- },
3175
+ return adapter;
3176
+ }
3177
+
3178
+ /**
3179
+ * Exports Axios adapters and utility to resolve an adapter
3180
+ */
3181
+ var adapters = {
3182
+ /**
3183
+ * Resolve an adapter from a list of adapter names or functions.
3184
+ * @type {Function}
3185
+ */
3186
+ getAdapter,
3187
+
3188
+ /**
3189
+ * Exposes all known adapters
3190
+ * @type {Object<string, Function|Object>}
3191
+ */
3129
3192
  adapters: knownAdapters
3130
3193
  };
3131
3194
 
@@ -3202,7 +3265,7 @@ function dispatchRequest(config) {
3202
3265
  });
3203
3266
  }
3204
3267
 
3205
- const VERSION = "1.12.2";
3268
+ const VERSION = "1.13.0";
3206
3269
 
3207
3270
  const validators$1 = {};
3208
3271
 
@@ -3761,6 +3824,12 @@ const HttpStatusCode = {
3761
3824
  LoopDetected: 508,
3762
3825
  NotExtended: 510,
3763
3826
  NetworkAuthenticationRequired: 511,
3827
+ WebServerIsDown: 521,
3828
+ ConnectionTimedOut: 522,
3829
+ OriginIsUnreachable: 523,
3830
+ TimeoutOccurred: 524,
3831
+ SslHandshakeFailed: 525,
3832
+ InvalidSslCertificate: 526,
3764
3833
  };
3765
3834
 
3766
3835
  Object.entries(HttpStatusCode).forEach(([key, value]) => {