@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
  'use strict';
3
3
 
4
4
  const FormData$1 = require('form-data');
@@ -381,10 +381,8 @@ function merge(/* obj1, obj2, obj3, ... */) {
381
381
  result[targetKey] = merge({}, val);
382
382
  } else if (isArray(val)) {
383
383
  result[targetKey] = val.slice();
384
- } else {
385
- if (!skipUndefined || !isUndefined(val)) {
386
- result[targetKey] = val;
387
- }
384
+ } else if (!skipUndefined || !isUndefined(val)) {
385
+ result[targetKey] = val;
388
386
  }
389
387
  };
390
388
 
@@ -2152,7 +2150,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
2152
2150
  return requestedURL;
2153
2151
  }
2154
2152
 
2155
- const VERSION = "1.12.1";
2153
+ const VERSION = "1.12.2";
2156
2154
 
2157
2155
  function parseProtocol(url) {
2158
2156
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -3932,9 +3930,9 @@ const DEFAULT_CHUNK_SIZE = 64 * 1024;
3932
3930
 
3933
3931
  const {isFunction} = utils$1;
3934
3932
 
3935
- const globalFetchAPI = (({fetch, Request, Response}) => ({
3936
- fetch, Request, Response
3937
- }))(utils$1.global);
3933
+ const globalFetchAPI = (({Request, Response}) => ({
3934
+ Request, Response
3935
+ }))(utils$1.global);
3938
3936
 
3939
3937
  const {
3940
3938
  ReadableStream: ReadableStream$1, TextEncoder: TextEncoder$1
@@ -3950,8 +3948,12 @@ const test = (fn, ...args) => {
3950
3948
  };
3951
3949
 
3952
3950
  const factory = (env) => {
3953
- const {fetch, Request, Response} = Object.assign({}, globalFetchAPI, env);
3954
- const isFetchSupported = isFunction(fetch);
3951
+ env = utils$1.merge.call({
3952
+ skipUndefined: true
3953
+ }, globalFetchAPI, env);
3954
+
3955
+ const {fetch: envFetch, Request, Response} = env;
3956
+ const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
3955
3957
  const isRequestSupported = isFunction(Request);
3956
3958
  const isResponseSupported = isFunction(Response);
3957
3959
 
@@ -4054,6 +4056,8 @@ const factory = (env) => {
4054
4056
  fetchOptions
4055
4057
  } = resolveConfig(config);
4056
4058
 
4059
+ let _fetch = envFetch || fetch;
4060
+
4057
4061
  responseType = responseType ? (responseType + '').toLowerCase() : 'text';
4058
4062
 
4059
4063
  let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
@@ -4113,7 +4117,7 @@ const factory = (env) => {
4113
4117
 
4114
4118
  request = isRequestSupported && new Request(url, resolvedOptions);
4115
4119
 
4116
- let response = await (isRequestSupported ? fetch(request, fetchOptions) : fetch(url, resolvedOptions));
4120
+ let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
4117
4121
 
4118
4122
  const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
4119
4123
 
@@ -4176,12 +4180,8 @@ const factory = (env) => {
4176
4180
  const seedCache = new Map();
4177
4181
 
4178
4182
  const getFetch = (config) => {
4179
- let env = utils$1.merge.call({
4180
- skipUndefined: true
4181
- }, globalFetchAPI, config ? config.env : null);
4182
-
4183
+ let env = config ? config.env : {};
4183
4184
  const {fetch, Request, Response} = env;
4184
-
4185
4185
  const seeds = [
4186
4186
  Request, Response, fetch
4187
4187
  ];
@@ -4606,8 +4606,6 @@ class Axios {
4606
4606
 
4607
4607
  let newConfig = config;
4608
4608
 
4609
- i = 0;
4610
-
4611
4609
  while (i < len) {
4612
4610
  const onFulfilled = requestInterceptorChain[i++];
4613
4611
  const onRejected = requestInterceptorChain[i++];