@jjrawlins/cdk-iam-policy-builder-helper 0.0.27 → 0.0.29

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.
@@ -1,4 +1,4 @@
1
- /*! Axios v1.12.1 Copyright (c) 2025 Matt Zabriskie and contributors */
1
+ /*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors */
2
2
  function bind(fn, thisArg) {
3
3
  return function wrap() {
4
4
  return fn.apply(thisArg, arguments);
@@ -354,10 +354,8 @@ function merge(/* obj1, obj2, obj3, ... */) {
354
354
  result[targetKey] = merge({}, val);
355
355
  } else if (isArray(val)) {
356
356
  result[targetKey] = val.slice();
357
- } else {
358
- if (!skipUndefined || !isUndefined(val)) {
359
- result[targetKey] = val;
360
- }
357
+ } else if (!skipUndefined || !isUndefined(val)) {
358
+ result[targetKey] = val;
361
359
  }
362
360
  };
363
361
 
@@ -2780,9 +2778,9 @@ const DEFAULT_CHUNK_SIZE = 64 * 1024;
2780
2778
 
2781
2779
  const {isFunction} = utils$1;
2782
2780
 
2783
- const globalFetchAPI = (({fetch, Request, Response}) => ({
2784
- fetch, Request, Response
2785
- }))(utils$1.global);
2781
+ const globalFetchAPI = (({Request, Response}) => ({
2782
+ Request, Response
2783
+ }))(utils$1.global);
2786
2784
 
2787
2785
  const {
2788
2786
  ReadableStream: ReadableStream$1, TextEncoder
@@ -2798,8 +2796,12 @@ const test = (fn, ...args) => {
2798
2796
  };
2799
2797
 
2800
2798
  const factory = (env) => {
2801
- const {fetch, Request, Response} = Object.assign({}, globalFetchAPI, env);
2802
- const isFetchSupported = isFunction(fetch);
2799
+ env = utils$1.merge.call({
2800
+ skipUndefined: true
2801
+ }, globalFetchAPI, env);
2802
+
2803
+ const {fetch: envFetch, Request, Response} = env;
2804
+ const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
2803
2805
  const isRequestSupported = isFunction(Request);
2804
2806
  const isResponseSupported = isFunction(Response);
2805
2807
 
@@ -2902,6 +2904,8 @@ const factory = (env) => {
2902
2904
  fetchOptions
2903
2905
  } = resolveConfig(config);
2904
2906
 
2907
+ let _fetch = envFetch || fetch;
2908
+
2905
2909
  responseType = responseType ? (responseType + '').toLowerCase() : 'text';
2906
2910
 
2907
2911
  let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
@@ -2961,7 +2965,7 @@ const factory = (env) => {
2961
2965
 
2962
2966
  request = isRequestSupported && new Request(url, resolvedOptions);
2963
2967
 
2964
- let response = await (isRequestSupported ? fetch(request, fetchOptions) : fetch(url, resolvedOptions));
2968
+ let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
2965
2969
 
2966
2970
  const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
2967
2971
 
@@ -3024,12 +3028,8 @@ const factory = (env) => {
3024
3028
  const seedCache = new Map();
3025
3029
 
3026
3030
  const getFetch = (config) => {
3027
- let env = utils$1.merge.call({
3028
- skipUndefined: true
3029
- }, globalFetchAPI, config ? config.env : null);
3030
-
3031
+ let env = config ? config.env : {};
3031
3032
  const {fetch, Request, Response} = env;
3032
-
3033
3033
  const seeds = [
3034
3034
  Request, Response, fetch
3035
3035
  ];
@@ -3200,7 +3200,7 @@ function dispatchRequest(config) {
3200
3200
  });
3201
3201
  }
3202
3202
 
3203
- const VERSION$1 = "1.12.1";
3203
+ const VERSION$1 = "1.12.2";
3204
3204
 
3205
3205
  const validators$1 = {};
3206
3206
 
@@ -3456,8 +3456,6 @@ class Axios$1 {
3456
3456
 
3457
3457
  let newConfig = config;
3458
3458
 
3459
- i = 0;
3460
-
3461
3459
  while (i < len) {
3462
3460
  const onFulfilled = requestInterceptorChain[i++];
3463
3461
  const onRejected = requestInterceptorChain[i++];