@jjrawlins/cdk-iam-policy-builder-helper 0.0.28 → 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.
- package/.jsii +2 -2
- package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
- package/cdk-iam-policy-builder-helper/version +1 -1
- package/node_modules/axios/CHANGELOG.md +12 -0
- package/node_modules/axios/README.md +74 -0
- package/node_modules/axios/dist/axios.js +37 -40
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +17 -19
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +17 -19
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +17 -19
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/lib/adapters/fetch.js +13 -11
- package/node_modules/axios/lib/core/Axios.js +0 -2
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/utils.js +2 -4
- package/node_modules/axios/package.json +7 -4
- package/package.json +1 -1
package/.jsii
CHANGED
|
@@ -14,7 +14,7 @@ import (
|
|
|
14
14
|
projen "github.com/projen/projen-go/projen/jsii"
|
|
15
15
|
)
|
|
16
16
|
|
|
17
|
-
//go:embed jjrawlins-cdk-iam-policy-builder-helper-0.0.
|
|
17
|
+
//go:embed jjrawlins-cdk-iam-policy-builder-helper-0.0.28.tgz
|
|
18
18
|
var tarball []byte
|
|
19
19
|
|
|
20
20
|
// Initialize loads the necessary packages in the @jsii/kernel to support the enclosing module.
|
|
@@ -26,5 +26,5 @@ func Initialize() {
|
|
|
26
26
|
projen.Initialize()
|
|
27
27
|
|
|
28
28
|
// Load this library into the kernel
|
|
29
|
-
_jsii_.Load("@jjrawlins/cdk-iam-policy-builder-helper", "0.0.
|
|
29
|
+
_jsii_.Load("@jjrawlins/cdk-iam-policy-builder-helper", "0.0.28", tarball)
|
|
30
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.28
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.12.2](https://github.com/axios/axios/compare/v1.12.1...v1.12.2) (2025-09-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **fetch:** use current global fetch instead of cached one when env fetch is not specified to keep MSW support; ([#7030](https://github.com/axios/axios/issues/7030)) ([cf78825](https://github.com/axios/axios/commit/cf78825e1229b60d1629ad0bbc8a752ff43c3f53))
|
|
9
|
+
|
|
10
|
+
### Contributors to this release
|
|
11
|
+
|
|
12
|
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+247/-16 (#7030 #7022 #7024 )")
|
|
13
|
+
- <img src="https://avatars.githubusercontent.com/u/189505037?v=4&s=18" alt="avatar" width="18"/> [Noritaka Kobayashi](https://github.com/noritaka1166 "+2/-6 (#7028 #7029 )")
|
|
14
|
+
|
|
3
15
|
## [1.12.1](https://github.com/axios/axios/compare/v1.12.0...v1.12.1) (2025-09-12)
|
|
4
16
|
|
|
5
17
|
|
|
@@ -83,6 +83,9 @@
|
|
|
83
83
|
- [🆕 Rate limiting](#-progress-capturing)
|
|
84
84
|
- [🆕 AxiosHeaders](#-axiosheaders)
|
|
85
85
|
- [🔥 Fetch adapter](#-fetch-adapter)
|
|
86
|
+
- [🔥 Custom fetch](#-custom-fetch)
|
|
87
|
+
- [🔥 Using with Tauri](#-using-with-tauri)
|
|
88
|
+
- [🔥 Using with SvelteKit](#-using-with-sveltekit-)
|
|
86
89
|
- [Semver](#semver)
|
|
87
90
|
- [Promises](#promises)
|
|
88
91
|
- [TypeScript](#typescript)
|
|
@@ -1626,6 +1629,77 @@ const {data} = fetchAxios.get(url);
|
|
|
1626
1629
|
The adapter supports the same functionality as `xhr` adapter, **including upload and download progress capturing**.
|
|
1627
1630
|
Also, it supports additional response types such as `stream` and `formdata` (if supported by the environment).
|
|
1628
1631
|
|
|
1632
|
+
### 🔥 Custom fetch
|
|
1633
|
+
|
|
1634
|
+
Starting from `v1.12.0`, you can customize the fetch adapter to use a custom fetch API instead of environment globals.
|
|
1635
|
+
You can pass a custom `fetch` function, `Request`, and `Response` constructors via env config.
|
|
1636
|
+
This can be helpful in case of custom environments & app frameworks.
|
|
1637
|
+
|
|
1638
|
+
Also, when using a custom fetch, you may need to set custom Request and Response too. If you don't set them, global objects will be used.
|
|
1639
|
+
If your custom fetch api does not have these objects, and the globals are incompatible with a custom fetch,
|
|
1640
|
+
you must disable their use inside the fetch adapter by passing null.
|
|
1641
|
+
|
|
1642
|
+
> Note: Setting `Request` & `Response` to `null` will make it impossible for the fetch adapter to capture the upload & download progress.
|
|
1643
|
+
|
|
1644
|
+
Basic example:
|
|
1645
|
+
|
|
1646
|
+
```js
|
|
1647
|
+
import customFetchFunction from 'customFetchModule';
|
|
1648
|
+
|
|
1649
|
+
const instance = axios.create({
|
|
1650
|
+
adapter: 'fetch',
|
|
1651
|
+
onDownloadProgress(e) {
|
|
1652
|
+
console.log('downloadProgress', e);
|
|
1653
|
+
},
|
|
1654
|
+
env: {
|
|
1655
|
+
fetch: customFetchFunction,
|
|
1656
|
+
Request: null, // undefined -> use the global constructor
|
|
1657
|
+
Response: null
|
|
1658
|
+
}
|
|
1659
|
+
});
|
|
1660
|
+
```
|
|
1661
|
+
|
|
1662
|
+
#### 🔥 Using with Tauri
|
|
1663
|
+
|
|
1664
|
+
A minimal example of setting up Axios for use in a [Tauri](https://tauri.app/plugin/http-client/) app with a platform fetch function that ignores CORS policy for requests.
|
|
1665
|
+
|
|
1666
|
+
```js
|
|
1667
|
+
import { fetch } from "@tauri-apps/plugin-http";
|
|
1668
|
+
import axios from "axios";
|
|
1669
|
+
|
|
1670
|
+
const instance = axios.create({
|
|
1671
|
+
adapter: 'fetch',
|
|
1672
|
+
onDownloadProgress(e) {
|
|
1673
|
+
console.log('downloadProgress', e);
|
|
1674
|
+
},
|
|
1675
|
+
env: {
|
|
1676
|
+
fetch
|
|
1677
|
+
}
|
|
1678
|
+
});
|
|
1679
|
+
|
|
1680
|
+
const {data} = await instance.get("https://google.com");
|
|
1681
|
+
```
|
|
1682
|
+
|
|
1683
|
+
#### 🔥 Using with SvelteKit
|
|
1684
|
+
|
|
1685
|
+
[SvelteKit](https://svelte.dev/docs/kit/web-standards#Fetch-APIs) framework has a custom implementation of the fetch function for server rendering (so called `load` functions), and also uses relative paths,
|
|
1686
|
+
which makes it incompatible with the standard URL API. So, Axios must be configured to use the custom fetch API:
|
|
1687
|
+
|
|
1688
|
+
```js
|
|
1689
|
+
export async function load({ fetch }) {
|
|
1690
|
+
const {data: post} = await axios.get('https://jsonplaceholder.typicode.com/posts/1', {
|
|
1691
|
+
adapter: 'fetch',
|
|
1692
|
+
env: {
|
|
1693
|
+
fetch,
|
|
1694
|
+
Request: null,
|
|
1695
|
+
Response: null
|
|
1696
|
+
}
|
|
1697
|
+
});
|
|
1698
|
+
|
|
1699
|
+
return { post };
|
|
1700
|
+
}
|
|
1701
|
+
```
|
|
1702
|
+
|
|
1629
1703
|
## Semver
|
|
1630
1704
|
|
|
1631
1705
|
Since Axios has reached a `v.1.0.0` we will fully embrace semver as per the spec [here](https://semver.org/)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Axios v1.12.
|
|
1
|
+
/*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -1031,10 +1031,8 @@
|
|
|
1031
1031
|
result[targetKey] = merge({}, val);
|
|
1032
1032
|
} else if (isArray(val)) {
|
|
1033
1033
|
result[targetKey] = val.slice();
|
|
1034
|
-
} else {
|
|
1035
|
-
|
|
1036
|
-
result[targetKey] = val;
|
|
1037
|
-
}
|
|
1034
|
+
} else if (!skipUndefined || !isUndefined(val)) {
|
|
1035
|
+
result[targetKey] = val;
|
|
1038
1036
|
}
|
|
1039
1037
|
};
|
|
1040
1038
|
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
@@ -3353,11 +3351,9 @@
|
|
|
3353
3351
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
3354
3352
|
var isFunction = utils$1.isFunction;
|
|
3355
3353
|
var globalFetchAPI = function (_ref) {
|
|
3356
|
-
var
|
|
3357
|
-
Request = _ref.Request,
|
|
3354
|
+
var Request = _ref.Request,
|
|
3358
3355
|
Response = _ref.Response;
|
|
3359
3356
|
return {
|
|
3360
|
-
fetch: fetch,
|
|
3361
3357
|
Request: Request,
|
|
3362
3358
|
Response: Response
|
|
3363
3359
|
};
|
|
@@ -3376,11 +3372,14 @@
|
|
|
3376
3372
|
}
|
|
3377
3373
|
};
|
|
3378
3374
|
var factory = function factory(env) {
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3375
|
+
env = utils$1.merge.call({
|
|
3376
|
+
skipUndefined: true
|
|
3377
|
+
}, globalFetchAPI, env);
|
|
3378
|
+
var _env = env,
|
|
3379
|
+
envFetch = _env.fetch,
|
|
3380
|
+
Request = _env.Request,
|
|
3381
|
+
Response = _env.Response;
|
|
3382
|
+
var isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
|
|
3384
3383
|
var isRequestSupported = isFunction(Request);
|
|
3385
3384
|
var isResponseSupported = isFunction(Response);
|
|
3386
3385
|
if (!isFetchSupported) {
|
|
@@ -3521,31 +3520,32 @@
|
|
|
3521
3520
|
}();
|
|
3522
3521
|
return /*#__PURE__*/function () {
|
|
3523
3522
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(config) {
|
|
3524
|
-
var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, composedSignal, request, unsubscribe, requestContentLength, _request, contentTypeHeader, _progressEventDecorat, _progressEventDecorat2, onProgress, flush, isCredentialsSupported, resolvedOptions, response, isStreamResponse, options, responseContentLength, _ref6, _ref7, _onProgress, _flush, responseData;
|
|
3523
|
+
var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, _fetch, composedSignal, request, unsubscribe, requestContentLength, _request, contentTypeHeader, _progressEventDecorat, _progressEventDecorat2, onProgress, flush, isCredentialsSupported, resolvedOptions, response, isStreamResponse, options, responseContentLength, _ref6, _ref7, _onProgress, _flush, responseData;
|
|
3525
3524
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
3526
3525
|
while (1) switch (_context4.prev = _context4.next) {
|
|
3527
3526
|
case 0:
|
|
3528
3527
|
_resolveConfig = resolveConfig(config), url = _resolveConfig.url, method = _resolveConfig.method, data = _resolveConfig.data, signal = _resolveConfig.signal, cancelToken = _resolveConfig.cancelToken, timeout = _resolveConfig.timeout, onDownloadProgress = _resolveConfig.onDownloadProgress, onUploadProgress = _resolveConfig.onUploadProgress, responseType = _resolveConfig.responseType, headers = _resolveConfig.headers, _resolveConfig$withCr = _resolveConfig.withCredentials, withCredentials = _resolveConfig$withCr === void 0 ? 'same-origin' : _resolveConfig$withCr, fetchOptions = _resolveConfig.fetchOptions;
|
|
3528
|
+
_fetch = envFetch || fetch;
|
|
3529
3529
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
3530
3530
|
composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
3531
3531
|
request = null;
|
|
3532
3532
|
unsubscribe = composedSignal && composedSignal.unsubscribe && function () {
|
|
3533
3533
|
composedSignal.unsubscribe();
|
|
3534
3534
|
};
|
|
3535
|
-
_context4.prev =
|
|
3535
|
+
_context4.prev = 6;
|
|
3536
3536
|
_context4.t0 = onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head';
|
|
3537
3537
|
if (!_context4.t0) {
|
|
3538
|
-
_context4.next =
|
|
3538
|
+
_context4.next = 13;
|
|
3539
3539
|
break;
|
|
3540
3540
|
}
|
|
3541
|
-
_context4.next =
|
|
3541
|
+
_context4.next = 11;
|
|
3542
3542
|
return resolveBodyLength(headers, data);
|
|
3543
|
-
case
|
|
3543
|
+
case 11:
|
|
3544
3544
|
_context4.t1 = requestContentLength = _context4.sent;
|
|
3545
3545
|
_context4.t0 = _context4.t1 !== 0;
|
|
3546
|
-
case
|
|
3546
|
+
case 13:
|
|
3547
3547
|
if (!_context4.t0) {
|
|
3548
|
-
_context4.next =
|
|
3548
|
+
_context4.next = 17;
|
|
3549
3549
|
break;
|
|
3550
3550
|
}
|
|
3551
3551
|
_request = new Request(url, {
|
|
@@ -3560,7 +3560,7 @@
|
|
|
3560
3560
|
_progressEventDecorat = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))), _progressEventDecorat2 = _slicedToArray(_progressEventDecorat, 2), onProgress = _progressEventDecorat2[0], flush = _progressEventDecorat2[1];
|
|
3561
3561
|
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
3562
3562
|
}
|
|
3563
|
-
case
|
|
3563
|
+
case 17:
|
|
3564
3564
|
if (!utils$1.isString(withCredentials)) {
|
|
3565
3565
|
withCredentials = withCredentials ? 'include' : 'omit';
|
|
3566
3566
|
}
|
|
@@ -3577,9 +3577,9 @@
|
|
|
3577
3577
|
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
3578
3578
|
});
|
|
3579
3579
|
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
3580
|
-
_context4.next =
|
|
3581
|
-
return isRequestSupported ?
|
|
3582
|
-
case
|
|
3580
|
+
_context4.next = 23;
|
|
3581
|
+
return isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions);
|
|
3582
|
+
case 23:
|
|
3583
3583
|
response = _context4.sent;
|
|
3584
3584
|
isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
3585
3585
|
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
@@ -3595,12 +3595,12 @@
|
|
|
3595
3595
|
}), options);
|
|
3596
3596
|
}
|
|
3597
3597
|
responseType = responseType || 'text';
|
|
3598
|
-
_context4.next =
|
|
3598
|
+
_context4.next = 29;
|
|
3599
3599
|
return resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
|
|
3600
|
-
case
|
|
3600
|
+
case 29:
|
|
3601
3601
|
responseData = _context4.sent;
|
|
3602
3602
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
3603
|
-
_context4.next =
|
|
3603
|
+
_context4.next = 33;
|
|
3604
3604
|
return new Promise(function (resolve, reject) {
|
|
3605
3605
|
settle(resolve, reject, {
|
|
3606
3606
|
data: responseData,
|
|
@@ -3611,26 +3611,26 @@
|
|
|
3611
3611
|
request: request
|
|
3612
3612
|
});
|
|
3613
3613
|
});
|
|
3614
|
-
case
|
|
3614
|
+
case 33:
|
|
3615
3615
|
return _context4.abrupt("return", _context4.sent);
|
|
3616
|
-
case
|
|
3617
|
-
_context4.prev =
|
|
3618
|
-
_context4.t2 = _context4["catch"](
|
|
3616
|
+
case 36:
|
|
3617
|
+
_context4.prev = 36;
|
|
3618
|
+
_context4.t2 = _context4["catch"](6);
|
|
3619
3619
|
unsubscribe && unsubscribe();
|
|
3620
3620
|
if (!(_context4.t2 && _context4.t2.name === 'TypeError' && /Load failed|fetch/i.test(_context4.t2.message))) {
|
|
3621
|
-
_context4.next =
|
|
3621
|
+
_context4.next = 41;
|
|
3622
3622
|
break;
|
|
3623
3623
|
}
|
|
3624
3624
|
throw Object.assign(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request), {
|
|
3625
3625
|
cause: _context4.t2.cause || _context4.t2
|
|
3626
3626
|
});
|
|
3627
|
-
case 40:
|
|
3628
|
-
throw AxiosError.from(_context4.t2, _context4.t2 && _context4.t2.code, config, request);
|
|
3629
3627
|
case 41:
|
|
3628
|
+
throw AxiosError.from(_context4.t2, _context4.t2 && _context4.t2.code, config, request);
|
|
3629
|
+
case 42:
|
|
3630
3630
|
case "end":
|
|
3631
3631
|
return _context4.stop();
|
|
3632
3632
|
}
|
|
3633
|
-
}, _callee4, null, [[
|
|
3633
|
+
}, _callee4, null, [[6, 36]]);
|
|
3634
3634
|
}));
|
|
3635
3635
|
return function (_x5) {
|
|
3636
3636
|
return _ref5.apply(this, arguments);
|
|
@@ -3639,9 +3639,7 @@
|
|
|
3639
3639
|
};
|
|
3640
3640
|
var seedCache = new Map();
|
|
3641
3641
|
var getFetch = function getFetch(config) {
|
|
3642
|
-
var env =
|
|
3643
|
-
skipUndefined: true
|
|
3644
|
-
}, globalFetchAPI, config ? config.env : null);
|
|
3642
|
+
var env = config ? config.env : {};
|
|
3645
3643
|
var fetch = env.fetch,
|
|
3646
3644
|
Request = env.Request,
|
|
3647
3645
|
Response = env.Response;
|
|
@@ -3780,7 +3778,7 @@
|
|
|
3780
3778
|
});
|
|
3781
3779
|
}
|
|
3782
3780
|
|
|
3783
|
-
var VERSION = "1.12.
|
|
3781
|
+
var VERSION = "1.12.2";
|
|
3784
3782
|
|
|
3785
3783
|
var validators$1 = {};
|
|
3786
3784
|
|
|
@@ -4023,7 +4021,6 @@
|
|
|
4023
4021
|
}
|
|
4024
4022
|
len = requestInterceptorChain.length;
|
|
4025
4023
|
var newConfig = config;
|
|
4026
|
-
i = 0;
|
|
4027
4024
|
while (i < len) {
|
|
4028
4025
|
var onFulfilled = requestInterceptorChain[i++];
|
|
4029
4026
|
var onRejected = requestInterceptorChain[i++];
|