cloudstructs 0.9.22 → 0.9.24
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 +4 -4
- package/assets/slack-textract/detect.lambda/index.js +78 -79
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/mjml-template/index.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +23 -0
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +13 -7
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +4 -1
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +0 -1
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +11 -1
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +4 -9
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +61 -10
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +119 -0
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +33 -0
- package/node_modules/@slack/logger/node_modules/undici-types/eventsource.d.ts +0 -2
- package/node_modules/@slack/logger/node_modules/undici-types/filereader.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/interceptors.d.ts +3 -1
- package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/patch.d.ts +0 -38
- package/node_modules/@slack/logger/node_modules/undici-types/websocket.d.ts +0 -2
- package/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.d.ts +10 -2
- package/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ChatScheduleMessageResponse.d.ts +7 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatScheduleMessageResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ChatScheduleMessageResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ChatUpdateResponse.d.ts +7 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatUpdateResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ChatUpdateResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.d.ts +10 -2
- package/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsOpenResponse.d.ts +7 -0
- package/node_modules/@slack/web-api/dist/types/response/ConversationsOpenResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsOpenResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.d.ts +10 -2
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.d.ts +5 -2
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.d.ts +7 -0
- package/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesListResponse.d.ts +7 -0
- package/node_modules/@slack/web-api/dist/types/response/FilesListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesListResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.d.ts +7 -0
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.d.ts +7 -0
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.d.ts +7 -0
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.d.ts +7 -0
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.d.ts +7 -0
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.d.ts +7 -0
- package/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.d.ts +7 -0
- package/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.d.ts +7 -0
- package/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.d.ts +7 -0
- package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ReactionsGetResponse.d.ts +7 -0
- package/node_modules/@slack/web-api/dist/types/response/ReactionsGetResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ReactionsGetResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.d.ts +10 -2
- package/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/RtmStartResponse.d.ts +10 -2
- package/node_modules/@slack/web-api/dist/types/response/RtmStartResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.d.ts +11 -3
- package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.d.ts +11 -3
- package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/SearchMessagesResponse.d.ts +10 -2
- package/node_modules/@slack/web-api/dist/types/response/SearchMessagesResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +23 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +13 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +4 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +0 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +11 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +4 -9
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +61 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +119 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +33 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/eventsource.d.ts +0 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/filereader.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/interceptors.d.ts +3 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/patch.d.ts +0 -38
- package/node_modules/@slack/web-api/node_modules/undici-types/websocket.d.ts +0 -2
- package/node_modules/@slack/web-api/package.json +5 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +23 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +13 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +4 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +11 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +4 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +61 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +119 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +33 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/eventsource.d.ts +0 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/filereader.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +3 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/patch.d.ts +0 -38
- package/node_modules/@types/cacheable-request/node_modules/undici-types/websocket.d.ts +0 -2
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +23 -0
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +13 -7
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +4 -1
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +11 -1
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +4 -9
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +61 -10
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +119 -0
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +33 -0
- package/node_modules/@types/keyv/node_modules/undici-types/eventsource.d.ts +0 -2
- package/node_modules/@types/keyv/node_modules/undici-types/filereader.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +3 -1
- package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/patch.d.ts +0 -38
- package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +0 -2
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +23 -0
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +13 -7
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +4 -1
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +11 -1
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +4 -9
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +61 -10
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +119 -0
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +33 -0
- package/node_modules/@types/responselike/node_modules/undici-types/eventsource.d.ts +0 -2
- package/node_modules/@types/responselike/node_modules/undici-types/filereader.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +3 -1
- package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/patch.d.ts +0 -38
- package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +0 -2
- package/node_modules/axios/CHANGELOG.md +49 -0
- package/node_modules/axios/README.md +20 -8
- package/node_modules/axios/dist/axios.js +34 -63
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +40 -71
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +40 -71
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +45 -75
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +5 -1
- package/node_modules/axios/index.d.ts +8 -1
- package/node_modules/axios/lib/adapters/http.js +4 -4
- package/node_modules/axios/lib/core/Axios.js +7 -2
- package/node_modules/axios/lib/core/mergeConfig.js +5 -5
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +7 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +2 -2
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +12 -65
- package/node_modules/axios/lib/helpers/validator.js +8 -0
- package/node_modules/axios/package.json +3 -3
- package/node_modules/cross-spawn/README.md +1 -1
- package/node_modules/cross-spawn/package.json +2 -2
- package/package.json +19 -19
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.10.2",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -170,11 +170,6 @@
|
|
|
170
170
|
"githubUsername": "victorperin",
|
|
171
171
|
"url": "https://github.com/victorperin"
|
|
172
172
|
},
|
|
173
|
-
{
|
|
174
|
-
"name": "Yongsheng Zhang",
|
|
175
|
-
"githubUsername": "ZYSzys",
|
|
176
|
-
"url": "https://github.com/ZYSzys"
|
|
177
|
-
},
|
|
178
173
|
{
|
|
179
174
|
"name": "NodeJS Contributors",
|
|
180
175
|
"githubUsername": "NodeJS",
|
|
@@ -217,9 +212,9 @@
|
|
|
217
212
|
},
|
|
218
213
|
"scripts": {},
|
|
219
214
|
"dependencies": {
|
|
220
|
-
"undici-types": "~6.
|
|
215
|
+
"undici-types": "~6.20.0"
|
|
221
216
|
},
|
|
222
217
|
"peerDependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
224
|
-
"typeScriptVersion": "
|
|
218
|
+
"typesPublisherContentHash": "1c1003be2fa8d4f16936ac129ec72142249d4a14af58831bef4147ca7035833b",
|
|
219
|
+
"typeScriptVersion": "5.0"
|
|
225
220
|
}
|
|
@@ -168,6 +168,66 @@ declare module "process" {
|
|
|
168
168
|
libUrl?: string | undefined;
|
|
169
169
|
lts?: string | undefined;
|
|
170
170
|
}
|
|
171
|
+
interface ProcessFeatures {
|
|
172
|
+
/**
|
|
173
|
+
* A boolean value that is `true` if the current Node.js build is caching builtin modules.
|
|
174
|
+
* @since v12.0.0
|
|
175
|
+
*/
|
|
176
|
+
readonly cached_builtins: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* A boolean value that is `true` if the current Node.js build is a debug build.
|
|
179
|
+
* @since v0.5.5
|
|
180
|
+
*/
|
|
181
|
+
readonly debug: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* A boolean value that is `true` if the current Node.js build includes the inspector.
|
|
184
|
+
* @since v11.10.0
|
|
185
|
+
*/
|
|
186
|
+
readonly inspector: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* A boolean value that is `true` if the current Node.js build includes support for IPv6.
|
|
189
|
+
* @since v0.5.3
|
|
190
|
+
*/
|
|
191
|
+
readonly ipv6: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* A boolean value that is `true` if the current Node.js build supports
|
|
194
|
+
* [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v22.x/api/modules.md#loading-ecmascript-modules-using-require).
|
|
195
|
+
* @since v22.10.0
|
|
196
|
+
*/
|
|
197
|
+
readonly require_module: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* A boolean value that is `true` if the current Node.js build includes support for TLS.
|
|
200
|
+
* @since v0.5.3
|
|
201
|
+
*/
|
|
202
|
+
readonly tls: boolean;
|
|
203
|
+
/**
|
|
204
|
+
* A boolean value that is `true` if the current Node.js build includes support for ALPN in TLS.
|
|
205
|
+
* @since v4.8.0
|
|
206
|
+
*/
|
|
207
|
+
readonly tls_alpn: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* A boolean value that is `true` if the current Node.js build includes support for OCSP in TLS.
|
|
210
|
+
* @since v0.11.13
|
|
211
|
+
*/
|
|
212
|
+
readonly tls_ocsp: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* A boolean value that is `true` if the current Node.js build includes support for SNI in TLS.
|
|
215
|
+
* @since v0.5.3
|
|
216
|
+
*/
|
|
217
|
+
readonly tls_sni: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* A value that is `"strip"` if Node.js is run with `--experimental-strip-types`,
|
|
220
|
+
* `"transform"` if Node.js is run with `--experimental-transform-types`, and `false` otherwise.
|
|
221
|
+
* @since v22.10.0
|
|
222
|
+
*/
|
|
223
|
+
readonly typescript: "strip" | "transform" | false;
|
|
224
|
+
/**
|
|
225
|
+
* A boolean value that is `true` if the current Node.js build includes support for libuv.
|
|
226
|
+
* Since it's currently not possible to build Node.js without libuv, this value is always `true`.
|
|
227
|
+
* @since v0.5.3
|
|
228
|
+
*/
|
|
229
|
+
readonly uv: boolean;
|
|
230
|
+
}
|
|
171
231
|
interface ProcessVersions extends Dict<string> {
|
|
172
232
|
http_parser: string;
|
|
173
233
|
node: string;
|
|
@@ -1612,16 +1672,7 @@ declare module "process" {
|
|
|
1612
1672
|
* @since v3.0.0
|
|
1613
1673
|
*/
|
|
1614
1674
|
readonly release: ProcessRelease;
|
|
1615
|
-
features:
|
|
1616
|
-
inspector: boolean;
|
|
1617
|
-
debug: boolean;
|
|
1618
|
-
uv: boolean;
|
|
1619
|
-
ipv6: boolean;
|
|
1620
|
-
tls_alpn: boolean;
|
|
1621
|
-
tls_sni: boolean;
|
|
1622
|
-
tls_ocsp: boolean;
|
|
1623
|
-
tls: boolean;
|
|
1624
|
-
};
|
|
1675
|
+
readonly features: ProcessFeatures;
|
|
1625
1676
|
/**
|
|
1626
1677
|
* `process.umask()` returns the Node.js process's file mode creation mask. Child
|
|
1627
1678
|
* processes inherit the mask from the parent process.
|
|
@@ -365,6 +365,20 @@ declare module "node:test" {
|
|
|
365
365
|
* @default undefined
|
|
366
366
|
*/
|
|
367
367
|
setup?: ((reporter: TestsStream) => void | Promise<void>) | undefined;
|
|
368
|
+
/**
|
|
369
|
+
* An array of CLI flags to pass to the `node` executable when
|
|
370
|
+
* spawning the subprocesses. This option has no effect when `isolation` is `'none`'.
|
|
371
|
+
* @since v22.10.0
|
|
372
|
+
* @default []
|
|
373
|
+
*/
|
|
374
|
+
execArgv?: readonly string[] | undefined;
|
|
375
|
+
/**
|
|
376
|
+
* An array of CLI flags to pass to each test file when spawning the
|
|
377
|
+
* subprocesses. This option has no effect when `isolation` is `'none'`.
|
|
378
|
+
* @since v22.10.0
|
|
379
|
+
* @default []
|
|
380
|
+
*/
|
|
381
|
+
argv?: readonly string[] | undefined;
|
|
368
382
|
/**
|
|
369
383
|
* Allows aborting an in-progress test execution.
|
|
370
384
|
*/
|
|
@@ -400,6 +414,53 @@ declare module "node:test" {
|
|
|
400
414
|
* @default undefined
|
|
401
415
|
*/
|
|
402
416
|
shard?: TestShard | undefined;
|
|
417
|
+
/**
|
|
418
|
+
* enable [code coverage](https://nodejs.org/docs/latest-v22.x/api/test.html#collecting-code-coverage) collection.
|
|
419
|
+
* @since v22.10.0
|
|
420
|
+
* @default false
|
|
421
|
+
*/
|
|
422
|
+
coverage?: boolean | undefined;
|
|
423
|
+
/**
|
|
424
|
+
* Excludes specific files from code coverage
|
|
425
|
+
* using a glob pattern, which can match both absolute and relative file paths.
|
|
426
|
+
* This property is only applicable when `coverage` was set to `true`.
|
|
427
|
+
* If both `coverageExcludeGlobs` and `coverageIncludeGlobs` are provided,
|
|
428
|
+
* files must meet **both** criteria to be included in the coverage report.
|
|
429
|
+
* @since v22.10.0
|
|
430
|
+
* @default undefined
|
|
431
|
+
*/
|
|
432
|
+
coverageExcludeGlobs?: string | readonly string[] | undefined;
|
|
433
|
+
/**
|
|
434
|
+
* Includes specific files in code coverage
|
|
435
|
+
* using a glob pattern, which can match both absolute and relative file paths.
|
|
436
|
+
* This property is only applicable when `coverage` was set to `true`.
|
|
437
|
+
* If both `coverageExcludeGlobs` and `coverageIncludeGlobs` are provided,
|
|
438
|
+
* files must meet **both** criteria to be included in the coverage report.
|
|
439
|
+
* @since v22.10.0
|
|
440
|
+
* @default undefined
|
|
441
|
+
*/
|
|
442
|
+
coverageIncludeGlobs?: string | readonly string[] | undefined;
|
|
443
|
+
/**
|
|
444
|
+
* Require a minimum percent of covered lines. If code
|
|
445
|
+
* coverage does not reach the threshold specified, the process will exit with code `1`.
|
|
446
|
+
* @since v22.10.0
|
|
447
|
+
* @default 0
|
|
448
|
+
*/
|
|
449
|
+
lineCoverage?: number | undefined;
|
|
450
|
+
/**
|
|
451
|
+
* Require a minimum percent of covered branches. If code
|
|
452
|
+
* coverage does not reach the threshold specified, the process will exit with code `1`.
|
|
453
|
+
* @since v22.10.0
|
|
454
|
+
* @default 0
|
|
455
|
+
*/
|
|
456
|
+
branchCoverage?: number | undefined;
|
|
457
|
+
/**
|
|
458
|
+
* Require a minimum percent of covered functions. If code
|
|
459
|
+
* coverage does not reach the threshold specified, the process will exit with code `1`.
|
|
460
|
+
* @since v22.10.0
|
|
461
|
+
* @default 0
|
|
462
|
+
*/
|
|
463
|
+
functionCoverage?: number | undefined;
|
|
403
464
|
}
|
|
404
465
|
/**
|
|
405
466
|
* A successful call to `run()` will return a new `TestsStream` object, streaming a series of events representing the execution of the tests.
|
|
@@ -419,6 +480,7 @@ declare module "node:test" {
|
|
|
419
480
|
addListener(event: "test:start", listener: (data: TestStart) => void): this;
|
|
420
481
|
addListener(event: "test:stderr", listener: (data: TestStderr) => void): this;
|
|
421
482
|
addListener(event: "test:stdout", listener: (data: TestStdout) => void): this;
|
|
483
|
+
addListener(event: "test:summary", listener: (data: TestSummary) => void): this;
|
|
422
484
|
addListener(event: "test:watch:drained", listener: () => void): this;
|
|
423
485
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
424
486
|
emit(event: "test:coverage", data: TestCoverage): boolean;
|
|
@@ -432,6 +494,7 @@ declare module "node:test" {
|
|
|
432
494
|
emit(event: "test:start", data: TestStart): boolean;
|
|
433
495
|
emit(event: "test:stderr", data: TestStderr): boolean;
|
|
434
496
|
emit(event: "test:stdout", data: TestStdout): boolean;
|
|
497
|
+
emit(event: "test:summary", data: TestSummary): boolean;
|
|
435
498
|
emit(event: "test:watch:drained"): boolean;
|
|
436
499
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
437
500
|
on(event: "test:coverage", listener: (data: TestCoverage) => void): this;
|
|
@@ -445,6 +508,7 @@ declare module "node:test" {
|
|
|
445
508
|
on(event: "test:start", listener: (data: TestStart) => void): this;
|
|
446
509
|
on(event: "test:stderr", listener: (data: TestStderr) => void): this;
|
|
447
510
|
on(event: "test:stdout", listener: (data: TestStdout) => void): this;
|
|
511
|
+
on(event: "test:summary", listener: (data: TestSummary) => void): this;
|
|
448
512
|
on(event: "test:watch:drained", listener: () => void): this;
|
|
449
513
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
450
514
|
once(event: "test:coverage", listener: (data: TestCoverage) => void): this;
|
|
@@ -458,6 +522,7 @@ declare module "node:test" {
|
|
|
458
522
|
once(event: "test:start", listener: (data: TestStart) => void): this;
|
|
459
523
|
once(event: "test:stderr", listener: (data: TestStderr) => void): this;
|
|
460
524
|
once(event: "test:stdout", listener: (data: TestStdout) => void): this;
|
|
525
|
+
once(event: "test:summary", listener: (data: TestSummary) => void): this;
|
|
461
526
|
once(event: "test:watch:drained", listener: () => void): this;
|
|
462
527
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
463
528
|
prependListener(event: "test:coverage", listener: (data: TestCoverage) => void): this;
|
|
@@ -471,6 +536,7 @@ declare module "node:test" {
|
|
|
471
536
|
prependListener(event: "test:start", listener: (data: TestStart) => void): this;
|
|
472
537
|
prependListener(event: "test:stderr", listener: (data: TestStderr) => void): this;
|
|
473
538
|
prependListener(event: "test:stdout", listener: (data: TestStdout) => void): this;
|
|
539
|
+
prependListener(event: "test:summary", listener: (data: TestSummary) => void): this;
|
|
474
540
|
prependListener(event: "test:watch:drained", listener: () => void): this;
|
|
475
541
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
476
542
|
prependOnceListener(event: "test:coverage", listener: (data: TestCoverage) => void): this;
|
|
@@ -484,6 +550,7 @@ declare module "node:test" {
|
|
|
484
550
|
prependOnceListener(event: "test:start", listener: (data: TestStart) => void): this;
|
|
485
551
|
prependOnceListener(event: "test:stderr", listener: (data: TestStderr) => void): this;
|
|
486
552
|
prependOnceListener(event: "test:stdout", listener: (data: TestStdout) => void): this;
|
|
553
|
+
prependOnceListener(event: "test:summary", listener: (data: TestSummary) => void): this;
|
|
487
554
|
prependOnceListener(event: "test:watch:drained", listener: () => void): this;
|
|
488
555
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
489
556
|
}
|
|
@@ -2047,6 +2114,57 @@ interface TestStdout {
|
|
|
2047
2114
|
*/
|
|
2048
2115
|
message: string;
|
|
2049
2116
|
}
|
|
2117
|
+
interface TestSummary {
|
|
2118
|
+
/**
|
|
2119
|
+
* An object containing the counts of various test results.
|
|
2120
|
+
*/
|
|
2121
|
+
counts: {
|
|
2122
|
+
/**
|
|
2123
|
+
* The total number of cancelled tests.
|
|
2124
|
+
*/
|
|
2125
|
+
cancelled: number;
|
|
2126
|
+
/**
|
|
2127
|
+
* The total number of passed tests.
|
|
2128
|
+
*/
|
|
2129
|
+
passed: number;
|
|
2130
|
+
/**
|
|
2131
|
+
* The total number of skipped tests.
|
|
2132
|
+
*/
|
|
2133
|
+
skipped: number;
|
|
2134
|
+
/**
|
|
2135
|
+
* The total number of suites run.
|
|
2136
|
+
*/
|
|
2137
|
+
suites: number;
|
|
2138
|
+
/**
|
|
2139
|
+
* The total number of tests run, excluding suites.
|
|
2140
|
+
*/
|
|
2141
|
+
tests: number;
|
|
2142
|
+
/**
|
|
2143
|
+
* The total number of TODO tests.
|
|
2144
|
+
*/
|
|
2145
|
+
todo: number;
|
|
2146
|
+
/**
|
|
2147
|
+
* The total number of top level tests and suites.
|
|
2148
|
+
*/
|
|
2149
|
+
topLevel: number;
|
|
2150
|
+
};
|
|
2151
|
+
/**
|
|
2152
|
+
* The duration of the test run in milliseconds.
|
|
2153
|
+
*/
|
|
2154
|
+
duration_ms: number;
|
|
2155
|
+
/**
|
|
2156
|
+
* The path of the test file that generated the
|
|
2157
|
+
* summary. If the summary corresponds to multiple files, this value is
|
|
2158
|
+
* `undefined`.
|
|
2159
|
+
*/
|
|
2160
|
+
file: string | undefined;
|
|
2161
|
+
/**
|
|
2162
|
+
* Indicates whether or not the test run is considered
|
|
2163
|
+
* successful or not. If any error condition occurs, such as a failing test or
|
|
2164
|
+
* unmet coverage threshold, this value will be set to `false`.
|
|
2165
|
+
*/
|
|
2166
|
+
success: boolean;
|
|
2167
|
+
}
|
|
2050
2168
|
|
|
2051
2169
|
/**
|
|
2052
2170
|
* The `node:test/reporters` module exposes the builtin-reporters for `node:test`.
|
|
@@ -2080,6 +2198,7 @@ declare module "node:test/reporters" {
|
|
|
2080
2198
|
| { type: "test:start"; data: TestStart }
|
|
2081
2199
|
| { type: "test:stderr"; data: TestStderr }
|
|
2082
2200
|
| { type: "test:stdout"; data: TestStdout }
|
|
2201
|
+
| { type: "test:summary"; data: TestSummary }
|
|
2083
2202
|
| { type: "test:watch:drained"; data: undefined };
|
|
2084
2203
|
type TestEventGenerator = AsyncGenerator<TestEvent, void>;
|
|
2085
2204
|
|
|
@@ -445,7 +445,7 @@ declare module "v8" {
|
|
|
445
445
|
* @since v8.0.0
|
|
446
446
|
* @param buffer A buffer returned by {@link serialize}.
|
|
447
447
|
*/
|
|
448
|
-
function deserialize(buffer: NodeJS.
|
|
448
|
+
function deserialize(buffer: NodeJS.ArrayBufferView): any;
|
|
449
449
|
/**
|
|
450
450
|
* The `v8.takeCoverage()` method allows the user to write the coverage started by `NODE_V8_COVERAGE` to disk on demand. This method can be invoked multiple
|
|
451
451
|
* times during the lifetime of the process. Each time the execution counter will
|
|
@@ -594,6 +594,39 @@ declare module "worker_threads" {
|
|
|
594
594
|
* @since v14.5.0, v12.19.0
|
|
595
595
|
*/
|
|
596
596
|
function markAsUntransferable(object: object): void;
|
|
597
|
+
/**
|
|
598
|
+
* Check if an object is marked as not transferable with
|
|
599
|
+
* {@link markAsUntransferable}.
|
|
600
|
+
* @since v21.0.0
|
|
601
|
+
*/
|
|
602
|
+
function isMarkedAsUntransferable(object: object): boolean;
|
|
603
|
+
/**
|
|
604
|
+
* Mark an object as not cloneable. If `object` is used as `message` in
|
|
605
|
+
* a `port.postMessage()` call, an error is thrown. This is a no-op if `object` is a
|
|
606
|
+
* primitive value.
|
|
607
|
+
*
|
|
608
|
+
* This has no effect on `ArrayBuffer`, or any `Buffer` like objects.
|
|
609
|
+
*
|
|
610
|
+
* This operation cannot be undone.
|
|
611
|
+
*
|
|
612
|
+
* ```js
|
|
613
|
+
* const { markAsUncloneable } = require('node:worker_threads');
|
|
614
|
+
*
|
|
615
|
+
* const anyObject = { foo: 'bar' };
|
|
616
|
+
* markAsUncloneable(anyObject);
|
|
617
|
+
* const { port1 } = new MessageChannel();
|
|
618
|
+
* try {
|
|
619
|
+
* // This will throw an error, because anyObject is not cloneable.
|
|
620
|
+
* port1.postMessage(anyObject)
|
|
621
|
+
* } catch (error) {
|
|
622
|
+
* // error.name === 'DataCloneError'
|
|
623
|
+
* }
|
|
624
|
+
* ```
|
|
625
|
+
*
|
|
626
|
+
* There is no equivalent to this API in browsers.
|
|
627
|
+
* @since v22.10.0
|
|
628
|
+
*/
|
|
629
|
+
function markAsUncloneable(object: object): void;
|
|
597
630
|
/**
|
|
598
631
|
* Transfer a `MessagePort` to a different `vm` Context. The original `port` object is rendered unusable, and the returned `MessagePort` instance
|
|
599
632
|
* takes its place.
|
|
@@ -7,9 +7,11 @@ declare namespace Interceptors {
|
|
|
7
7
|
export type DumpInterceptorOpts = { maxSize?: number }
|
|
8
8
|
export type RetryInterceptorOpts = RetryHandler.RetryOptions
|
|
9
9
|
export type RedirectInterceptorOpts = { maxRedirections?: number }
|
|
10
|
-
|
|
10
|
+
export type ResponseErrorInterceptorOpts = { throwOnError: boolean }
|
|
11
|
+
|
|
11
12
|
export function createRedirectInterceptor(opts: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
|
|
12
13
|
export function dump(opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
|
|
13
14
|
export function retry(opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
|
|
14
15
|
export function redirect(opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
|
|
16
|
+
export function responseError(opts?: ResponseErrorInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
|
|
15
17
|
}
|
|
@@ -6,44 +6,6 @@ export type DOMException = typeof globalThis extends { DOMException: infer T }
|
|
|
6
6
|
? T
|
|
7
7
|
: any
|
|
8
8
|
|
|
9
|
-
export type EventTarget = typeof globalThis extends { EventTarget: infer T }
|
|
10
|
-
? T
|
|
11
|
-
: {
|
|
12
|
-
addEventListener(
|
|
13
|
-
type: string,
|
|
14
|
-
listener: any,
|
|
15
|
-
options?: any,
|
|
16
|
-
): void
|
|
17
|
-
dispatchEvent(event: Event): boolean
|
|
18
|
-
removeEventListener(
|
|
19
|
-
type: string,
|
|
20
|
-
listener: any,
|
|
21
|
-
options?: any | boolean,
|
|
22
|
-
): void
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type Event = typeof globalThis extends { Event: infer T }
|
|
26
|
-
? T
|
|
27
|
-
: {
|
|
28
|
-
readonly bubbles: boolean
|
|
29
|
-
cancelBubble: () => void
|
|
30
|
-
readonly cancelable: boolean
|
|
31
|
-
readonly composed: boolean
|
|
32
|
-
composedPath(): [EventTarget?]
|
|
33
|
-
readonly currentTarget: EventTarget | null
|
|
34
|
-
readonly defaultPrevented: boolean
|
|
35
|
-
readonly eventPhase: 0 | 2
|
|
36
|
-
readonly isTrusted: boolean
|
|
37
|
-
preventDefault(): void
|
|
38
|
-
returnValue: boolean
|
|
39
|
-
readonly srcElement: EventTarget | null
|
|
40
|
-
stopImmediatePropagation(): void
|
|
41
|
-
stopPropagation(): void
|
|
42
|
-
readonly target: EventTarget | null
|
|
43
|
-
readonly timeStamp: number
|
|
44
|
-
readonly type: string
|
|
45
|
-
}
|
|
46
|
-
|
|
47
9
|
export interface EventInit {
|
|
48
10
|
bubbles?: boolean
|
|
49
11
|
cancelable?: boolean
|
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.7.9](https://github.com/axios/axios/compare/v1.7.8...v1.7.9) (2024-12-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Reverts
|
|
7
|
+
|
|
8
|
+
* Revert "fix(types): export CJS types from ESM (#6218)" (#6729) ([c44d2f2](https://github.com/axios/axios/commit/c44d2f2316ad289b38997657248ba10de11deb6c)), closes [#6218](https://github.com/axios/axios/issues/6218) [#6729](https://github.com/axios/axios/issues/6729)
|
|
9
|
+
|
|
10
|
+
### Contributors to this release
|
|
11
|
+
|
|
12
|
+
- <img src="https://avatars.githubusercontent.com/u/4814473?v=4&s=18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+596/-108 (#6729 )")
|
|
13
|
+
|
|
14
|
+
## [1.7.8](https://github.com/axios/axios/compare/v1.7.7...v1.7.8) (2024-11-25)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* allow passing a callback as paramsSerializer to buildURL ([#6680](https://github.com/axios/axios/issues/6680)) ([eac4619](https://github.com/axios/axios/commit/eac4619fe2e0926e876cd260ee21e3690381dbb5))
|
|
20
|
+
* **core:** fixed config merging bug ([#6668](https://github.com/axios/axios/issues/6668)) ([5d99fe4](https://github.com/axios/axios/commit/5d99fe4491202a6268c71e5dcc09192359d73cea))
|
|
21
|
+
* fixed width form to not shrink after 'Send Request' button is clicked ([#6644](https://github.com/axios/axios/issues/6644)) ([7ccd5fd](https://github.com/axios/axios/commit/7ccd5fd42402102d38712c32707bf055be72ab54))
|
|
22
|
+
* **http:** add support for File objects as payload in http adapter ([#6588](https://github.com/axios/axios/issues/6588)) ([#6605](https://github.com/axios/axios/issues/6605)) ([6841d8d](https://github.com/axios/axios/commit/6841d8d18ddc71cc1bd202ffcfddb3f95622eef3))
|
|
23
|
+
* **http:** fixed proxy-from-env module import ([#5222](https://github.com/axios/axios/issues/5222)) ([12b3295](https://github.com/axios/axios/commit/12b32957f1258aee94ef859809ed39f8f88f9dfa))
|
|
24
|
+
* **http:** use `globalThis.TextEncoder` when available ([#6634](https://github.com/axios/axios/issues/6634)) ([df956d1](https://github.com/axios/axios/commit/df956d18febc9100a563298dfdf0f102c3d15410))
|
|
25
|
+
* ios11 breaks when build ([#6608](https://github.com/axios/axios/issues/6608)) ([7638952](https://github.com/axios/axios/commit/763895270f7b50c7c780c3c9807ae8635de952cd))
|
|
26
|
+
* **types:** add missing types for mergeConfig function ([#6590](https://github.com/axios/axios/issues/6590)) ([00de614](https://github.com/axios/axios/commit/00de614cd07b7149af335e202aef0e076c254f49))
|
|
27
|
+
* **types:** export CJS types from ESM ([#6218](https://github.com/axios/axios/issues/6218)) ([c71811b](https://github.com/axios/axios/commit/c71811b00f2fcff558e4382ba913bdac4ad7200e))
|
|
28
|
+
* updated stream aborted error message to be more clear ([#6615](https://github.com/axios/axios/issues/6615)) ([cc3217a](https://github.com/axios/axios/commit/cc3217a612024d83a663722a56d7a98d8759c6d5))
|
|
29
|
+
* use URL API instead of DOM to fix a potential vulnerability warning; ([#6714](https://github.com/axios/axios/issues/6714)) ([0a8d6e1](https://github.com/axios/axios/commit/0a8d6e19da5b9899a2abafaaa06a75ee548597db))
|
|
30
|
+
|
|
31
|
+
### Contributors to this release
|
|
32
|
+
|
|
33
|
+
- <img src="https://avatars.githubusercontent.com/u/779047?v=4&s=18" alt="avatar" width="18"/> [Remco Haszing](https://github.com/remcohaszing "+108/-596 (#6218 )")
|
|
34
|
+
- <img src="https://avatars.githubusercontent.com/u/4814473?v=4&s=18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+281/-19 (#6640 #6619 )")
|
|
35
|
+
- <img src="https://avatars.githubusercontent.com/u/140250471?v=4&s=18" alt="avatar" width="18"/> [Aayush Yadav](https://github.com/aayushyadav020 "+124/-111 (#6617 )")
|
|
36
|
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+12/-65 (#6714 )")
|
|
37
|
+
- <img src="https://avatars.githubusercontent.com/u/479715?v=4&s=18" alt="avatar" width="18"/> [Ell Bradshaw](https://github.com/cincodenada "+29/-0 (#6489 )")
|
|
38
|
+
- <img src="https://avatars.githubusercontent.com/u/60218780?v=4&s=18" alt="avatar" width="18"/> [Amit Saini](https://github.com/amitsainii "+13/-3 (#5237 )")
|
|
39
|
+
- <img src="https://avatars.githubusercontent.com/u/19817867?v=4&s=18" alt="avatar" width="18"/> [Tommaso Paulon](https://github.com/guuido "+14/-1 (#6680 )")
|
|
40
|
+
- <img src="https://avatars.githubusercontent.com/u/63336443?v=4&s=18" alt="avatar" width="18"/> [Akki](https://github.com/Aakash-Rana "+5/-5 (#6668 )")
|
|
41
|
+
- <img src="https://avatars.githubusercontent.com/u/20028934?v=4&s=18" alt="avatar" width="18"/> [Sampo Silvennoinen](https://github.com/stscoundrel "+3/-3 (#6633 )")
|
|
42
|
+
- <img src="https://avatars.githubusercontent.com/u/1174718?v=4&s=18" alt="avatar" width="18"/> [Kasper Isager Dalsgarð](https://github.com/kasperisager "+2/-2 (#6634 )")
|
|
43
|
+
- <img src="https://avatars.githubusercontent.com/u/3709715?v=4&s=18" alt="avatar" width="18"/> [Christian Clauss](https://github.com/cclauss "+4/-0 (#6683 )")
|
|
44
|
+
- <img src="https://avatars.githubusercontent.com/u/1639119?v=4&s=18" alt="avatar" width="18"/> [Pavan Welihinda](https://github.com/pavan168 "+2/-2 (#5222 )")
|
|
45
|
+
- <img src="https://avatars.githubusercontent.com/u/5742900?v=4&s=18" alt="avatar" width="18"/> [Taylor Flatt](https://github.com/taylorflatt "+2/-2 (#6615 )")
|
|
46
|
+
- <img src="https://avatars.githubusercontent.com/u/79452224?v=4&s=18" alt="avatar" width="18"/> [Kenzo Wada](https://github.com/Kenzo-Wada "+2/-2 (#6608 )")
|
|
47
|
+
- <img src="https://avatars.githubusercontent.com/u/50064240?v=4&s=18" alt="avatar" width="18"/> [Ngole Lawson](https://github.com/echelonnought "+3/-0 (#6644 )")
|
|
48
|
+
- <img src="https://avatars.githubusercontent.com/u/1262198?v=4&s=18" alt="avatar" width="18"/> [Haven](https://github.com/Baoyx007 "+3/-0 (#6590 )")
|
|
49
|
+
- <img src="https://avatars.githubusercontent.com/u/149003676?v=4&s=18" alt="avatar" width="18"/> [Shrivali Dutt](https://github.com/shrivalidutt "+1/-1 (#6637 )")
|
|
50
|
+
- <img src="https://avatars.githubusercontent.com/u/1304290?v=4&s=18" alt="avatar" width="18"/> [Henco Appel](https://github.com/hencoappel "+1/-1 (#6605 )")
|
|
51
|
+
|
|
3
52
|
## [1.7.7](https://github.com/axios/axios/compare/v1.7.6...v1.7.7) (2024-08-31)
|
|
4
53
|
|
|
5
54
|
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
<h3 align="center"> 🥇 Gold sponsors <br> </h3> <table align="center" width="100%"><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://
|
|
3
|
-
</td><td align="center" width="33.333333333333336%"> <a href="https://
|
|
4
|
-
</td><td align="center" width="33.333333333333336%"> <a href="https://www.
|
|
5
|
-
</td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://
|
|
6
|
-
</td><td align="center" width="33.333333333333336%"> <a href="https://
|
|
2
|
+
<h3 align="center"> 🥇 Gold sponsors <br> </h3> <table align="center" width="100%"><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://stytch.com/?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=website-link&utm_campaign=axios-http" style="padding: 10px; display: inline-block"> <picture> <source width="200px" height="38px" media="(prefers-color-scheme: dark)" srcset="https://axios-http.com/assets/sponsors/stytch_white.png"> <img width="200px" height="38px" src="https://axios-http.com/assets/sponsors/stytch.png" alt="Stytch"/> </picture> </a> <p align="center" title="API-first authentication, authorization, and fraud prevention">API-first authentication, authorization, and fraud prevention</p> <p align="center"> <a href="https://stytch.com/?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=website-link&utm_campaign=axios-http"><b>Website</b></a> | <a href="https://stytch.com/docs?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=docs-link&utm_campaign=axios-http"><b>Documentation</b></a> | <a href="https://github.com/stytchauth/stytch-node?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=node-sdk&utm_campaign=axios-http"><b>Node.js</b></a> </p>
|
|
3
|
+
</td><td align="center" width="33.333333333333336%"> <a href="https://www.principal.com/about-us?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block"> <img width="133px" height="43px" src="https://axios-http.com/assets/sponsors/principal.svg" alt="Principal Financial Group"/> </a> <p align="center" title="We’re bound by one common purpose: to give you the financial tools, resources and information you need to live your best life.">We’re bound by one common purpose: to give you the financial tools, resources and information you ne...</p> <p align="center"> <a href="https://www.principal.com/about-us?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship"><b>www.principal.com</b></a> </p>
|
|
4
|
+
</td><td align="center" width="33.333333333333336%"> <a href="https://www.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship" style="padding: 10px; display: inline-block"> <picture> <source width="200px" height="52px" media="(prefers-color-scheme: dark)" srcset="https://axios-http.com/assets/sponsors/descope_white.png"> <img width="200px" height="52px" src="https://axios-http.com/assets/sponsors/descope.png" alt="Descope"/> </picture> </a> <p align="center" title="Hi, we're Descope! We are building something in the authentication space for app developers and can’t wait to place it in your hands.">Hi, we're Descope! We are building something in the authentication space for app developers and...</p> <p align="center"> <a href="https://www.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship"><b>Website</b></a> | <a href="https://docs.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship"><b>Documentation</b></a> | <a href="https://www.descope.com/community?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship"><b>Community</b></a> </p>
|
|
5
|
+
</td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://buzzoid.com/buy-instagram-followers/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block"> <img width="62px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/buzzoid-buy-instagram-followers.png" alt="Buzzoid - Buy Instagram Followers"/> </a> <p align="center" title="At Buzzoid, you can buy Instagram followers quickly, safely, and easily with just a few clicks. Rated world's #1 IG service since 2012.">At Buzzoid, you can buy Instagram followers quickly, safely, and easily with just a few clicks. Rate...</p> <p align="center"> <a href="https://buzzoid.com/buy-instagram-followers/?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship"><b>buzzoid.com</b></a> </p>
|
|
6
|
+
</td><td align="center" width="33.333333333333336%"> <a href="https://www.famety.com/buy-tiktok-likes?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block"> <img width="70px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/famety-buy-instagram-followers.png" alt="Famety - Buy Instagram Followers"/> </a> <p align="center" title="At Famety, you can grow your social media following quickly, safely, and easily with just a few clicks. Rated the world’s #1 social media service since 2013.">At Famety, you can grow your social media following quickly, safely, and easily with just a few clic...</p> <p align="center"> <a href="https://www.famety.com/buy-tiktok-likes?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship"><b>www.famety.com</b></a> </p>
|
|
7
|
+
</td><td align="center" width="33.333333333333336%"> <a href="https://poprey.com/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block"> <img width="70px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/instagram-likes.png" alt="Poprey - Buy Instagram Likes"/> </a> <p align="center" title="Buy Instagram Likes">Buy Instagram Likes</p> <p align="center"> <a href="https://poprey.com/?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship"><b>poprey.com</b></a> </p>
|
|
8
|
+
</td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://opencollective.com/axios/contribute">💜 Become a sponsor</a>
|
|
9
|
+
</td><td align="center" width="33.333333333333336%"> <a href="https://opencollective.com/axios/contribute">💜 Become a sponsor</a>
|
|
10
|
+
</td><td align="center" width="33.333333333333336%"> <a href="https://opencollective.com/axios/contribute">💜 Become a sponsor</a>
|
|
7
11
|
</td></tr></table>
|
|
8
12
|
|
|
9
13
|
<!--<div>marker</div>-->
|
|
@@ -97,8 +101,8 @@
|
|
|
97
101
|
|
|
98
102
|
## Browser Support
|
|
99
103
|
|
|
100
|
-
 |  |  |  |  |
|
|
101
|
-
--- | --- | --- | --- | --- |
|
|
104
|
+
 |  |  |  |  |
|
|
105
|
+
--- | --- | --- | --- | --- |
|
|
102
106
|
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
|
|
103
107
|
|
|
104
108
|
[](https://saucelabs.com/u/axios)
|
|
@@ -153,6 +157,12 @@ const axios = require('axios');
|
|
|
153
157
|
console.log(axios.isCancel('something'));
|
|
154
158
|
```
|
|
155
159
|
|
|
160
|
+
For some bundlers and some ES6 linter's you may need to do the following:
|
|
161
|
+
|
|
162
|
+
```js
|
|
163
|
+
import { default as axios } from 'axios';
|
|
164
|
+
```
|
|
165
|
+
|
|
156
166
|
For cases where something went wrong when trying to import a module into a custom or legacy environment,
|
|
157
167
|
you can try importing the module package directly:
|
|
158
168
|
|
|
@@ -759,7 +769,7 @@ axios.interceptors.request.use(function (config) {
|
|
|
759
769
|
```
|
|
760
770
|
|
|
761
771
|
If you want to execute a particular interceptor based on a runtime check,
|
|
762
|
-
you can add a `runWhen` function to the options object. The interceptor will not be executed **if and only if** the return
|
|
772
|
+
you can add a `runWhen` function to the options object. The request interceptor will not be executed **if and only if** the return
|
|
763
773
|
of `runWhen` is `false`. The function will be called with the config
|
|
764
774
|
object (don't forget that you can bind your own arguments to it as well.) This can be handy when you have an
|
|
765
775
|
asynchronous request interceptor that only needs to run at certain times.
|
|
@@ -774,6 +784,8 @@ axios.interceptors.request.use(function (config) {
|
|
|
774
784
|
}, null, { runWhen: onGetCall });
|
|
775
785
|
```
|
|
776
786
|
|
|
787
|
+
> **Note:** options parameter(having `synchronous` and `runWhen` properties) is only supported for request interceptors at the moment.
|
|
788
|
+
|
|
777
789
|
### Multiple Interceptors
|
|
778
790
|
|
|
779
791
|
Given you add multiple response interceptors
|