@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,4 +1,11 @@
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
+ /**
3
+ * Create a bound version of a function with a specified `this` context
4
+ *
5
+ * @param {Function} fn - The function to bind
6
+ * @param {*} thisArg - The value to be passed as the `this` parameter
7
+ * @returns {Function} A new function that will call the original function with the specified `this` context
8
+ */
2
9
  function bind(fn, thisArg) {
3
10
  return function wrap() {
4
11
  return fn.apply(thisArg, arguments);
@@ -1251,7 +1258,7 @@ class InterceptorManager {
1251
1258
  *
1252
1259
  * @param {Number} id The ID that was returned by `use`
1253
1260
  *
1254
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
1261
+ * @returns {void}
1255
1262
  */
1256
1263
  eject(id) {
1257
1264
  if (this.handlers[id]) {
@@ -2217,27 +2224,38 @@ const cookies = platform.hasStandardBrowserEnv ?
2217
2224
 
2218
2225
  // Standard browser envs support document.cookie
2219
2226
  {
2220
- write(name, value, expires, path, domain, secure) {
2221
- const cookie = [name + '=' + encodeURIComponent(value)];
2222
-
2223
- utils$1.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
2224
-
2225
- utils$1.isString(path) && cookie.push('path=' + path);
2227
+ write(name, value, expires, path, domain, secure, sameSite) {
2228
+ if (typeof document === 'undefined') return;
2226
2229
 
2227
- utils$1.isString(domain) && cookie.push('domain=' + domain);
2230
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
2228
2231
 
2229
- secure === true && cookie.push('secure');
2232
+ if (utils$1.isNumber(expires)) {
2233
+ cookie.push(`expires=${new Date(expires).toUTCString()}`);
2234
+ }
2235
+ if (utils$1.isString(path)) {
2236
+ cookie.push(`path=${path}`);
2237
+ }
2238
+ if (utils$1.isString(domain)) {
2239
+ cookie.push(`domain=${domain}`);
2240
+ }
2241
+ if (secure === true) {
2242
+ cookie.push('secure');
2243
+ }
2244
+ if (utils$1.isString(sameSite)) {
2245
+ cookie.push(`SameSite=${sameSite}`);
2246
+ }
2230
2247
 
2231
2248
  document.cookie = cookie.join('; ');
2232
2249
  },
2233
2250
 
2234
2251
  read(name) {
2235
- const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
2236
- return (match ? decodeURIComponent(match[3]) : null);
2252
+ if (typeof document === 'undefined') return null;
2253
+ const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
2254
+ return match ? decodeURIComponent(match[1]) : null;
2237
2255
  },
2238
2256
 
2239
2257
  remove(name) {
2240
- this.write(name, '', Date.now() - 86400000);
2258
+ this.write(name, '', Date.now() - 86400000, '/');
2241
2259
  }
2242
2260
  }
2243
2261
 
@@ -2326,11 +2344,11 @@ function mergeConfig$1(config1, config2) {
2326
2344
  }
2327
2345
 
2328
2346
  // eslint-disable-next-line consistent-return
2329
- function mergeDeepProperties(a, b, prop , caseless) {
2347
+ function mergeDeepProperties(a, b, prop, caseless) {
2330
2348
  if (!utils$1.isUndefined(b)) {
2331
- return getMergedValue(a, b, prop , caseless);
2349
+ return getMergedValue(a, b, prop, caseless);
2332
2350
  } else if (!utils$1.isUndefined(a)) {
2333
- return getMergedValue(undefined, a, prop , caseless);
2351
+ return getMergedValue(undefined, a, prop, caseless);
2334
2352
  }
2335
2353
  }
2336
2354
 
@@ -2388,7 +2406,7 @@ function mergeConfig$1(config1, config2) {
2388
2406
  socketPath: defaultToConfig2,
2389
2407
  responseEncoding: defaultToConfig2,
2390
2408
  validateStatus: mergeDirectKeys,
2391
- headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
2409
+ headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
2392
2410
  };
2393
2411
 
2394
2412
  utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
@@ -3028,7 +3046,7 @@ const factory = (env) => {
3028
3046
  const seedCache = new Map();
3029
3047
 
3030
3048
  const getFetch = (config) => {
3031
- let env = config ? config.env : {};
3049
+ let env = (config && config.env) || {};
3032
3050
  const {fetch, Request, Response} = env;
3033
3051
  const seeds = [
3034
3052
  Request, Response, fetch
@@ -3051,6 +3069,15 @@ const getFetch = (config) => {
3051
3069
 
3052
3070
  getFetch();
3053
3071
 
3072
+ /**
3073
+ * Known adapters mapping.
3074
+ * Provides environment-specific adapters for Axios:
3075
+ * - `http` for Node.js
3076
+ * - `xhr` for browsers
3077
+ * - `fetch` for fetch API-based requests
3078
+ *
3079
+ * @type {Object<string, Function|Object>}
3080
+ */
3054
3081
  const knownAdapters = {
3055
3082
  http: httpAdapter,
3056
3083
  xhr: xhrAdapter,
@@ -3059,71 +3086,107 @@ const knownAdapters = {
3059
3086
  }
3060
3087
  };
3061
3088
 
3089
+ // Assign adapter names for easier debugging and identification
3062
3090
  utils$1.forEach(knownAdapters, (fn, value) => {
3063
3091
  if (fn) {
3064
3092
  try {
3065
- Object.defineProperty(fn, 'name', {value});
3093
+ Object.defineProperty(fn, 'name', { value });
3066
3094
  } catch (e) {
3067
3095
  // eslint-disable-next-line no-empty
3068
3096
  }
3069
- Object.defineProperty(fn, 'adapterName', {value});
3097
+ Object.defineProperty(fn, 'adapterName', { value });
3070
3098
  }
3071
3099
  });
3072
3100
 
3101
+ /**
3102
+ * Render a rejection reason string for unknown or unsupported adapters
3103
+ *
3104
+ * @param {string} reason
3105
+ * @returns {string}
3106
+ */
3073
3107
  const renderReason = (reason) => `- ${reason}`;
3074
3108
 
3109
+ /**
3110
+ * Check if the adapter is resolved (function, null, or false)
3111
+ *
3112
+ * @param {Function|null|false} adapter
3113
+ * @returns {boolean}
3114
+ */
3075
3115
  const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
3076
3116
 
3077
- const adapters = {
3078
- getAdapter: (adapters, config) => {
3079
- adapters = utils$1.isArray(adapters) ? adapters : [adapters];
3117
+ /**
3118
+ * Get the first suitable adapter from the provided list.
3119
+ * Tries each adapter in order until a supported one is found.
3120
+ * Throws an AxiosError if no adapter is suitable.
3121
+ *
3122
+ * @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
3123
+ * @param {Object} config - Axios request configuration
3124
+ * @throws {AxiosError} If no suitable adapter is available
3125
+ * @returns {Function} The resolved adapter function
3126
+ */
3127
+ function getAdapter$1(adapters, config) {
3128
+ adapters = utils$1.isArray(adapters) ? adapters : [adapters];
3080
3129
 
3081
- const {length} = adapters;
3082
- let nameOrAdapter;
3083
- let adapter;
3130
+ const { length } = adapters;
3131
+ let nameOrAdapter;
3132
+ let adapter;
3084
3133
 
3085
- const rejectedReasons = {};
3134
+ const rejectedReasons = {};
3086
3135
 
3087
- for (let i = 0; i < length; i++) {
3088
- nameOrAdapter = adapters[i];
3089
- let id;
3136
+ for (let i = 0; i < length; i++) {
3137
+ nameOrAdapter = adapters[i];
3138
+ let id;
3090
3139
 
3091
- adapter = nameOrAdapter;
3140
+ adapter = nameOrAdapter;
3092
3141
 
3093
- if (!isResolvedHandle(nameOrAdapter)) {
3094
- adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
3142
+ if (!isResolvedHandle(nameOrAdapter)) {
3143
+ adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
3095
3144
 
3096
- if (adapter === undefined) {
3097
- throw new AxiosError$1(`Unknown adapter '${id}'`);
3098
- }
3099
- }
3100
-
3101
- if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
3102
- break;
3145
+ if (adapter === undefined) {
3146
+ throw new AxiosError$1(`Unknown adapter '${id}'`);
3103
3147
  }
3148
+ }
3104
3149
 
3105
- rejectedReasons[id || '#' + i] = adapter;
3150
+ if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
3151
+ break;
3106
3152
  }
3107
3153
 
3108
- if (!adapter) {
3154
+ rejectedReasons[id || '#' + i] = adapter;
3155
+ }
3109
3156
 
3110
- const reasons = Object.entries(rejectedReasons)
3111
- .map(([id, state]) => `adapter ${id} ` +
3112
- (state === false ? 'is not supported by the environment' : 'is not available in the build')
3113
- );
3157
+ if (!adapter) {
3158
+ const reasons = Object.entries(rejectedReasons)
3159
+ .map(([id, state]) => `adapter ${id} ` +
3160
+ (state === false ? 'is not supported by the environment' : 'is not available in the build')
3161
+ );
3114
3162
 
3115
- let s = length ?
3116
- (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
3117
- 'as no adapter specified';
3163
+ let s = length ?
3164
+ (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
3165
+ 'as no adapter specified';
3118
3166
 
3119
- throw new AxiosError$1(
3120
- `There is no suitable adapter to dispatch the request ` + s,
3121
- 'ERR_NOT_SUPPORT'
3122
- );
3123
- }
3167
+ throw new AxiosError$1(
3168
+ `There is no suitable adapter to dispatch the request ` + s,
3169
+ 'ERR_NOT_SUPPORT'
3170
+ );
3171
+ }
3124
3172
 
3125
- return adapter;
3126
- },
3173
+ return adapter;
3174
+ }
3175
+
3176
+ /**
3177
+ * Exports Axios adapters and utility to resolve an adapter
3178
+ */
3179
+ const adapters = {
3180
+ /**
3181
+ * Resolve an adapter from a list of adapter names or functions.
3182
+ * @type {Function}
3183
+ */
3184
+ getAdapter: getAdapter$1,
3185
+
3186
+ /**
3187
+ * Exposes all known adapters
3188
+ * @type {Object<string, Function|Object>}
3189
+ */
3127
3190
  adapters: knownAdapters
3128
3191
  };
3129
3192
 
@@ -3200,7 +3263,7 @@ function dispatchRequest(config) {
3200
3263
  });
3201
3264
  }
3202
3265
 
3203
- const VERSION$1 = "1.12.2";
3266
+ const VERSION$1 = "1.13.0";
3204
3267
 
3205
3268
  const validators$1 = {};
3206
3269
 
@@ -3759,6 +3822,12 @@ const HttpStatusCode$1 = {
3759
3822
  LoopDetected: 508,
3760
3823
  NotExtended: 510,
3761
3824
  NetworkAuthenticationRequired: 511,
3825
+ WebServerIsDown: 521,
3826
+ ConnectionTimedOut: 522,
3827
+ OriginIsUnreachable: 523,
3828
+ TimeoutOccurred: 524,
3829
+ SslHandshakeFailed: 525,
3830
+ InvalidSslCertificate: 526,
3762
3831
  };
3763
3832
 
3764
3833
  Object.entries(HttpStatusCode$1).forEach(([key, value]) => {