Aero-Ex commited on
Commit
04e49f6
·
verified ·
1 Parent(s): 6b6a1ce

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. ui/node_modules/archiver/LICENSE +22 -0
  2. ui/node_modules/archiver/README.md +92 -0
  3. ui/node_modules/archiver/index.js +84 -0
  4. ui/node_modules/archiver/package.json +60 -0
  5. ui/node_modules/arg/LICENSE.md +21 -0
  6. ui/node_modules/arg/README.md +317 -0
  7. ui/node_modules/arg/index.d.ts +44 -0
  8. ui/node_modules/arg/index.js +195 -0
  9. ui/node_modules/arg/package.json +28 -0
  10. ui/node_modules/attr-accept/LICENSE +22 -0
  11. ui/node_modules/attr-accept/README.md +48 -0
  12. ui/node_modules/attr-accept/index.d.ts +1 -0
  13. ui/node_modules/attr-accept/package.json +115 -0
  14. ui/node_modules/axios/CHANGELOG.md +1295 -0
  15. ui/node_modules/axios/LICENSE +7 -0
  16. ui/node_modules/axios/MIGRATION_GUIDE.md +3 -0
  17. ui/node_modules/axios/README.md +1756 -0
  18. ui/node_modules/axios/index.d.cts +568 -0
  19. ui/node_modules/axios/index.d.ts +581 -0
  20. ui/node_modules/axios/index.js +43 -0
  21. ui/node_modules/axios/package.json +234 -0
  22. ui/node_modules/bare-events/LICENSE +201 -0
  23. ui/node_modules/bare-events/README.md +25 -0
  24. ui/node_modules/bare-events/index.d.ts +92 -0
  25. ui/node_modules/bare-events/index.js +355 -0
  26. ui/node_modules/bare-events/package.json +39 -0
  27. ui/node_modules/bindings/bindings.js +221 -0
  28. ui/node_modules/cacache/index.js +46 -0
  29. ui/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  30. ui/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  31. ui/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  32. ui/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  33. ui/node_modules/call-bind-apply-helpers/README.md +62 -0
  34. ui/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  35. ui/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  36. ui/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  37. ui/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  38. ui/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  39. ui/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  40. ui/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  41. ui/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  42. ui/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  43. ui/node_modules/call-bind-apply-helpers/index.js +15 -0
  44. ui/node_modules/call-bind-apply-helpers/package.json +85 -0
  45. ui/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  46. ui/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  47. ui/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  48. ui/node_modules/camelcase-css/README.md +27 -0
  49. ui/node_modules/camelcase-css/index-es5.js +24 -0
  50. ui/node_modules/camelcase-css/index.js +30 -0
ui/node_modules/archiver/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2012-2014 Chris Talkington, contributors.
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
ui/node_modules/archiver/README.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Archiver
2
+
3
+ A streaming interface for archive generation
4
+
5
+ Visit the [API documentation](https://www.archiverjs.com/) for a list of all methods available.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install archiver --save
11
+ ```
12
+
13
+ ## Quick Start
14
+
15
+ ```js
16
+ // require modules
17
+ const fs = require('fs');
18
+ const archiver = require('archiver');
19
+
20
+ // create a file to stream archive data to.
21
+ const output = fs.createWriteStream(__dirname + '/example.zip');
22
+ const archive = archiver('zip', {
23
+ zlib: { level: 9 } // Sets the compression level.
24
+ });
25
+
26
+ // listen for all archive data to be written
27
+ // 'close' event is fired only when a file descriptor is involved
28
+ output.on('close', function() {
29
+ console.log(archive.pointer() + ' total bytes');
30
+ console.log('archiver has been finalized and the output file descriptor has closed.');
31
+ });
32
+
33
+ // This event is fired when the data source is drained no matter what was the data source.
34
+ // It is not part of this library but rather from the NodeJS Stream API.
35
+ // @see: https://nodejs.org/api/stream.html#stream_event_end
36
+ output.on('end', function() {
37
+ console.log('Data has been drained');
38
+ });
39
+
40
+ // good practice to catch warnings (ie stat failures and other non-blocking errors)
41
+ archive.on('warning', function(err) {
42
+ if (err.code === 'ENOENT') {
43
+ // log warning
44
+ } else {
45
+ // throw error
46
+ throw err;
47
+ }
48
+ });
49
+
50
+ // good practice to catch this error explicitly
51
+ archive.on('error', function(err) {
52
+ throw err;
53
+ });
54
+
55
+ // pipe archive data to the file
56
+ archive.pipe(output);
57
+
58
+ // append a file from stream
59
+ const file1 = __dirname + '/file1.txt';
60
+ archive.append(fs.createReadStream(file1), { name: 'file1.txt' });
61
+
62
+ // append a file from string
63
+ archive.append('string cheese!', { name: 'file2.txt' });
64
+
65
+ // append a file from buffer
66
+ const buffer3 = Buffer.from('buff it!');
67
+ archive.append(buffer3, { name: 'file3.txt' });
68
+
69
+ // append a file
70
+ archive.file('file1.txt', { name: 'file4.txt' });
71
+
72
+ // append files from a sub-directory and naming it `new-subdir` within the archive
73
+ archive.directory('subdir/', 'new-subdir');
74
+
75
+ // append files from a sub-directory, putting its contents at the root of archive
76
+ archive.directory('subdir/', false);
77
+
78
+ // append files from a glob pattern
79
+ archive.glob('file*.txt', {cwd:__dirname});
80
+
81
+ // finalize the archive (ie we are done appending files but streams have to finish yet)
82
+ // 'close', 'end' or 'finish' may be fired right after calling this method so register to them beforehand
83
+ archive.finalize();
84
+ ```
85
+
86
+ ## Formats
87
+
88
+ Archiver ships with out of the box support for TAR and ZIP archives.
89
+
90
+ You can register additional formats with `registerFormat`.
91
+
92
+ You can check if format already exists before to register a new one with `isRegisteredFormat`.
ui/node_modules/archiver/index.js ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Archiver Vending
3
+ *
4
+ * @ignore
5
+ * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
6
+ * @copyright (c) 2012-2014 Chris Talkington, contributors.
7
+ */
8
+ var Archiver = require('./lib/core');
9
+
10
+ var formats = {};
11
+
12
+ /**
13
+ * Dispenses a new Archiver instance.
14
+ *
15
+ * @constructor
16
+ * @param {String} format The archive format to use.
17
+ * @param {Object} options See [Archiver]{@link Archiver}
18
+ * @return {Archiver}
19
+ */
20
+ var vending = function(format, options) {
21
+ return vending.create(format, options);
22
+ };
23
+
24
+ /**
25
+ * Creates a new Archiver instance.
26
+ *
27
+ * @param {String} format The archive format to use.
28
+ * @param {Object} options See [Archiver]{@link Archiver}
29
+ * @return {Archiver}
30
+ */
31
+ vending.create = function(format, options) {
32
+ if (formats[format]) {
33
+ var instance = new Archiver(format, options);
34
+ instance.setFormat(format);
35
+ instance.setModule(new formats[format](options));
36
+
37
+ return instance;
38
+ } else {
39
+ throw new Error('create(' + format + '): format not registered');
40
+ }
41
+ };
42
+
43
+ /**
44
+ * Registers a format for use with archiver.
45
+ *
46
+ * @param {String} format The name of the format.
47
+ * @param {Function} module The function for archiver to interact with.
48
+ * @return void
49
+ */
50
+ vending.registerFormat = function(format, module) {
51
+ if (formats[format]) {
52
+ throw new Error('register(' + format + '): format already registered');
53
+ }
54
+
55
+ if (typeof module !== 'function') {
56
+ throw new Error('register(' + format + '): format module invalid');
57
+ }
58
+
59
+ if (typeof module.prototype.append !== 'function' || typeof module.prototype.finalize !== 'function') {
60
+ throw new Error('register(' + format + '): format module missing methods');
61
+ }
62
+
63
+ formats[format] = module;
64
+ };
65
+
66
+ /**
67
+ * Check if the format is already registered.
68
+ *
69
+ * @param {String} format the name of the format.
70
+ * @return boolean
71
+ */
72
+ vending.isRegisteredFormat = function (format) {
73
+ if (formats[format]) {
74
+ return true;
75
+ }
76
+
77
+ return false;
78
+ };
79
+
80
+ vending.registerFormat('zip', require('./lib/plugins/zip'));
81
+ vending.registerFormat('tar', require('./lib/plugins/tar'));
82
+ vending.registerFormat('json', require('./lib/plugins/json'));
83
+
84
+ module.exports = vending;
ui/node_modules/archiver/package.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "archiver",
3
+ "version": "7.0.1",
4
+ "description": "a streaming interface for archive generation",
5
+ "homepage": "https://github.com/archiverjs/node-archiver",
6
+ "author": {
7
+ "name": "Chris Talkington",
8
+ "url": "http://christalkington.com/"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/archiverjs/node-archiver.git"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/archiverjs/node-archiver/issues"
16
+ },
17
+ "license": "MIT",
18
+ "main": "index.js",
19
+ "files": [
20
+ "index.js",
21
+ "lib"
22
+ ],
23
+ "engines": {
24
+ "node": ">= 14"
25
+ },
26
+ "scripts": {
27
+ "test": "mocha --reporter dot",
28
+ "bench": "node benchmark/simple/pack-zip.js"
29
+ },
30
+ "dependencies": {
31
+ "archiver-utils": "^5.0.2",
32
+ "async": "^3.2.4",
33
+ "buffer-crc32": "^1.0.0",
34
+ "readable-stream": "^4.0.0",
35
+ "readdir-glob": "^1.1.2",
36
+ "tar-stream": "^3.0.0",
37
+ "zip-stream": "^6.0.1"
38
+ },
39
+ "devDependencies": {
40
+ "archiver-jsdoc-theme": "1.1.3",
41
+ "chai": "4.4.1",
42
+ "jsdoc": "4.0.2",
43
+ "mkdirp": "3.0.1",
44
+ "mocha": "10.3.0",
45
+ "rimraf": "5.0.5",
46
+ "stream-bench": "0.1.2",
47
+ "tar": "6.2.0",
48
+ "yauzl": "3.1.2"
49
+ },
50
+ "keywords": [
51
+ "archive",
52
+ "archiver",
53
+ "stream",
54
+ "zip",
55
+ "tar"
56
+ ],
57
+ "publishConfig": {
58
+ "registry": "https://registry.npmjs.org/"
59
+ }
60
+ }
ui/node_modules/arg/LICENSE.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Vercel, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
ui/node_modules/arg/README.md ADDED
@@ -0,0 +1,317 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Arg
2
+
3
+ `arg` is an unopinionated, no-frills CLI argument parser.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install arg
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ `arg()` takes either 1 or 2 arguments:
14
+
15
+ 1. Command line specification object (see below)
16
+ 2. Parse options (_Optional_, defaults to `{permissive: false, argv: process.argv.slice(2), stopAtPositional: false}`)
17
+
18
+ It returns an object with any values present on the command-line (missing options are thus
19
+ missing from the resulting object). Arg performs no validation/requirement checking - we
20
+ leave that up to the application.
21
+
22
+ All parameters that aren't consumed by options (commonly referred to as "extra" parameters)
23
+ are added to `result._`, which is _always_ an array (even if no extra parameters are passed,
24
+ in which case an empty array is returned).
25
+
26
+ ```javascript
27
+ const arg = require('arg');
28
+
29
+ // `options` is an optional parameter
30
+ const args = arg(
31
+ spec,
32
+ (options = { permissive: false, argv: process.argv.slice(2) })
33
+ );
34
+ ```
35
+
36
+ For example:
37
+
38
+ ```console
39
+ $ node ./hello.js --verbose -vvv --port=1234 -n 'My name' foo bar --tag qux --tag=qix -- --foobar
40
+ ```
41
+
42
+ ```javascript
43
+ // hello.js
44
+ const arg = require('arg');
45
+
46
+ const args = arg({
47
+ // Types
48
+ '--help': Boolean,
49
+ '--version': Boolean,
50
+ '--verbose': arg.COUNT, // Counts the number of times --verbose is passed
51
+ '--port': Number, // --port <number> or --port=<number>
52
+ '--name': String, // --name <string> or --name=<string>
53
+ '--tag': [String], // --tag <string> or --tag=<string>
54
+
55
+ // Aliases
56
+ '-v': '--verbose',
57
+ '-n': '--name', // -n <string>; result is stored in --name
58
+ '--label': '--name' // --label <string> or --label=<string>;
59
+ // result is stored in --name
60
+ });
61
+
62
+ console.log(args);
63
+ /*
64
+ {
65
+ _: ["foo", "bar", "--foobar"],
66
+ '--port': 1234,
67
+ '--verbose': 4,
68
+ '--name': "My name",
69
+ '--tag': ["qux", "qix"]
70
+ }
71
+ */
72
+ ```
73
+
74
+ The values for each key=&gt;value pair is either a type (function or [function]) or a string (indicating an alias).
75
+
76
+ - In the case of a function, the string value of the argument's value is passed to it,
77
+ and the return value is used as the ultimate value.
78
+
79
+ - In the case of an array, the only element _must_ be a type function. Array types indicate
80
+ that the argument may be passed multiple times, and as such the resulting value in the returned
81
+ object is an array with all of the values that were passed using the specified flag.
82
+
83
+ - In the case of a string, an alias is established. If a flag is passed that matches the _key_,
84
+ then the _value_ is substituted in its place.
85
+
86
+ Type functions are passed three arguments:
87
+
88
+ 1. The parameter value (always a string)
89
+ 2. The parameter name (e.g. `--label`)
90
+ 3. The previous value for the destination (useful for reduce-like operations or for supporting `-v` multiple times, etc.)
91
+
92
+ This means the built-in `String`, `Number`, and `Boolean` type constructors "just work" as type functions.
93
+
94
+ Note that `Boolean` and `[Boolean]` have special treatment - an option argument is _not_ consumed or passed, but instead `true` is
95
+ returned. These options are called "flags".
96
+
97
+ For custom handlers that wish to behave as flags, you may pass the function through `arg.flag()`:
98
+
99
+ ```javascript
100
+ const arg = require('arg');
101
+
102
+ const argv = [
103
+ '--foo',
104
+ 'bar',
105
+ '-ff',
106
+ 'baz',
107
+ '--foo',
108
+ '--foo',
109
+ 'qux',
110
+ '-fff',
111
+ 'qix'
112
+ ];
113
+
114
+ function myHandler(value, argName, previousValue) {
115
+ /* `value` is always `true` */
116
+ return 'na ' + (previousValue || 'batman!');
117
+ }
118
+
119
+ const args = arg(
120
+ {
121
+ '--foo': arg.flag(myHandler),
122
+ '-f': '--foo'
123
+ },
124
+ {
125
+ argv
126
+ }
127
+ );
128
+
129
+ console.log(args);
130
+ /*
131
+ {
132
+ _: ['bar', 'baz', 'qux', 'qix'],
133
+ '--foo': 'na na na na na na na na batman!'
134
+ }
135
+ */
136
+ ```
137
+
138
+ As well, `arg` supplies a helper argument handler called `arg.COUNT`, which equivalent to a `[Boolean]` argument's `.length`
139
+ property - effectively counting the number of times the boolean flag, denoted by the key, is passed on the command line..
140
+ For example, this is how you could implement `ssh`'s multiple levels of verbosity (`-vvvv` being the most verbose).
141
+
142
+ ```javascript
143
+ const arg = require('arg');
144
+
145
+ const argv = ['-AAAA', '-BBBB'];
146
+
147
+ const args = arg(
148
+ {
149
+ '-A': arg.COUNT,
150
+ '-B': [Boolean]
151
+ },
152
+ {
153
+ argv
154
+ }
155
+ );
156
+
157
+ console.log(args);
158
+ /*
159
+ {
160
+ _: [],
161
+ '-A': 4,
162
+ '-B': [true, true, true, true]
163
+ }
164
+ */
165
+ ```
166
+
167
+ ### Options
168
+
169
+ If a second parameter is specified and is an object, it specifies parsing options to modify the behavior of `arg()`.
170
+
171
+ #### `argv`
172
+
173
+ If you have already sliced or generated a number of raw arguments to be parsed (as opposed to letting `arg`
174
+ slice them from `process.argv`) you may specify them in the `argv` option.
175
+
176
+ For example:
177
+
178
+ ```javascript
179
+ const args = arg(
180
+ {
181
+ '--foo': String
182
+ },
183
+ {
184
+ argv: ['hello', '--foo', 'world']
185
+ }
186
+ );
187
+ ```
188
+
189
+ results in:
190
+
191
+ ```javascript
192
+ const args = {
193
+ _: ['hello'],
194
+ '--foo': 'world'
195
+ };
196
+ ```
197
+
198
+ #### `permissive`
199
+
200
+ When `permissive` set to `true`, `arg` will push any unknown arguments
201
+ onto the "extra" argument array (`result._`) instead of throwing an error about
202
+ an unknown flag.
203
+
204
+ For example:
205
+
206
+ ```javascript
207
+ const arg = require('arg');
208
+
209
+ const argv = [
210
+ '--foo',
211
+ 'hello',
212
+ '--qux',
213
+ 'qix',
214
+ '--bar',
215
+ '12345',
216
+ 'hello again'
217
+ ];
218
+
219
+ const args = arg(
220
+ {
221
+ '--foo': String,
222
+ '--bar': Number
223
+ },
224
+ {
225
+ argv,
226
+ permissive: true
227
+ }
228
+ );
229
+ ```
230
+
231
+ results in:
232
+
233
+ ```javascript
234
+ const args = {
235
+ _: ['--qux', 'qix', 'hello again'],
236
+ '--foo': 'hello',
237
+ '--bar': 12345
238
+ };
239
+ ```
240
+
241
+ #### `stopAtPositional`
242
+
243
+ When `stopAtPositional` is set to `true`, `arg` will halt parsing at the first
244
+ positional argument.
245
+
246
+ For example:
247
+
248
+ ```javascript
249
+ const arg = require('arg');
250
+
251
+ const argv = ['--foo', 'hello', '--bar'];
252
+
253
+ const args = arg(
254
+ {
255
+ '--foo': Boolean,
256
+ '--bar': Boolean
257
+ },
258
+ {
259
+ argv,
260
+ stopAtPositional: true
261
+ }
262
+ );
263
+ ```
264
+
265
+ results in:
266
+
267
+ ```javascript
268
+ const args = {
269
+ _: ['hello', '--bar'],
270
+ '--foo': true
271
+ };
272
+ ```
273
+
274
+ ### Errors
275
+
276
+ Some errors that `arg` throws provide a `.code` property in order to aid in recovering from user error, or to
277
+ differentiate between user error and developer error (bug).
278
+
279
+ ##### ARG_UNKNOWN_OPTION
280
+
281
+ If an unknown option (not defined in the spec object) is passed, an error with code `ARG_UNKNOWN_OPTION` will be thrown:
282
+
283
+ ```js
284
+ // cli.js
285
+ try {
286
+ require('arg')({ '--hi': String });
287
+ } catch (err) {
288
+ if (err.code === 'ARG_UNKNOWN_OPTION') {
289
+ console.log(err.message);
290
+ } else {
291
+ throw err;
292
+ }
293
+ }
294
+ ```
295
+
296
+ ```shell
297
+ node cli.js --extraneous true
298
+ Unknown or unexpected option: --extraneous
299
+ ```
300
+
301
+ # FAQ
302
+
303
+ A few questions and answers that have been asked before:
304
+
305
+ ### How do I require an argument with `arg`?
306
+
307
+ Do the assertion yourself, such as:
308
+
309
+ ```javascript
310
+ const args = arg({ '--name': String });
311
+
312
+ if (!args['--name']) throw new Error('missing required argument: --name');
313
+ ```
314
+
315
+ # License
316
+
317
+ Released under the [MIT License](LICENSE.md).
ui/node_modules/arg/index.d.ts ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ declare function arg<T extends arg.Spec>(
2
+ spec: T,
3
+ options?: arg.Options
4
+ ): arg.Result<T>;
5
+
6
+ declare namespace arg {
7
+ export const flagSymbol: unique symbol;
8
+
9
+ export function flag<T>(fn: T): T & { [arg.flagSymbol]: true };
10
+
11
+ export const COUNT: Handler<number> & { [arg.flagSymbol]: true };
12
+
13
+ export type Handler<T = any> = (
14
+ value: string,
15
+ name: string,
16
+ previousValue?: T
17
+ ) => T;
18
+
19
+ export class ArgError extends Error {
20
+ constructor(message: string, code: string);
21
+
22
+ code: string;
23
+ }
24
+
25
+ export interface Spec {
26
+ [key: string]: string | Handler | [Handler];
27
+ }
28
+
29
+ export type Result<T extends Spec> = { _: string[] } & {
30
+ [K in keyof T]?: T[K] extends Handler
31
+ ? ReturnType<T[K]>
32
+ : T[K] extends [Handler]
33
+ ? Array<ReturnType<T[K][0]>>
34
+ : never;
35
+ };
36
+
37
+ export interface Options {
38
+ argv?: string[];
39
+ permissive?: boolean;
40
+ stopAtPositional?: boolean;
41
+ }
42
+ }
43
+
44
+ export = arg;
ui/node_modules/arg/index.js ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const flagSymbol = Symbol('arg flag');
2
+
3
+ class ArgError extends Error {
4
+ constructor(msg, code) {
5
+ super(msg);
6
+ this.name = 'ArgError';
7
+ this.code = code;
8
+
9
+ Object.setPrototypeOf(this, ArgError.prototype);
10
+ }
11
+ }
12
+
13
+ function arg(
14
+ opts,
15
+ {
16
+ argv = process.argv.slice(2),
17
+ permissive = false,
18
+ stopAtPositional = false
19
+ } = {}
20
+ ) {
21
+ if (!opts) {
22
+ throw new ArgError(
23
+ 'argument specification object is required',
24
+ 'ARG_CONFIG_NO_SPEC'
25
+ );
26
+ }
27
+
28
+ const result = { _: [] };
29
+
30
+ const aliases = {};
31
+ const handlers = {};
32
+
33
+ for (const key of Object.keys(opts)) {
34
+ if (!key) {
35
+ throw new ArgError(
36
+ 'argument key cannot be an empty string',
37
+ 'ARG_CONFIG_EMPTY_KEY'
38
+ );
39
+ }
40
+
41
+ if (key[0] !== '-') {
42
+ throw new ArgError(
43
+ `argument key must start with '-' but found: '${key}'`,
44
+ 'ARG_CONFIG_NONOPT_KEY'
45
+ );
46
+ }
47
+
48
+ if (key.length === 1) {
49
+ throw new ArgError(
50
+ `argument key must have a name; singular '-' keys are not allowed: ${key}`,
51
+ 'ARG_CONFIG_NONAME_KEY'
52
+ );
53
+ }
54
+
55
+ if (typeof opts[key] === 'string') {
56
+ aliases[key] = opts[key];
57
+ continue;
58
+ }
59
+
60
+ let type = opts[key];
61
+ let isFlag = false;
62
+
63
+ if (
64
+ Array.isArray(type) &&
65
+ type.length === 1 &&
66
+ typeof type[0] === 'function'
67
+ ) {
68
+ const [fn] = type;
69
+ type = (value, name, prev = []) => {
70
+ prev.push(fn(value, name, prev[prev.length - 1]));
71
+ return prev;
72
+ };
73
+ isFlag = fn === Boolean || fn[flagSymbol] === true;
74
+ } else if (typeof type === 'function') {
75
+ isFlag = type === Boolean || type[flagSymbol] === true;
76
+ } else {
77
+ throw new ArgError(
78
+ `type missing or not a function or valid array type: ${key}`,
79
+ 'ARG_CONFIG_VAD_TYPE'
80
+ );
81
+ }
82
+
83
+ if (key[1] !== '-' && key.length > 2) {
84
+ throw new ArgError(
85
+ `short argument keys (with a single hyphen) must have only one character: ${key}`,
86
+ 'ARG_CONFIG_SHORTOPT_TOOLONG'
87
+ );
88
+ }
89
+
90
+ handlers[key] = [type, isFlag];
91
+ }
92
+
93
+ for (let i = 0, len = argv.length; i < len; i++) {
94
+ const wholeArg = argv[i];
95
+
96
+ if (stopAtPositional && result._.length > 0) {
97
+ result._ = result._.concat(argv.slice(i));
98
+ break;
99
+ }
100
+
101
+ if (wholeArg === '--') {
102
+ result._ = result._.concat(argv.slice(i + 1));
103
+ break;
104
+ }
105
+
106
+ if (wholeArg.length > 1 && wholeArg[0] === '-') {
107
+ /* eslint-disable operator-linebreak */
108
+ const separatedArguments =
109
+ wholeArg[1] === '-' || wholeArg.length === 2
110
+ ? [wholeArg]
111
+ : wholeArg
112
+ .slice(1)
113
+ .split('')
114
+ .map((a) => `-${a}`);
115
+ /* eslint-enable operator-linebreak */
116
+
117
+ for (let j = 0; j < separatedArguments.length; j++) {
118
+ const arg = separatedArguments[j];
119
+ const [originalArgName, argStr] =
120
+ arg[1] === '-' ? arg.split(/=(.*)/, 2) : [arg, undefined];
121
+
122
+ let argName = originalArgName;
123
+ while (argName in aliases) {
124
+ argName = aliases[argName];
125
+ }
126
+
127
+ if (!(argName in handlers)) {
128
+ if (permissive) {
129
+ result._.push(arg);
130
+ continue;
131
+ } else {
132
+ throw new ArgError(
133
+ `unknown or unexpected option: ${originalArgName}`,
134
+ 'ARG_UNKNOWN_OPTION'
135
+ );
136
+ }
137
+ }
138
+
139
+ const [type, isFlag] = handlers[argName];
140
+
141
+ if (!isFlag && j + 1 < separatedArguments.length) {
142
+ throw new ArgError(
143
+ `option requires argument (but was followed by another short argument): ${originalArgName}`,
144
+ 'ARG_MISSING_REQUIRED_SHORTARG'
145
+ );
146
+ }
147
+
148
+ if (isFlag) {
149
+ result[argName] = type(true, argName, result[argName]);
150
+ } else if (argStr === undefined) {
151
+ if (
152
+ argv.length < i + 2 ||
153
+ (argv[i + 1].length > 1 &&
154
+ argv[i + 1][0] === '-' &&
155
+ !(
156
+ argv[i + 1].match(/^-?\d*(\.(?=\d))?\d*$/) &&
157
+ (type === Number ||
158
+ // eslint-disable-next-line no-undef
159
+ (typeof BigInt !== 'undefined' && type === BigInt))
160
+ ))
161
+ ) {
162
+ const extended =
163
+ originalArgName === argName ? '' : ` (alias for ${argName})`;
164
+ throw new ArgError(
165
+ `option requires argument: ${originalArgName}${extended}`,
166
+ 'ARG_MISSING_REQUIRED_LONGARG'
167
+ );
168
+ }
169
+
170
+ result[argName] = type(argv[i + 1], argName, result[argName]);
171
+ ++i;
172
+ } else {
173
+ result[argName] = type(argStr, argName, result[argName]);
174
+ }
175
+ }
176
+ } else {
177
+ result._.push(wholeArg);
178
+ }
179
+ }
180
+
181
+ return result;
182
+ }
183
+
184
+ arg.flag = (fn) => {
185
+ fn[flagSymbol] = true;
186
+ return fn;
187
+ };
188
+
189
+ // Utility types
190
+ arg.COUNT = arg.flag((v, name, existingCount) => (existingCount || 0) + 1);
191
+
192
+ // Expose error class
193
+ arg.ArgError = ArgError;
194
+
195
+ module.exports = arg;
ui/node_modules/arg/package.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "arg",
3
+ "version": "5.0.2",
4
+ "description": "Unopinionated, no-frills CLI argument parser",
5
+ "main": "index.js",
6
+ "types": "index.d.ts",
7
+ "repository": "vercel/arg",
8
+ "author": "Josh Junon <junon@wavetilt.com>",
9
+ "license": "MIT",
10
+ "files": [
11
+ "index.js",
12
+ "index.d.ts"
13
+ ],
14
+ "scripts": {
15
+ "test": "WARN_EXIT=1 jest --coverage -w 2"
16
+ },
17
+ "devDependencies": {
18
+ "chai": "^4.1.1",
19
+ "jest": "^27.0.6",
20
+ "prettier": "^2.3.2"
21
+ },
22
+ "prettier": {
23
+ "arrowParens": "always",
24
+ "singleQuote": true,
25
+ "tabWidth": 2,
26
+ "trailingComma": "none"
27
+ }
28
+ }
ui/node_modules/attr-accept/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Andrey Okonetchnikov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
ui/node_modules/attr-accept/README.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # attr-accept
2
+ > JavaScript implementation of the "accept" attribute for HTML5 `<input type="file">`
3
+
4
+ [![npm](https://img.shields.io/npm/v/attr-accept.svg?style=flat-square)](https://www.npmjs.com/package/attr-accept)
5
+ ![Tests](https://img.shields.io/github/actions/workflow/status/react-dropzone/attr-accept/test.yml?branch=master&style=flat-square&label=tests)
6
+
7
+ See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#attr-accept for more information.
8
+
9
+ ## Installation
10
+ ```sh
11
+ npm install --save attr-accept
12
+ ```
13
+
14
+ ## Usage
15
+ ```javascript
16
+ var accept = require('attr-accept');
17
+ accept({
18
+ name: 'my file.png',
19
+ type: 'image/png'
20
+ }, 'image/*') // => true
21
+
22
+ accept({
23
+ name: 'my file.json',
24
+ type: 'application/json'
25
+ }, 'image/*') // => false
26
+
27
+ accept({
28
+ name: 'my file.srt',
29
+ type: ''
30
+ }, '.srt') // => true
31
+ ```
32
+
33
+ You can also pass multiple mime types as a comma delimited string or array.
34
+ ```javascript
35
+ accept({
36
+ name: 'my file.json',
37
+ type: 'application/json'
38
+ }, 'application/json,video/*') // => true
39
+
40
+ accept({
41
+ name: 'my file.json',
42
+ type: 'application/json'
43
+ }, ['application/json', 'video/*']) // => true
44
+ ```
45
+
46
+ ## Contributing
47
+
48
+ Checkout the organization [CONTRIBUTING.md](https://github.com/react-dropzone/.github/blob/main/CONTRIBUTING.md).
ui/node_modules/attr-accept/index.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export default function accept(file: { name?: string, type?: string }, acceptedFiles: string | string[]): boolean;
ui/node_modules/attr-accept/package.json ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "attr-accept",
3
+ "description": "JavaScript implementation of the \"accept\" attribute for HTML5 <input type=\"file\">",
4
+ "version": "2.2.5",
5
+ "main": "dist/index.js",
6
+ "module": "dist/es/index.js",
7
+ "types": "index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "index.d.ts"
11
+ ],
12
+ "scripts": {
13
+ "clean": "rimraf ./dist",
14
+ "build": "npm run clean && npm run build:cjs && npm run build:es",
15
+ "build:cjs": "webpack -p",
16
+ "build:es": "cross-env BABEL_ENV=es babel ./src --out-dir ./dist/es --ignore '**/*.spec.js'",
17
+ "prepublish": "npm test && npm run build",
18
+ "pretest": "npm run lint",
19
+ "test": "mocha --require @babel/register --recursive",
20
+ "test:watch": "npm test -- --watch",
21
+ "test:cov": "nyc --reporter=lcov --reporter=text mocha --require @babel/register --recursive",
22
+ "lint": "eslint src/ test/",
23
+ "precommit": "lint-staged",
24
+ "size": "size-limit",
25
+ "size:why": "size-limit --why"
26
+ },
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://github.com/react-dropzone/attr-accept.git"
30
+ },
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "keywords": [
35
+ "html5",
36
+ "input",
37
+ "tag",
38
+ "attribute",
39
+ "attr",
40
+ "accept",
41
+ "file"
42
+ ],
43
+ "author": "Andrey Okonetchnikov @okonetchnikov",
44
+ "contributors": [
45
+ "Andrey Okonetchnikov <andrey@okonet.ru> (http://okonet.ru)",
46
+ "Roland Groza <rolandjitsu@gmail.com>"
47
+ ],
48
+ "license": "MIT",
49
+ "bugs": {
50
+ "url": "https://github.com/react-dropzone/attr-accept/issues"
51
+ },
52
+ "homepage": "https://github.com/react-dropzone/attr-accept#readme",
53
+ "devDependencies": {
54
+ "@babel/cli": "^7.6.4",
55
+ "@babel/core": "^7.10.5",
56
+ "@babel/plugin-external-helpers": "^7.2.0",
57
+ "@babel/plugin-proposal-do-expressions": "^7.6.0",
58
+ "@babel/plugin-proposal-export-default-from": "^7.5.2",
59
+ "@babel/plugin-proposal-logical-assignment-operators": "^7.2.0",
60
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
61
+ "@babel/plugin-proposal-optional-chaining": "^7.6.0",
62
+ "@babel/plugin-proposal-pipeline-operator": "^7.5.0",
63
+ "@babel/plugin-transform-runtime": "^7.6.2",
64
+ "@babel/preset-env": "^7.6.3",
65
+ "@babel/preset-react": "^7.6.3",
66
+ "@babel/register": "^7.6.2",
67
+ "@commitlint/cli": "^8.2.0",
68
+ "@size-limit/preset-small-lib": "^2.1.6",
69
+ "babel-eslint": "^8.0.0",
70
+ "babel-loader": "^8.0.0",
71
+ "babel-preset-env": "^1.6.0",
72
+ "core-js": "^3.1.4",
73
+ "cross-env": "^6.0.3",
74
+ "cz-conventional-changelog": "^1.2.0",
75
+ "eslint": "^4.6.1",
76
+ "eslint-config-airbnb": "^15.1.0",
77
+ "eslint-config-okonet": "^6.1.3",
78
+ "eslint-config-prettier": "^2.4.0",
79
+ "eslint-plugin-flowtype": "^2.35.1",
80
+ "eslint-plugin-import": "^2.7.0",
81
+ "eslint-plugin-jsx-a11y": "^5.1.1",
82
+ "eslint-plugin-node": "^5.1.1",
83
+ "eslint-plugin-prettier": "^2.2.0",
84
+ "eslint-plugin-react": "^7.3.0",
85
+ "expect": "^1.20.2",
86
+ "husky": "^0.14.3",
87
+ "lint-staged": "^4.1.3",
88
+ "mocha": "^9.2.2",
89
+ "nyc": "^15.1.0",
90
+ "prettier": "^1.6.1",
91
+ "rimraf": "^3.0.0",
92
+ "webpack": "^4.0.0",
93
+ "webpack-cli": "^3.3.12"
94
+ },
95
+ "engines": {
96
+ "node": ">=4"
97
+ },
98
+ "config": {
99
+ "commitizen": {
100
+ "path": "./node_modules/cz-conventional-changelog"
101
+ }
102
+ },
103
+ "lint-staged": {
104
+ "*.js": [
105
+ "eslint --fix",
106
+ "git add"
107
+ ]
108
+ },
109
+ "size-limit": [
110
+ {
111
+ "path": "dist/index.js",
112
+ "limit": "2 KB"
113
+ }
114
+ ]
115
+ }
ui/node_modules/axios/CHANGELOG.md ADDED
@@ -0,0 +1,1295 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Changelog
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&#x3D;4&amp;s&#x3D;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&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Noritaka Kobayashi](https://github.com/noritaka1166 "+2/-6 (#7028 #7029 )")
14
+
15
+ ## [1.12.1](https://github.com/axios/axios/compare/v1.12.0...v1.12.1) (2025-09-12)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **types:** fixed env config types; ([#7020](https://github.com/axios/axios/issues/7020)) ([b5f26b7](https://github.com/axios/axios/commit/b5f26b75bdd9afa95016fb67d0cab15fc74cbf05))
21
+
22
+ ### Contributors to this release
23
+
24
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+10/-4 (#7020 )")
25
+
26
+ # [1.12.0](https://github.com/axios/axios/compare/v1.11.0...v1.12.0) (2025-09-11)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * adding build artifacts ([9ec86de](https://github.com/axios/axios/commit/9ec86de257bfa33856571036279169f385ed92bd))
32
+ * dont add dist on release ([a2edc36](https://github.com/axios/axios/commit/a2edc3606a4f775d868a67bb3461ff18ce7ecd11))
33
+ * **fetch-adapter:** set correct Content-Type for Node FormData ([#6998](https://github.com/axios/axios/issues/6998)) ([a9f47af](https://github.com/axios/axios/commit/a9f47afbf3224d2ca987dbd8188789c7ea853c5d))
34
+ * **node:** enforce maxContentLength for data: URLs ([#7011](https://github.com/axios/axios/issues/7011)) ([945435f](https://github.com/axios/axios/commit/945435fc51467303768202250debb8d4ae892593))
35
+ * package exports ([#5627](https://github.com/axios/axios/issues/5627)) ([aa78ac2](https://github.com/axios/axios/commit/aa78ac23fc9036163308c0f6bd2bb885e7af3f36))
36
+ * **params:** removing '[' and ']' from URL encode exclude characters ([#3316](https://github.com/axios/axios/issues/3316)) ([#5715](https://github.com/axios/axios/issues/5715)) ([6d84189](https://github.com/axios/axios/commit/6d84189349c43b1dcdd977b522610660cc4c7042))
37
+ * release pr run ([fd7f404](https://github.com/axios/axios/commit/fd7f404488b2c4f238c2fbe635b58026a634bfd2))
38
+ * **types:** change the type guard on isCancel ([#5595](https://github.com/axios/axios/issues/5595)) ([0dbb7fd](https://github.com/axios/axios/commit/0dbb7fd4f61dc568498cd13a681fa7f907d6ec7e))
39
+
40
+
41
+ ### Features
42
+
43
+ * **adapter:** surface low‑level network error details; attach original error via cause ([#6982](https://github.com/axios/axios/issues/6982)) ([78b290c](https://github.com/axios/axios/commit/78b290c57c978ed2ab420b90d97350231c9e5d74))
44
+ * **fetch:** add fetch, Request, Response env config variables for the adapter; ([#7003](https://github.com/axios/axios/issues/7003)) ([c959ff2](https://github.com/axios/axios/commit/c959ff29013a3bc90cde3ac7ea2d9a3f9c08974b))
45
+ * support reviver on JSON.parse ([#5926](https://github.com/axios/axios/issues/5926)) ([2a97634](https://github.com/axios/axios/commit/2a9763426e43d996fd60d01afe63fa6e1f5b4fca)), closes [#5924](https://github.com/axios/axios/issues/5924)
46
+ * **types:** extend AxiosResponse interface to include custom headers type ([#6782](https://github.com/axios/axios/issues/6782)) ([7960d34](https://github.com/axios/axios/commit/7960d34eded2de66ffd30b4687f8da0e46c4903e))
47
+
48
+ ### Contributors to this release
49
+
50
+ - <img src="https://avatars.githubusercontent.com/u/22686401?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Willian Agostini](https://github.com/WillianAgostini "+132/-16760 (#7002 #5926 #6782 )")
51
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+4263/-293 (#7006 #7003 )")
52
+ - <img src="https://avatars.githubusercontent.com/u/53833811?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [khani](https://github.com/mkhani01 "+111/-15 (#6982 )")
53
+ - <img src="https://avatars.githubusercontent.com/u/7712804?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Ameer Assadi](https://github.com/AmeerAssadi "+123/-0 (#7011 )")
54
+ - <img src="https://avatars.githubusercontent.com/u/70265727?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Emiedonmokumo Dick-Boro](https://github.com/emiedonmokumo "+55/-35 (#6998 )")
55
+ - <img src="https://avatars.githubusercontent.com/u/47859767?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Zeroday BYTE](https://github.com/opsysdebug "+8/-8 (#6980 )")
56
+ - <img src="https://avatars.githubusercontent.com/u/4814473?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Jason Saayman](https://github.com/jasonsaayman "+7/-7 (#6985 #6985 )")
57
+ - <img src="https://avatars.githubusercontent.com/u/13010755?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [최예찬](https://github.com/HealGaren "+5/-7 (#5715 )")
58
+ - <img src="https://avatars.githubusercontent.com/u/7002604?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Gligor Kotushevski](https://github.com/gligorkot "+3/-1 (#5627 )")
59
+ - <img src="https://avatars.githubusercontent.com/u/15893?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Aleksandar Dimitrov](https://github.com/adimit "+2/-1 (#5595 )")
60
+
61
+ # [1.11.0](https://github.com/axios/axios/compare/v1.10.0...v1.11.0) (2025-07-22)
62
+
63
+
64
+ ### Bug Fixes
65
+
66
+ * form-data npm pakcage ([#6970](https://github.com/axios/axios/issues/6970)) ([e72c193](https://github.com/axios/axios/commit/e72c193722530db538b19e5ddaaa4544d226b253))
67
+ * prevent RangeError when using large Buffers ([#6961](https://github.com/axios/axios/issues/6961)) ([a2214ca](https://github.com/axios/axios/commit/a2214ca1bc60540baf2c80573cea3a0ff91ba9d1))
68
+ * **types:** resolve type discrepancies between ESM and CJS TypeScript declaration files ([#6956](https://github.com/axios/axios/issues/6956)) ([8517aa1](https://github.com/axios/axios/commit/8517aa16f8d082fc1d5309c642220fa736159110))
69
+
70
+ ### Contributors to this release
71
+
72
+ - <img src="https://avatars.githubusercontent.com/u/12534341?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [izzy goldman](https://github.com/izzygld "+186/-93 (#6970 )")
73
+ - <img src="https://avatars.githubusercontent.com/u/142807367?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Manish Sahani](https://github.com/manishsahanidev "+70/-0 (#6961 )")
74
+ - <img src="https://avatars.githubusercontent.com/u/189505037?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Noritaka Kobayashi](https://github.com/noritaka1166 "+12/-10 (#6938 #6939 )")
75
+ - <img src="https://avatars.githubusercontent.com/u/392612?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [James Nail](https://github.com/jrnail23 "+13/-2 (#6956 )")
76
+ - <img src="https://avatars.githubusercontent.com/u/163745239?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Tejaswi1305](https://github.com/Tejaswi1305 "+1/-1 (#6894 )")
77
+
78
+ # [1.10.0](https://github.com/axios/axios/compare/v1.9.0...v1.10.0) (2025-06-14)
79
+
80
+
81
+ ### Bug Fixes
82
+
83
+ * **adapter:** pass fetchOptions to fetch function ([#6883](https://github.com/axios/axios/issues/6883)) ([0f50af8](https://github.com/axios/axios/commit/0f50af8e076b7fb403844789bd5e812dedcaf4ed))
84
+ * **form-data:** convert boolean values to strings in FormData serialization ([#6917](https://github.com/axios/axios/issues/6917)) ([5064b10](https://github.com/axios/axios/commit/5064b108de336ff34862650709761b8a96d26be0))
85
+ * **package:** add module entry point for React Native; ([#6933](https://github.com/axios/axios/issues/6933)) ([3d343b8](https://github.com/axios/axios/commit/3d343b86dc4fd0eea0987059c5af04327c7ae304))
86
+
87
+
88
+ ### Features
89
+
90
+ * **types:** improved fetchOptions interface ([#6867](https://github.com/axios/axios/issues/6867)) ([63f1fce](https://github.com/axios/axios/commit/63f1fce233009f5db1abf2586c145825ac98c3d7))
91
+
92
+ ### Contributors to this release
93
+
94
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+30/-19 (#6933 #6920 #6893 #6892 )")
95
+ - <img src="https://avatars.githubusercontent.com/u/189505037?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Noritaka Kobayashi](https://github.com/noritaka1166 "+2/-6 (#6922 #6923 )")
96
+ - <img src="https://avatars.githubusercontent.com/u/48370490?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dimitrios Lazanas](https://github.com/dimitry-lzs "+4/-0 (#6917 )")
97
+ - <img src="https://avatars.githubusercontent.com/u/71047946?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Adrian Knapp](https://github.com/AdrianKnapp "+2/-2 (#6867 )")
98
+ - <img src="https://avatars.githubusercontent.com/u/16129206?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Howie Zhao](https://github.com/howiezhao "+3/-1 (#6872 )")
99
+ - <img src="https://avatars.githubusercontent.com/u/6788611?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Uhyeon Park](https://github.com/warpdev "+1/-1 (#6883 )")
100
+ - <img src="https://avatars.githubusercontent.com/u/20028934?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Sampo Silvennoinen](https://github.com/stscoundrel "+1/-1 (#6913 )")
101
+
102
+ # [1.9.0](https://github.com/axios/axios/compare/v1.8.4...v1.9.0) (2025-04-24)
103
+
104
+
105
+ ### Bug Fixes
106
+
107
+ * **core:** fix the Axios constructor implementation to treat the config argument as optional; ([#6881](https://github.com/axios/axios/issues/6881)) ([6c5d4cd](https://github.com/axios/axios/commit/6c5d4cd69286868059c5e52d45085cb9a894a983))
108
+ * **fetch:** fixed ERR_NETWORK mapping for Safari browsers; ([#6767](https://github.com/axios/axios/issues/6767)) ([dfe8411](https://github.com/axios/axios/commit/dfe8411c9a082c3d068bdd1f8d6e73054f387f45))
109
+ * **headers:** allow iterable objects to be a data source for the set method; ([#6873](https://github.com/axios/axios/issues/6873)) ([1b1f9cc](https://github.com/axios/axios/commit/1b1f9ccdc15f1ea745160ec9a5223de9db4673bc))
110
+ * **headers:** fix `getSetCookie` by using 'get' method for caseless access; ([#6874](https://github.com/axios/axios/issues/6874)) ([d4f7df4](https://github.com/axios/axios/commit/d4f7df4b304af8b373488fdf8e830793ff843eb9))
111
+ * **headers:** fixed support for setting multiple header values from an iterated source; ([#6885](https://github.com/axios/axios/issues/6885)) ([f7a3b5e](https://github.com/axios/axios/commit/f7a3b5e0f7e5e127b97defa92a132fbf1b55cf15))
112
+ * **http:** send minimal end multipart boundary ([#6661](https://github.com/axios/axios/issues/6661)) ([987d2e2](https://github.com/axios/axios/commit/987d2e2dd3b362757550f36eab875e60640b6ddc))
113
+ * **types:** fix autocomplete for adapter config ([#6855](https://github.com/axios/axios/issues/6855)) ([e61a893](https://github.com/axios/axios/commit/e61a8934d8f94dd429a2f309b48c67307c700df0))
114
+
115
+
116
+ ### Features
117
+
118
+ * **AxiosHeaders:** add getSetCookie method to retrieve set-cookie headers values ([#5707](https://github.com/axios/axios/issues/5707)) ([80ea756](https://github.com/axios/axios/commit/80ea756e72bcf53110fa792f5d7ab76e8b11c996))
119
+
120
+ ### Contributors to this release
121
+
122
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+200/-34 (#6890 #6889 #6888 #6885 #6881 #6767 #6874 #6873 )")
123
+ - <img src="https://avatars.githubusercontent.com/u/4814473?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+26/-1 ()")
124
+ - <img src="https://avatars.githubusercontent.com/u/22686401?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Willian Agostini](https://github.com/WillianAgostini "+21/-0 (#5707 )")
125
+ - <img src="https://avatars.githubusercontent.com/u/2500247?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [George Cheng](https://github.com/Gerhut "+3/-3 (#5096 )")
126
+ - <img src="https://avatars.githubusercontent.com/u/30260221?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [FatahChan](https://github.com/FatahChan "+2/-2 (#6855 )")
127
+ - <img src="https://avatars.githubusercontent.com/u/49002?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Ionuț G. Stan](https://github.com/igstan "+1/-1 (#6661 )")
128
+
129
+ ## [1.8.4](https://github.com/axios/axios/compare/v1.8.3...v1.8.4) (2025-03-19)
130
+
131
+
132
+ ### Bug Fixes
133
+
134
+ * **buildFullPath:** handle `allowAbsoluteUrls: false` without `baseURL` ([#6833](https://github.com/axios/axios/issues/6833)) ([f10c2e0](https://github.com/axios/axios/commit/f10c2e0de7fde0051f848609a29c2906d0caa1d9))
135
+
136
+ ### Contributors to this release
137
+
138
+ - <img src="https://avatars.githubusercontent.com/u/8029107?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Marc Hassan](https://github.com/mhassan1 "+5/-1 (#6833 )")
139
+
140
+ ## [1.8.3](https://github.com/axios/axios/compare/v1.8.2...v1.8.3) (2025-03-10)
141
+
142
+
143
+ ### Bug Fixes
144
+
145
+ * add missing type for allowAbsoluteUrls ([#6818](https://github.com/axios/axios/issues/6818)) ([10fa70e](https://github.com/axios/axios/commit/10fa70ef14fe39558b15a179f0e82f5f5e5d11b2))
146
+ * **xhr/fetch:** pass `allowAbsoluteUrls` to `buildFullPath` in `xhr` and `fetch` adapters ([#6814](https://github.com/axios/axios/issues/6814)) ([ec159e5](https://github.com/axios/axios/commit/ec159e507bdf08c04ba1a10fe7710094e9e50ec9))
147
+
148
+ ### Contributors to this release
149
+
150
+ - <img src="https://avatars.githubusercontent.com/u/3238291?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Ashcon Partovi](https://github.com/Electroid "+6/-0 (#6811 )")
151
+ - <img src="https://avatars.githubusercontent.com/u/28559054?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [StefanBRas](https://github.com/StefanBRas "+4/-0 (#6818 )")
152
+ - <img src="https://avatars.githubusercontent.com/u/8029107?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Marc Hassan](https://github.com/mhassan1 "+2/-2 (#6814 )")
153
+
154
+ ## [1.8.2](https://github.com/axios/axios/compare/v1.8.1...v1.8.2) (2025-03-07)
155
+
156
+
157
+ ### Bug Fixes
158
+
159
+ * **http-adapter:** add allowAbsoluteUrls to path building ([#6810](https://github.com/axios/axios/issues/6810)) ([fb8eec2](https://github.com/axios/axios/commit/fb8eec214ce7744b5ca787f2c3b8339b2f54b00f))
160
+
161
+ ### Contributors to this release
162
+
163
+ - <img src="https://avatars.githubusercontent.com/u/14166260?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Fasoro-Joseph Alexander](https://github.com/lexcorp16 "+1/-1 (#6810 )")
164
+
165
+ ## [1.8.1](https://github.com/axios/axios/compare/v1.8.0...v1.8.1) (2025-02-26)
166
+
167
+
168
+ ### Bug Fixes
169
+
170
+ * **utils:** move `generateString` to platform utils to avoid importing crypto module into client builds; ([#6789](https://github.com/axios/axios/issues/6789)) ([36a5a62](https://github.com/axios/axios/commit/36a5a620bec0b181451927f13ac85b9888b86cec))
171
+
172
+ ### Contributors to this release
173
+
174
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+51/-47 (#6789 )")
175
+
176
+ # [1.8.0](https://github.com/axios/axios/compare/v1.7.9...v1.8.0) (2025-02-25)
177
+
178
+
179
+ ### Bug Fixes
180
+
181
+ * **examples:** application crashed when navigating examples in browser ([#5938](https://github.com/axios/axios/issues/5938)) ([1260ded](https://github.com/axios/axios/commit/1260ded634ec101dd5ed05d3b70f8e8f899dba6c))
182
+ * missing word in SUPPORT_QUESTION.yml ([#6757](https://github.com/axios/axios/issues/6757)) ([1f890b1](https://github.com/axios/axios/commit/1f890b13f2c25a016f3c84ae78efb769f244133e))
183
+ * **utils:** replace getRandomValues with crypto module ([#6788](https://github.com/axios/axios/issues/6788)) ([23a25af](https://github.com/axios/axios/commit/23a25af0688d1db2c396deb09229d2271cc24f6c))
184
+
185
+
186
+ ### Features
187
+
188
+ * Add config for ignoring absolute URLs ([#5902](https://github.com/axios/axios/issues/5902)) ([#6192](https://github.com/axios/axios/issues/6192)) ([32c7bcc](https://github.com/axios/axios/commit/32c7bcc0f233285ba27dec73a4b1e81fb7a219b3))
189
+
190
+
191
+ ### Reverts
192
+
193
+ * Revert "chore: expose fromDataToStream to be consumable (#6731)" (#6732) ([1317261](https://github.com/axios/axios/commit/1317261125e9c419fe9f126867f64d28f9c1efda)), closes [#6731](https://github.com/axios/axios/issues/6731) [#6732](https://github.com/axios/axios/issues/6732)
194
+
195
+
196
+ ### BREAKING CHANGES
197
+
198
+ * code relying on the above will now combine the URLs instead of prefer request URL
199
+
200
+ * feat: add config option for allowing absolute URLs
201
+
202
+ * fix: add default value for allowAbsoluteUrls in buildFullPath
203
+
204
+ * fix: typo in flow control when setting allowAbsoluteUrls
205
+
206
+ ### Contributors to this release
207
+
208
+ - <img src="https://avatars.githubusercontent.com/u/7661715?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Michael Toscano](https://github.com/GethosTheWalrus "+42/-8 (#6192 )")
209
+ - <img src="https://avatars.githubusercontent.com/u/22686401?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Willian Agostini](https://github.com/WillianAgostini "+26/-3 (#6788 #6777 )")
210
+ - <img src="https://avatars.githubusercontent.com/u/72578270?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Naron](https://github.com/naronchen "+27/-0 (#5901 )")
211
+ - <img src="https://avatars.githubusercontent.com/u/47430686?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [shravan || श्रvan](https://github.com/shravan20 "+7/-3 (#6116 )")
212
+ - <img src="https://avatars.githubusercontent.com/u/145078271?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Justin Dhillon](https://github.com/justindhillon "+0/-7 (#6312 )")
213
+ - <img src="https://avatars.githubusercontent.com/u/30925732?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [yionr](https://github.com/yionr "+5/-1 (#6129 )")
214
+ - <img src="https://avatars.githubusercontent.com/u/534166?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Shin&#x27;ya Ueoka](https://github.com/ueokande "+3/-3 (#5935 )")
215
+ - <img src="https://avatars.githubusercontent.com/u/33569?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dan Dascalescu](https://github.com/dandv "+3/-3 (#5908 #6757 )")
216
+ - <img src="https://avatars.githubusercontent.com/u/16476523?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Nitin Ramnani](https://github.com/NitinRamnani "+2/-2 (#5938 )")
217
+ - <img src="https://avatars.githubusercontent.com/u/152275799?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Shay Molcho](https://github.com/shaymolcho "+2/-2 (#6770 )")
218
+ - <img src="https://avatars.githubusercontent.com/u/4814473?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+0/-3 (#6732 )")
219
+ - fancy45daddy
220
+ - <img src="https://avatars.githubusercontent.com/u/127725897?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Habip Akyol](https://github.com/habipakyol "+1/-1 (#6030 )")
221
+ - <img src="https://avatars.githubusercontent.com/u/54869395?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Bailey Lissington](https://github.com/llamington "+1/-1 (#6771 )")
222
+ - <img src="https://avatars.githubusercontent.com/u/14969290?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Bernardo da Eira Duarte](https://github.com/bernardoduarte "+1/-1 (#6480 )")
223
+ - <img src="https://avatars.githubusercontent.com/u/117800149?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Shivam Batham](https://github.com/Shivam-Batham "+1/-1 (#5949 )")
224
+ - <img src="https://avatars.githubusercontent.com/u/67861627?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Lipin Kariappa](https://github.com/lipinnnnn "+1/-1 (#5936 )")
225
+
226
+ ## [1.7.9](https://github.com/axios/axios/compare/v1.7.8...v1.7.9) (2024-12-04)
227
+
228
+
229
+ ### Reverts
230
+
231
+ * 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)
232
+
233
+ ### Contributors to this release
234
+
235
+ - <img src="https://avatars.githubusercontent.com/u/4814473?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+596/-108 (#6729 )")
236
+
237
+ ## [1.7.8](https://github.com/axios/axios/compare/v1.7.7...v1.7.8) (2024-11-25)
238
+
239
+
240
+ ### Bug Fixes
241
+
242
+ * allow passing a callback as paramsSerializer to buildURL ([#6680](https://github.com/axios/axios/issues/6680)) ([eac4619](https://github.com/axios/axios/commit/eac4619fe2e0926e876cd260ee21e3690381dbb5))
243
+ * **core:** fixed config merging bug ([#6668](https://github.com/axios/axios/issues/6668)) ([5d99fe4](https://github.com/axios/axios/commit/5d99fe4491202a6268c71e5dcc09192359d73cea))
244
+ * 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))
245
+ * **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))
246
+ * **http:** fixed proxy-from-env module import ([#5222](https://github.com/axios/axios/issues/5222)) ([12b3295](https://github.com/axios/axios/commit/12b32957f1258aee94ef859809ed39f8f88f9dfa))
247
+ * **http:** use `globalThis.TextEncoder` when available ([#6634](https://github.com/axios/axios/issues/6634)) ([df956d1](https://github.com/axios/axios/commit/df956d18febc9100a563298dfdf0f102c3d15410))
248
+ * ios11 breaks when build ([#6608](https://github.com/axios/axios/issues/6608)) ([7638952](https://github.com/axios/axios/commit/763895270f7b50c7c780c3c9807ae8635de952cd))
249
+ * **types:** add missing types for mergeConfig function ([#6590](https://github.com/axios/axios/issues/6590)) ([00de614](https://github.com/axios/axios/commit/00de614cd07b7149af335e202aef0e076c254f49))
250
+ * **types:** export CJS types from ESM ([#6218](https://github.com/axios/axios/issues/6218)) ([c71811b](https://github.com/axios/axios/commit/c71811b00f2fcff558e4382ba913bdac4ad7200e))
251
+ * 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))
252
+ * 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))
253
+
254
+ ### Contributors to this release
255
+
256
+ - <img src="https://avatars.githubusercontent.com/u/779047?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Remco Haszing](https://github.com/remcohaszing "+108/-596 (#6218 )")
257
+ - <img src="https://avatars.githubusercontent.com/u/4814473?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+281/-19 (#6640 #6619 )")
258
+ - <img src="https://avatars.githubusercontent.com/u/140250471?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Aayush Yadav](https://github.com/aayushyadav020 "+124/-111 (#6617 )")
259
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+12/-65 (#6714 )")
260
+ - <img src="https://avatars.githubusercontent.com/u/479715?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Ell Bradshaw](https://github.com/cincodenada "+29/-0 (#6489 )")
261
+ - <img src="https://avatars.githubusercontent.com/u/60218780?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Amit Saini](https://github.com/amitsainii "+13/-3 (#5237 )")
262
+ - <img src="https://avatars.githubusercontent.com/u/19817867?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Tommaso Paulon](https://github.com/guuido "+14/-1 (#6680 )")
263
+ - <img src="https://avatars.githubusercontent.com/u/63336443?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Akki](https://github.com/Aakash-Rana "+5/-5 (#6668 )")
264
+ - <img src="https://avatars.githubusercontent.com/u/20028934?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Sampo Silvennoinen](https://github.com/stscoundrel "+3/-3 (#6633 )")
265
+ - <img src="https://avatars.githubusercontent.com/u/1174718?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Kasper Isager Dalsgarð](https://github.com/kasperisager "+2/-2 (#6634 )")
266
+ - <img src="https://avatars.githubusercontent.com/u/3709715?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Christian Clauss](https://github.com/cclauss "+4/-0 (#6683 )")
267
+ - <img src="https://avatars.githubusercontent.com/u/1639119?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Pavan Welihinda](https://github.com/pavan168 "+2/-2 (#5222 )")
268
+ - <img src="https://avatars.githubusercontent.com/u/5742900?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Taylor Flatt](https://github.com/taylorflatt "+2/-2 (#6615 )")
269
+ - <img src="https://avatars.githubusercontent.com/u/79452224?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Kenzo Wada](https://github.com/Kenzo-Wada "+2/-2 (#6608 )")
270
+ - <img src="https://avatars.githubusercontent.com/u/50064240?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Ngole Lawson](https://github.com/echelonnought "+3/-0 (#6644 )")
271
+ - <img src="https://avatars.githubusercontent.com/u/1262198?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Haven](https://github.com/Baoyx007 "+3/-0 (#6590 )")
272
+ - <img src="https://avatars.githubusercontent.com/u/149003676?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Shrivali Dutt](https://github.com/shrivalidutt "+1/-1 (#6637 )")
273
+ - <img src="https://avatars.githubusercontent.com/u/1304290?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Henco Appel](https://github.com/hencoappel "+1/-1 (#6605 )")
274
+
275
+ ## [1.7.7](https://github.com/axios/axios/compare/v1.7.6...v1.7.7) (2024-08-31)
276
+
277
+
278
+ ### Bug Fixes
279
+
280
+ * **fetch:** fix stream handling in Safari by fallback to using a stream reader instead of an async iterator; ([#6584](https://github.com/axios/axios/issues/6584)) ([d198085](https://github.com/axios/axios/commit/d1980854fee1765cd02fa0787adf5d6e34dd9dcf))
281
+ * **http:** fixed support for IPv6 literal strings in url ([#5731](https://github.com/axios/axios/issues/5731)) ([364993f](https://github.com/axios/axios/commit/364993f0d8bc6e0e06f76b8a35d2d0a35cab054c))
282
+
283
+ ### Contributors to this release
284
+
285
+ - <img src="https://avatars.githubusercontent.com/u/10539109?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Rishi556](https://github.com/Rishi556 "+39/-1 (#5731 )")
286
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+27/-7 (#6584 )")
287
+
288
+ ## [1.7.6](https://github.com/axios/axios/compare/v1.7.5...v1.7.6) (2024-08-30)
289
+
290
+
291
+ ### Bug Fixes
292
+
293
+ * **fetch:** fix content length calculation for FormData payload; ([#6524](https://github.com/axios/axios/issues/6524)) ([085f568](https://github.com/axios/axios/commit/085f56861a83e9ac02c140ad9d68dac540dfeeaa))
294
+ * **fetch:** optimize signals composing logic; ([#6582](https://github.com/axios/axios/issues/6582)) ([df9889b](https://github.com/axios/axios/commit/df9889b83c2cc37e9e6189675a73ab70c60f031f))
295
+
296
+ ### Contributors to this release
297
+
298
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+98/-46 (#6582 )")
299
+ - <img src="https://avatars.githubusercontent.com/u/3534453?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Jacques Germishuys](https://github.com/jacquesg "+5/-1 (#6524 )")
300
+ - <img src="https://avatars.githubusercontent.com/u/53894505?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [kuroino721](https://github.com/kuroino721 "+3/-1 (#6575 )")
301
+
302
+ ## [1.7.5](https://github.com/axios/axios/compare/v1.7.4...v1.7.5) (2024-08-23)
303
+
304
+
305
+ ### Bug Fixes
306
+
307
+ * **adapter:** fix undefined reference to hasBrowserEnv ([#6572](https://github.com/axios/axios/issues/6572)) ([7004707](https://github.com/axios/axios/commit/7004707c4180b416341863bd86913fe4fc2f1df1))
308
+ * **core:** add the missed implementation of AxiosError#status property; ([#6573](https://github.com/axios/axios/issues/6573)) ([6700a8a](https://github.com/axios/axios/commit/6700a8adac06942205f6a7a21421ecb36c4e0852))
309
+ * **core:** fix `ReferenceError: navigator is not defined` for custom environments; ([#6567](https://github.com/axios/axios/issues/6567)) ([fed1a4b](https://github.com/axios/axios/commit/fed1a4b2d78ed4a588c84e09d32749ed01dc2794))
310
+ * **fetch:** fix credentials handling in Cloudflare workers ([#6533](https://github.com/axios/axios/issues/6533)) ([550d885](https://github.com/axios/axios/commit/550d885eb90fd156add7b93bbdc54d30d2f9a98d))
311
+
312
+ ### Contributors to this release
313
+
314
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+187/-83 (#6573 #6567 #6566 #6564 #6563 #6557 #6556 #6555 #6554 #6552 )")
315
+ - <img src="https://avatars.githubusercontent.com/u/2495809?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Antonin Bas](https://github.com/antoninbas "+6/-6 (#6572 )")
316
+ - <img src="https://avatars.githubusercontent.com/u/5406212?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Hans Otto Wirtz](https://github.com/hansottowirtz "+4/-1 (#6533 )")
317
+
318
+ ## [1.7.4](https://github.com/axios/axios/compare/v1.7.3...v1.7.4) (2024-08-13)
319
+
320
+
321
+ ### Bug Fixes
322
+
323
+ * **sec:** CVE-2024-39338 ([#6539](https://github.com/axios/axios/issues/6539)) ([#6543](https://github.com/axios/axios/issues/6543)) ([6b6b605](https://github.com/axios/axios/commit/6b6b605eaf73852fb2dae033f1e786155959de3a))
324
+ * **sec:** disregard protocol-relative URL to remediate SSRF ([#6539](https://github.com/axios/axios/issues/6539)) ([07a661a](https://github.com/axios/axios/commit/07a661a2a6b9092c4aa640dcc7f724ec5e65bdda))
325
+
326
+ ### Contributors to this release
327
+
328
+ - <img src="https://avatars.githubusercontent.com/u/31389480?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Lev Pachmanov](https://github.com/levpachmanov "+47/-11 (#6543 )")
329
+ - <img src="https://avatars.githubusercontent.com/u/41283691?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Đỗ Trọng Hải](https://github.com/hainenber "+49/-4 (#6539 )")
330
+
331
+ ## [1.7.3](https://github.com/axios/axios/compare/v1.7.2...v1.7.3) (2024-08-01)
332
+
333
+
334
+ ### Bug Fixes
335
+
336
+ * **adapter:** fix progress event emitting; ([#6518](https://github.com/axios/axios/issues/6518)) ([e3c76fc](https://github.com/axios/axios/commit/e3c76fc9bdd03aa4d98afaf211df943e2031453f))
337
+ * **fetch:** fix withCredentials request config ([#6505](https://github.com/axios/axios/issues/6505)) ([85d4d0e](https://github.com/axios/axios/commit/85d4d0ea0aae91082f04e303dec46510d1b4e787))
338
+ * **xhr:** return original config on errors from XHR adapter ([#6515](https://github.com/axios/axios/issues/6515)) ([8966ee7](https://github.com/axios/axios/commit/8966ee7ea62ecbd6cfb39a905939bcdab5cf6388))
339
+
340
+ ### Contributors to this release
341
+
342
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+211/-159 (#6518 #6519 )")
343
+ - <img src="https://avatars.githubusercontent.com/u/10867286?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Valerii Sidorenko](https://github.com/ValeraS "+3/-3 (#6515 )")
344
+ - <img src="https://avatars.githubusercontent.com/u/8599535?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [prianYu](https://github.com/prianyu "+2/-2 (#6505 )")
345
+
346
+ ## [1.7.2](https://github.com/axios/axios/compare/v1.7.1...v1.7.2) (2024-05-21)
347
+
348
+
349
+ ### Bug Fixes
350
+
351
+ * **fetch:** enhance fetch API detection; ([#6413](https://github.com/axios/axios/issues/6413)) ([4f79aef](https://github.com/axios/axios/commit/4f79aef81b7c4644328365bfc33acf0a9ef595bc))
352
+
353
+ ### Contributors to this release
354
+
355
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+3/-3 (#6413 )")
356
+
357
+ ## [1.7.1](https://github.com/axios/axios/compare/v1.7.0...v1.7.1) (2024-05-20)
358
+
359
+
360
+ ### Bug Fixes
361
+
362
+ * **fetch:** fixed ReferenceError issue when TextEncoder is not available in the environment; ([#6410](https://github.com/axios/axios/issues/6410)) ([733f15f](https://github.com/axios/axios/commit/733f15fe5bd2d67e1fadaee82e7913b70d45dc5e))
363
+
364
+ ### Contributors to this release
365
+
366
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+14/-9 (#6410 )")
367
+
368
+ # [1.7.0](https://github.com/axios/axios/compare/v1.7.0-beta.2...v1.7.0) (2024-05-19)
369
+
370
+
371
+ ### Features
372
+
373
+ * **adapter:** add fetch adapter; ([#6371](https://github.com/axios/axios/issues/6371)) ([a3ff99b](https://github.com/axios/axios/commit/a3ff99b59d8ec2ab5dd049e68c043617a4072e42))
374
+
375
+ ### Bug Fixes
376
+
377
+ * **core/axios:** handle un-writable error stack ([#6362](https://github.com/axios/axios/issues/6362)) ([81e0455](https://github.com/axios/axios/commit/81e0455b7b57fbaf2be16a73ebe0e6591cc6d8f9))
378
+
379
+ ### Contributors to this release
380
+
381
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+1015/-127 (#6371 )")
382
+ - <img src="https://avatars.githubusercontent.com/u/4814473?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+30/-14 ()")
383
+ - <img src="https://avatars.githubusercontent.com/u/16711696?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Alexandre ABRIOUX](https://github.com/alexandre-abrioux "+56/-6 (#6362 )")
384
+
385
+ # [1.7.0-beta.2](https://github.com/axios/axios/compare/v1.7.0-beta.1...v1.7.0-beta.2) (2024-05-19)
386
+
387
+
388
+ ### Bug Fixes
389
+
390
+ * **fetch:** capitalize HTTP method names; ([#6395](https://github.com/axios/axios/issues/6395)) ([ad3174a](https://github.com/axios/axios/commit/ad3174a3515c3c2573f4bcb94818d582826f3914))
391
+ * **fetch:** fix & optimize progress capturing for cases when the request data has a nullish value or zero data length ([#6400](https://github.com/axios/axios/issues/6400)) ([95a3e8e](https://github.com/axios/axios/commit/95a3e8e346cfd6a5548e171f2341df3235d0e26b))
392
+ * **fetch:** fix headers getting from a stream response; ([#6401](https://github.com/axios/axios/issues/6401)) ([870e0a7](https://github.com/axios/axios/commit/870e0a76f60d0094774a6a63fa606eec52a381af))
393
+
394
+ ### Contributors to this release
395
+
396
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+99/-46 (#6405 #6404 #6401 #6400 #6395 )")
397
+
398
+ # [1.7.0-beta.1](https://github.com/axios/axios/compare/v1.7.0-beta.0...v1.7.0-beta.1) (2024-05-07)
399
+
400
+
401
+ ### Bug Fixes
402
+
403
+ * **core/axios:** handle un-writable error stack ([#6362](https://github.com/axios/axios/issues/6362)) ([81e0455](https://github.com/axios/axios/commit/81e0455b7b57fbaf2be16a73ebe0e6591cc6d8f9))
404
+ * **fetch:** fix cases when ReadableStream or Response.body are not available; ([#6377](https://github.com/axios/axios/issues/6377)) ([d1d359d](https://github.com/axios/axios/commit/d1d359da347704e8b28d768e61515a3e96c5b072))
405
+ * **fetch:** treat fetch-related TypeError as an AxiosError.ERR_NETWORK error; ([#6380](https://github.com/axios/axios/issues/6380)) ([bb5f9a5](https://github.com/axios/axios/commit/bb5f9a5ab768452de9e166dc28d0ffc234245ef1))
406
+
407
+ ### Contributors to this release
408
+
409
+ - <img src="https://avatars.githubusercontent.com/u/16711696?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Alexandre ABRIOUX](https://github.com/alexandre-abrioux "+56/-6 (#6362 )")
410
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+42/-17 (#6380 #6377 )")
411
+
412
+ # [1.7.0-beta.0](https://github.com/axios/axios/compare/v1.6.8...v1.7.0-beta.0) (2024-04-28)
413
+
414
+
415
+ ### Features
416
+
417
+ * **adapter:** add fetch adapter; ([#6371](https://github.com/axios/axios/issues/6371)) ([a3ff99b](https://github.com/axios/axios/commit/a3ff99b59d8ec2ab5dd049e68c043617a4072e42))
418
+
419
+ ### Contributors to this release
420
+
421
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+1015/-127 (#6371 )")
422
+ - <img src="https://avatars.githubusercontent.com/u/4814473?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+30/-14 ()")
423
+
424
+ ## [1.6.8](https://github.com/axios/axios/compare/v1.6.7...v1.6.8) (2024-03-15)
425
+
426
+
427
+ ### Bug Fixes
428
+
429
+ * **AxiosHeaders:** fix AxiosHeaders conversion to an object during config merging ([#6243](https://github.com/axios/axios/issues/6243)) ([2656612](https://github.com/axios/axios/commit/2656612bc10fe2757e9832b708ed773ab340b5cb))
430
+ * **import:** use named export for EventEmitter; ([7320430](https://github.com/axios/axios/commit/7320430aef2e1ba2b89488a0eaf42681165498b1))
431
+ * **vulnerability:** update follow-redirects to 1.15.6 ([#6300](https://github.com/axios/axios/issues/6300)) ([8786e0f](https://github.com/axios/axios/commit/8786e0ff55a8c68d4ca989801ad26df924042e27))
432
+
433
+ ### Contributors to this release
434
+
435
+ - <img src="https://avatars.githubusercontent.com/u/4814473?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+4572/-3446 (#6238 )")
436
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+30/-0 (#6231 )")
437
+ - <img src="https://avatars.githubusercontent.com/u/68230846?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Mitchell](https://github.com/Creaous "+9/-9 (#6300 )")
438
+ - <img src="https://avatars.githubusercontent.com/u/53797821?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Emmanuel](https://github.com/mannoeu "+2/-2 (#6196 )")
439
+ - <img src="https://avatars.githubusercontent.com/u/44109284?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Lucas Keller](https://github.com/ljkeller "+3/-0 (#6194 )")
440
+ - <img src="https://avatars.githubusercontent.com/u/72791488?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Aditya Mogili](https://github.com/ADITYA-176 "+1/-1 ()")
441
+ - <img src="https://avatars.githubusercontent.com/u/46135319?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Miroslav Petrov](https://github.com/petrovmiroslav "+1/-1 (#6243 )")
442
+
443
+ ## [1.6.7](https://github.com/axios/axios/compare/v1.6.6...v1.6.7) (2024-01-25)
444
+
445
+
446
+ ### Bug Fixes
447
+
448
+ * capture async stack only for rejections with native error objects; ([#6203](https://github.com/axios/axios/issues/6203)) ([1a08f90](https://github.com/axios/axios/commit/1a08f90f402336e4d00e9ee82f211c6adb1640b0))
449
+
450
+ ### Contributors to this release
451
+
452
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+30/-26 (#6203 )")
453
+ - <img src="https://avatars.githubusercontent.com/u/73059627?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [zhoulixiang](https://github.com/zh-lx "+0/-3 (#6186 )")
454
+
455
+ ## [1.6.6](https://github.com/axios/axios/compare/v1.6.5...v1.6.6) (2024-01-24)
456
+
457
+
458
+ ### Bug Fixes
459
+
460
+ * fixed missed dispatchBeforeRedirect argument ([#5778](https://github.com/axios/axios/issues/5778)) ([a1938ff](https://github.com/axios/axios/commit/a1938ff073fcb0f89011f001dfbc1fa1dc995e39))
461
+ * wrap errors to improve async stack trace ([#5987](https://github.com/axios/axios/issues/5987)) ([123f354](https://github.com/axios/axios/commit/123f354b920f154a209ea99f76b7b2ef3d9ebbab))
462
+
463
+ ### Contributors to this release
464
+
465
+ - <img src="https://avatars.githubusercontent.com/u/1186084?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Ilya Priven](https://github.com/ikonst "+91/-8 (#5987 )")
466
+ - <img src="https://avatars.githubusercontent.com/u/1884246?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Zao Soula](https://github.com/zaosoula "+6/-6 (#5778 )")
467
+
468
+ ## [1.6.5](https://github.com/axios/axios/compare/v1.6.4...v1.6.5) (2024-01-05)
469
+
470
+
471
+ ### Bug Fixes
472
+
473
+ * **ci:** refactor notify action as a job of publish action; ([#6176](https://github.com/axios/axios/issues/6176)) ([0736f95](https://github.com/axios/axios/commit/0736f95ce8776366dc9ca569f49ba505feb6373c))
474
+ * **dns:** fixed lookup error handling; ([#6175](https://github.com/axios/axios/issues/6175)) ([f4f2b03](https://github.com/axios/axios/commit/f4f2b039dd38eb4829e8583caede4ed6d2dd59be))
475
+
476
+ ### Contributors to this release
477
+
478
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+41/-6 (#6176 #6175 )")
479
+ - <img src="https://avatars.githubusercontent.com/u/4814473?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+6/-1 ()")
480
+
481
+ ## [1.6.4](https://github.com/axios/axios/compare/v1.6.3...v1.6.4) (2024-01-03)
482
+
483
+
484
+ ### Bug Fixes
485
+
486
+ * **security:** fixed formToJSON prototype pollution vulnerability; ([#6167](https://github.com/axios/axios/issues/6167)) ([3c0c11c](https://github.com/axios/axios/commit/3c0c11cade045c4412c242b5727308cff9897a0e))
487
+ * **security:** fixed security vulnerability in follow-redirects ([#6163](https://github.com/axios/axios/issues/6163)) ([75af1cd](https://github.com/axios/axios/commit/75af1cdff5b3a6ca3766d3d3afbc3115bb0811b8))
488
+
489
+ ### Contributors to this release
490
+
491
+ - <img src="https://avatars.githubusercontent.com/u/4814473?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+34/-6 ()")
492
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+34/-3 (#6172 #6167 )")
493
+ - <img src="https://avatars.githubusercontent.com/u/1402060?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Guy Nesher](https://github.com/gnesher "+10/-10 (#6163 )")
494
+
495
+ ## [1.6.3](https://github.com/axios/axios/compare/v1.6.2...v1.6.3) (2023-12-26)
496
+
497
+
498
+ ### Bug Fixes
499
+
500
+ * Regular Expression Denial of Service (ReDoS) ([#6132](https://github.com/axios/axios/issues/6132)) ([5e7ad38](https://github.com/axios/axios/commit/5e7ad38fb0f819fceb19fb2ee5d5d38f56aa837d))
501
+
502
+ ### Contributors to this release
503
+
504
+ - <img src="https://avatars.githubusercontent.com/u/4814473?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+15/-6 (#6145 )")
505
+ - <img src="https://avatars.githubusercontent.com/u/22686401?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Willian Agostini](https://github.com/WillianAgostini "+17/-2 (#6132 )")
506
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+3/-0 (#6084 )")
507
+
508
+ ## [1.6.2](https://github.com/axios/axios/compare/v1.6.1...v1.6.2) (2023-11-14)
509
+
510
+
511
+ ### Features
512
+
513
+ * **withXSRFToken:** added withXSRFToken option as a workaround to achieve the old `withCredentials` behavior; ([#6046](https://github.com/axios/axios/issues/6046)) ([cff9967](https://github.com/axios/axios/commit/cff996779b272a5e94c2b52f5503ccf668bc42dc))
514
+
515
+ ### PRs
516
+ - feat(withXSRFToken): added withXSRFToken option as a workaround to achieve the old &#x60;withCredentials&#x60; behavior; ( [#6046](https://api.github.com/repos/axios/axios/pulls/6046) )
517
+ ```
518
+
519
+ 📢 This PR added &#x27;withXSRFToken&#x27; option as a replacement for old withCredentials behaviour.
520
+ You should now use withXSRFToken along with withCredential to get the old behavior.
521
+ This functionality is considered as a fix.
522
+ ```
523
+
524
+ ### Contributors to this release
525
+
526
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+271/-146 (#6081 #6080 #6079 #6078 #6046 #6064 #6063 )")
527
+ - <img src="https://avatars.githubusercontent.com/u/79681367?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Ng Choon Khon (CK)](https://github.com/ckng0221 "+4/-4 (#6073 )")
528
+ - <img src="https://avatars.githubusercontent.com/u/9162827?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Muhammad Noman](https://github.com/mnomanmemon "+2/-2 (#6048 )")
529
+
530
+ ## [1.6.1](https://github.com/axios/axios/compare/v1.6.0...v1.6.1) (2023-11-08)
531
+
532
+
533
+ ### Bug Fixes
534
+
535
+ * **formdata:** fixed content-type header normalization for non-standard browser environments; ([#6056](https://github.com/axios/axios/issues/6056)) ([dd465ab](https://github.com/axios/axios/commit/dd465ab22bbfa262c6567be6574bf46a057d5288))
536
+ * **platform:** fixed emulated browser detection in node.js environment; ([#6055](https://github.com/axios/axios/issues/6055)) ([3dc8369](https://github.com/axios/axios/commit/3dc8369e505e32a4e12c22f154c55fd63ac67fbb))
537
+
538
+ ### Contributors to this release
539
+
540
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+432/-65 (#6059 #6056 #6055 )")
541
+ - <img src="https://avatars.githubusercontent.com/u/3982806?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Fabian Meyer](https://github.com/meyfa "+5/-2 (#5835 )")
542
+
543
+ ### PRs
544
+ - feat(withXSRFToken): added withXSRFToken option as a workaround to achieve the old &#x60;withCredentials&#x60; behavior; ( [#6046](https://api.github.com/repos/axios/axios/pulls/6046) )
545
+ ```
546
+
547
+ 📢 This PR added &#x27;withXSRFToken&#x27; option as a replacement for old withCredentials behaviour.
548
+ You should now use withXSRFToken along with withCredential to get the old behavior.
549
+ This functionality is considered as a fix.
550
+ ```
551
+
552
+ # [1.6.0](https://github.com/axios/axios/compare/v1.5.1...v1.6.0) (2023-10-26)
553
+
554
+
555
+ ### Bug Fixes
556
+
557
+ * **CSRF:** fixed CSRF vulnerability CVE-2023-45857 ([#6028](https://github.com/axios/axios/issues/6028)) ([96ee232](https://github.com/axios/axios/commit/96ee232bd3ee4de2e657333d4d2191cd389e14d0))
558
+ * **dns:** fixed lookup function decorator to work properly in node v20; ([#6011](https://github.com/axios/axios/issues/6011)) ([5aaff53](https://github.com/axios/axios/commit/5aaff532a6b820bb9ab6a8cd0f77131b47e2adb8))
559
+ * **types:** fix AxiosHeaders types; ([#5931](https://github.com/axios/axios/issues/5931)) ([a1c8ad0](https://github.com/axios/axios/commit/a1c8ad008b3c13d53e135bbd0862587fb9d3fc09))
560
+
561
+ ### PRs
562
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
563
+ ```
564
+
565
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
566
+ ```
567
+
568
+ ### Contributors to this release
569
+
570
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+449/-114 (#6032 #6021 #6011 #5932 #5931 )")
571
+ - <img src="https://avatars.githubusercontent.com/u/63700910?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Valentin Panov](https://github.com/valentin-panov "+4/-4 (#6028 )")
572
+ - <img src="https://avatars.githubusercontent.com/u/76877078?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Rinku Chaudhari](https://github.com/therealrinku "+1/-1 (#5889 )")
573
+
574
+ ## [1.5.1](https://github.com/axios/axios/compare/v1.5.0...v1.5.1) (2023-09-26)
575
+
576
+
577
+ ### Bug Fixes
578
+
579
+ * **adapters:** improved adapters loading logic to have clear error messages; ([#5919](https://github.com/axios/axios/issues/5919)) ([e410779](https://github.com/axios/axios/commit/e4107797a7a1376f6209fbecfbbce73d3faa7859))
580
+ * **formdata:** fixed automatic addition of the `Content-Type` header for FormData in non-browser environments; ([#5917](https://github.com/axios/axios/issues/5917)) ([bc9af51](https://github.com/axios/axios/commit/bc9af51b1886d1b3529617702f2a21a6c0ed5d92))
581
+ * **headers:** allow `content-encoding` header to handle case-insensitive values ([#5890](https://github.com/axios/axios/issues/5890)) ([#5892](https://github.com/axios/axios/issues/5892)) ([4c89f25](https://github.com/axios/axios/commit/4c89f25196525e90a6e75eda9cb31ae0a2e18acd))
582
+ * **types:** removed duplicated code ([9e62056](https://github.com/axios/axios/commit/9e6205630e1c9cf863adf141c0edb9e6d8d4b149))
583
+
584
+ ### Contributors to this release
585
+
586
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+89/-18 (#5919 #5917 )")
587
+ - <img src="https://avatars.githubusercontent.com/u/110460234?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [David Dallas](https://github.com/DavidJDallas "+11/-5 ()")
588
+ - <img src="https://avatars.githubusercontent.com/u/71556073?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Sean Sattler](https://github.com/fb-sean "+2/-8 ()")
589
+ - <img src="https://avatars.githubusercontent.com/u/4294069?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Mustafa Ateş Uzun](https://github.com/0o001 "+4/-4 ()")
590
+ - <img src="https://avatars.githubusercontent.com/u/132928043?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Przemyslaw Motacki](https://github.com/sfc-gh-pmotacki "+2/-1 (#5892 )")
591
+ - <img src="https://avatars.githubusercontent.com/u/5492927?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Michael Di Prisco](https://github.com/Cadienvan "+1/-1 ()")
592
+
593
+ ### PRs
594
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
595
+ ```
596
+
597
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
598
+ ```
599
+
600
+ # [1.5.0](https://github.com/axios/axios/compare/v1.4.0...v1.5.0) (2023-08-26)
601
+
602
+
603
+ ### Bug Fixes
604
+
605
+ * **adapter:** make adapter loading error more clear by using platform-specific adapters explicitly ([#5837](https://github.com/axios/axios/issues/5837)) ([9a414bb](https://github.com/axios/axios/commit/9a414bb6c81796a95c6c7fe668637825458e8b6d))
606
+ * **dns:** fixed `cacheable-lookup` integration; ([#5836](https://github.com/axios/axios/issues/5836)) ([b3e327d](https://github.com/axios/axios/commit/b3e327dcc9277bdce34c7ef57beedf644b00d628))
607
+ * **headers:** added support for setting header names that overlap with class methods; ([#5831](https://github.com/axios/axios/issues/5831)) ([d8b4ca0](https://github.com/axios/axios/commit/d8b4ca0ea5f2f05efa4edfe1e7684593f9f68273))
608
+ * **headers:** fixed common Content-Type header merging; ([#5832](https://github.com/axios/axios/issues/5832)) ([8fda276](https://github.com/axios/axios/commit/8fda2766b1e6bcb72c3fabc146223083ef13ce17))
609
+
610
+
611
+ ### Features
612
+
613
+ * export getAdapter function ([#5324](https://github.com/axios/axios/issues/5324)) ([ca73eb8](https://github.com/axios/axios/commit/ca73eb878df0ae2dace81fe3a7f1fb5986231bf1))
614
+ * **export:** export adapters without `unsafe` prefix ([#5839](https://github.com/axios/axios/issues/5839)) ([1601f4a](https://github.com/axios/axios/commit/1601f4a27a81ab47fea228f1e244b2c4e3ce28bf))
615
+
616
+ ### Contributors to this release
617
+
618
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+66/-29 (#5839 #5837 #5836 #5832 #5831 )")
619
+ - <img src="https://avatars.githubusercontent.com/u/102841186?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [夜葬](https://github.com/geekact "+42/-0 (#5324 )")
620
+ - <img src="https://avatars.githubusercontent.com/u/65978976?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Jonathan Budiman](https://github.com/JBudiman00 "+30/-0 (#5788 )")
621
+ - <img src="https://avatars.githubusercontent.com/u/5492927?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Michael Di Prisco](https://github.com/Cadienvan "+3/-5 (#5791 )")
622
+
623
+ ### PRs
624
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
625
+ ```
626
+
627
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
628
+ ```
629
+
630
+ # [1.4.0](https://github.com/axios/axios/compare/v1.3.6...v1.4.0) (2023-04-27)
631
+
632
+
633
+ ### Bug Fixes
634
+
635
+ * **formdata:** add `multipart/form-data` content type for FormData payload on custom client environments; ([#5678](https://github.com/axios/axios/issues/5678)) ([bbb61e7](https://github.com/axios/axios/commit/bbb61e70cb1185adfb1cbbb86eaf6652c48d89d1))
636
+ * **package:** export package internals with unsafe path prefix; ([#5677](https://github.com/axios/axios/issues/5677)) ([df38c94](https://github.com/axios/axios/commit/df38c949f26414d88ba29ec1e353c4d4f97eaf09))
637
+
638
+
639
+ ### Features
640
+
641
+ * **dns:** added support for a custom lookup function; ([#5339](https://github.com/axios/axios/issues/5339)) ([2701911](https://github.com/axios/axios/commit/2701911260a1faa5cc5e1afe437121b330a3b7bb))
642
+ * **types:** export `AxiosHeaderValue` type. ([#5525](https://github.com/axios/axios/issues/5525)) ([726f1c8](https://github.com/axios/axios/commit/726f1c8e00cffa0461a8813a9bdcb8f8b9d762cf))
643
+
644
+
645
+ ### Performance Improvements
646
+
647
+ * **merge-config:** optimize mergeConfig performance by avoiding duplicate key visits; ([#5679](https://github.com/axios/axios/issues/5679)) ([e6f7053](https://github.com/axios/axios/commit/e6f7053bf1a3e87cf1f9da8677e12e3fe829d68e))
648
+
649
+ ### Contributors to this release
650
+
651
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+151/-16 (#5684 #5339 #5679 #5678 #5677 )")
652
+ - <img src="https://avatars.githubusercontent.com/u/47537704?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Arthur Fiorette](https://github.com/arthurfiorette "+19/-19 (#5525 )")
653
+ - <img src="https://avatars.githubusercontent.com/u/43876655?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [PIYUSH NEGI](https://github.com/npiyush97 "+2/-18 (#5670 )")
654
+
655
+ ### PRs
656
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
657
+ ```
658
+
659
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
660
+ ```
661
+
662
+ ## [1.3.6](https://github.com/axios/axios/compare/v1.3.5...v1.3.6) (2023-04-19)
663
+
664
+
665
+ ### Bug Fixes
666
+
667
+ * **types:** added transport to RawAxiosRequestConfig ([#5445](https://github.com/axios/axios/issues/5445)) ([6f360a2](https://github.com/axios/axios/commit/6f360a2531d8d70363fd9becef6a45a323f170e2))
668
+ * **utils:** make isFormData detection logic stricter to avoid unnecessary calling of the `toString` method on the target; ([#5661](https://github.com/axios/axios/issues/5661)) ([aa372f7](https://github.com/axios/axios/commit/aa372f7306295dfd1100c1c2c77ce95c95808e76))
669
+
670
+ ### Contributors to this release
671
+
672
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+48/-10 (#5665 #5661 #5663 )")
673
+ - <img src="https://avatars.githubusercontent.com/u/5492927?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Michael Di Prisco](https://github.com/Cadienvan "+2/-0 (#5445 )")
674
+
675
+ ### PRs
676
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
677
+ ```
678
+
679
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
680
+ ```
681
+
682
+ ## [1.3.5](https://github.com/axios/axios/compare/v1.3.4...v1.3.5) (2023-04-05)
683
+
684
+
685
+ ### Bug Fixes
686
+
687
+ * **headers:** fixed isValidHeaderName to support full list of allowed characters; ([#5584](https://github.com/axios/axios/issues/5584)) ([e7decef](https://github.com/axios/axios/commit/e7decef6a99f4627e27ed9ea5b00ce8e201c3841))
688
+ * **params:** re-added the ability to set the function as `paramsSerializer` config; ([#5633](https://github.com/axios/axios/issues/5633)) ([a56c866](https://github.com/axios/axios/commit/a56c8661209d5ce5a645a05f294a0e08a6c1f6b3))
689
+
690
+ ### Contributors to this release
691
+
692
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+28/-10 (#5633 #5584 )")
693
+
694
+ ### PRs
695
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
696
+ ```
697
+
698
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
699
+ ```
700
+
701
+ ## [1.3.4](https://github.com/axios/axios/compare/v1.3.3...v1.3.4) (2023-02-22)
702
+
703
+
704
+ ### Bug Fixes
705
+
706
+ * **blob:** added a check to make sure the Blob class is available in the browser's global scope; ([#5548](https://github.com/axios/axios/issues/5548)) ([3772c8f](https://github.com/axios/axios/commit/3772c8fe74112a56e3e9551f894d899bc3a9443a))
707
+ * **http:** fixed regression bug when handling synchronous errors inside the adapter; ([#5564](https://github.com/axios/axios/issues/5564)) ([a3b246c](https://github.com/axios/axios/commit/a3b246c9de5c3bc4b5a742e15add55b375479451))
708
+
709
+ ### Contributors to this release
710
+
711
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+38/-26 (#5564 )")
712
+ - <img src="https://avatars.githubusercontent.com/u/19550000?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [lcysgsg](https://github.com/lcysgsg "+4/-0 (#5548 )")
713
+ - <img src="https://avatars.githubusercontent.com/u/5492927?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Michael Di Prisco](https://github.com/Cadienvan "+3/-0 (#5444 )")
714
+
715
+ ### PRs
716
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
717
+ ```
718
+
719
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
720
+ ```
721
+
722
+ ## [1.3.3](https://github.com/axios/axios/compare/v1.3.2...v1.3.3) (2023-02-13)
723
+
724
+
725
+ ### Bug Fixes
726
+
727
+ * **formdata:** added a check to make sure the FormData class is available in the browser's global scope; ([#5545](https://github.com/axios/axios/issues/5545)) ([a6dfa72](https://github.com/axios/axios/commit/a6dfa72010db5ad52db8bd13c0f98e537e8fd05d))
728
+ * **formdata:** fixed setting NaN as Content-Length for form payload in some cases; ([#5535](https://github.com/axios/axios/issues/5535)) ([c19f7bf](https://github.com/axios/axios/commit/c19f7bf770f90ae8307f4ea3104f227056912da1))
729
+ * **headers:** fixed the filtering logic of the clear method; ([#5542](https://github.com/axios/axios/issues/5542)) ([ea87ebf](https://github.com/axios/axios/commit/ea87ebfe6d1699af072b9e7cd40faf8f14b0ab93))
730
+
731
+ ### Contributors to this release
732
+
733
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+11/-7 (#5545 #5535 #5542 )")
734
+ - <img src="https://avatars.githubusercontent.com/u/19842213?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [陈若枫](https://github.com/ruofee "+2/-2 (#5467 )")
735
+
736
+ ### PRs
737
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
738
+ ```
739
+
740
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
741
+ ```
742
+
743
+ ## [1.3.2](https://github.com/axios/axios/compare/v1.3.1...v1.3.2) (2023-02-03)
744
+
745
+
746
+ ### Bug Fixes
747
+
748
+ * **http:** treat http://localhost as base URL for relative paths to avoid `ERR_INVALID_URL` error; ([#5528](https://github.com/axios/axios/issues/5528)) ([128d56f](https://github.com/axios/axios/commit/128d56f4a0fb8f5f2ed6e0dd80bc9225fee9538c))
749
+ * **http:** use explicit import instead of TextEncoder global; ([#5530](https://github.com/axios/axios/issues/5530)) ([6b3c305](https://github.com/axios/axios/commit/6b3c305fc40c56428e0afabedc6f4d29c2830f6f))
750
+
751
+ ### Contributors to this release
752
+
753
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+2/-1 (#5530 #5528 )")
754
+
755
+ ### PRs
756
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
757
+ ```
758
+
759
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
760
+ ```
761
+
762
+ ## [1.3.1](https://github.com/axios/axios/compare/v1.3.0...v1.3.1) (2023-02-01)
763
+
764
+
765
+ ### Bug Fixes
766
+
767
+ * **formdata:** add hotfix to use the asynchronous API to compute the content-length header value; ([#5521](https://github.com/axios/axios/issues/5521)) ([96d336f](https://github.com/axios/axios/commit/96d336f527619f21da012fe1f117eeb53e5a2120))
768
+ * **serializer:** fixed serialization of array-like objects; ([#5518](https://github.com/axios/axios/issues/5518)) ([08104c0](https://github.com/axios/axios/commit/08104c028c0f9353897b1b6691d74c440fd0c32d))
769
+
770
+ ### Contributors to this release
771
+
772
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+27/-8 (#5521 #5518 )")
773
+
774
+ ### PRs
775
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
776
+ ```
777
+
778
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
779
+ ```
780
+
781
+ # [1.3.0](https://github.com/axios/axios/compare/v1.2.6...v1.3.0) (2023-01-31)
782
+
783
+
784
+ ### Bug Fixes
785
+
786
+ * **headers:** fixed & optimized clear method; ([#5507](https://github.com/axios/axios/issues/5507)) ([9915635](https://github.com/axios/axios/commit/9915635c69d0ab70daca5738488421f67ca60959))
787
+ * **http:** add zlib headers if missing ([#5497](https://github.com/axios/axios/issues/5497)) ([65e8d1e](https://github.com/axios/axios/commit/65e8d1e28ce829f47a837e45129730e541950d3c))
788
+
789
+
790
+ ### Features
791
+
792
+ * **fomdata:** added support for spec-compliant FormData & Blob types; ([#5316](https://github.com/axios/axios/issues/5316)) ([6ac574e](https://github.com/axios/axios/commit/6ac574e00a06731288347acea1e8246091196953))
793
+
794
+ ### Contributors to this release
795
+
796
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+352/-67 (#5514 #5512 #5510 #5509 #5508 #5316 #5507 )")
797
+ - <img src="https://avatars.githubusercontent.com/u/35015993?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [ItsNotGoodName](https://github.com/ItsNotGoodName "+43/-2 (#5497 )")
798
+
799
+ ### PRs
800
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
801
+ ```
802
+
803
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
804
+ ```
805
+
806
+ ## [1.2.6](https://github.com/axios/axios/compare/v1.2.5...v1.2.6) (2023-01-28)
807
+
808
+
809
+ ### Bug Fixes
810
+
811
+ * **headers:** added missed Authorization accessor; ([#5502](https://github.com/axios/axios/issues/5502)) ([342c0ba](https://github.com/axios/axios/commit/342c0ba9a16ea50f5ed7d2366c5c1a2c877e3f26))
812
+ * **types:** fixed `CommonRequestHeadersList` & `CommonResponseHeadersList` types to be private in commonJS; ([#5503](https://github.com/axios/axios/issues/5503)) ([5a3d0a3](https://github.com/axios/axios/commit/5a3d0a3234d77361a1bc7cedee2da1e11df08e2c))
813
+
814
+ ### Contributors to this release
815
+
816
+ - ![avatar](https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+24/-9 (#5503 #5502 )")
817
+
818
+ ### PRs
819
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
820
+ ```
821
+
822
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
823
+ ```
824
+
825
+ ## [1.2.5](https://github.com/axios/axios/compare/v1.2.4...v1.2.5) (2023-01-26)
826
+
827
+
828
+ ### Bug Fixes
829
+
830
+ * **types:** fixed AxiosHeaders to handle spread syntax by making all methods non-enumerable; ([#5499](https://github.com/axios/axios/issues/5499)) ([580f1e8](https://github.com/axios/axios/commit/580f1e8033a61baa38149d59fd16019de3932c22))
831
+
832
+ ### Contributors to this release
833
+
834
+ - ![avatar](https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+82/-54 (#5499 )")
835
+ - ![avatar](https://avatars.githubusercontent.com/u/20516159?v&#x3D;4&amp;s&#x3D;16) [Elliot Ford](https://github.com/EFord36 "+1/-1 (#5462 )")
836
+
837
+ ### PRs
838
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
839
+ ```
840
+
841
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
842
+ ```
843
+
844
+ ## [1.2.4](https://github.com/axios/axios/compare/v1.2.3...v1.2.4) (2023-01-22)
845
+
846
+
847
+ ### Bug Fixes
848
+
849
+ * **types:** renamed `RawAxiosRequestConfig` back to `AxiosRequestConfig`; ([#5486](https://github.com/axios/axios/issues/5486)) ([2a71f49](https://github.com/axios/axios/commit/2a71f49bc6c68495fa419003a3107ed8bd703ad0))
850
+ * **types:** fix `AxiosRequestConfig` generic; ([#5478](https://github.com/axios/axios/issues/5478)) ([9bce81b](https://github.com/axios/axios/commit/186ea062da8b7d578ae78b1a5c220986b9bce81b))
851
+
852
+ ### Contributors to this release
853
+
854
+ - ![avatar](https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+242/-108 (#5486 #5482 )")
855
+ - ![avatar](https://avatars.githubusercontent.com/u/9430821?v&#x3D;4&amp;s&#x3D;16) [Daniel Hillmann](https://github.com/hilleer "+1/-1 (#5478 )")
856
+
857
+ ### PRs
858
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
859
+ ```
860
+
861
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
862
+ ```
863
+
864
+ ## [1.2.3](https://github.com/axios/axios/compare/1.2.2...1.2.3) (2023-01-10)
865
+
866
+
867
+ ### Bug Fixes
868
+
869
+ * **types:** fixed AxiosRequestConfig header interface by refactoring it to RawAxiosRequestConfig; ([#5420](https://github.com/axios/axios/issues/5420)) ([0811963](https://github.com/axios/axios/commit/08119634a22f1d5b19f5c9ea0adccb6d3eebc3bc))
870
+
871
+ ### Contributors to this release
872
+
873
+ - ![avatar](https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+938/-442 (#5456 #5455 #5453 #5451 #5449 #5447 #5446 #5443 #5442 #5439 #5420 )")
874
+
875
+ ### PRs
876
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
877
+ ```
878
+
879
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
880
+ ```
881
+
882
+ ## [1.2.2] - 2022-12-29
883
+
884
+ ### Fixed
885
+ - fix(ci): fix release script inputs [#5392](https://github.com/axios/axios/pull/5392)
886
+ - fix(ci): prerelease scipts [#5377](https://github.com/axios/axios/pull/5377)
887
+ - fix(ci): release scripts [#5376](https://github.com/axios/axios/pull/5376)
888
+ - fix(ci): typescript tests [#5375](https://github.com/axios/axios/pull/5375)
889
+ - fix: Brotli decompression [#5353](https://github.com/axios/axios/pull/5353)
890
+ - fix: add missing HttpStatusCode [#5345](https://github.com/axios/axios/pull/5345)
891
+
892
+ ### Chores
893
+ - chore(ci): set conventional-changelog header config [#5406](https://github.com/axios/axios/pull/5406)
894
+ - chore(ci): fix automatic contributors resolving [#5403](https://github.com/axios/axios/pull/5403)
895
+ - chore(ci): improved logging for the contributors list generator [#5398](https://github.com/axios/axios/pull/5398)
896
+ - chore(ci): fix release action [#5397](https://github.com/axios/axios/pull/5397)
897
+ - chore(ci): fix version bump script by adding bump argument for target version [#5393](https://github.com/axios/axios/pull/5393)
898
+ - chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 [#5342](https://github.com/axios/axios/pull/5342)
899
+ - chore(ci): GitHub Actions Release script [#5384](https://github.com/axios/axios/pull/5384)
900
+ - chore(ci): release scripts [#5364](https://github.com/axios/axios/pull/5364)
901
+
902
+ ### Contributors to this release
903
+ - ![avatar](https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
904
+ - ![avatar](https://avatars.githubusercontent.com/u/1652293?v&#x3D;4&amp;s&#x3D;16) [Winnie](https://github.com/winniehell)
905
+
906
+ ## [1.2.1] - 2022-12-05
907
+
908
+ ### Changed
909
+ - feat(exports): export mergeConfig [#5151](https://github.com/axios/axios/pull/5151)
910
+
911
+ ### Fixed
912
+ - fix(CancelledError): include config [#4922](https://github.com/axios/axios/pull/4922)
913
+ - fix(general): removing multiple/trailing/leading whitespace [#5022](https://github.com/axios/axios/pull/5022)
914
+ - fix(headers): decompression for responses without Content-Length header [#5306](https://github.com/axios/axios/pull/5306)
915
+ - fix(webWorker): exception to sending form data in web worker [#5139](https://github.com/axios/axios/pull/5139)
916
+
917
+ ### Refactors
918
+ - refactor(types): AxiosProgressEvent.event type to any [#5308](https://github.com/axios/axios/pull/5308)
919
+ - refactor(types): add missing types for static AxiosError.from method [#4956](https://github.com/axios/axios/pull/4956)
920
+
921
+ ### Chores
922
+ - chore(docs): remove README link to non-existent upgrade guide [#5307](https://github.com/axios/axios/pull/5307)
923
+ - chore(docs): typo in issue template name [#5159](https://github.com/axios/axios/pull/5159)
924
+
925
+ ### Contributors to this release
926
+
927
+ - [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
928
+ - [Zachary Lysobey](https://github.com/zachlysobey)
929
+ - [Kevin Ennis](https://github.com/kevincennis)
930
+ - [Philipp Loose](https://github.com/phloose)
931
+ - [secondl1ght](https://github.com/secondl1ght)
932
+ - [wenzheng](https://github.com/0x30)
933
+ - [Ivan Barsukov](https://github.com/ovarn)
934
+ - [Arthur Fiorette](https://github.com/arthurfiorette)
935
+
936
+ ### PRs
937
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
938
+ ```
939
+
940
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
941
+ ```
942
+
943
+ ## [1.2.0] - 2022-11-10
944
+
945
+ ### Changed
946
+
947
+ - changed: refactored module exports [#5162](https://github.com/axios/axios/pull/5162)
948
+ - change: re-added support for loading Axios with require('axios').default [#5225](https://github.com/axios/axios/pull/5225)
949
+
950
+ ### Fixed
951
+
952
+ - fix: improve AxiosHeaders class [#5224](https://github.com/axios/axios/pull/5224)
953
+ - fix: TypeScript type definitions for commonjs [#5196](https://github.com/axios/axios/pull/5196)
954
+ - fix: type definition of use method on AxiosInterceptorManager to match the the README [#5071](https://github.com/axios/axios/pull/5071)
955
+ - fix: __dirname is not defined in the sandbox [#5269](https://github.com/axios/axios/pull/5269)
956
+ - fix: AxiosError.toJSON method to avoid circular references [#5247](https://github.com/axios/axios/pull/5247)
957
+ - fix: Z_BUF_ERROR when content-encoding is set but the response body is empty [#5250](https://github.com/axios/axios/pull/5250)
958
+
959
+ ### Refactors
960
+ - refactor: allowing adapters to be loaded by name [#5277](https://github.com/axios/axios/pull/5277)
961
+
962
+ ### Chores
963
+
964
+ - chore: force CI restart [#5243](https://github.com/axios/axios/pull/5243)
965
+ - chore: update ECOSYSTEM.md [#5077](https://github.com/axios/axios/pull/5077)
966
+ - chore: update get/index.html [#5116](https://github.com/axios/axios/pull/5116)
967
+ - chore: update Sandbox UI/UX [#5205](https://github.com/axios/axios/pull/5205)
968
+ - chore:(actions): remove git credentials after checkout [#5235](https://github.com/axios/axios/pull/5235)
969
+ - chore(actions): bump actions/dependency-review-action from 2 to 3 [#5266](https://github.com/axios/axios/pull/5266)
970
+ - chore(packages): bump loader-utils from 1.4.1 to 1.4.2 [#5295](https://github.com/axios/axios/pull/5295)
971
+ - chore(packages): bump engine.io from 6.2.0 to 6.2.1 [#5294](https://github.com/axios/axios/pull/5294)
972
+ - chore(packages): bump socket.io-parser from 4.0.4 to 4.0.5 [#5241](https://github.com/axios/axios/pull/5241)
973
+ - chore(packages): bump loader-utils from 1.4.0 to 1.4.1 [#5245](https://github.com/axios/axios/pull/5245)
974
+ - chore(docs): update Resources links in README [#5119](https://github.com/axios/axios/pull/5119)
975
+ - chore(docs): update the link for JSON url [#5265](https://github.com/axios/axios/pull/5265)
976
+ - chore(docs): fix broken links [#5218](https://github.com/axios/axios/pull/5218)
977
+ - chore(docs): update and rename UPGRADE_GUIDE.md to MIGRATION_GUIDE.md [#5170](https://github.com/axios/axios/pull/5170)
978
+ - chore(docs): typo fix line #856 and #920 [#5194](https://github.com/axios/axios/pull/5194)
979
+ - chore(docs): typo fix #800 [#5193](https://github.com/axios/axios/pull/5193)
980
+ - chore(docs): fix typos [#5184](https://github.com/axios/axios/pull/5184)
981
+ - chore(docs): fix punctuation in README.md [#5197](https://github.com/axios/axios/pull/5197)
982
+ - chore(docs): update readme in the Handling Errors section - issue reference #5260 [#5261](https://github.com/axios/axios/pull/5261)
983
+ - chore: remove \b from filename [#5207](https://github.com/axios/axios/pull/5207)
984
+ - chore(docs): update CHANGELOG.md [#5137](https://github.com/axios/axios/pull/5137)
985
+ - chore: add sideEffects false to package.json [#5025](https://github.com/axios/axios/pull/5025)
986
+
987
+ ### Contributors to this release
988
+
989
+ - [Maddy Miller](https://github.com/me4502)
990
+ - [Amit Saini](https://github.com/amitsainii)
991
+ - [ecyrbe](https://github.com/ecyrbe)
992
+ - [Ikko Ashimine](https://github.com/eltociear)
993
+ - [Geeth Gunnampalli](https://github.com/thetechie7)
994
+ - [Shreem Asati](https://github.com/shreem-123)
995
+ - [Frieder Bluemle](https://github.com/friederbluemle)
996
+ - [윤세영](https://github.com/yunseyeong)
997
+ - [Claudio Busatto](https://github.com/cjcbusatto)
998
+ - [Remco Haszing](https://github.com/remcohaszing)
999
+ - [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
1000
+ - [Csaba Maulis](https://github.com/om4csaba)
1001
+ - [MoPaMo](https://github.com/MoPaMo)
1002
+ - [Daniel Fjeldstad](https://github.com/w3bdesign)
1003
+ - [Adrien Brunet](https://github.com/adrien-may)
1004
+ - [Frazer Smith](https://github.com/Fdawgs)
1005
+ - [HaiTao](https://github.com/836334258)
1006
+ - [AZM](https://github.com/aziyatali)
1007
+ - [relbns](https://github.com/relbns)
1008
+
1009
+ ### PRs
1010
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
1011
+ ```
1012
+
1013
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
1014
+ ```
1015
+
1016
+ ## [1.1.3] - 2022-10-15
1017
+
1018
+ ### Added
1019
+
1020
+ - Added custom params serializer support [#5113](https://github.com/axios/axios/pull/5113)
1021
+
1022
+ ### Fixed
1023
+
1024
+ - Fixed top-level export to keep them in-line with static properties [#5109](https://github.com/axios/axios/pull/5109)
1025
+ - Stopped including null values to query string. [#5108](https://github.com/axios/axios/pull/5108)
1026
+ - Restored proxy config backwards compatibility with 0.x [#5097](https://github.com/axios/axios/pull/5097)
1027
+ - Added back AxiosHeaders in AxiosHeaderValue [#5103](https://github.com/axios/axios/pull/5103)
1028
+ - Pin CDN install instructions to a specific version [#5060](https://github.com/axios/axios/pull/5060)
1029
+ - Handling of array values fixed for AxiosHeaders [#5085](https://github.com/axios/axios/pull/5085)
1030
+
1031
+ ### Chores
1032
+
1033
+ - docs: match badge style, add link to them [#5046](https://github.com/axios/axios/pull/5046)
1034
+ - chore: fixing comments typo [#5054](https://github.com/axios/axios/pull/5054)
1035
+ - chore: update issue template [#5061](https://github.com/axios/axios/pull/5061)
1036
+ - chore: added progress capturing section to the docs; [#5084](https://github.com/axios/axios/pull/5084)
1037
+
1038
+ ### Contributors to this release
1039
+
1040
+ - [Jason Saayman](https://github.com/jasonsaayman)
1041
+ - [scarf](https://github.com/scarf005)
1042
+ - [Lenz Weber-Tronic](https://github.com/phryneas)
1043
+ - [Arvindh](https://github.com/itsarvindh)
1044
+ - [Félix Legrelle](https://github.com/FelixLgr)
1045
+ - [Patrick Petrovic](https://github.com/ppati000)
1046
+ - [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
1047
+ - [littledian](https://github.com/littledian)
1048
+ - [ChronosMasterOfAllTime](https://github.com/ChronosMasterOfAllTime)
1049
+
1050
+ ### PRs
1051
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
1052
+ ```
1053
+
1054
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
1055
+ ```
1056
+
1057
+ ## [1.1.2] - 2022-10-07
1058
+
1059
+ ### Fixed
1060
+
1061
+ - Fixed broken exports for UMD builds.
1062
+
1063
+ ### Contributors to this release
1064
+
1065
+ - [Jason Saayman](https://github.com/jasonsaayman)
1066
+
1067
+ ### PRs
1068
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
1069
+ ```
1070
+
1071
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
1072
+ ```
1073
+
1074
+ ## [1.1.1] - 2022-10-07
1075
+
1076
+ ### Fixed
1077
+
1078
+ - Fixed broken exports for common js. This fix breaks a prior fix, I will fix both issues ASAP but the commonJS use is more impactful.
1079
+
1080
+ ### Contributors to this release
1081
+
1082
+ - [Jason Saayman](https://github.com/jasonsaayman)
1083
+
1084
+ ### PRs
1085
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
1086
+ ```
1087
+
1088
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
1089
+ ```
1090
+
1091
+ ## [1.1.0] - 2022-10-06
1092
+
1093
+ ### Fixed
1094
+
1095
+ - Fixed missing exports in type definition index.d.ts [#5003](https://github.com/axios/axios/pull/5003)
1096
+ - Fixed query params composing [#5018](https://github.com/axios/axios/pull/5018)
1097
+ - Fixed GenericAbortSignal interface by making it more generic [#5021](https://github.com/axios/axios/pull/5021)
1098
+ - Fixed adding "clear" to AxiosInterceptorManager [#5010](https://github.com/axios/axios/pull/5010)
1099
+ - Fixed commonjs & umd exports [#5030](https://github.com/axios/axios/pull/5030)
1100
+ - Fixed inability to access response headers when using axios 1.x with Jest [#5036](https://github.com/axios/axios/pull/5036)
1101
+
1102
+ ### Contributors to this release
1103
+
1104
+ - [Trim21](https://github.com/trim21)
1105
+ - [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
1106
+ - [shingo.sasaki](https://github.com/s-sasaki-0529)
1107
+ - [Ivan Pepelko](https://github.com/ivanpepelko)
1108
+ - [Richard Kořínek](https://github.com/risa)
1109
+
1110
+ ### PRs
1111
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
1112
+ ```
1113
+
1114
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
1115
+ ```
1116
+
1117
+ ## [1.0.0] - 2022-10-04
1118
+
1119
+ ### Added
1120
+
1121
+ - Added stack trace to AxiosError [#4624](https://github.com/axios/axios/pull/4624)
1122
+ - Add AxiosError to AxiosStatic [#4654](https://github.com/axios/axios/pull/4654)
1123
+ - Replaced Rollup as our build runner [#4596](https://github.com/axios/axios/pull/4596)
1124
+ - Added generic TS types for the exposed toFormData helper [#4668](https://github.com/axios/axios/pull/4668)
1125
+ - Added listen callback function [#4096](https://github.com/axios/axios/pull/4096)
1126
+ - Added instructions for installing using PNPM [#4207](https://github.com/axios/axios/pull/4207)
1127
+ - Added generic AxiosAbortSignal TS interface to avoid importing AbortController polyfill [#4229](https://github.com/axios/axios/pull/4229)
1128
+ - Added axios-url-template in ECOSYSTEM.md [#4238](https://github.com/axios/axios/pull/4238)
1129
+ - Added a clear() function to the request and response interceptors object so a user can ensure that all interceptors have been removed from an axios instance [#4248](https://github.com/axios/axios/pull/4248)
1130
+ - Added react hook plugin [#4319](https://github.com/axios/axios/pull/4319)
1131
+ - Adding HTTP status code for transformResponse [#4580](https://github.com/axios/axios/pull/4580)
1132
+ - Added blob to the list of protocols supported by the browser [#4678](https://github.com/axios/axios/pull/4678)
1133
+ - Resolving proxy from env on redirect [#4436](https://github.com/axios/axios/pull/4436)
1134
+ - Added enhanced toFormData implementation with additional options [4704](https://github.com/axios/axios/pull/4704)
1135
+ - Adding Canceler parameters config and request [#4711](https://github.com/axios/axios/pull/4711)
1136
+ - Added automatic payload serialization to application/x-www-form-urlencoded [#4714](https://github.com/axios/axios/pull/4714)
1137
+ - Added the ability for webpack users to overwrite built-ins [#4715](https://github.com/axios/axios/pull/4715)
1138
+ - Added string[] to AxiosRequestHeaders type [#4322](https://github.com/axios/axios/pull/4322)
1139
+ - Added the ability for the url-encoded-form serializer to respect the formSerializer config [#4721](https://github.com/axios/axios/pull/4721)
1140
+ - Added isCancel type assert [#4293](https://github.com/axios/axios/pull/4293)
1141
+ - Added data URL support for node.js [#4725](https://github.com/axios/axios/pull/4725)
1142
+ - Adding types for progress event callbacks [#4675](https://github.com/axios/axios/pull/4675)
1143
+ - URL params serializer [#4734](https://github.com/axios/axios/pull/4734)
1144
+ - Added axios.formToJSON method [#4735](https://github.com/axios/axios/pull/4735)
1145
+ - Bower platform add data protocol [#4804](https://github.com/axios/axios/pull/4804)
1146
+ - Use WHATWG URL API instead of url.parse() [#4852](https://github.com/axios/axios/pull/4852)
1147
+ - Add ENUM containing Http Status Codes to typings [#4903](https://github.com/axios/axios/pull/4903)
1148
+ - Improve typing of timeout in index.d.ts [#4934](https://github.com/axios/axios/pull/4934)
1149
+
1150
+ ### Changed
1151
+
1152
+ - Updated AxiosError.config to be optional in the type definition [#4665](https://github.com/axios/axios/pull/4665)
1153
+ - Updated README emphasizing the URLSearchParam built-in interface over other solutions [#4590](https://github.com/axios/axios/pull/4590)
1154
+ - Include request and config when creating a CanceledError instance [#4659](https://github.com/axios/axios/pull/4659)
1155
+ - Changed func-names eslint rule to as-needed [#4492](https://github.com/axios/axios/pull/4492)
1156
+ - Replacing deprecated substr() with slice() as substr() is deprecated [#4468](https://github.com/axios/axios/pull/4468)
1157
+ - Updating HTTP links in README.md to use HTTPS [#4387](https://github.com/axios/axios/pull/4387)
1158
+ - Updated to a better trim() polyfill [#4072](https://github.com/axios/axios/pull/4072)
1159
+ - Updated types to allow specifying partial default headers on instance create [#4185](https://github.com/axios/axios/pull/4185)
1160
+ - Expanded isAxiosError types [#4344](https://github.com/axios/axios/pull/4344)
1161
+ - Updated type definition for axios instance methods [#4224](https://github.com/axios/axios/pull/4224)
1162
+ - Updated eslint config [#4722](https://github.com/axios/axios/pull/4722)
1163
+ - Updated Docs [#4742](https://github.com/axios/axios/pull/4742)
1164
+ - Refactored Axios to use ES2017 [#4787](https://github.com/axios/axios/pull/4787)
1165
+
1166
+
1167
+ ### Deprecated
1168
+ - There are multiple deprecations, refactors and fixes provided in this release. Please read through the full release notes to see how this may impact your project and use case.
1169
+
1170
+ ### Removed
1171
+
1172
+ - Removed incorrect argument for NetworkError constructor [#4656](https://github.com/axios/axios/pull/4656)
1173
+ - Removed Webpack [#4596](https://github.com/axios/axios/pull/4596)
1174
+ - Removed function that transform arguments to array [#4544](https://github.com/axios/axios/pull/4544)
1175
+
1176
+ ### Fixed
1177
+
1178
+ - Fixed grammar in README [#4649](https://github.com/axios/axios/pull/4649)
1179
+ - Fixed code error in README [#4599](https://github.com/axios/axios/pull/4599)
1180
+ - Optimized the code that checks cancellation [#4587](https://github.com/axios/axios/pull/4587)
1181
+ - Fix url pointing to defaults.js in README [#4532](https://github.com/axios/axios/pull/4532)
1182
+ - Use type alias instead of interface for AxiosPromise [#4505](https://github.com/axios/axios/pull/4505)
1183
+ - Fix some word spelling and lint style in code comments [#4500](https://github.com/axios/axios/pull/4500)
1184
+ - Edited readme with 3 updated browser icons of Chrome, FireFox and Safari [#4414](https://github.com/axios/axios/pull/4414)
1185
+ - Bump follow-redirects from 1.14.9 to 1.15.0 [#4673](https://github.com/axios/axios/pull/4673)
1186
+ - Fixing http tests to avoid hanging when assertions fail [#4435](https://github.com/axios/axios/pull/4435)
1187
+ - Fix TS definition for AxiosRequestTransformer [#4201](https://github.com/axios/axios/pull/4201)
1188
+ - Fix grammatical issues in README [#4232](https://github.com/axios/axios/pull/4232)
1189
+ - Fixing instance.defaults.headers type [#4557](https://github.com/axios/axios/pull/4557)
1190
+ - Fixed race condition on immediate requests cancellation [#4261](https://github.com/axios/axios/pull/4261)
1191
+ - Fixing Z_BUF_ERROR when no content [#4701](https://github.com/axios/axios/pull/4701)
1192
+ - Fixing proxy beforeRedirect regression [#4708](https://github.com/axios/axios/pull/4708)
1193
+ - Fixed AxiosError status code type [#4717](https://github.com/axios/axios/pull/4717)
1194
+ - Fixed AxiosError stack capturing [#4718](https://github.com/axios/axios/pull/4718)
1195
+ - Fixing AxiosRequestHeaders typings [#4334](https://github.com/axios/axios/pull/4334)
1196
+ - Fixed max body length defaults [#4731](https://github.com/axios/axios/pull/4731)
1197
+ - Fixed toFormData Blob issue on node>v17 [#4728](https://github.com/axios/axios/pull/4728)
1198
+ - Bump grunt from 1.5.2 to 1.5.3 [#4743](https://github.com/axios/axios/pull/4743)
1199
+ - Fixing content-type header repeated [#4745](https://github.com/axios/axios/pull/4745)
1200
+ - Fixed timeout error message for http [4738](https://github.com/axios/axios/pull/4738)
1201
+ - Request ignores false, 0 and empty string as body values [#4785](https://github.com/axios/axios/pull/4785)
1202
+ - Added back missing minified builds [#4805](https://github.com/axios/axios/pull/4805)
1203
+ - Fixed a type error [#4815](https://github.com/axios/axios/pull/4815)
1204
+ - Fixed a regression bug with unsubscribing from cancel token; [#4819](https://github.com/axios/axios/pull/4819)
1205
+ - Remove repeated compression algorithm [#4820](https://github.com/axios/axios/pull/4820)
1206
+ - The error of calling extend to pass parameters [#4857](https://github.com/axios/axios/pull/4857)
1207
+ - SerializerOptions.indexes allows boolean | null | undefined [#4862](https://github.com/axios/axios/pull/4862)
1208
+ - Require interceptors to return values [#4874](https://github.com/axios/axios/pull/4874)
1209
+ - Removed unused imports [#4949](https://github.com/axios/axios/pull/4949)
1210
+ - Allow null indexes on formSerializer and paramsSerializer [#4960](https://github.com/axios/axios/pull/4960)
1211
+
1212
+ ### Chores
1213
+ - Set permissions for GitHub actions [#4765](https://github.com/axios/axios/pull/4765)
1214
+ - Included githubactions in the dependabot config [#4770](https://github.com/axios/axios/pull/4770)
1215
+ - Included dependency review [#4771](https://github.com/axios/axios/pull/4771)
1216
+ - Update security.md [#4784](https://github.com/axios/axios/pull/4784)
1217
+ - Remove unnecessary spaces [#4854](https://github.com/axios/axios/pull/4854)
1218
+ - Simplify the import path of AxiosError [#4875](https://github.com/axios/axios/pull/4875)
1219
+ - Fix Gitpod dead link [#4941](https://github.com/axios/axios/pull/4941)
1220
+ - Enable syntax highlighting for a code block [#4970](https://github.com/axios/axios/pull/4970)
1221
+ - Using Logo Axios in Readme.md [#4993](https://github.com/axios/axios/pull/4993)
1222
+ - Fix markup for note in README [#4825](https://github.com/axios/axios/pull/4825)
1223
+ - Fix typo and formatting, add colons [#4853](https://github.com/axios/axios/pull/4853)
1224
+ - Fix typo in readme [#4942](https://github.com/axios/axios/pull/4942)
1225
+
1226
+ ### Security
1227
+
1228
+ - Update SECURITY.md [#4687](https://github.com/axios/axios/pull/4687)
1229
+
1230
+ ### Contributors to this release
1231
+
1232
+ - [Bertrand Marron](https://github.com/tusbar)
1233
+ - [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
1234
+ - [Dan Mooney](https://github.com/danmooney)
1235
+ - [Michael Li](https://github.com/xiaoyu-tamu)
1236
+ - [aong](https://github.com/yxwzaxns)
1237
+ - [Des Preston](https://github.com/despreston)
1238
+ - [Ted Robertson](https://github.com/tredondo)
1239
+ - [zhoulixiang](https://github.com/zh-lx)
1240
+ - [Arthur Fiorette](https://github.com/arthurfiorette)
1241
+ - [Kumar Shanu](https://github.com/Kr-Shanu)
1242
+ - [JALAL](https://github.com/JLL32)
1243
+ - [Jingyi Lin](https://github.com/MageeLin)
1244
+ - [Philipp Loose](https://github.com/phloose)
1245
+ - [Alexander Shchukin](https://github.com/sashsvamir)
1246
+ - [Dave Cardwell](https://github.com/davecardwell)
1247
+ - [Cat Scarlet](https://github.com/catscarlet)
1248
+ - [Luca Pizzini](https://github.com/lpizzinidev)
1249
+ - [Kai](https://github.com/Schweinepriester)
1250
+ - [Maxime Bargiel](https://github.com/mbargiel)
1251
+ - [Brian Helba](https://github.com/brianhelba)
1252
+ - [reslear](https://github.com/reslear)
1253
+ - [Jamie Slome](https://github.com/JamieSlome)
1254
+ - [Landro3](https://github.com/Landro3)
1255
+ - [rafw87](https://github.com/rafw87)
1256
+ - [Afzal Sayed](https://github.com/afzalsayed96)
1257
+ - [Koki Oyatsu](https://github.com/kaishuu0123)
1258
+ - [Dave](https://github.com/wangcch)
1259
+ - [暴走老七](https://github.com/baozouai)
1260
+ - [Spencer](https://github.com/spalger)
1261
+ - [Adrian Wieprzkowicz](https://github.com/Argeento)
1262
+ - [Jamie Telin](https://github.com/lejahmie)
1263
+ - [毛呆](https://github.com/aweikalee)
1264
+ - [Kirill Shakirov](https://github.com/turisap)
1265
+ - [Rraji Abdelbari](https://github.com/estarossa0)
1266
+ - [Jelle Schutter](https://github.com/jelleschutter)
1267
+ - [Tom Ceuppens](https://github.com/KyorCode)
1268
+ - [Johann Cooper](https://github.com/JohannCooper)
1269
+ - [Dimitris Halatsis](https://github.com/mitsos1os)
1270
+ - [chenjigeng](https://github.com/chenjigeng)
1271
+ - [João Gabriel Quaresma](https://github.com/joaoGabriel55)
1272
+ - [Victor Augusto](https://github.com/VictorAugDB)
1273
+ - [neilnaveen](https://github.com/neilnaveen)
1274
+ - [Pavlos](https://github.com/psmoros)
1275
+ - [Kiryl Valkovich](https://github.com/visortelle)
1276
+ - [Naveen](https://github.com/naveensrinivasan)
1277
+ - [wenzheng](https://github.com/0x30)
1278
+ - [hcwhan](https://github.com/hcwhan)
1279
+ - [Bassel Rachid](https://github.com/basselworkforce)
1280
+ - [Grégoire Pineau](https://github.com/lyrixx)
1281
+ - [felipedamin](https://github.com/felipedamin)
1282
+ - [Karl Horky](https://github.com/karlhorky)
1283
+ - [Yue JIN](https://github.com/kingyue737)
1284
+ - [Usman Ali Siddiqui](https://github.com/usman250994)
1285
+ - [WD](https://github.com/techbirds)
1286
+ - [Günther Foidl](https://github.com/gfoidl)
1287
+ - [Stephen Jennings](https://github.com/jennings)
1288
+ - [C.T.Lin](https://github.com/chentsulin)
1289
+ - [mia-z](https://github.com/mia-z)
1290
+ - [Parth Banathia](https://github.com/Parth0105)
1291
+ - [parth0105pluang](https://github.com/parth0105pluang)
1292
+ - [Marco Weber](https://github.com/mrcwbr)
1293
+ - [Luca Pizzini](https://github.com/lpizzinidev)
1294
+ - [Willian Agostini](https://github.com/WillianAgostini)
1295
+ - [Huyen Nguyen](https://github.com/huyenltnguyen)
ui/node_modules/axios/LICENSE ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2014-present Matt Zabriskie & Collaborators
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ui/node_modules/axios/MIGRATION_GUIDE.md ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # Migration Guide
2
+
3
+ ## 0.x.x -> 1.1.0
ui/node_modules/axios/README.md ADDED
@@ -0,0 +1,1756 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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://dev.intra-mart.jp/?utm_source&#x3D;axios&amp;utm_medium&#x3D;sponsorlist&amp;utm_campaign&#x3D;sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="48px" height="47px" src="https://axios-http.com/assets/sponsors/opencollective/948009b39c308b39f58c5d1245abd22512adc37b.png" alt="intra-mart"/> </a> <p align="center" title="[1ページ目] CookBook の記事 intra-mart Developer Portal ">[1ページ目] CookBook の記事 intra-mart Developer Portal</p> <p align="center"> <a href="https://dev.intra-mart.jp/?utm_source&#x3D;axios&amp;utm_medium&#x3D;readme_sponsorlist&amp;utm_campaign&#x3D;sponsorship" target="_blank"><b>dev.intra-mart.jp</b></a> </p>
3
+ </td><td align="center" width="33.333333333333336%"> <a href="https://stytch.com/?utm_source&#x3D;oss-sponsorship&amp;utm_medium&#x3D;paid_sponsorship&amp;utm_content&#x3D;website-link&amp;utm_campaign&#x3D;axios-http" style="padding: 10px; display: inline-block" target="_blank"> <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&#x3D;oss-sponsorship&amp;utm_medium&#x3D;paid_sponsorship&amp;utm_content&#x3D;website-link&amp;utm_campaign&#x3D;axios-http" target="_blank"><b>Website</b></a> | <a href="https://stytch.com/docs?utm_source&#x3D;oss-sponsorship&amp;utm_medium&#x3D;paid_sponsorship&amp;utm_content&#x3D;docs-link&amp;utm_campaign&#x3D;axios-http" target="_blank"><b>Documentation</b></a> | <a href="https://github.com/stytchauth/stytch-node?utm_source&#x3D;oss-sponsorship&amp;utm_medium&#x3D;paid_sponsorship&amp;utm_content&#x3D;node-sdk&amp;utm_campaign&#x3D;axios-http" target="_blank"><b>Node.js</b></a> </p>
4
+ </td><td align="center" width="33.333333333333336%"> <a href="https://www.principal.com/about-us?utm_source&#x3D;axios&amp;utm_medium&#x3D;sponsorlist&amp;utm_campaign&#x3D;sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <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&#x3D;axios&amp;utm_medium&#x3D;readme_sponsorlist&amp;utm_campaign&#x3D;sponsorship" target="_blank"><b>www.principal.com</b></a> </p>
5
+ </td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://twicsy.com/buy-instagram-followers?utm_source&#x3D;axios&amp;utm_medium&#x3D;sponsorlist&amp;utm_campaign&#x3D;sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="85px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/dfa9670ad5e66eea17315332453c7f4e3a3b5905.png" alt="Buy Instagram Followers Twicsy"/> </a> <p align="center" title="Buy real Instagram followers from Twicsy starting at only $2.97. Twicsy has been voted the best site to buy followers from the likes of US Magazine.">Buy real Instagram followers from Twicsy starting at only $2.97. Twicsy has been voted the best site...</p> <p align="center"> <a href="https://twicsy.com/buy-instagram-followers?utm_source&#x3D;axios&amp;utm_medium&#x3D;readme_sponsorlist&amp;utm_campaign&#x3D;sponsorship" target="_blank"><b>twicsy.com</b></a> </p>
6
+ </td><td align="center" width="33.333333333333336%"> <a href="https://www.descope.com/?utm_source&#x3D;axios&amp;utm_medium&#x3D;referral&amp;utm_campaign&#x3D;axios-oss-sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <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&#x27;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&#x27;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&#x3D;axios&amp;utm_medium&#x3D;referral&amp;utm_campaign&#x3D;axios-oss-sponsorship" target="_blank"><b>Website</b></a> | <a href="https://docs.descope.com/?utm_source&#x3D;axios&amp;utm_medium&#x3D;referral&amp;utm_campaign&#x3D;axios-oss-sponsorship" target="_blank"><b>Docs</b></a> | <a href="https://www.descope.com/community?utm_source&#x3D;axios&amp;utm_medium&#x3D;referral&amp;utm_campaign&#x3D;axios-oss-sponsorship" target="_blank"><b>Community</b></a> </p>
7
+ </td><td align="center" width="33.333333333333336%"> <a href="https://route4me.com/?utm_source&#x3D;axios&amp;utm_medium&#x3D;sponsorlist&amp;utm_campaign&#x3D;sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <picture> <source width="200px" height="51px" media="(prefers-color-scheme: dark)" srcset="https://axios-http.com/assets/sponsors/route4me_white.png"> <img width="200px" height="51px" src="https://axios-http.com/assets/sponsors/route4me.png" alt="Route4Me"/> </picture> </a> <p align="center" title="Best Route Planning And Route Optimization Software">Best Route Planning And Route Optimization Software</p> <p align="center"> <a href="https://route4me.com/platform/route-optimization-software?utm_source&#x3D;axios&amp;utm_medium&#x3D;readme_sponsorlist&amp;utm_campaign&#x3D;sponsorship" target="_blank"><b>Explore</b></a> | <a href="https://route4me.com/platform/marketplace/pricing?utm_source&#x3D;axios&amp;utm_medium&#x3D;readme_sponsorlist&amp;utm_campaign&#x3D;sponsorship" target="_blank"><b>Free Trial</b></a> | <a href="https://route4me.com/contact?utm_source&#x3D;axios&amp;utm_medium&#x3D;readme_sponsorlist&amp;utm_campaign&#x3D;sponsorship" target="_blank"><b>Contact</b></a> </p>
8
+ </td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://buzzoid.com/buy-instagram-followers/?utm_source&#x3D;axios&amp;utm_medium&#x3D;sponsorlist&amp;utm_campaign&#x3D;sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="62px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/e1625cb54e10ee40180c99d1495a462e9d6664a4.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&#x27;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&#x3D;axios&amp;utm_medium&#x3D;readme_sponsorlist&amp;utm_campaign&#x3D;sponsorship" target="_blank"><b>buzzoid.com</b></a> </p>
9
+ </td><td align="center" width="33.333333333333336%"> <a href="https://www.famety.net/?utm_source&#x3D;axios&amp;utm_medium&#x3D;sponsorlist&amp;utm_campaign&#x3D;sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="70px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/56645c65d4bad0ab84265e02430d19d64afde927.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.net/?utm_source&#x3D;axios&amp;utm_medium&#x3D;readme_sponsorlist&amp;utm_campaign&#x3D;sponsorship" target="_blank"><b>www.famety.net</b></a> </p>
10
+ </td><td align="center" width="33.333333333333336%"> <a href="https://poprey.com/?utm_source&#x3D;axios&amp;utm_medium&#x3D;sponsorlist&amp;utm_campaign&#x3D;sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="70px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/e699ec99f7df3a203ddbc49d3c7712a907e628ea.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&#x3D;axios&amp;utm_medium&#x3D;readme_sponsorlist&amp;utm_campaign&#x3D;sponsorship" target="_blank"><b>poprey.com</b></a> </p>
11
+ </td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://ssmarket.net/buy-youtube-subscribers?utm_source&#x3D;axios&amp;utm_medium&#x3D;sponsorlist&amp;utm_campaign&#x3D;sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="70px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/0845614102b0c6602707ca2983de05a0098faad4.png" alt="Buy Youtube Subscribers"/> </a> <p align="center" title="SS Market offers professional social media services that rapidly increase your YouTube subscriber count, elevating your channel to a powerful position.">SS Market offers professional social media services that rapidly increase your YouTube subscriber co...</p> <p align="center"> <a href="https://ssmarket.net/buy-youtube-subscribers?utm_source&#x3D;axios&amp;utm_medium&#x3D;readme_sponsorlist&amp;utm_campaign&#x3D;sponsorship" target="_blank"><b>ssmarket.net</b></a> </p>
12
+ </td><td align="center" width="33.333333333333336%"> <a href="https://opencollective.com/axios/contribute" target="_blank" >💜 Become a sponsor</a>
13
+ </td><td align="center" width="33.333333333333336%"> <a href="https://opencollective.com/axios/contribute" target="_blank" >💜 Become a sponsor</a>
14
+ </td></tr></table>
15
+
16
+ <!--<div>marker</div>-->
17
+ <br><br>
18
+ <div align="center">
19
+ <a href="https://axios-http.com"><img src="https://axios-http.com/assets/logo.svg" /></a><br>
20
+ </div>
21
+
22
+ <p align="center">Promise based HTTP client for the browser and node.js</p>
23
+
24
+ <p align="center">
25
+ <a href="https://axios-http.com/"><b>Website</b></a> •
26
+ <a href="https://axios-http.com/docs/intro"><b>Documentation</b></a>
27
+ </p>
28
+
29
+ <div align="center">
30
+
31
+ [![npm version](https://img.shields.io/npm/v/axios.svg?style=flat-square)](https://www.npmjs.org/package/axios)
32
+ [![CDNJS](https://img.shields.io/cdnjs/v/axios.svg?style=flat-square)](https://cdnjs.com/libraries/axios)
33
+ [![Build status](https://img.shields.io/github/actions/workflow/status/axios/axios/ci.yml?branch=v1.x&label=CI&logo=github&style=flat-square)](https://github.com/axios/axios/actions/workflows/ci.yml)
34
+ [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod&style=flat-square)](https://gitpod.io/#https://github.com/axios/axios)
35
+ [![code coverage](https://img.shields.io/coveralls/mzabriskie/axios.svg?style=flat-square)](https://coveralls.io/r/mzabriskie/axios)
36
+ [![install size](https://img.shields.io/badge/dynamic/json?url=https://packagephobia.com/v2/api.json?p=axios&query=$.install.pretty&label=install%20size&style=flat-square)](https://packagephobia.now.sh/result?p=axios)
37
+ [![npm bundle size](https://img.shields.io/bundlephobia/minzip/axios?style=flat-square)](https://bundlephobia.com/package/axios@latest)
38
+ [![npm downloads](https://img.shields.io/npm/dm/axios.svg?style=flat-square)](https://npm-stat.com/charts.html?package=axios)
39
+ [![gitter chat](https://img.shields.io/gitter/room/mzabriskie/axios.svg?style=flat-square)](https://gitter.im/mzabriskie/axios)
40
+ [![code helpers](https://www.codetriage.com/axios/axios/badges/users.svg)](https://www.codetriage.com/axios/axios)
41
+ [![Known Vulnerabilities](https://snyk.io/test/npm/axios/badge.svg)](https://snyk.io/test/npm/axios)
42
+
43
+
44
+
45
+
46
+ </div>
47
+
48
+ ## Table of Contents
49
+
50
+ - [Features](#features)
51
+ - [Browser Support](#browser-support)
52
+ - [Installing](#installing)
53
+ - [Package manager](#package-manager)
54
+ - [CDN](#cdn)
55
+ - [Example](#example)
56
+ - [Axios API](#axios-api)
57
+ - [Request method aliases](#request-method-aliases)
58
+ - [Concurrency 👎](#concurrency-deprecated)
59
+ - [Creating an instance](#creating-an-instance)
60
+ - [Instance methods](#instance-methods)
61
+ - [Request Config](#request-config)
62
+ - [Response Schema](#response-schema)
63
+ - [Config Defaults](#config-defaults)
64
+ - [Global axios defaults](#global-axios-defaults)
65
+ - [Custom instance defaults](#custom-instance-defaults)
66
+ - [Config order of precedence](#config-order-of-precedence)
67
+ - [Interceptors](#interceptors)
68
+ - [Multiple Interceptors](#multiple-interceptors)
69
+ - [Handling Errors](#handling-errors)
70
+ - [Cancellation](#cancellation)
71
+ - [AbortController](#abortcontroller)
72
+ - [CancelToken 👎](#canceltoken-deprecated)
73
+ - [Using application/x-www-form-urlencoded format](#using-applicationx-www-form-urlencoded-format)
74
+ - [URLSearchParams](#urlsearchparams)
75
+ - [Query string](#query-string-older-browsers)
76
+ - [🆕 Automatic serialization](#-automatic-serialization-to-urlsearchparams)
77
+ - [Using multipart/form-data format](#using-multipartform-data-format)
78
+ - [FormData](#formdata)
79
+ - [🆕 Automatic serialization](#-automatic-serialization-to-formdata)
80
+ - [Files Posting](#files-posting)
81
+ - [HTML Form Posting](#-html-form-posting-browser)
82
+ - [🆕 Progress capturing](#-progress-capturing)
83
+ - [🆕 Rate limiting](#-progress-capturing)
84
+ - [🆕 AxiosHeaders](#-axiosheaders)
85
+ - [🔥 Fetch adapter](#-fetch-adapter)
86
+ - [🔥 Custom fetch](#-custom-fetch)
87
+ - [🔥 Using with Tauri](#-using-with-tauri)
88
+ - [🔥 Using with SvelteKit](#-using-with-sveltekit-)
89
+ - [Semver](#semver)
90
+ - [Promises](#promises)
91
+ - [TypeScript](#typescript)
92
+ - [Resources](#resources)
93
+ - [Credits](#credits)
94
+ - [License](#license)
95
+
96
+ ## Features
97
+
98
+ - Make [XMLHttpRequests](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) from the browser
99
+ - Make [http](https://nodejs.org/api/http.html) requests from node.js
100
+ - Supports the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) API
101
+ - Intercept request and response
102
+ - Transform request and response data
103
+ - Cancel requests
104
+ - Automatic transforms for [JSON](https://www.json.org/json-en.html) data
105
+ - 🆕 Automatic data object serialization to `multipart/form-data` and `x-www-form-urlencoded` body encodings
106
+ - Client side support for protecting against [XSRF](https://en.wikipedia.org/wiki/Cross-site_request_forgery)
107
+
108
+ ## Browser Support
109
+
110
+ ![Chrome](https://raw.githubusercontent.com/alrra/browser-logos/main/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.githubusercontent.com/alrra/browser-logos/main/src/firefox/firefox_48x48.png) | ![Safari](https://raw.githubusercontent.com/alrra/browser-logos/main/src/safari/safari_48x48.png) | ![Opera](https://raw.githubusercontent.com/alrra/browser-logos/main/src/opera/opera_48x48.png) | ![Edge](https://raw.githubusercontent.com/alrra/browser-logos/main/src/edge/edge_48x48.png) |
111
+ --- | --- | --- | --- | --- |
112
+ Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
113
+
114
+ [![Browser Matrix](https://saucelabs.com/open_sauce/build_matrix/axios.svg)](https://saucelabs.com/u/axios)
115
+
116
+ ## Installing
117
+
118
+ ### Package manager
119
+
120
+ Using npm:
121
+
122
+ ```bash
123
+ $ npm install axios
124
+ ```
125
+
126
+ Using bower:
127
+
128
+ ```bash
129
+ $ bower install axios
130
+ ```
131
+
132
+ Using yarn:
133
+
134
+ ```bash
135
+ $ yarn add axios
136
+ ```
137
+
138
+ Using pnpm:
139
+
140
+ ```bash
141
+ $ pnpm add axios
142
+ ```
143
+
144
+ Using bun:
145
+
146
+ ```bash
147
+ $ bun add axios
148
+ ```
149
+
150
+ Once the package is installed, you can import the library using `import` or `require` approach:
151
+
152
+ ```js
153
+ import axios, {isCancel, AxiosError} from 'axios';
154
+ ```
155
+
156
+ You can also use the default export, since the named export is just a re-export from the Axios factory:
157
+
158
+ ```js
159
+ import axios from 'axios';
160
+
161
+ console.log(axios.isCancel('something'));
162
+ ````
163
+
164
+ If you use `require` for importing, **only default export is available**:
165
+
166
+ ```js
167
+ const axios = require('axios');
168
+
169
+ console.log(axios.isCancel('something'));
170
+ ```
171
+
172
+ For some bundlers and some ES6 linters you may need to do the following:
173
+
174
+ ```js
175
+ import { default as axios } from 'axios';
176
+ ```
177
+
178
+ For cases where something went wrong when trying to import a module into a custom or legacy environment,
179
+ you can try importing the module package directly:
180
+
181
+ ```js
182
+ const axios = require('axios/dist/browser/axios.cjs'); // browser commonJS bundle (ES2017)
183
+ // const axios = require('axios/dist/node/axios.cjs'); // node commonJS bundle (ES2017)
184
+ ```
185
+
186
+ ### CDN
187
+
188
+ Using jsDelivr CDN (ES5 UMD browser module):
189
+
190
+ ```html
191
+ <script src="https://cdn.jsdelivr.net/npm/axios@1.6.7/dist/axios.min.js"></script>
192
+ ```
193
+
194
+ Using unpkg CDN:
195
+
196
+ ```html
197
+ <script src="https://unpkg.com/axios@1.6.7/dist/axios.min.js"></script>
198
+ ```
199
+
200
+ ## Example
201
+
202
+ > **Note**: CommonJS usage
203
+ > In order to gain the TypeScript typings (for intellisense / autocomplete) while using CommonJS imports with `require()`, use the following approach:
204
+
205
+ ```js
206
+ import axios from 'axios';
207
+ //const axios = require('axios'); // legacy way
208
+
209
+ // Make a request for a user with a given ID
210
+ axios.get('/user?ID=12345')
211
+ .then(function (response) {
212
+ // handle success
213
+ console.log(response);
214
+ })
215
+ .catch(function (error) {
216
+ // handle error
217
+ console.log(error);
218
+ })
219
+ .finally(function () {
220
+ // always executed
221
+ });
222
+
223
+ // Optionally the request above could also be done as
224
+ axios.get('/user', {
225
+ params: {
226
+ ID: 12345
227
+ }
228
+ })
229
+ .then(function (response) {
230
+ console.log(response);
231
+ })
232
+ .catch(function (error) {
233
+ console.log(error);
234
+ })
235
+ .finally(function () {
236
+ // always executed
237
+ });
238
+
239
+ // Want to use async/await? Add the `async` keyword to your outer function/method.
240
+ async function getUser() {
241
+ try {
242
+ const response = await axios.get('/user?ID=12345');
243
+ console.log(response);
244
+ } catch (error) {
245
+ console.error(error);
246
+ }
247
+ }
248
+ ```
249
+
250
+ > **Note**: `async/await` is part of ECMAScript 2017 and is not supported in Internet
251
+ > Explorer and older browsers, so use with caution.
252
+
253
+ Performing a `POST` request
254
+
255
+ ```js
256
+ axios.post('/user', {
257
+ firstName: 'Fred',
258
+ lastName: 'Flintstone'
259
+ })
260
+ .then(function (response) {
261
+ console.log(response);
262
+ })
263
+ .catch(function (error) {
264
+ console.log(error);
265
+ });
266
+ ```
267
+
268
+ Performing multiple concurrent requests
269
+
270
+ ```js
271
+ function getUserAccount() {
272
+ return axios.get('/user/12345');
273
+ }
274
+
275
+ function getUserPermissions() {
276
+ return axios.get('/user/12345/permissions');
277
+ }
278
+
279
+ Promise.all([getUserAccount(), getUserPermissions()])
280
+ .then(function (results) {
281
+ const acct = results[0];
282
+ const perm = results[1];
283
+ });
284
+ ```
285
+
286
+ ## axios API
287
+
288
+ Requests can be made by passing the relevant config to `axios`.
289
+
290
+ ##### axios(config)
291
+
292
+ ```js
293
+ // Send a POST request
294
+ axios({
295
+ method: 'post',
296
+ url: '/user/12345',
297
+ data: {
298
+ firstName: 'Fred',
299
+ lastName: 'Flintstone'
300
+ }
301
+ });
302
+ ```
303
+
304
+ ```js
305
+ // GET request for remote image in node.js
306
+ axios({
307
+ method: 'get',
308
+ url: 'https://bit.ly/2mTM3nY',
309
+ responseType: 'stream'
310
+ })
311
+ .then(function (response) {
312
+ response.data.pipe(fs.createWriteStream('ada_lovelace.jpg'))
313
+ });
314
+ ```
315
+
316
+ ##### axios(url[, config])
317
+
318
+ ```js
319
+ // Send a GET request (default method)
320
+ axios('/user/12345');
321
+ ```
322
+
323
+ ### Request method aliases
324
+
325
+ For convenience, aliases have been provided for all common request methods.
326
+
327
+ ##### axios.request(config)
328
+ ##### axios.get(url[, config])
329
+ ##### axios.delete(url[, config])
330
+ ##### axios.head(url[, config])
331
+ ##### axios.options(url[, config])
332
+ ##### axios.post(url[, data[, config]])
333
+ ##### axios.put(url[, data[, config]])
334
+ ##### axios.patch(url[, data[, config]])
335
+
336
+ ###### NOTE
337
+ When using the alias methods `url`, `method`, and `data` properties don't need to be specified in config.
338
+
339
+ ### Concurrency (Deprecated)
340
+ Please use `Promise.all` to replace the below functions.
341
+
342
+ Helper functions for dealing with concurrent requests.
343
+
344
+ axios.all(iterable)
345
+ axios.spread(callback)
346
+
347
+ ### Creating an instance
348
+
349
+ You can create a new instance of axios with a custom config.
350
+
351
+ ##### axios.create([config])
352
+
353
+ ```js
354
+ const instance = axios.create({
355
+ baseURL: 'https://some-domain.com/api/',
356
+ timeout: 1000,
357
+ headers: {'X-Custom-Header': 'foobar'}
358
+ });
359
+ ```
360
+
361
+ ### Instance methods
362
+
363
+ The available instance methods are listed below. The specified config will be merged with the instance config.
364
+
365
+ ##### axios#request(config)
366
+ ##### axios#get(url[, config])
367
+ ##### axios#delete(url[, config])
368
+ ##### axios#head(url[, config])
369
+ ##### axios#options(url[, config])
370
+ ##### axios#post(url[, data[, config]])
371
+ ##### axios#put(url[, data[, config]])
372
+ ##### axios#patch(url[, data[, config]])
373
+ ##### axios#getUri([config])
374
+
375
+ ## Request Config
376
+
377
+ These are the available config options for making requests. Only the `url` is required. Requests will default to `GET` if `method` is not specified.
378
+
379
+ ```js
380
+ {
381
+ // `url` is the server URL that will be used for the request
382
+ url: '/user',
383
+
384
+ // `method` is the request method to be used when making the request
385
+ method: 'get', // default
386
+
387
+ // `baseURL` will be prepended to `url` unless `url` is absolute and option `allowAbsoluteUrls` is set to true.
388
+ // It can be convenient to set `baseURL` for an instance of axios to pass relative URLs
389
+ // to methods of that instance.
390
+ baseURL: 'https://some-domain.com/api/',
391
+
392
+ // `allowAbsoluteUrls` determines whether or not absolute URLs will override a configured `baseUrl`.
393
+ // When set to true (default), absolute values for `url` will override `baseUrl`.
394
+ // When set to false, absolute values for `url` will always be prepended by `baseUrl`.
395
+ allowAbsoluteUrls: true,
396
+
397
+ // `transformRequest` allows changes to the request data before it is sent to the server
398
+ // This is only applicable for request methods 'PUT', 'POST', 'PATCH' and 'DELETE'
399
+ // The last function in the array must return a string or an instance of Buffer, ArrayBuffer,
400
+ // FormData or Stream
401
+ // You may modify the headers object.
402
+ transformRequest: [function (data, headers) {
403
+ // Do whatever you want to transform the data
404
+
405
+ return data;
406
+ }],
407
+
408
+ // `transformResponse` allows changes to the response data to be made before
409
+ // it is passed to then/catch
410
+ transformResponse: [function (data) {
411
+ // Do whatever you want to transform the data
412
+
413
+ return data;
414
+ }],
415
+
416
+ // `headers` are custom headers to be sent
417
+ headers: {'X-Requested-With': 'XMLHttpRequest'},
418
+
419
+ // `params` are the URL parameters to be sent with the request
420
+ // Must be a plain object or a URLSearchParams object
421
+ params: {
422
+ ID: 12345
423
+ },
424
+
425
+ // `paramsSerializer` is an optional config that allows you to customize serializing `params`.
426
+ paramsSerializer: {
427
+
428
+ // Custom encoder function which sends key/value pairs in an iterative fashion.
429
+ encode?: (param: string): string => { /* Do custom operations here and return transformed string */ },
430
+
431
+ // Custom serializer function for the entire parameter. Allows user to mimic pre 1.x behaviour.
432
+ serialize?: (params: Record<string, any>, options?: ParamsSerializerOptions ),
433
+
434
+ // Configuration for formatting array indexes in the params.
435
+ indexes: false // Three available options: (1) indexes: null (leads to no brackets), (2) (default) indexes: false (leads to empty brackets), (3) indexes: true (leads to brackets with indexes).
436
+ },
437
+
438
+ // `data` is the data to be sent as the request body
439
+ // Only applicable for request methods 'PUT', 'POST', 'DELETE , and 'PATCH'
440
+ // When no `transformRequest` is set, must be of one of the following types:
441
+ // - string, plain object, ArrayBuffer, ArrayBufferView, URLSearchParams
442
+ // - Browser only: FormData, File, Blob
443
+ // - Node only: Stream, Buffer, FormData (form-data package)
444
+ data: {
445
+ firstName: 'Fred'
446
+ },
447
+
448
+ // syntax alternative to send data into the body
449
+ // method post
450
+ // only the value is sent, not the key
451
+ data: 'Country=Brasil&City=Belo Horizonte',
452
+
453
+ // `timeout` specifies the number of milliseconds before the request times out.
454
+ // If the request takes longer than `timeout`, the request will be aborted.
455
+ timeout: 1000, // default is `0` (no timeout)
456
+
457
+ // `withCredentials` indicates whether or not cross-site Access-Control requests
458
+ // should be made using credentials
459
+ withCredentials: false, // default
460
+
461
+ // `adapter` allows custom handling of requests which makes testing easier.
462
+ // Return a promise and supply a valid response (see lib/adapters/README.md)
463
+ adapter: function (config) {
464
+ /* ... */
465
+ },
466
+ // Also, you can set the name of the built-in adapter, or provide an array with their names
467
+ // to choose the first available in the environment
468
+ adapter: 'xhr', // 'fetch' | 'http' | ['xhr', 'http', 'fetch']
469
+
470
+ // `auth` indicates that HTTP Basic auth should be used, and supplies credentials.
471
+ // This will set an `Authorization` header, overwriting any existing
472
+ // `Authorization` custom headers you have set using `headers`.
473
+ // Please note that only HTTP Basic auth is configurable through this parameter.
474
+ // For Bearer tokens and such, use `Authorization` custom headers instead.
475
+ auth: {
476
+ username: 'janedoe',
477
+ password: 's00pers3cret'
478
+ },
479
+
480
+ // `responseType` indicates the type of data that the server will respond with
481
+ // options are: 'arraybuffer', 'document', 'json', 'text', 'stream'
482
+ // browser only: 'blob'
483
+ responseType: 'json', // default
484
+
485
+ // `responseEncoding` indicates encoding to use for decoding responses (Node.js only)
486
+ // Note: Ignored for `responseType` of 'stream' or client-side requests
487
+ // options are: 'ascii', 'ASCII', 'ansi', 'ANSI', 'binary', 'BINARY', 'base64', 'BASE64', 'base64url',
488
+ // 'BASE64URL', 'hex', 'HEX', 'latin1', 'LATIN1', 'ucs-2', 'UCS-2', 'ucs2', 'UCS2', 'utf-8', 'UTF-8',
489
+ // 'utf8', 'UTF8', 'utf16le', 'UTF16LE'
490
+ responseEncoding: 'utf8', // default
491
+
492
+ // `xsrfCookieName` is the name of the cookie to use as a value for xsrf token
493
+ xsrfCookieName: 'XSRF-TOKEN', // default
494
+
495
+ // `xsrfHeaderName` is the name of the http header that carries the xsrf token value
496
+ xsrfHeaderName: 'X-XSRF-TOKEN', // default
497
+
498
+ // `undefined` (default) - set XSRF header only for the same origin requests
499
+ withXSRFToken: boolean | undefined | ((config: InternalAxiosRequestConfig) => boolean | undefined),
500
+
501
+ // `onUploadProgress` allows handling of progress events for uploads
502
+ // browser & node.js
503
+ onUploadProgress: function ({loaded, total, progress, bytes, estimated, rate, upload = true}) {
504
+ // Do whatever you want with the Axios progress event
505
+ },
506
+
507
+ // `onDownloadProgress` allows handling of progress events for downloads
508
+ // browser & node.js
509
+ onDownloadProgress: function ({loaded, total, progress, bytes, estimated, rate, download = true}) {
510
+ // Do whatever you want with the Axios progress event
511
+ },
512
+
513
+ // `maxContentLength` defines the max size of the http response content in bytes allowed in node.js
514
+ maxContentLength: 2000,
515
+
516
+ // `maxBodyLength` (Node only option) defines the max size of the http request content in bytes allowed
517
+ maxBodyLength: 2000,
518
+
519
+ // `validateStatus` defines whether to resolve or reject the promise for a given
520
+ // HTTP response status code. If `validateStatus` returns `true` (or is set to `null`
521
+ // or `undefined`), the promise will be resolved; otherwise, the promise will be
522
+ // rejected.
523
+ validateStatus: function (status) {
524
+ return status >= 200 && status < 300; // default
525
+ },
526
+
527
+ // `maxRedirects` defines the maximum number of redirects to follow in node.js.
528
+ // If set to 0, no redirects will be followed.
529
+ maxRedirects: 21, // default
530
+
531
+ // `beforeRedirect` defines a function that will be called before redirect.
532
+ // Use this to adjust the request options upon redirecting,
533
+ // to inspect the latest response headers,
534
+ // or to cancel the request by throwing an error
535
+ // If maxRedirects is set to 0, `beforeRedirect` is not used.
536
+ beforeRedirect: (options, { headers }) => {
537
+ if (options.hostname === "example.com") {
538
+ options.auth = "user:password";
539
+ }
540
+ },
541
+
542
+ // `socketPath` defines a UNIX Socket to be used in node.js.
543
+ // e.g. '/var/run/docker.sock' to send requests to the docker daemon.
544
+ // Only either `socketPath` or `proxy` can be specified.
545
+ // If both are specified, `socketPath` is used.
546
+ socketPath: null, // default
547
+
548
+ // `transport` determines the transport method that will be used to make the request.
549
+ // If defined, it will be used. Otherwise, if `maxRedirects` is 0,
550
+ // the default `http` or `https` library will be used, depending on the protocol specified in `protocol`.
551
+ // Otherwise, the `httpFollow` or `httpsFollow` library will be used, again depending on the protocol,
552
+ // which can handle redirects.
553
+ transport: undefined, // default
554
+
555
+ // `httpAgent` and `httpsAgent` define a custom agent to be used when performing http
556
+ // and https requests, respectively, in node.js. This allows options to be added like
557
+ // `keepAlive` that are not enabled by default before Node.js v19.0.0. After Node.js
558
+ // v19.0.0, you no longer need to customize the agent to enable `keepAlive` because
559
+ // `http.globalAgent` has `keepAlive` enabled by default.
560
+ httpAgent: new http.Agent({ keepAlive: true }),
561
+ httpsAgent: new https.Agent({ keepAlive: true }),
562
+
563
+ // `proxy` defines the hostname, port, and protocol of the proxy server.
564
+ // You can also define your proxy using the conventional `http_proxy` and
565
+ // `https_proxy` environment variables. If you are using environment variables
566
+ // for your proxy configuration, you can also define a `no_proxy` environment
567
+ // variable as a comma-separated list of domains that should not be proxied.
568
+ // Use `false` to disable proxies, ignoring environment variables.
569
+ // `auth` indicates that HTTP Basic auth should be used to connect to the proxy, and
570
+ // supplies credentials.
571
+ // This will set an `Proxy-Authorization` header, overwriting any existing
572
+ // `Proxy-Authorization` custom headers you have set using `headers`.
573
+ // If the proxy server uses HTTPS, then you must set the protocol to `https`.
574
+ proxy: {
575
+ protocol: 'https',
576
+ host: '127.0.0.1',
577
+ // hostname: '127.0.0.1' // Takes precedence over 'host' if both are defined
578
+ port: 9000,
579
+ auth: {
580
+ username: 'mikeymike',
581
+ password: 'rapunz3l'
582
+ }
583
+ },
584
+
585
+ // `cancelToken` specifies a cancel token that can be used to cancel the request
586
+ // (see Cancellation section below for details)
587
+ cancelToken: new CancelToken(function (cancel) {
588
+ }),
589
+
590
+ // an alternative way to cancel Axios requests using AbortController
591
+ signal: new AbortController().signal,
592
+
593
+ // `decompress` indicates whether or not the response body should be decompressed
594
+ // automatically. If set to `true` will also remove the 'content-encoding' header
595
+ // from the responses objects of all decompressed responses
596
+ // - Node only (XHR cannot turn off decompression)
597
+ decompress: true, // default
598
+
599
+ // `insecureHTTPParser` boolean.
600
+ // Indicates where to use an insecure HTTP parser that accepts invalid HTTP headers.
601
+ // This may allow interoperability with non-conformant HTTP implementations.
602
+ // Using the insecure parser should be avoided.
603
+ // see options https://nodejs.org/dist/latest-v12.x/docs/api/http.html#http_http_request_url_options_callback
604
+ // see also https://nodejs.org/en/blog/vulnerability/february-2020-security-releases/#strict-http-header-parsing-none
605
+ insecureHTTPParser: undefined, // default
606
+
607
+ // transitional options for backward compatibility that may be removed in the newer versions
608
+ transitional: {
609
+ // silent JSON parsing mode
610
+ // `true` - ignore JSON parsing errors and set response.data to null if parsing failed (old behaviour)
611
+ // `false` - throw SyntaxError if JSON parsing failed (Note: responseType must be set to 'json')
612
+ silentJSONParsing: true, // default value for the current Axios version
613
+
614
+ // try to parse the response string as JSON even if `responseType` is not 'json'
615
+ forcedJSONParsing: true,
616
+
617
+ // throw ETIMEDOUT error instead of generic ECONNABORTED on request timeouts
618
+ clarifyTimeoutError: false,
619
+ },
620
+
621
+ env: {
622
+ // The FormData class to be used to automatically serialize the payload into a FormData object
623
+ FormData: window?.FormData || global?.FormData
624
+ },
625
+
626
+ formSerializer: {
627
+ visitor: (value, key, path, helpers) => {}; // custom visitor function to serialize form values
628
+ dots: boolean; // use dots instead of brackets format
629
+ metaTokens: boolean; // keep special endings like {} in parameter key
630
+ indexes: boolean; // array indexes format null - no brackets, false - empty brackets, true - brackets with indexes
631
+ },
632
+
633
+ // http adapter only (node.js)
634
+ maxRate: [
635
+ 100 * 1024, // 100KB/s upload limit,
636
+ 100 * 1024 // 100KB/s download limit
637
+ ]
638
+ }
639
+ ```
640
+
641
+ ## Response Schema
642
+
643
+ The response for a request contains the following information.
644
+
645
+ ```js
646
+ {
647
+ // `data` is the response that was provided by the server
648
+ data: {},
649
+
650
+ // `status` is the HTTP status code from the server response
651
+ status: 200,
652
+
653
+ // `statusText` is the HTTP status message from the server response
654
+ statusText: 'OK',
655
+
656
+ // `headers` the HTTP headers that the server responded with
657
+ // All header names are lowercase and can be accessed using the bracket notation.
658
+ // Example: `response.headers['content-type']`
659
+ headers: {},
660
+
661
+ // `config` is the config that was provided to `axios` for the request
662
+ config: {},
663
+
664
+ // `request` is the request that generated this response
665
+ // It is the last ClientRequest instance in node.js (in redirects)
666
+ // and an XMLHttpRequest instance in the browser
667
+ request: {}
668
+ }
669
+ ```
670
+
671
+ When using `then`, you will receive the response as follows:
672
+
673
+ ```js
674
+ axios.get('/user/12345')
675
+ .then(function (response) {
676
+ console.log(response.data);
677
+ console.log(response.status);
678
+ console.log(response.statusText);
679
+ console.log(response.headers);
680
+ console.log(response.config);
681
+ });
682
+ ```
683
+
684
+ When using `catch`, or passing a [rejection callback](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then) as second parameter of `then`, the response will be available through the `error` object as explained in the [Handling Errors](#handling-errors) section.
685
+
686
+ ## Config Defaults
687
+
688
+ You can specify config defaults that will be applied to every request.
689
+
690
+ ### Global axios defaults
691
+
692
+ ```js
693
+ axios.defaults.baseURL = 'https://api.example.com';
694
+
695
+ // Important: If axios is used with multiple domains, the AUTH_TOKEN will be sent to all of them.
696
+ // See below for an example using Custom instance defaults instead.
697
+ axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
698
+
699
+ axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
700
+ ```
701
+
702
+ ### Custom instance defaults
703
+
704
+ ```js
705
+ // Set config defaults when creating the instance
706
+ const instance = axios.create({
707
+ baseURL: 'https://api.example.com'
708
+ });
709
+
710
+ // Alter defaults after instance has been created
711
+ instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
712
+ ```
713
+
714
+ ### Config order of precedence
715
+
716
+ Config will be merged with an order of precedence. The order is library defaults found in [lib/defaults/index.js](https://github.com/axios/axios/blob/main/lib/defaults/index.js#L49), then `defaults` property of the instance, and finally `config` argument for the request. The latter will take precedence over the former. Here's an example.
717
+
718
+ ```js
719
+ // Create an instance using the config defaults provided by the library
720
+ // At this point the timeout config value is `0` as is the default for the library
721
+ const instance = axios.create();
722
+
723
+ // Override timeout default for the library
724
+ // Now all requests using this instance will wait 2.5 seconds before timing out
725
+ instance.defaults.timeout = 2500;
726
+
727
+ // Override timeout for this request as it's known to take a long time
728
+ instance.get('/longRequest', {
729
+ timeout: 5000
730
+ });
731
+ ```
732
+
733
+ ## Interceptors
734
+
735
+ You can intercept requests or responses before they are handled by `then` or `catch`.
736
+
737
+ ```js
738
+
739
+ const instance = axios.create();
740
+
741
+ // Add a request interceptor
742
+ instance.interceptors.request.use(function (config) {
743
+ // Do something before request is sent
744
+ return config;
745
+ }, function (error) {
746
+ // Do something with request error
747
+ return Promise.reject(error);
748
+ });
749
+
750
+ // Add a response interceptor
751
+ instance.interceptors.response.use(function (response) {
752
+ // Any status code that lie within the range of 2xx cause this function to trigger
753
+ // Do something with response data
754
+ return response;
755
+ }, function (error) {
756
+ // Any status codes that falls outside the range of 2xx cause this function to trigger
757
+ // Do something with response error
758
+ return Promise.reject(error);
759
+ });
760
+ ```
761
+
762
+ If you need to remove an interceptor later you can.
763
+
764
+ ```js
765
+ const instance = axios.create();
766
+ const myInterceptor = instance.interceptors.request.use(function () {/*...*/});
767
+ axios.interceptors.request.eject(myInterceptor);
768
+ ```
769
+
770
+ You can also clear all interceptors for requests or responses.
771
+ ```js
772
+ const instance = axios.create();
773
+ instance.interceptors.request.use(function () {/*...*/});
774
+ instance.interceptors.request.clear(); // Removes interceptors from requests
775
+ instance.interceptors.response.use(function () {/*...*/});
776
+ instance.interceptors.response.clear(); // Removes interceptors from responses
777
+ ```
778
+
779
+ You can add interceptors to a custom instance of axios.
780
+
781
+ ```js
782
+ const instance = axios.create();
783
+ instance.interceptors.request.use(function () {/*...*/});
784
+ ```
785
+
786
+ When you add request interceptors, they are presumed to be asynchronous by default. This can cause a delay
787
+ in the execution of your axios request when the main thread is blocked (a promise is created under the hood for
788
+ the interceptor and your request gets put on the bottom of the call stack). If your request interceptors are synchronous you can add a flag
789
+ to the options object that will tell axios to run the code synchronously and avoid any delays in request execution.
790
+
791
+ ```js
792
+ axios.interceptors.request.use(function (config) {
793
+ config.headers.test = 'I am only a header!';
794
+ return config;
795
+ }, null, { synchronous: true });
796
+ ```
797
+
798
+ If you want to execute a particular interceptor based on a runtime check,
799
+ you can add a `runWhen` function to the options object. The request interceptor will not be executed **if and only if** the return
800
+ of `runWhen` is `false`. The function will be called with the config
801
+ object (don't forget that you can bind your own arguments to it as well.) This can be handy when you have an
802
+ asynchronous request interceptor that only needs to run at certain times.
803
+
804
+ ```js
805
+ function onGetCall(config) {
806
+ return config.method === 'get';
807
+ }
808
+ axios.interceptors.request.use(function (config) {
809
+ config.headers.test = 'special get headers';
810
+ return config;
811
+ }, null, { runWhen: onGetCall });
812
+ ```
813
+
814
+ > **Note:** options parameter(having `synchronous` and `runWhen` properties) is only supported for request interceptors at the moment.
815
+
816
+ ### Multiple Interceptors
817
+
818
+ Given you add multiple response interceptors
819
+ and when the response was fulfilled
820
+ - then each interceptor is executed
821
+ - then they are executed in the order they were added
822
+ - then only the last interceptor's result is returned
823
+ - then every interceptor receives the result of its predecessor
824
+ - and when the fulfillment-interceptor throws
825
+ - then the following fulfillment-interceptor is not called
826
+ - then the following rejection-interceptor is called
827
+ - once caught, another following fulfill-interceptor is called again (just like in a promise chain).
828
+
829
+ Read [the interceptor tests](./test/specs/interceptors.spec.js) for seeing all this in code.
830
+
831
+ ## Error Types
832
+
833
+ There are many different axios error messages that can appear that can provide basic information about the specifics of the error and where opportunities may lie in debugging.
834
+
835
+ The general structure of axios errors is as follows:
836
+ | Property | Definition |
837
+ | -------- | ---------- |
838
+ | message | A quick summary of the error message and the status it failed with. |
839
+ | name | This defines where the error originated from. For axios, it will always be an 'AxiosError'. |
840
+ | stack | Provides the stack trace of the error. |
841
+ | config | An axios config object with specific instance configurations defined by the user from when the request was made |
842
+ | code | Represents an axios identified error. The table below lists out specific definitions for internal axios error. |
843
+ | status | HTTP response status code. See [here](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) for common HTTP response status code meanings.
844
+
845
+ Below is a list of potential axios identified error:
846
+
847
+ | Code | Definition |
848
+ | --- | --- |
849
+ | ERR_BAD_OPTION_VALUE | Invalid value provided in axios configuration. |
850
+ | ERR_BAD_OPTION | Invalid option provided in axios configuration. |
851
+ | ERR_NOT_SUPPORT | Feature or method not supported in the current axios environment. |
852
+ | ERR_DEPRECATED | Deprecated feature or method used in axios. |
853
+ | ERR_INVALID_URL | Invalid URL provided for axios request. |
854
+ | ECONNABORTED | Typically indicates that the request has been timed out (unless `transitional.clarifyTimeoutError` is set) or aborted by the browser or its plugin. |
855
+ | ERR_CANCELED | Feature or method is canceled explicitly by the user using an AbortSignal (or a CancelToken). |
856
+ | ETIMEDOUT | Request timed out due to exceeding default axios timelimit. `transitional.clarifyTimeoutError` must be set to `true`, otherwise a generic `ECONNABORTED` error will be thrown instead. |
857
+ | ERR_NETWORK | Network-related issue. In the browser, this error can also be caused by a [CORS](https://developer.mozilla.org/ru/docs/Web/HTTP/Guides/CORS) or [Mixed Content](https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content) policy violation. The browser does not allow the JS code to clarify the real reason for the error caused by security issues, so please check the console. |
858
+ | ERR_FR_TOO_MANY_REDIRECTS | Request is redirected too many times; exceeds max redirects specified in axios configuration. |
859
+ | ERR_BAD_RESPONSE | Response cannot be parsed properly or is in an unexpected format. Usually related to a response with `5xx` status code. |
860
+ | ERR_BAD_REQUEST | The request has an unexpected format or is missing required parameters. Usually related to a response with `4xx` status code. |
861
+
862
+ ## Handling Errors
863
+
864
+ the default behavior is to reject every response that returns with a status code that falls out of the range of 2xx and treat it as an error.
865
+
866
+ ```js
867
+ axios.get('/user/12345')
868
+ .catch(function (error) {
869
+ if (error.response) {
870
+ // The request was made and the server responded with a status code
871
+ // that falls out of the range of 2xx
872
+ console.log(error.response.data);
873
+ console.log(error.response.status);
874
+ console.log(error.response.headers);
875
+ } else if (error.request) {
876
+ // The request was made but no response was received
877
+ // `error.request` is an instance of XMLHttpRequest in the browser and an instance of
878
+ // http.ClientRequest in node.js
879
+ console.log(error.request);
880
+ } else {
881
+ // Something happened in setting up the request that triggered an Error
882
+ console.log('Error', error.message);
883
+ }
884
+ console.log(error.config);
885
+ });
886
+ ```
887
+
888
+ Using the `validateStatus` config option, you can override the default condition (status >= 200 && status < 300) and define HTTP code(s) that should throw an error.
889
+
890
+ ```js
891
+ axios.get('/user/12345', {
892
+ validateStatus: function (status) {
893
+ return status < 500; // Resolve only if the status code is less than 500
894
+ }
895
+ })
896
+ ```
897
+
898
+ Using `toJSON` you get an object with more information about the HTTP error.
899
+
900
+ ```js
901
+ axios.get('/user/12345')
902
+ .catch(function (error) {
903
+ console.log(error.toJSON());
904
+ });
905
+ ```
906
+
907
+ ## Cancellation
908
+
909
+ ### AbortController
910
+
911
+ Starting from `v0.22.0` Axios supports AbortController to cancel requests in fetch API way:
912
+
913
+ ```js
914
+ const controller = new AbortController();
915
+
916
+ axios.get('/foo/bar', {
917
+ signal: controller.signal
918
+ }).then(function(response) {
919
+ //...
920
+ });
921
+ // cancel the request
922
+ controller.abort()
923
+ ```
924
+
925
+ ### CancelToken `👎deprecated`
926
+
927
+ You can also cancel a request using a *CancelToken*.
928
+
929
+ > The axios cancel token API is based on the withdrawn [cancellable promises proposal](https://github.com/tc39/proposal-cancelable-promises).
930
+
931
+ > This API is deprecated since v0.22.0 and shouldn't be used in new projects
932
+
933
+ You can create a cancel token using the `CancelToken.source` factory as shown below:
934
+
935
+ ```js
936
+ const CancelToken = axios.CancelToken;
937
+ const source = CancelToken.source();
938
+
939
+ axios.get('/user/12345', {
940
+ cancelToken: source.token
941
+ }).catch(function (thrown) {
942
+ if (axios.isCancel(thrown)) {
943
+ console.log('Request canceled', thrown.message);
944
+ } else {
945
+ // handle error
946
+ }
947
+ });
948
+
949
+ axios.post('/user/12345', {
950
+ name: 'new name'
951
+ }, {
952
+ cancelToken: source.token
953
+ })
954
+
955
+ // cancel the request (the message parameter is optional)
956
+ source.cancel('Operation canceled by the user.');
957
+ ```
958
+
959
+ You can also create a cancel token by passing an executor function to the `CancelToken` constructor:
960
+
961
+ ```js
962
+ const CancelToken = axios.CancelToken;
963
+ let cancel;
964
+
965
+ axios.get('/user/12345', {
966
+ cancelToken: new CancelToken(function executor(c) {
967
+ // An executor function receives a cancel function as a parameter
968
+ cancel = c;
969
+ })
970
+ });
971
+
972
+ // cancel the request
973
+ cancel();
974
+ ```
975
+
976
+ > **Note:** you can cancel several requests with the same cancel token/abort controller.
977
+ > If a cancellation token is already cancelled at the moment of starting an Axios request, then the request is cancelled immediately, without any attempts to make a real request.
978
+
979
+ > During the transition period, you can use both cancellation APIs, even for the same request:
980
+
981
+ ## Using `application/x-www-form-urlencoded` format
982
+
983
+ ### URLSearchParams
984
+
985
+ By default, axios serializes JavaScript objects to `JSON`. To send data in the [`application/x-www-form-urlencoded` format](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) instead, you can use the [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) API, which is [supported](http://www.caniuse.com/#feat=urlsearchparams) in the vast majority of browsers,and [ Node](https://nodejs.org/api/url.html#url_class_urlsearchparams) starting with v10 (released in 2018).
986
+
987
+ ```js
988
+ const params = new URLSearchParams({ foo: 'bar' });
989
+ params.append('extraparam', 'value');
990
+ axios.post('/foo', params);
991
+ ```
992
+
993
+ ### Query string (Older browsers)
994
+
995
+ For compatibility with very old browsers, there is a [polyfill](https://github.com/WebReflection/url-search-params) available (make sure to polyfill the global environment).
996
+
997
+ Alternatively, you can encode data using the [`qs`](https://github.com/ljharb/qs) library:
998
+
999
+ ```js
1000
+ const qs = require('qs');
1001
+ axios.post('/foo', qs.stringify({ 'bar': 123 }));
1002
+ ```
1003
+
1004
+ Or in another way (ES6),
1005
+
1006
+ ```js
1007
+ import qs from 'qs';
1008
+ const data = { 'bar': 123 };
1009
+ const options = {
1010
+ method: 'POST',
1011
+ headers: { 'content-type': 'application/x-www-form-urlencoded' },
1012
+ data: qs.stringify(data),
1013
+ url,
1014
+ };
1015
+ axios(options);
1016
+ ```
1017
+
1018
+ ### Older Node.js versions
1019
+
1020
+ For older Node.js engines, you can use the [`querystring`](https://nodejs.org/api/querystring.html) module as follows:
1021
+
1022
+ ```js
1023
+ const querystring = require('querystring');
1024
+ axios.post('https://something.com/', querystring.stringify({ foo: 'bar' }));
1025
+ ```
1026
+
1027
+ You can also use the [`qs`](https://github.com/ljharb/qs) library.
1028
+
1029
+ > **Note**: The `qs` library is preferable if you need to stringify nested objects, as the `querystring` method has [known issues](https://github.com/nodejs/node-v0.x-archive/issues/1665) with that use case.
1030
+
1031
+ ### 🆕 Automatic serialization to URLSearchParams
1032
+
1033
+ Axios will automatically serialize the data object to urlencoded format if the content-type header is set to "application/x-www-form-urlencoded".
1034
+
1035
+ ```js
1036
+ const data = {
1037
+ x: 1,
1038
+ arr: [1, 2, 3],
1039
+ arr2: [1, [2], 3],
1040
+ users: [{name: 'Peter', surname: 'Griffin'}, {name: 'Thomas', surname: 'Anderson'}],
1041
+ };
1042
+
1043
+ await axios.postForm('https://postman-echo.com/post', data,
1044
+ {headers: {'content-type': 'application/x-www-form-urlencoded'}}
1045
+ );
1046
+ ```
1047
+
1048
+ The server will handle it as:
1049
+
1050
+ ```js
1051
+ {
1052
+ x: '1',
1053
+ 'arr[]': [ '1', '2', '3' ],
1054
+ 'arr2[0]': '1',
1055
+ 'arr2[1][0]': '2',
1056
+ 'arr2[2]': '3',
1057
+ 'arr3[]': [ '1', '2', '3' ],
1058
+ 'users[0][name]': 'Peter',
1059
+ 'users[0][surname]': 'griffin',
1060
+ 'users[1][name]': 'Thomas',
1061
+ 'users[1][surname]': 'Anderson'
1062
+ }
1063
+ ````
1064
+
1065
+ If your backend body-parser (like `body-parser` of `express.js`) supports nested objects decoding, you will get the same object on the server-side automatically
1066
+
1067
+ ```js
1068
+ var app = express();
1069
+
1070
+ app.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies
1071
+
1072
+ app.post('/', function (req, res, next) {
1073
+ // echo body as JSON
1074
+ res.send(JSON.stringify(req.body));
1075
+ });
1076
+
1077
+ server = app.listen(3000);
1078
+ ```
1079
+
1080
+ ## Using `multipart/form-data` format
1081
+
1082
+ ### FormData
1083
+
1084
+ To send the data as a `multipart/formdata` you need to pass a formData instance as a payload.
1085
+ Setting the `Content-Type` header is not required as Axios guesses it based on the payload type.
1086
+
1087
+ ```js
1088
+ const formData = new FormData();
1089
+ formData.append('foo', 'bar');
1090
+
1091
+ axios.post('https://httpbin.org/post', formData);
1092
+ ```
1093
+
1094
+ In node.js, you can use the [`form-data`](https://github.com/form-data/form-data) library as follows:
1095
+
1096
+ ```js
1097
+ const FormData = require('form-data');
1098
+
1099
+ const form = new FormData();
1100
+ form.append('my_field', 'my value');
1101
+ form.append('my_buffer', new Buffer(10));
1102
+ form.append('my_file', fs.createReadStream('/foo/bar.jpg'));
1103
+
1104
+ axios.post('https://example.com', form)
1105
+ ```
1106
+
1107
+ ### 🆕 Automatic serialization to FormData
1108
+
1109
+ Starting from `v0.27.0`, Axios supports automatic object serialization to a FormData object if the request `Content-Type`
1110
+ header is set to `multipart/form-data`.
1111
+
1112
+ The following request will submit the data in a FormData format (Browser & Node.js):
1113
+
1114
+ ```js
1115
+ import axios from 'axios';
1116
+
1117
+ axios.post('https://httpbin.org/post', {x: 1}, {
1118
+ headers: {
1119
+ 'Content-Type': 'multipart/form-data'
1120
+ }
1121
+ }).then(({data}) => console.log(data));
1122
+ ```
1123
+
1124
+ In the `node.js` build, the ([`form-data`](https://github.com/form-data/form-data)) polyfill is used by default.
1125
+
1126
+ You can overload the FormData class by setting the `env.FormData` config variable,
1127
+ but you probably won't need it in most cases:
1128
+
1129
+ ```js
1130
+ const axios = require('axios');
1131
+ var FormData = require('form-data');
1132
+
1133
+ axios.post('https://httpbin.org/post', {x: 1, buf: new Buffer(10)}, {
1134
+ headers: {
1135
+ 'Content-Type': 'multipart/form-data'
1136
+ }
1137
+ }).then(({data}) => console.log(data));
1138
+ ```
1139
+
1140
+ Axios FormData serializer supports some special endings to perform the following operations:
1141
+
1142
+ - `{}` - serialize the value with JSON.stringify
1143
+ - `[]` - unwrap the array-like object as separate fields with the same key
1144
+
1145
+ > **Note**: unwrap/expand operation will be used by default on arrays and FileList objects
1146
+
1147
+ FormData serializer supports additional options via `config.formSerializer: object` property to handle rare cases:
1148
+
1149
+ - `visitor: Function` - user-defined visitor function that will be called recursively to serialize the data object
1150
+ to a `FormData` object by following custom rules.
1151
+
1152
+ - `dots: boolean = false` - use dot notation instead of brackets to serialize arrays and objects;
1153
+
1154
+ - `metaTokens: boolean = true` - add the special ending (e.g `user{}: '{"name": "John"}'`) in the FormData key.
1155
+ The back-end body-parser could potentially use this meta-information to automatically parse the value as JSON.
1156
+
1157
+ - `indexes: null|false|true = false` - controls how indexes will be added to unwrapped keys of `flat` array-like objects.
1158
+
1159
+ - `null` - don't add brackets (`arr: 1`, `arr: 2`, `arr: 3`)
1160
+ - `false`(default) - add empty brackets (`arr[]: 1`, `arr[]: 2`, `arr[]: 3`)
1161
+ - `true` - add brackets with indexes (`arr[0]: 1`, `arr[1]: 2`, `arr[2]: 3`)
1162
+
1163
+ Let's say we have an object like this one:
1164
+
1165
+ ```js
1166
+ const obj = {
1167
+ x: 1,
1168
+ arr: [1, 2, 3],
1169
+ arr2: [1, [2], 3],
1170
+ users: [{name: 'Peter', surname: 'Griffin'}, {name: 'Thomas', surname: 'Anderson'}],
1171
+ 'obj2{}': [{x:1}]
1172
+ };
1173
+ ```
1174
+
1175
+ The following steps will be executed by the Axios serializer internally:
1176
+
1177
+ ```js
1178
+ const formData = new FormData();
1179
+ formData.append('x', '1');
1180
+ formData.append('arr[]', '1');
1181
+ formData.append('arr[]', '2');
1182
+ formData.append('arr[]', '3');
1183
+ formData.append('arr2[0]', '1');
1184
+ formData.append('arr2[1][0]', '2');
1185
+ formData.append('arr2[2]', '3');
1186
+ formData.append('users[0][name]', 'Peter');
1187
+ formData.append('users[0][surname]', 'Griffin');
1188
+ formData.append('users[1][name]', 'Thomas');
1189
+ formData.append('users[1][surname]', 'Anderson');
1190
+ formData.append('obj2{}', '[{"x":1}]');
1191
+ ```
1192
+
1193
+ Axios supports the following shortcut methods: `postForm`, `putForm`, `patchForm`
1194
+ which are just the corresponding http methods with the `Content-Type` header preset to `multipart/form-data`.
1195
+
1196
+ ## Files Posting
1197
+
1198
+ You can easily submit a single file:
1199
+
1200
+ ```js
1201
+ await axios.postForm('https://httpbin.org/post', {
1202
+ 'myVar' : 'foo',
1203
+ 'file': document.querySelector('#fileInput').files[0]
1204
+ });
1205
+ ```
1206
+
1207
+ or multiple files as `multipart/form-data`:
1208
+
1209
+ ```js
1210
+ await axios.postForm('https://httpbin.org/post', {
1211
+ 'files[]': document.querySelector('#fileInput').files
1212
+ });
1213
+ ```
1214
+
1215
+ `FileList` object can be passed directly:
1216
+
1217
+ ```js
1218
+ await axios.postForm('https://httpbin.org/post', document.querySelector('#fileInput').files)
1219
+ ```
1220
+
1221
+ All files will be sent with the same field names: `files[]`.
1222
+
1223
+ ## 🆕 HTML Form Posting (browser)
1224
+
1225
+ Pass HTML Form element as a payload to submit it as `multipart/form-data` content.
1226
+
1227
+ ```js
1228
+ await axios.postForm('https://httpbin.org/post', document.querySelector('#htmlForm'));
1229
+ ```
1230
+
1231
+ `FormData` and `HTMLForm` objects can also be posted as `JSON` by explicitly setting the `Content-Type` header to `application/json`:
1232
+
1233
+ ```js
1234
+ await axios.post('https://httpbin.org/post', document.querySelector('#htmlForm'), {
1235
+ headers: {
1236
+ 'Content-Type': 'application/json'
1237
+ }
1238
+ })
1239
+ ```
1240
+
1241
+ For example, the Form
1242
+
1243
+ ```html
1244
+ <form id="form">
1245
+ <input type="text" name="foo" value="1">
1246
+ <input type="text" name="deep.prop" value="2">
1247
+ <input type="text" name="deep prop spaced" value="3">
1248
+ <input type="text" name="baz" value="4">
1249
+ <input type="text" name="baz" value="5">
1250
+
1251
+ <select name="user.age">
1252
+ <option value="value1">Value 1</option>
1253
+ <option value="value2" selected>Value 2</option>
1254
+ <option value="value3">Value 3</option>
1255
+ </select>
1256
+
1257
+ <input type="submit" value="Save">
1258
+ </form>
1259
+ ```
1260
+
1261
+ will be submitted as the following JSON object:
1262
+
1263
+ ```js
1264
+ {
1265
+ "foo": "1",
1266
+ "deep": {
1267
+ "prop": {
1268
+ "spaced": "3"
1269
+ }
1270
+ },
1271
+ "baz": [
1272
+ "4",
1273
+ "5"
1274
+ ],
1275
+ "user": {
1276
+ "age": "value2"
1277
+ }
1278
+ }
1279
+ ````
1280
+
1281
+ Sending `Blobs`/`Files` as JSON (`base64`) is not currently supported.
1282
+
1283
+ ## 🆕 Progress capturing
1284
+
1285
+ Axios supports both browser and node environments to capture request upload/download progress.
1286
+ The frequency of progress events is forced to be limited to `3` times per second.
1287
+
1288
+ ```js
1289
+ await axios.post(url, data, {
1290
+ onUploadProgress: function (axiosProgressEvent) {
1291
+ /*{
1292
+ loaded: number;
1293
+ total?: number;
1294
+ progress?: number; // in range [0..1]
1295
+ bytes: number; // how many bytes have been transferred since the last trigger (delta)
1296
+ estimated?: number; // estimated time in seconds
1297
+ rate?: number; // upload speed in bytes
1298
+ upload: true; // upload sign
1299
+ }*/
1300
+ },
1301
+
1302
+ onDownloadProgress: function (axiosProgressEvent) {
1303
+ /*{
1304
+ loaded: number;
1305
+ total?: number;
1306
+ progress?: number;
1307
+ bytes: number;
1308
+ estimated?: number;
1309
+ rate?: number; // download speed in bytes
1310
+ download: true; // download sign
1311
+ }*/
1312
+ }
1313
+ });
1314
+ ```
1315
+
1316
+ You can also track stream upload/download progress in node.js:
1317
+
1318
+ ```js
1319
+ const {data} = await axios.post(SERVER_URL, readableStream, {
1320
+ onUploadProgress: ({progress}) => {
1321
+ console.log((progress * 100).toFixed(2));
1322
+ },
1323
+
1324
+ headers: {
1325
+ 'Content-Length': contentLength
1326
+ },
1327
+
1328
+ maxRedirects: 0 // avoid buffering the entire stream
1329
+ });
1330
+ ````
1331
+
1332
+ > **Note:**
1333
+ > Capturing FormData upload progress is not currently supported in node.js environments.
1334
+
1335
+ > **⚠️ Warning**
1336
+ > It is recommended to disable redirects by setting maxRedirects: 0 to upload the stream in the **node.js** environment,
1337
+ > as follow-redirects package will buffer the entire stream in RAM without following the "backpressure" algorithm.
1338
+
1339
+
1340
+ ## 🆕 Rate limiting
1341
+
1342
+ Download and upload rate limits can only be set for the http adapter (node.js):
1343
+
1344
+ ```js
1345
+ const {data} = await axios.post(LOCAL_SERVER_URL, myBuffer, {
1346
+ onUploadProgress: ({progress, rate}) => {
1347
+ console.log(`Upload [${(progress*100).toFixed(2)}%]: ${(rate / 1024).toFixed(2)}KB/s`)
1348
+ },
1349
+
1350
+ maxRate: [100 * 1024], // 100KB/s limit
1351
+ });
1352
+ ```
1353
+
1354
+ ## 🆕 AxiosHeaders
1355
+
1356
+ Axios has its own `AxiosHeaders` class to manipulate headers using a Map-like API that guarantees caseless work.
1357
+ Although HTTP is case-insensitive in headers, Axios will retain the case of the original header for stylistic reasons
1358
+ and for a workaround when servers mistakenly consider the header's case.
1359
+ The old approach of directly manipulating headers object is still available, but deprecated and not recommended for future usage.
1360
+
1361
+ ### Working with headers
1362
+
1363
+ An AxiosHeaders object instance can contain different types of internal values. that control setting and merging logic.
1364
+ The final headers object with string values is obtained by Axios by calling the `toJSON` method.
1365
+
1366
+ > Note: By JSON here we mean an object consisting only of string values intended to be sent over the network.
1367
+
1368
+ The header value can be one of the following types:
1369
+ - `string` - normal string value that will be sent to the server
1370
+ - `null` - skip header when rendering to JSON
1371
+ - `false` - skip header when rendering to JSON, additionally indicates that `set` method must be called with `rewrite` option set to `true`
1372
+ to overwrite this value (Axios uses this internally to allow users to opt out of installing certain headers like `User-Agent` or `Content-Type`)
1373
+ - `undefined` - value is not set
1374
+
1375
+ > Note: The header value is considered set if it is not equal to undefined.
1376
+
1377
+ The headers object is always initialized inside interceptors and transformers:
1378
+
1379
+ ```ts
1380
+ axios.interceptors.request.use((request: InternalAxiosRequestConfig) => {
1381
+ request.headers.set('My-header', 'value');
1382
+
1383
+ request.headers.set({
1384
+ "My-set-header1": "my-set-value1",
1385
+ "My-set-header2": "my-set-value2"
1386
+ });
1387
+
1388
+ request.headers.set('User-Agent', false); // disable subsequent setting the header by Axios
1389
+
1390
+ request.headers.setContentType('text/plain');
1391
+
1392
+ request.headers['My-set-header2'] = 'newValue' // direct access is deprecated
1393
+
1394
+ return request;
1395
+ }
1396
+ );
1397
+ ````
1398
+
1399
+ You can iterate over an `AxiosHeaders` instance using a `for...of` statement:
1400
+
1401
+ ````js
1402
+ const headers = new AxiosHeaders({
1403
+ foo: '1',
1404
+ bar: '2',
1405
+ baz: '3'
1406
+ });
1407
+
1408
+ for(const [header, value] of headers) {
1409
+ console.log(header, value);
1410
+ }
1411
+
1412
+ // foo 1
1413
+ // bar 2
1414
+ // baz 3
1415
+ ````
1416
+
1417
+ ### new AxiosHeaders(headers?)
1418
+
1419
+ Constructs a new `AxiosHeaders` instance.
1420
+
1421
+ ```
1422
+ constructor(headers?: RawAxiosHeaders | AxiosHeaders | string);
1423
+ ```
1424
+
1425
+ If the headers object is a string, it will be parsed as RAW HTTP headers.
1426
+
1427
+ ````js
1428
+ const headers = new AxiosHeaders(`
1429
+ Host: www.bing.com
1430
+ User-Agent: curl/7.54.0
1431
+ Accept: */*`);
1432
+
1433
+ console.log(headers);
1434
+
1435
+ // Object [AxiosHeaders] {
1436
+ // host: 'www.bing.com',
1437
+ // 'user-agent': 'curl/7.54.0',
1438
+ // accept: '*/*'
1439
+ // }
1440
+ ````
1441
+
1442
+ ### AxiosHeaders#set
1443
+
1444
+ ```ts
1445
+ set(headerName, value: Axios, rewrite?: boolean);
1446
+ set(headerName, value, rewrite?: (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean);
1447
+ set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean);
1448
+ ```
1449
+
1450
+ The `rewrite` argument controls the overwriting behavior:
1451
+ - `false` - do not overwrite if header's value is set (is not `undefined`)
1452
+ - `undefined` (default) - overwrite the header unless its value is set to `false`
1453
+ - `true` - rewrite anyway
1454
+
1455
+ The option can also accept a user-defined function that determines whether the value should be overwritten or not.
1456
+
1457
+ Returns `this`.
1458
+
1459
+ ### AxiosHeaders#get(header)
1460
+
1461
+ ```
1462
+ get(headerName: string, matcher?: true | AxiosHeaderMatcher): AxiosHeaderValue;
1463
+ get(headerName: string, parser: RegExp): RegExpExecArray | null;
1464
+ ````
1465
+
1466
+ Returns the internal value of the header. It can take an extra argument to parse the header's value with `RegExp.exec`,
1467
+ matcher function or internal key-value parser.
1468
+
1469
+ ```ts
1470
+ const headers = new AxiosHeaders({
1471
+ 'Content-Type': 'multipart/form-data; boundary=Asrf456BGe4h'
1472
+ });
1473
+
1474
+ console.log(headers.get('Content-Type'));
1475
+ // multipart/form-data; boundary=Asrf456BGe4h
1476
+
1477
+ console.log(headers.get('Content-Type', true)); // parse key-value pairs from a string separated with \s,;= delimiters:
1478
+ // [Object: null prototype] {
1479
+ // 'multipart/form-data': undefined,
1480
+ // boundary: 'Asrf456BGe4h'
1481
+ // }
1482
+
1483
+
1484
+ console.log(headers.get('Content-Type', (value, name, headers) => {
1485
+ return String(value).replace(/a/g, 'ZZZ');
1486
+ }));
1487
+ // multipZZZrt/form-dZZZtZZZ; boundZZZry=Asrf456BGe4h
1488
+
1489
+ console.log(headers.get('Content-Type', /boundary=(\w+)/)?.[0]);
1490
+ // boundary=Asrf456BGe4h
1491
+
1492
+ ```
1493
+
1494
+ Returns the value of the header.
1495
+
1496
+ ### AxiosHeaders#has(header, matcher?)
1497
+
1498
+ ```
1499
+ has(header: string, matcher?: AxiosHeaderMatcher): boolean;
1500
+ ```
1501
+
1502
+ Returns `true` if the header is set (has no `undefined` value).
1503
+
1504
+ ### AxiosHeaders#delete(header, matcher?)
1505
+
1506
+ ```
1507
+ delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean;
1508
+ ```
1509
+
1510
+ Returns `true` if at least one header has been removed.
1511
+
1512
+ ### AxiosHeaders#clear(matcher?)
1513
+
1514
+ ```
1515
+ clear(matcher?: AxiosHeaderMatcher): boolean;
1516
+ ```
1517
+
1518
+ Removes all headers.
1519
+ Unlike the `delete` method matcher, this optional matcher will be used to match against the header name rather than the value.
1520
+
1521
+ ```ts
1522
+ const headers = new AxiosHeaders({
1523
+ 'foo': '1',
1524
+ 'x-foo': '2',
1525
+ 'x-bar': '3',
1526
+ });
1527
+
1528
+ console.log(headers.clear(/^x-/)); // true
1529
+
1530
+ console.log(headers.toJSON()); // [Object: null prototype] { foo: '1' }
1531
+ ```
1532
+
1533
+ Returns `true` if at least one header has been cleared.
1534
+
1535
+ ### AxiosHeaders#normalize(format);
1536
+
1537
+ If the headers object was changed directly, it can have duplicates with the same name but in different cases.
1538
+ This method normalizes the headers object by combining duplicate keys into one.
1539
+ Axios uses this method internally after calling each interceptor.
1540
+ Set `format` to true for converting headers name to lowercase and capitalize the initial letters (`cOntEnt-type` => `Content-Type`)
1541
+
1542
+ ```js
1543
+ const headers = new AxiosHeaders({
1544
+ 'foo': '1',
1545
+ });
1546
+
1547
+ headers.Foo = '2';
1548
+ headers.FOO = '3';
1549
+
1550
+ console.log(headers.toJSON()); // [Object: null prototype] { foo: '1', Foo: '2', FOO: '3' }
1551
+ console.log(headers.normalize().toJSON()); // [Object: null prototype] { foo: '3' }
1552
+ console.log(headers.normalize(true).toJSON()); // [Object: null prototype] { Foo: '3' }
1553
+ ```
1554
+
1555
+ Returns `this`.
1556
+
1557
+ ### AxiosHeaders#concat(...targets)
1558
+
1559
+ ```
1560
+ concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
1561
+ ```
1562
+
1563
+ Merges the instance with targets into a new `AxiosHeaders` instance. If the target is a string, it will be parsed as RAW HTTP headers.
1564
+
1565
+ Returns a new `AxiosHeaders` instance.
1566
+
1567
+ ### AxiosHeaders#toJSON(asStrings?)
1568
+
1569
+ ````
1570
+ toJSON(asStrings?: boolean): RawAxiosHeaders;
1571
+ ````
1572
+
1573
+ Resolve all internal headers values into a new null prototype object.
1574
+ Set `asStrings` to true to resolve arrays as a string containing all elements, separated by commas.
1575
+
1576
+ ### AxiosHeaders.from(thing?)
1577
+
1578
+ ````
1579
+ from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
1580
+ ````
1581
+
1582
+ Returns a new `AxiosHeaders` instance created from the raw headers passed in,
1583
+ or simply returns the given headers object if it's an `AxiosHeaders` instance.
1584
+
1585
+ ### AxiosHeaders.concat(...targets)
1586
+
1587
+ ````
1588
+ concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
1589
+ ````
1590
+
1591
+ Returns a new `AxiosHeaders` instance created by merging the target objects.
1592
+
1593
+ ### Shortcuts
1594
+
1595
+ The following shortcuts are available:
1596
+
1597
+ - `setContentType`, `getContentType`, `hasContentType`
1598
+
1599
+ - `setContentLength`, `getContentLength`, `hasContentLength`
1600
+
1601
+ - `setAccept`, `getAccept`, `hasAccept`
1602
+
1603
+ - `setUserAgent`, `getUserAgent`, `hasUserAgent`
1604
+
1605
+ - `setContentEncoding`, `getContentEncoding`, `hasContentEncoding`
1606
+
1607
+ ## 🔥 Fetch adapter
1608
+
1609
+ Fetch adapter was introduced in `v1.7.0`. By default, it will be used if `xhr` and `http` adapters are not available in the build,
1610
+ or not supported by the environment.
1611
+ To use it by default, it must be selected explicitly:
1612
+
1613
+ ```js
1614
+ const {data} = axios.get(url, {
1615
+ adapter: 'fetch' // by default ['xhr', 'http', 'fetch']
1616
+ })
1617
+ ```
1618
+
1619
+ You can create a separate instance for this:
1620
+
1621
+ ```js
1622
+ const fetchAxios = axios.create({
1623
+ adapter: 'fetch'
1624
+ });
1625
+
1626
+ const {data} = fetchAxios.get(url);
1627
+ ```
1628
+
1629
+ The adapter supports the same functionality as `xhr` adapter, **including upload and download progress capturing**.
1630
+ Also, it supports additional response types such as `stream` and `formdata` (if supported by the environment).
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
+
1703
+ ## Semver
1704
+
1705
+ Since Axios has reached a `v.1.0.0` we will fully embrace semver as per the spec [here](https://semver.org/)
1706
+
1707
+ ## Promises
1708
+
1709
+ axios depends on a native ES6 Promise implementation to be [supported](https://caniuse.com/promises).
1710
+ If your environment doesn't support ES6 Promises, you can [polyfill](https://github.com/jakearchibald/es6-promise).
1711
+
1712
+ ## TypeScript
1713
+
1714
+ axios includes [TypeScript](https://typescriptlang.org) definitions and a type guard for axios errors.
1715
+
1716
+ ```typescript
1717
+ let user: User = null;
1718
+ try {
1719
+ const { data } = await axios.get('/user?ID=12345');
1720
+ user = data.userDetails;
1721
+ } catch (error) {
1722
+ if (axios.isAxiosError(error)) {
1723
+ handleAxiosError(error);
1724
+ } else {
1725
+ handleUnexpectedError(error);
1726
+ }
1727
+ }
1728
+ ```
1729
+
1730
+ Because axios dual publishes with an ESM default export and a CJS `module.exports`, there are some caveats.
1731
+ The recommended setting is to use `"moduleResolution": "node16"` (this is implied by `"module": "node16"`). Note that this requires TypeScript 4.7 or greater.
1732
+ If use ESM, your settings should be fine.
1733
+ If you compile TypeScript to CJS and you can’t use `"moduleResolution": "node 16"`, you have to enable `esModuleInterop`.
1734
+ If you use TypeScript to type check CJS JavaScript code, your only option is to use `"moduleResolution": "node16"`.
1735
+
1736
+ ## Online one-click setup
1737
+
1738
+ You can use Gitpod, an online IDE(which is free for Open Source) for contributing or running the examples online.
1739
+
1740
+ [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/axios/axios/blob/main/examples/server.js)
1741
+
1742
+
1743
+ ## Resources
1744
+
1745
+ * [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
1746
+ * [Ecosystem](https://github.com/axios/axios/blob/v1.x/ECOSYSTEM.md)
1747
+ * [Contributing Guide](https://github.com/axios/axios/blob/v1.x/CONTRIBUTING.md)
1748
+ * [Code of Conduct](https://github.com/axios/axios/blob/v1.x/CODE_OF_CONDUCT.md)
1749
+
1750
+ ## Credits
1751
+
1752
+ axios is heavily inspired by the [$http service](https://docs.angularjs.org/api/ng/service/$http) provided in [AngularJS](https://angularjs.org/). Ultimately axios is an effort to provide a standalone `$http`-like service for use outside of AngularJS.
1753
+
1754
+ ## License
1755
+
1756
+ [MIT](LICENSE)
ui/node_modules/axios/index.d.cts ADDED
@@ -0,0 +1,568 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ interface RawAxiosHeaders {
2
+ [key: string]: axios.AxiosHeaderValue;
3
+ }
4
+
5
+ type MethodsHeaders = Partial<{
6
+ [Key in axios.Method as Lowercase<Key>]: AxiosHeaders;
7
+ } & {common: AxiosHeaders}>;
8
+
9
+ type AxiosHeaderMatcher = string | RegExp | ((this: AxiosHeaders, value: string, name: string) => boolean);
10
+
11
+ type AxiosHeaderParser = (this: AxiosHeaders, value: axios.AxiosHeaderValue, header: string) => any;
12
+
13
+ type CommonRequestHeadersList = 'Accept' | 'Content-Length' | 'User-Agent'| 'Content-Encoding' | 'Authorization';
14
+
15
+ type ContentType = axios.AxiosHeaderValue | 'text/html' | 'text/plain' | 'multipart/form-data' | 'application/json' | 'application/x-www-form-urlencoded' | 'application/octet-stream';
16
+
17
+ type CommonResponseHeadersList = 'Server' | 'Content-Type' | 'Content-Length' | 'Cache-Control'| 'Content-Encoding';
18
+
19
+ type BrowserProgressEvent = any;
20
+
21
+ declare class AxiosHeaders {
22
+ constructor(
23
+ headers?: RawAxiosHeaders | AxiosHeaders | string
24
+ );
25
+
26
+ [key: string]: any;
27
+
28
+ set(headerName?: string, value?: axios.AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
29
+ set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders;
30
+
31
+ get(headerName: string, parser: RegExp): RegExpExecArray | null;
32
+ get(headerName: string, matcher?: true | AxiosHeaderParser): axios.AxiosHeaderValue;
33
+
34
+ has(header: string, matcher?: AxiosHeaderMatcher): boolean;
35
+
36
+ delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean;
37
+
38
+ clear(matcher?: AxiosHeaderMatcher): boolean;
39
+
40
+ normalize(format: boolean): AxiosHeaders;
41
+
42
+ concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
43
+
44
+ toJSON(asStrings?: boolean): RawAxiosHeaders;
45
+
46
+ static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
47
+
48
+ static accessor(header: string | string[]): AxiosHeaders;
49
+
50
+ static concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
51
+
52
+ setContentType(value: ContentType, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
53
+ getContentType(parser?: RegExp): RegExpExecArray | null;
54
+ getContentType(matcher?: AxiosHeaderMatcher): axios.AxiosHeaderValue;
55
+ hasContentType(matcher?: AxiosHeaderMatcher): boolean;
56
+
57
+ setContentLength(value: axios.AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
58
+ getContentLength(parser?: RegExp): RegExpExecArray | null;
59
+ getContentLength(matcher?: AxiosHeaderMatcher): axios.AxiosHeaderValue;
60
+ hasContentLength(matcher?: AxiosHeaderMatcher): boolean;
61
+
62
+ setAccept(value: axios.AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
63
+ getAccept(parser?: RegExp): RegExpExecArray | null;
64
+ getAccept(matcher?: AxiosHeaderMatcher): axios.AxiosHeaderValue;
65
+ hasAccept(matcher?: AxiosHeaderMatcher): boolean;
66
+
67
+ setUserAgent(value: axios.AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
68
+ getUserAgent(parser?: RegExp): RegExpExecArray | null;
69
+ getUserAgent(matcher?: AxiosHeaderMatcher): axios.AxiosHeaderValue;
70
+ hasUserAgent(matcher?: AxiosHeaderMatcher): boolean;
71
+
72
+ setContentEncoding(value: axios.AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
73
+ getContentEncoding(parser?: RegExp): RegExpExecArray | null;
74
+ getContentEncoding(matcher?: AxiosHeaderMatcher): axios.AxiosHeaderValue;
75
+ hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean;
76
+
77
+ setAuthorization(value: axios.AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
78
+ getAuthorization(parser?: RegExp): RegExpExecArray | null;
79
+ getAuthorization(matcher?: AxiosHeaderMatcher): axios.AxiosHeaderValue;
80
+ hasAuthorization(matcher?: AxiosHeaderMatcher): boolean;
81
+
82
+ getSetCookie(): string[];
83
+
84
+ [Symbol.iterator](): IterableIterator<[string, axios.AxiosHeaderValue]>;
85
+ }
86
+
87
+ declare class AxiosError<T = unknown, D = any> extends Error {
88
+ constructor(
89
+ message?: string,
90
+ code?: string,
91
+ config?: axios.InternalAxiosRequestConfig<D>,
92
+ request?: any,
93
+ response?: axios.AxiosResponse<T, D>
94
+ );
95
+
96
+ config?: axios.InternalAxiosRequestConfig<D>;
97
+ code?: string;
98
+ request?: any;
99
+ response?: axios.AxiosResponse<T, D>;
100
+ isAxiosError: boolean;
101
+ status?: number;
102
+ toJSON: () => object;
103
+ cause?: unknown;
104
+ event?: BrowserProgressEvent;
105
+ static from<T = unknown, D = any>(
106
+ error: Error | unknown,
107
+ code?: string,
108
+ config?: axios.InternalAxiosRequestConfig<D>,
109
+ request?: any,
110
+ response?: axios.AxiosResponse<T, D>,
111
+ customProps?: object,
112
+ ): AxiosError<T, D>;
113
+ static readonly ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
114
+ static readonly ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
115
+ static readonly ERR_BAD_OPTION = "ERR_BAD_OPTION";
116
+ static readonly ERR_NETWORK = "ERR_NETWORK";
117
+ static readonly ERR_DEPRECATED = "ERR_DEPRECATED";
118
+ static readonly ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
119
+ static readonly ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
120
+ static readonly ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
121
+ static readonly ERR_INVALID_URL = "ERR_INVALID_URL";
122
+ static readonly ERR_CANCELED = "ERR_CANCELED";
123
+ static readonly ECONNABORTED = "ECONNABORTED";
124
+ static readonly ETIMEDOUT = "ETIMEDOUT";
125
+ }
126
+
127
+ declare class CanceledError<T> extends AxiosError<T> {
128
+ }
129
+
130
+ declare class Axios {
131
+ constructor(config?: axios.AxiosRequestConfig);
132
+ defaults: axios.AxiosDefaults;
133
+ interceptors: {
134
+ request: axios.AxiosInterceptorManager<axios.InternalAxiosRequestConfig>;
135
+ response: axios.AxiosInterceptorManager<axios.AxiosResponse>;
136
+ };
137
+ getUri(config?: axios.AxiosRequestConfig): string;
138
+ request<T = any, R = axios.AxiosResponse<T>, D = any>(config: axios.AxiosRequestConfig<D>): Promise<R>;
139
+ get<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, config?: axios.AxiosRequestConfig<D>): Promise<R>;
140
+ delete<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, config?: axios.AxiosRequestConfig<D>): Promise<R>;
141
+ head<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, config?: axios.AxiosRequestConfig<D>): Promise<R>;
142
+ options<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, config?: axios.AxiosRequestConfig<D>): Promise<R>;
143
+ post<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig<D>): Promise<R>;
144
+ put<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig<D>): Promise<R>;
145
+ patch<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig<D>): Promise<R>;
146
+ postForm<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig<D>): Promise<R>;
147
+ putForm<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig<D>): Promise<R>;
148
+ patchForm<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig<D>): Promise<R>;
149
+ }
150
+
151
+ declare enum HttpStatusCode {
152
+ Continue = 100,
153
+ SwitchingProtocols = 101,
154
+ Processing = 102,
155
+ EarlyHints = 103,
156
+ Ok = 200,
157
+ Created = 201,
158
+ Accepted = 202,
159
+ NonAuthoritativeInformation = 203,
160
+ NoContent = 204,
161
+ ResetContent = 205,
162
+ PartialContent = 206,
163
+ MultiStatus = 207,
164
+ AlreadyReported = 208,
165
+ ImUsed = 226,
166
+ MultipleChoices = 300,
167
+ MovedPermanently = 301,
168
+ Found = 302,
169
+ SeeOther = 303,
170
+ NotModified = 304,
171
+ UseProxy = 305,
172
+ Unused = 306,
173
+ TemporaryRedirect = 307,
174
+ PermanentRedirect = 308,
175
+ BadRequest = 400,
176
+ Unauthorized = 401,
177
+ PaymentRequired = 402,
178
+ Forbidden = 403,
179
+ NotFound = 404,
180
+ MethodNotAllowed = 405,
181
+ NotAcceptable = 406,
182
+ ProxyAuthenticationRequired = 407,
183
+ RequestTimeout = 408,
184
+ Conflict = 409,
185
+ Gone = 410,
186
+ LengthRequired = 411,
187
+ PreconditionFailed = 412,
188
+ PayloadTooLarge = 413,
189
+ UriTooLong = 414,
190
+ UnsupportedMediaType = 415,
191
+ RangeNotSatisfiable = 416,
192
+ ExpectationFailed = 417,
193
+ ImATeapot = 418,
194
+ MisdirectedRequest = 421,
195
+ UnprocessableEntity = 422,
196
+ Locked = 423,
197
+ FailedDependency = 424,
198
+ TooEarly = 425,
199
+ UpgradeRequired = 426,
200
+ PreconditionRequired = 428,
201
+ TooManyRequests = 429,
202
+ RequestHeaderFieldsTooLarge = 431,
203
+ UnavailableForLegalReasons = 451,
204
+ InternalServerError = 500,
205
+ NotImplemented = 501,
206
+ BadGateway = 502,
207
+ ServiceUnavailable = 503,
208
+ GatewayTimeout = 504,
209
+ HttpVersionNotSupported = 505,
210
+ VariantAlsoNegotiates = 506,
211
+ InsufficientStorage = 507,
212
+ LoopDetected = 508,
213
+ NotExtended = 510,
214
+ NetworkAuthenticationRequired = 511,
215
+ }
216
+
217
+ type InternalAxiosError<T = unknown, D = any> = AxiosError<T, D>;
218
+
219
+ declare namespace axios {
220
+ type AxiosError<T = unknown, D = any> = InternalAxiosError<T, D>;
221
+
222
+ type RawAxiosRequestHeaders = Partial<RawAxiosHeaders & {
223
+ [Key in CommonRequestHeadersList]: AxiosHeaderValue;
224
+ } & {
225
+ 'Content-Type': ContentType
226
+ }>;
227
+
228
+ type AxiosRequestHeaders = RawAxiosRequestHeaders & AxiosHeaders;
229
+
230
+ type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
231
+
232
+ type RawCommonResponseHeaders = {
233
+ [Key in CommonResponseHeadersList]: AxiosHeaderValue;
234
+ } & {
235
+ "set-cookie": string[];
236
+ };
237
+
238
+ type RawAxiosResponseHeaders = Partial<RawAxiosHeaders & RawCommonResponseHeaders>;
239
+
240
+ type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders;
241
+
242
+ interface AxiosRequestTransformer {
243
+ (this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any;
244
+ }
245
+
246
+ interface AxiosResponseTransformer {
247
+ (this: InternalAxiosRequestConfig, data: any, headers: AxiosResponseHeaders, status?: number): any;
248
+ }
249
+
250
+ interface AxiosAdapter {
251
+ (config: InternalAxiosRequestConfig): AxiosPromise;
252
+ }
253
+
254
+ interface AxiosBasicCredentials {
255
+ username: string;
256
+ password: string;
257
+ }
258
+
259
+ interface AxiosProxyConfig {
260
+ host: string;
261
+ port: number;
262
+ auth?: AxiosBasicCredentials;
263
+ protocol?: string;
264
+ }
265
+
266
+ type Method =
267
+ | 'get' | 'GET'
268
+ | 'delete' | 'DELETE'
269
+ | 'head' | 'HEAD'
270
+ | 'options' | 'OPTIONS'
271
+ | 'post' | 'POST'
272
+ | 'put' | 'PUT'
273
+ | 'patch' | 'PATCH'
274
+ | 'purge' | 'PURGE'
275
+ | 'link' | 'LINK'
276
+ | 'unlink' | 'UNLINK';
277
+
278
+ type ResponseType =
279
+ | 'arraybuffer'
280
+ | 'blob'
281
+ | 'document'
282
+ | 'json'
283
+ | 'text'
284
+ | 'stream'
285
+ | 'formdata';
286
+
287
+ type responseEncoding =
288
+ | 'ascii' | 'ASCII'
289
+ | 'ansi' | 'ANSI'
290
+ | 'binary' | 'BINARY'
291
+ | 'base64' | 'BASE64'
292
+ | 'base64url' | 'BASE64URL'
293
+ | 'hex' | 'HEX'
294
+ | 'latin1' | 'LATIN1'
295
+ | 'ucs-2' | 'UCS-2'
296
+ | 'ucs2' | 'UCS2'
297
+ | 'utf-8' | 'UTF-8'
298
+ | 'utf8' | 'UTF8'
299
+ | 'utf16le' | 'UTF16LE';
300
+
301
+ interface TransitionalOptions {
302
+ silentJSONParsing?: boolean;
303
+ forcedJSONParsing?: boolean;
304
+ clarifyTimeoutError?: boolean;
305
+ }
306
+
307
+ interface GenericAbortSignal {
308
+ readonly aborted: boolean;
309
+ onabort?: ((...args: any) => any) | null;
310
+ addEventListener?: (...args: any) => any;
311
+ removeEventListener?: (...args: any) => any;
312
+ }
313
+
314
+ interface FormDataVisitorHelpers {
315
+ defaultVisitor: SerializerVisitor;
316
+ convertValue: (value: any) => any;
317
+ isVisitable: (value: any) => boolean;
318
+ }
319
+
320
+ interface SerializerVisitor {
321
+ (
322
+ this: GenericFormData,
323
+ value: any,
324
+ key: string | number,
325
+ path: null | Array<string | number>,
326
+ helpers: FormDataVisitorHelpers
327
+ ): boolean;
328
+ }
329
+
330
+ interface SerializerOptions {
331
+ visitor?: SerializerVisitor;
332
+ dots?: boolean;
333
+ metaTokens?: boolean;
334
+ indexes?: boolean | null;
335
+ }
336
+
337
+ // tslint:disable-next-line
338
+ interface FormSerializerOptions extends SerializerOptions {
339
+ }
340
+
341
+ interface ParamEncoder {
342
+ (value: any, defaultEncoder: (value: any) => any): any;
343
+ }
344
+
345
+ interface CustomParamsSerializer {
346
+ (params: Record<string, any>, options?: ParamsSerializerOptions): string;
347
+ }
348
+
349
+ interface ParamsSerializerOptions extends SerializerOptions {
350
+ encode?: ParamEncoder;
351
+ serialize?: CustomParamsSerializer;
352
+ }
353
+
354
+ type MaxUploadRate = number;
355
+
356
+ type MaxDownloadRate = number;
357
+
358
+ interface AxiosProgressEvent {
359
+ loaded: number;
360
+ total?: number;
361
+ progress?: number;
362
+ bytes: number;
363
+ rate?: number;
364
+ estimated?: number;
365
+ upload?: boolean;
366
+ download?: boolean;
367
+ event?: BrowserProgressEvent;
368
+ lengthComputable: boolean;
369
+ }
370
+
371
+ type Milliseconds = number;
372
+
373
+ type AxiosAdapterName = 'fetch' | 'xhr' | 'http' | (string & {});
374
+
375
+ type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName;
376
+
377
+ type AddressFamily = 4 | 6 | undefined;
378
+
379
+ interface LookupAddressEntry {
380
+ address: string;
381
+ family?: AddressFamily;
382
+ }
383
+
384
+ type LookupAddress = string | LookupAddressEntry;
385
+
386
+ interface AxiosRequestConfig<D = any> {
387
+ url?: string;
388
+ method?: Method | string;
389
+ baseURL?: string;
390
+ allowAbsoluteUrls?: boolean;
391
+ transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
392
+ transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
393
+ headers?: (RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders;
394
+ params?: any;
395
+ paramsSerializer?: ParamsSerializerOptions | CustomParamsSerializer;
396
+ data?: D;
397
+ timeout?: Milliseconds;
398
+ timeoutErrorMessage?: string;
399
+ withCredentials?: boolean;
400
+ adapter?: AxiosAdapterConfig | AxiosAdapterConfig[];
401
+ auth?: AxiosBasicCredentials;
402
+ responseType?: ResponseType;
403
+ responseEncoding?: responseEncoding | string;
404
+ xsrfCookieName?: string;
405
+ xsrfHeaderName?: string;
406
+ onUploadProgress?: (progressEvent: AxiosProgressEvent) => void;
407
+ onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void;
408
+ maxContentLength?: number;
409
+ validateStatus?: ((status: number) => boolean) | null;
410
+ maxBodyLength?: number;
411
+ maxRedirects?: number;
412
+ maxRate?: number | [MaxUploadRate, MaxDownloadRate];
413
+ beforeRedirect?: (options: Record<string, any>, responseDetails: {headers: Record<string, string>, statusCode: HttpStatusCode}) => void;
414
+ socketPath?: string | null;
415
+ transport?: any;
416
+ httpAgent?: any;
417
+ httpsAgent?: any;
418
+ proxy?: AxiosProxyConfig | false;
419
+ cancelToken?: CancelToken;
420
+ decompress?: boolean;
421
+ transitional?: TransitionalOptions;
422
+ signal?: GenericAbortSignal;
423
+ insecureHTTPParser?: boolean;
424
+ env?: {
425
+ FormData?: new (...args: any[]) => object;
426
+ fetch?: (input: URL | Request | string, init?: RequestInit) => Promise<Response>;
427
+ Request?: new (input: URL | Request | string, init?: RequestInit) => Request;
428
+ Response?: new (
429
+ body?: ArrayBuffer | ArrayBufferView | Blob | FormData | URLSearchParams | string | null,
430
+ init?: ResponseInit
431
+ ) => Response;
432
+ };
433
+ formSerializer?: FormSerializerOptions;
434
+ family?: AddressFamily;
435
+ lookup?: ((hostname: string, options: object, cb: (err: Error | null, address: LookupAddress | LookupAddress[], family?: AddressFamily) => void) => void) |
436
+ ((hostname: string, options: object) => Promise<[address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily] | LookupAddress>);
437
+ withXSRFToken?: boolean | ((config: InternalAxiosRequestConfig) => boolean | undefined);
438
+ fetchOptions?: Omit<RequestInit, 'body' | 'headers' | 'method' | 'signal'> | Record<string, any>;
439
+ }
440
+
441
+ // Alias
442
+ type RawAxiosRequestConfig<D = any> = AxiosRequestConfig<D>;
443
+
444
+ interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> {
445
+ headers: AxiosRequestHeaders;
446
+ }
447
+
448
+ interface HeadersDefaults {
449
+ common: RawAxiosRequestHeaders;
450
+ delete: RawAxiosRequestHeaders;
451
+ get: RawAxiosRequestHeaders;
452
+ head: RawAxiosRequestHeaders;
453
+ post: RawAxiosRequestHeaders;
454
+ put: RawAxiosRequestHeaders;
455
+ patch: RawAxiosRequestHeaders;
456
+ options?: RawAxiosRequestHeaders;
457
+ purge?: RawAxiosRequestHeaders;
458
+ link?: RawAxiosRequestHeaders;
459
+ unlink?: RawAxiosRequestHeaders;
460
+ }
461
+
462
+ interface AxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
463
+ headers: HeadersDefaults;
464
+ }
465
+
466
+ interface CreateAxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
467
+ headers?: RawAxiosRequestHeaders | AxiosHeaders | Partial<HeadersDefaults>;
468
+ }
469
+
470
+ interface AxiosResponse<T = any, D = any, H = {}> {
471
+ data: T;
472
+ status: number;
473
+ statusText: string;
474
+ headers: H & RawAxiosResponseHeaders | AxiosResponseHeaders;
475
+ config: InternalAxiosRequestConfig<D>;
476
+ request?: any;
477
+ }
478
+
479
+ type AxiosPromise<T = any> = Promise<AxiosResponse<T>>;
480
+
481
+ interface CancelStatic {
482
+ new (message?: string): Cancel;
483
+ }
484
+
485
+ interface Cancel {
486
+ message: string | undefined;
487
+ }
488
+
489
+ interface Canceler {
490
+ (message?: string, config?: AxiosRequestConfig, request?: any): void;
491
+ }
492
+
493
+ interface CancelTokenStatic {
494
+ new (executor: (cancel: Canceler) => void): CancelToken;
495
+ source(): CancelTokenSource;
496
+ }
497
+
498
+ interface CancelToken {
499
+ promise: Promise<Cancel>;
500
+ reason?: Cancel;
501
+ throwIfRequested(): void;
502
+ }
503
+
504
+ interface CancelTokenSource {
505
+ token: CancelToken;
506
+ cancel: Canceler;
507
+ }
508
+
509
+ interface AxiosInterceptorOptions {
510
+ synchronous?: boolean;
511
+ runWhen?: (config: InternalAxiosRequestConfig) => boolean;
512
+ }
513
+
514
+ type AxiosRequestInterceptorUse<T> = (onFulfilled?: ((value: T) => T | Promise<T>) | null, onRejected?: ((error: any) => any) | null, options?: AxiosInterceptorOptions) => number;
515
+
516
+ type AxiosResponseInterceptorUse<T> = (onFulfilled?: ((value: T) => T | Promise<T>) | null, onRejected?: ((error: any) => any) | null) => number;
517
+
518
+ interface AxiosInterceptorManager<V> {
519
+ use: V extends AxiosResponse ? AxiosResponseInterceptorUse<V> : AxiosRequestInterceptorUse<V>;
520
+ eject(id: number): void;
521
+ clear(): void;
522
+ }
523
+
524
+ interface AxiosInstance extends Axios {
525
+ <T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
526
+ <T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
527
+
528
+ create(config?: CreateAxiosDefaults): AxiosInstance;
529
+ defaults: Omit<AxiosDefaults, 'headers'> & {
530
+ headers: HeadersDefaults & {
531
+ [key: string]: AxiosHeaderValue
532
+ }
533
+ };
534
+ }
535
+
536
+ interface GenericFormData {
537
+ append(name: string, value: any, options?: any): any;
538
+ }
539
+
540
+ interface GenericHTMLFormElement {
541
+ name: string;
542
+ method: string;
543
+ submit(): void;
544
+ }
545
+
546
+ interface AxiosStatic extends AxiosInstance {
547
+ Cancel: CancelStatic;
548
+ CancelToken: CancelTokenStatic;
549
+ Axios: typeof Axios;
550
+ AxiosError: typeof AxiosError;
551
+ CanceledError: typeof CanceledError;
552
+ HttpStatusCode: typeof HttpStatusCode;
553
+ readonly VERSION: string;
554
+ isCancel(value: any): value is Cancel;
555
+ all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
556
+ spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R;
557
+ isAxiosError<T = any, D = any>(payload: any): payload is AxiosError<T, D>;
558
+ toFormData(sourceObj: object, targetFormData?: GenericFormData, options?: FormSerializerOptions): GenericFormData;
559
+ formToJSON(form: GenericFormData|GenericHTMLFormElement): object;
560
+ getAdapter(adapters: AxiosAdapterConfig | AxiosAdapterConfig[] | undefined): AxiosAdapter;
561
+ AxiosHeaders: typeof AxiosHeaders;
562
+ mergeConfig<D = any>(config1: AxiosRequestConfig<D>, config2: AxiosRequestConfig<D>): AxiosRequestConfig<D>;
563
+ }
564
+ }
565
+
566
+ declare const axios: axios.AxiosStatic;
567
+
568
+ export = axios;
ui/node_modules/axios/index.d.ts ADDED
@@ -0,0 +1,581 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // TypeScript Version: 4.7
2
+ export type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
3
+
4
+ interface RawAxiosHeaders {
5
+ [key: string]: AxiosHeaderValue;
6
+ }
7
+
8
+ type MethodsHeaders = Partial<{
9
+ [Key in Method as Lowercase<Key>]: AxiosHeaders;
10
+ } & {common: AxiosHeaders}>;
11
+
12
+ type AxiosHeaderMatcher = string | RegExp | ((this: AxiosHeaders, value: string, name: string) => boolean);
13
+
14
+ type AxiosHeaderParser = (this: AxiosHeaders, value: AxiosHeaderValue, header: string) => any;
15
+
16
+ export class AxiosHeaders {
17
+ constructor(
18
+ headers?: RawAxiosHeaders | AxiosHeaders | string
19
+ );
20
+
21
+ [key: string]: any;
22
+
23
+ set(headerName?: string, value?: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
24
+ set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders;
25
+
26
+ get(headerName: string, parser: RegExp): RegExpExecArray | null;
27
+ get(headerName: string, matcher?: true | AxiosHeaderParser): AxiosHeaderValue;
28
+
29
+ has(header: string, matcher?: AxiosHeaderMatcher): boolean;
30
+
31
+ delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean;
32
+
33
+ clear(matcher?: AxiosHeaderMatcher): boolean;
34
+
35
+ normalize(format: boolean): AxiosHeaders;
36
+
37
+ concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
38
+
39
+ toJSON(asStrings?: boolean): RawAxiosHeaders;
40
+
41
+ static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
42
+
43
+ static accessor(header: string | string[]): AxiosHeaders;
44
+
45
+ static concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
46
+
47
+ setContentType(value: ContentType, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
48
+ getContentType(parser?: RegExp): RegExpExecArray | null;
49
+ getContentType(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
50
+ hasContentType(matcher?: AxiosHeaderMatcher): boolean;
51
+
52
+ setContentLength(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
53
+ getContentLength(parser?: RegExp): RegExpExecArray | null;
54
+ getContentLength(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
55
+ hasContentLength(matcher?: AxiosHeaderMatcher): boolean;
56
+
57
+ setAccept(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
58
+ getAccept(parser?: RegExp): RegExpExecArray | null;
59
+ getAccept(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
60
+ hasAccept(matcher?: AxiosHeaderMatcher): boolean;
61
+
62
+ setUserAgent(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
63
+ getUserAgent(parser?: RegExp): RegExpExecArray | null;
64
+ getUserAgent(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
65
+ hasUserAgent(matcher?: AxiosHeaderMatcher): boolean;
66
+
67
+ setContentEncoding(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
68
+ getContentEncoding(parser?: RegExp): RegExpExecArray | null;
69
+ getContentEncoding(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
70
+ hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean;
71
+
72
+ setAuthorization(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
73
+ getAuthorization(parser?: RegExp): RegExpExecArray | null;
74
+ getAuthorization(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
75
+ hasAuthorization(matcher?: AxiosHeaderMatcher): boolean;
76
+
77
+ getSetCookie(): string[];
78
+
79
+ [Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>;
80
+ }
81
+
82
+ type CommonRequestHeadersList = 'Accept' | 'Content-Length' | 'User-Agent' | 'Content-Encoding' | 'Authorization';
83
+
84
+ type ContentType = AxiosHeaderValue | 'text/html' | 'text/plain' | 'multipart/form-data' | 'application/json' | 'application/x-www-form-urlencoded' | 'application/octet-stream';
85
+
86
+ export type RawAxiosRequestHeaders = Partial<RawAxiosHeaders & {
87
+ [Key in CommonRequestHeadersList]: AxiosHeaderValue;
88
+ } & {
89
+ 'Content-Type': ContentType
90
+ }>;
91
+
92
+ export type AxiosRequestHeaders = RawAxiosRequestHeaders & AxiosHeaders;
93
+
94
+ type CommonResponseHeadersList = 'Server' | 'Content-Type' | 'Content-Length' | 'Cache-Control'| 'Content-Encoding';
95
+
96
+ type RawCommonResponseHeaders = {
97
+ [Key in CommonResponseHeadersList]: AxiosHeaderValue;
98
+ } & {
99
+ "set-cookie": string[];
100
+ };
101
+
102
+ export type RawAxiosResponseHeaders = Partial<RawAxiosHeaders & RawCommonResponseHeaders>;
103
+
104
+ export type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders;
105
+
106
+ export interface AxiosRequestTransformer {
107
+ (this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any;
108
+ }
109
+
110
+ export interface AxiosResponseTransformer {
111
+ (this: InternalAxiosRequestConfig, data: any, headers: AxiosResponseHeaders, status?: number): any;
112
+ }
113
+
114
+ export interface AxiosAdapter {
115
+ (config: InternalAxiosRequestConfig): AxiosPromise;
116
+ }
117
+
118
+ export interface AxiosBasicCredentials {
119
+ username: string;
120
+ password: string;
121
+ }
122
+
123
+ export interface AxiosProxyConfig {
124
+ host: string;
125
+ port: number;
126
+ auth?: AxiosBasicCredentials;
127
+ protocol?: string;
128
+ }
129
+
130
+ export enum HttpStatusCode {
131
+ Continue = 100,
132
+ SwitchingProtocols = 101,
133
+ Processing = 102,
134
+ EarlyHints = 103,
135
+ Ok = 200,
136
+ Created = 201,
137
+ Accepted = 202,
138
+ NonAuthoritativeInformation = 203,
139
+ NoContent = 204,
140
+ ResetContent = 205,
141
+ PartialContent = 206,
142
+ MultiStatus = 207,
143
+ AlreadyReported = 208,
144
+ ImUsed = 226,
145
+ MultipleChoices = 300,
146
+ MovedPermanently = 301,
147
+ Found = 302,
148
+ SeeOther = 303,
149
+ NotModified = 304,
150
+ UseProxy = 305,
151
+ Unused = 306,
152
+ TemporaryRedirect = 307,
153
+ PermanentRedirect = 308,
154
+ BadRequest = 400,
155
+ Unauthorized = 401,
156
+ PaymentRequired = 402,
157
+ Forbidden = 403,
158
+ NotFound = 404,
159
+ MethodNotAllowed = 405,
160
+ NotAcceptable = 406,
161
+ ProxyAuthenticationRequired = 407,
162
+ RequestTimeout = 408,
163
+ Conflict = 409,
164
+ Gone = 410,
165
+ LengthRequired = 411,
166
+ PreconditionFailed = 412,
167
+ PayloadTooLarge = 413,
168
+ UriTooLong = 414,
169
+ UnsupportedMediaType = 415,
170
+ RangeNotSatisfiable = 416,
171
+ ExpectationFailed = 417,
172
+ ImATeapot = 418,
173
+ MisdirectedRequest = 421,
174
+ UnprocessableEntity = 422,
175
+ Locked = 423,
176
+ FailedDependency = 424,
177
+ TooEarly = 425,
178
+ UpgradeRequired = 426,
179
+ PreconditionRequired = 428,
180
+ TooManyRequests = 429,
181
+ RequestHeaderFieldsTooLarge = 431,
182
+ UnavailableForLegalReasons = 451,
183
+ InternalServerError = 500,
184
+ NotImplemented = 501,
185
+ BadGateway = 502,
186
+ ServiceUnavailable = 503,
187
+ GatewayTimeout = 504,
188
+ HttpVersionNotSupported = 505,
189
+ VariantAlsoNegotiates = 506,
190
+ InsufficientStorage = 507,
191
+ LoopDetected = 508,
192
+ NotExtended = 510,
193
+ NetworkAuthenticationRequired = 511,
194
+ }
195
+
196
+ export type Method =
197
+ | 'get' | 'GET'
198
+ | 'delete' | 'DELETE'
199
+ | 'head' | 'HEAD'
200
+ | 'options' | 'OPTIONS'
201
+ | 'post' | 'POST'
202
+ | 'put' | 'PUT'
203
+ | 'patch' | 'PATCH'
204
+ | 'purge' | 'PURGE'
205
+ | 'link' | 'LINK'
206
+ | 'unlink' | 'UNLINK';
207
+
208
+ export type ResponseType =
209
+ | 'arraybuffer'
210
+ | 'blob'
211
+ | 'document'
212
+ | 'json'
213
+ | 'text'
214
+ | 'stream'
215
+ | 'formdata';
216
+
217
+ export type responseEncoding =
218
+ | 'ascii' | 'ASCII'
219
+ | 'ansi' | 'ANSI'
220
+ | 'binary' | 'BINARY'
221
+ | 'base64' | 'BASE64'
222
+ | 'base64url' | 'BASE64URL'
223
+ | 'hex' | 'HEX'
224
+ | 'latin1' | 'LATIN1'
225
+ | 'ucs-2' | 'UCS-2'
226
+ | 'ucs2' | 'UCS2'
227
+ | 'utf-8' | 'UTF-8'
228
+ | 'utf8' | 'UTF8'
229
+ | 'utf16le' | 'UTF16LE';
230
+
231
+ export interface TransitionalOptions {
232
+ silentJSONParsing?: boolean;
233
+ forcedJSONParsing?: boolean;
234
+ clarifyTimeoutError?: boolean;
235
+ }
236
+
237
+ export interface GenericAbortSignal {
238
+ readonly aborted: boolean;
239
+ onabort?: ((...args: any) => any) | null;
240
+ addEventListener?: (...args: any) => any;
241
+ removeEventListener?: (...args: any) => any;
242
+ }
243
+
244
+ export interface FormDataVisitorHelpers {
245
+ defaultVisitor: SerializerVisitor;
246
+ convertValue: (value: any) => any;
247
+ isVisitable: (value: any) => boolean;
248
+ }
249
+
250
+ export interface SerializerVisitor {
251
+ (
252
+ this: GenericFormData,
253
+ value: any,
254
+ key: string | number,
255
+ path: null | Array<string | number>,
256
+ helpers: FormDataVisitorHelpers
257
+ ): boolean;
258
+ }
259
+
260
+ export interface SerializerOptions {
261
+ visitor?: SerializerVisitor;
262
+ dots?: boolean;
263
+ metaTokens?: boolean;
264
+ indexes?: boolean | null;
265
+ }
266
+
267
+ // tslint:disable-next-line
268
+ export interface FormSerializerOptions extends SerializerOptions {
269
+ }
270
+
271
+ export interface ParamEncoder {
272
+ (value: any, defaultEncoder: (value: any) => any): any;
273
+ }
274
+
275
+ export interface CustomParamsSerializer {
276
+ (params: Record<string, any>, options?: ParamsSerializerOptions): string;
277
+ }
278
+
279
+ export interface ParamsSerializerOptions extends SerializerOptions {
280
+ encode?: ParamEncoder;
281
+ serialize?: CustomParamsSerializer;
282
+ }
283
+
284
+ type MaxUploadRate = number;
285
+
286
+ type MaxDownloadRate = number;
287
+
288
+ type BrowserProgressEvent = any;
289
+
290
+ export interface AxiosProgressEvent {
291
+ loaded: number;
292
+ total?: number;
293
+ progress?: number;
294
+ bytes: number;
295
+ rate?: number;
296
+ estimated?: number;
297
+ upload?: boolean;
298
+ download?: boolean;
299
+ event?: BrowserProgressEvent;
300
+ lengthComputable: boolean;
301
+ }
302
+
303
+ type Milliseconds = number;
304
+
305
+ type AxiosAdapterName = 'fetch' | 'xhr' | 'http' | (string & {});
306
+
307
+ type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName;
308
+
309
+ export type AddressFamily = 4 | 6 | undefined;
310
+
311
+ export interface LookupAddressEntry {
312
+ address: string;
313
+ family?: AddressFamily;
314
+ }
315
+
316
+ export type LookupAddress = string | LookupAddressEntry;
317
+
318
+ export interface AxiosRequestConfig<D = any> {
319
+ url?: string;
320
+ method?: Method | string;
321
+ baseURL?: string;
322
+ allowAbsoluteUrls?: boolean;
323
+ transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
324
+ transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
325
+ headers?: (RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders;
326
+ params?: any;
327
+ paramsSerializer?: ParamsSerializerOptions | CustomParamsSerializer;
328
+ data?: D;
329
+ timeout?: Milliseconds;
330
+ timeoutErrorMessage?: string;
331
+ withCredentials?: boolean;
332
+ adapter?: AxiosAdapterConfig | AxiosAdapterConfig[];
333
+ auth?: AxiosBasicCredentials;
334
+ responseType?: ResponseType;
335
+ responseEncoding?: responseEncoding | string;
336
+ xsrfCookieName?: string;
337
+ xsrfHeaderName?: string;
338
+ onUploadProgress?: (progressEvent: AxiosProgressEvent) => void;
339
+ onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void;
340
+ maxContentLength?: number;
341
+ validateStatus?: ((status: number) => boolean) | null;
342
+ maxBodyLength?: number;
343
+ maxRedirects?: number;
344
+ maxRate?: number | [MaxUploadRate, MaxDownloadRate];
345
+ beforeRedirect?: (options: Record<string, any>, responseDetails: {headers: Record<string, string>, statusCode: HttpStatusCode}) => void;
346
+ socketPath?: string | null;
347
+ transport?: any;
348
+ httpAgent?: any;
349
+ httpsAgent?: any;
350
+ proxy?: AxiosProxyConfig | false;
351
+ cancelToken?: CancelToken;
352
+ decompress?: boolean;
353
+ transitional?: TransitionalOptions;
354
+ signal?: GenericAbortSignal;
355
+ insecureHTTPParser?: boolean;
356
+ env?: {
357
+ FormData?: new (...args: any[]) => object;
358
+ fetch?: (input: URL | Request | string, init?: RequestInit) => Promise<Response>;
359
+ Request?: new (input: URL | Request | string, init?: RequestInit) => Request;
360
+ Response?: new (
361
+ body?: ArrayBuffer | ArrayBufferView | Blob | FormData | URLSearchParams | string | null,
362
+ init?: ResponseInit
363
+ ) => Response;
364
+ };
365
+ formSerializer?: FormSerializerOptions;
366
+ family?: AddressFamily;
367
+ lookup?: ((hostname: string, options: object, cb: (err: Error | null, address: LookupAddress | LookupAddress[], family?: AddressFamily) => void) => void) |
368
+ ((hostname: string, options: object) => Promise<[address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily] | LookupAddress>);
369
+ withXSRFToken?: boolean | ((config: InternalAxiosRequestConfig) => boolean | undefined);
370
+ parseReviver?: (this: any, key: string, value: any) => any;
371
+ fetchOptions?: Omit<RequestInit, 'body' | 'headers' | 'method' | 'signal'> | Record<string, any>;
372
+ }
373
+
374
+ // Alias
375
+ export type RawAxiosRequestConfig<D = any> = AxiosRequestConfig<D>;
376
+
377
+ export interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> {
378
+ headers: AxiosRequestHeaders;
379
+ }
380
+
381
+ export interface HeadersDefaults {
382
+ common: RawAxiosRequestHeaders;
383
+ delete: RawAxiosRequestHeaders;
384
+ get: RawAxiosRequestHeaders;
385
+ head: RawAxiosRequestHeaders;
386
+ post: RawAxiosRequestHeaders;
387
+ put: RawAxiosRequestHeaders;
388
+ patch: RawAxiosRequestHeaders;
389
+ options?: RawAxiosRequestHeaders;
390
+ purge?: RawAxiosRequestHeaders;
391
+ link?: RawAxiosRequestHeaders;
392
+ unlink?: RawAxiosRequestHeaders;
393
+ }
394
+
395
+ export interface AxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
396
+ headers: HeadersDefaults;
397
+ }
398
+
399
+ export interface CreateAxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
400
+ headers?: RawAxiosRequestHeaders | AxiosHeaders | Partial<HeadersDefaults>;
401
+ }
402
+
403
+ export interface AxiosResponse<T = any, D = any, H = {}> {
404
+ data: T;
405
+ status: number;
406
+ statusText: string;
407
+ headers: H & RawAxiosResponseHeaders | AxiosResponseHeaders;
408
+ config: InternalAxiosRequestConfig<D>;
409
+ request?: any;
410
+ }
411
+
412
+ export class AxiosError<T = unknown, D = any> extends Error {
413
+ constructor(
414
+ message?: string,
415
+ code?: string,
416
+ config?: InternalAxiosRequestConfig<D>,
417
+ request?: any,
418
+ response?: AxiosResponse<T, D>
419
+ );
420
+
421
+ config?: InternalAxiosRequestConfig<D>;
422
+ code?: string;
423
+ request?: any;
424
+ response?: AxiosResponse<T, D>;
425
+ isAxiosError: boolean;
426
+ status?: number;
427
+ toJSON: () => object;
428
+ cause?: unknown;
429
+ event?: BrowserProgressEvent;
430
+ static from<T = unknown, D = any>(
431
+ error: Error | unknown,
432
+ code?: string,
433
+ config?: InternalAxiosRequestConfig<D>,
434
+ request?: any,
435
+ response?: AxiosResponse<T, D>,
436
+ customProps?: object,
437
+ ): AxiosError<T, D>;
438
+ static readonly ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
439
+ static readonly ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
440
+ static readonly ERR_BAD_OPTION = "ERR_BAD_OPTION";
441
+ static readonly ERR_NETWORK = "ERR_NETWORK";
442
+ static readonly ERR_DEPRECATED = "ERR_DEPRECATED";
443
+ static readonly ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
444
+ static readonly ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
445
+ static readonly ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
446
+ static readonly ERR_INVALID_URL = "ERR_INVALID_URL";
447
+ static readonly ERR_CANCELED = "ERR_CANCELED";
448
+ static readonly ECONNABORTED = "ECONNABORTED";
449
+ static readonly ETIMEDOUT = "ETIMEDOUT";
450
+ }
451
+
452
+ export class CanceledError<T> extends AxiosError<T> {
453
+ readonly name: "CanceledError";
454
+ }
455
+
456
+ export type AxiosPromise<T = any> = Promise<AxiosResponse<T>>;
457
+
458
+ export interface CancelStatic {
459
+ new (message?: string): Cancel;
460
+ }
461
+
462
+ export interface Cancel {
463
+ message: string | undefined;
464
+ }
465
+
466
+ export interface Canceler {
467
+ (message?: string, config?: AxiosRequestConfig, request?: any): void;
468
+ }
469
+
470
+ export interface CancelTokenStatic {
471
+ new (executor: (cancel: Canceler) => void): CancelToken;
472
+ source(): CancelTokenSource;
473
+ }
474
+
475
+ export interface CancelToken {
476
+ promise: Promise<Cancel>;
477
+ reason?: Cancel;
478
+ throwIfRequested(): void;
479
+ }
480
+
481
+ export interface CancelTokenSource {
482
+ token: CancelToken;
483
+ cancel: Canceler;
484
+ }
485
+
486
+ export interface AxiosInterceptorOptions {
487
+ synchronous?: boolean;
488
+ runWhen?: (config: InternalAxiosRequestConfig) => boolean;
489
+ }
490
+
491
+ type AxiosRequestInterceptorUse<T> = (onFulfilled?: ((value: T) => T | Promise<T>) | null, onRejected?: ((error: any) => any) | null, options?: AxiosInterceptorOptions) => number;
492
+
493
+ type AxiosResponseInterceptorUse<T> = (onFulfilled?: ((value: T) => T | Promise<T>) | null, onRejected?: ((error: any) => any) | null) => number;
494
+
495
+ export interface AxiosInterceptorManager<V> {
496
+ use: V extends AxiosResponse ? AxiosResponseInterceptorUse<V> : AxiosRequestInterceptorUse<V>;
497
+ eject(id: number): void;
498
+ clear(): void;
499
+ }
500
+
501
+ export class Axios {
502
+ constructor(config?: AxiosRequestConfig);
503
+ defaults: AxiosDefaults;
504
+ interceptors: {
505
+ request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
506
+ response: AxiosInterceptorManager<AxiosResponse>;
507
+ };
508
+ getUri(config?: AxiosRequestConfig): string;
509
+ request<T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
510
+ get<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
511
+ delete<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
512
+ head<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
513
+ options<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
514
+ post<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
515
+ put<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
516
+ patch<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
517
+ postForm<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
518
+ putForm<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
519
+ patchForm<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
520
+ }
521
+
522
+ export interface AxiosInstance extends Axios {
523
+ <T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
524
+ <T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
525
+
526
+ create(config?: CreateAxiosDefaults): AxiosInstance;
527
+ defaults: Omit<AxiosDefaults, 'headers'> & {
528
+ headers: HeadersDefaults & {
529
+ [key: string]: AxiosHeaderValue
530
+ }
531
+ };
532
+ }
533
+
534
+ export interface GenericFormData {
535
+ append(name: string, value: any, options?: any): any;
536
+ }
537
+
538
+ export interface GenericHTMLFormElement {
539
+ name: string;
540
+ method: string;
541
+ submit(): void;
542
+ }
543
+
544
+ export function getAdapter(adapters: AxiosAdapterConfig | AxiosAdapterConfig[] | undefined): AxiosAdapter;
545
+
546
+ export function toFormData(sourceObj: object, targetFormData?: GenericFormData, options?: FormSerializerOptions): GenericFormData;
547
+
548
+ export function formToJSON(form: GenericFormData|GenericHTMLFormElement): object;
549
+
550
+ export function isAxiosError<T = any, D = any>(payload: any): payload is AxiosError<T, D>;
551
+
552
+ export function spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R;
553
+
554
+ export function isCancel<T = any>(value: any): value is CanceledError<T>;
555
+
556
+ export function all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
557
+
558
+ export function mergeConfig<D = any>(config1: AxiosRequestConfig<D>, config2: AxiosRequestConfig<D>): AxiosRequestConfig<D>;
559
+
560
+ export interface AxiosStatic extends AxiosInstance {
561
+ Cancel: CancelStatic;
562
+ CancelToken: CancelTokenStatic;
563
+ Axios: typeof Axios;
564
+ AxiosError: typeof AxiosError;
565
+ HttpStatusCode: typeof HttpStatusCode;
566
+ readonly VERSION: string;
567
+ isCancel: typeof isCancel;
568
+ all: typeof all;
569
+ spread: typeof spread;
570
+ isAxiosError: typeof isAxiosError;
571
+ toFormData: typeof toFormData;
572
+ formToJSON: typeof formToJSON;
573
+ getAdapter: typeof getAdapter;
574
+ CanceledError: typeof CanceledError;
575
+ AxiosHeaders: typeof AxiosHeaders;
576
+ mergeConfig: typeof mergeConfig;
577
+ }
578
+
579
+ declare const axios: AxiosStatic;
580
+
581
+ export default axios;
ui/node_modules/axios/index.js ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import axios from './lib/axios.js';
2
+
3
+ // This module is intended to unwrap Axios default export as named.
4
+ // Keep top-level export same with static properties
5
+ // so that it can keep same with es module or cjs
6
+ const {
7
+ Axios,
8
+ AxiosError,
9
+ CanceledError,
10
+ isCancel,
11
+ CancelToken,
12
+ VERSION,
13
+ all,
14
+ Cancel,
15
+ isAxiosError,
16
+ spread,
17
+ toFormData,
18
+ AxiosHeaders,
19
+ HttpStatusCode,
20
+ formToJSON,
21
+ getAdapter,
22
+ mergeConfig
23
+ } = axios;
24
+
25
+ export {
26
+ axios as default,
27
+ Axios,
28
+ AxiosError,
29
+ CanceledError,
30
+ isCancel,
31
+ CancelToken,
32
+ VERSION,
33
+ all,
34
+ Cancel,
35
+ isAxiosError,
36
+ spread,
37
+ toFormData,
38
+ AxiosHeaders,
39
+ HttpStatusCode,
40
+ formToJSON,
41
+ getAdapter,
42
+ mergeConfig
43
+ }
ui/node_modules/axios/package.json ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "axios",
3
+ "version": "1.12.2",
4
+ "description": "Promise based HTTP client for the browser and node.js",
5
+ "main": "index.js",
6
+ "exports": {
7
+ ".": {
8
+ "types": {
9
+ "require": "./index.d.cts",
10
+ "default": "./index.d.ts"
11
+ },
12
+ "react-native": {
13
+ "require": "./dist/browser/axios.cjs",
14
+ "default": "./dist/esm/axios.js"
15
+ },
16
+ "browser": {
17
+ "require": "./dist/browser/axios.cjs",
18
+ "default": "./index.js"
19
+ },
20
+ "default": {
21
+ "require": "./dist/node/axios.cjs",
22
+ "default": "./index.js"
23
+ }
24
+ },
25
+ "./lib/adapters/http.js": "./lib/adapters/http.js",
26
+ "./lib/adapters/xhr.js": "./lib/adapters/xhr.js",
27
+ "./unsafe/*": "./lib/*",
28
+ "./unsafe/core/settle.js": "./lib/core/settle.js",
29
+ "./unsafe/core/buildFullPath.js": "./lib/core/buildFullPath.js",
30
+ "./unsafe/helpers/isAbsoluteURL.js": "./lib/helpers/isAbsoluteURL.js",
31
+ "./unsafe/helpers/buildURL.js": "./lib/helpers/buildURL.js",
32
+ "./unsafe/helpers/combineURLs.js": "./lib/helpers/combineURLs.js",
33
+ "./unsafe/adapters/http.js": "./lib/adapters/http.js",
34
+ "./unsafe/adapters/xhr.js": "./lib/adapters/xhr.js",
35
+ "./unsafe/utils.js": "./lib/utils.js",
36
+ "./package.json": "./package.json",
37
+ "./dist/browser/axios.cjs": "./dist/browser/axios.cjs",
38
+ "./dist/node/axios.cjs": "./dist/node/axios.cjs"
39
+ },
40
+ "type": "module",
41
+ "types": "index.d.ts",
42
+ "scripts": {
43
+ "test": "npm run test:node && npm run test:browser && npm run test:package",
44
+ "test:node": "npm run test:mocha",
45
+ "test:browser": "npm run test:karma",
46
+ "test:package": "npm run test:eslint && npm run test:dtslint && npm run test:exports",
47
+ "test:eslint": "node bin/ssl_hotfix.js eslint lib/**/*.js",
48
+ "test:dtslint": "dtslint --localTs node_modules/typescript/lib",
49
+ "test:mocha": "node bin/ssl_hotfix.js mocha test/unit/**/*.js --timeout 30000 --exit",
50
+ "test:exports": "node bin/ssl_hotfix.js mocha test/module/test.js --timeout 30000 --exit",
51
+ "test:karma": "node ./bin/run-karma-tests.js",
52
+ "test:karma:firefox": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: Browsers=Firefox karma start karma.conf.cjs --single-run",
53
+ "test:karma:server": "node bin/ssl_hotfix.js cross-env karma start karma.conf.cjs",
54
+ "test:build:version": "node ./bin/check-build-version.js",
55
+ "start": "node ./sandbox/server.js",
56
+ "preversion": "gulp version",
57
+ "version": "npm run build && git add package.json",
58
+ "prepublishOnly": "npm run test:build:version",
59
+ "postpublish": "git push && git push --tags",
60
+ "build": "gulp clear && cross-env NODE_ENV=production rollup -c -m",
61
+ "examples": "node ./examples/server.js",
62
+ "coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
63
+ "fix": "eslint --fix lib/**/*.js",
64
+ "prepare": "husky install && npm run prepare:hooks",
65
+ "prepare:hooks": "npx husky set .husky/commit-msg \"npx commitlint --edit $1\"",
66
+ "release:dry": "release-it --dry-run --no-npm",
67
+ "release:info": "release-it --release-version",
68
+ "release:beta:no-npm": "release-it --preRelease=beta --no-npm",
69
+ "release:beta": "release-it --preRelease=beta",
70
+ "release:no-npm": "release-it --no-npm",
71
+ "release:changelog:fix": "node ./bin/injectContributorsList.js && git add CHANGELOG.md",
72
+ "release": "release-it"
73
+ },
74
+ "repository": {
75
+ "type": "git",
76
+ "url": "https://github.com/axios/axios.git"
77
+ },
78
+ "keywords": [
79
+ "xhr",
80
+ "http",
81
+ "ajax",
82
+ "promise",
83
+ "node"
84
+ ],
85
+ "author": "Matt Zabriskie",
86
+ "license": "MIT",
87
+ "bugs": {
88
+ "url": "https://github.com/axios/axios/issues"
89
+ },
90
+ "homepage": "https://axios-http.com",
91
+ "devDependencies": {
92
+ "@babel/core": "^7.23.9",
93
+ "@babel/preset-env": "^7.23.9",
94
+ "@commitlint/cli": "^17.8.1",
95
+ "@commitlint/config-conventional": "^17.8.1",
96
+ "@release-it/conventional-changelog": "^5.1.1",
97
+ "@rollup/plugin-alias": "^5.1.0",
98
+ "@rollup/plugin-babel": "^5.3.1",
99
+ "@rollup/plugin-commonjs": "^15.1.0",
100
+ "@rollup/plugin-json": "^4.1.0",
101
+ "@rollup/plugin-multi-entry": "^4.1.0",
102
+ "@rollup/plugin-node-resolve": "^9.0.0",
103
+ "abortcontroller-polyfill": "^1.7.5",
104
+ "auto-changelog": "^2.4.0",
105
+ "body-parser": "^1.20.2",
106
+ "chalk": "^5.3.0",
107
+ "coveralls": "^3.1.1",
108
+ "cross-env": "^7.0.3",
109
+ "dev-null": "^0.1.1",
110
+ "dtslint": "^4.2.1",
111
+ "es6-promise": "^4.2.8",
112
+ "eslint": "^8.56.0",
113
+ "express": "^4.18.2",
114
+ "formdata-node": "^5.0.1",
115
+ "formidable": "^2.1.2",
116
+ "fs-extra": "^10.1.0",
117
+ "get-stream": "^3.0.0",
118
+ "gulp": "^4.0.2",
119
+ "handlebars": "^4.7.8",
120
+ "husky": "^8.0.3",
121
+ "istanbul-instrumenter-loader": "^3.0.1",
122
+ "jasmine-core": "^2.99.1",
123
+ "karma": "^6.3.17",
124
+ "karma-chrome-launcher": "^3.2.0",
125
+ "karma-firefox-launcher": "^2.1.2",
126
+ "karma-jasmine": "^1.1.2",
127
+ "karma-jasmine-ajax": "^0.1.13",
128
+ "karma-rollup-preprocessor": "^7.0.8",
129
+ "karma-safari-launcher": "^1.0.0",
130
+ "karma-sauce-launcher": "^4.3.6",
131
+ "karma-sinon": "^1.0.5",
132
+ "karma-sourcemap-loader": "^0.3.8",
133
+ "memoizee": "^0.4.15",
134
+ "minimist": "^1.2.8",
135
+ "mocha": "^10.3.0",
136
+ "multer": "^1.4.4",
137
+ "pacote": "^20.0.0",
138
+ "pretty-bytes": "^6.1.1",
139
+ "release-it": "^15.11.0",
140
+ "rollup": "^2.79.1",
141
+ "rollup-plugin-auto-external": "^2.0.0",
142
+ "rollup-plugin-bundle-size": "^1.0.3",
143
+ "rollup-plugin-terser": "^7.0.2",
144
+ "sinon": "^4.5.0",
145
+ "stream-throttle": "^0.1.3",
146
+ "string-replace-async": "^3.0.2",
147
+ "tar-stream": "^3.1.7",
148
+ "terser-webpack-plugin": "^4.2.3",
149
+ "typescript": "^4.9.5"
150
+ },
151
+ "browser": {
152
+ "./lib/adapters/http.js": "./lib/helpers/null.js",
153
+ "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
154
+ "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
155
+ },
156
+ "react-native": {
157
+ "./lib/adapters/http.js": "./lib/helpers/null.js",
158
+ "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
159
+ "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
160
+ },
161
+ "jsdelivr": "dist/axios.min.js",
162
+ "unpkg": "dist/axios.min.js",
163
+ "typings": "./index.d.ts",
164
+ "dependencies": {
165
+ "follow-redirects": "^1.15.6",
166
+ "form-data": "^4.0.4",
167
+ "proxy-from-env": "^1.1.0"
168
+ },
169
+ "bundlesize": [
170
+ {
171
+ "path": "./dist/axios.min.js",
172
+ "threshold": "5kB"
173
+ }
174
+ ],
175
+ "contributors": [
176
+ "Matt Zabriskie (https://github.com/mzabriskie)",
177
+ "Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
178
+ "Nick Uraltsev (https://github.com/nickuraltsev)",
179
+ "Jay (https://github.com/jasonsaayman)",
180
+ "Emily Morehouse (https://github.com/emilyemorehouse)",
181
+ "Rubén Norte (https://github.com/rubennorte)",
182
+ "Justin Beckwith (https://github.com/JustinBeckwith)",
183
+ "Martti Laine (https://github.com/codeclown)",
184
+ "Xianming Zhong (https://github.com/chinesedfan)",
185
+ "Remco Haszing (https://github.com/remcohaszing)",
186
+ "Rikki Gibson (https://github.com/RikkiGibson)",
187
+ "Willian Agostini (https://github.com/WillianAgostini)",
188
+ "Yasu Flores (https://github.com/yasuf)"
189
+ ],
190
+ "sideEffects": false,
191
+ "release-it": {
192
+ "git": {
193
+ "commitMessage": "chore(release): v${version}",
194
+ "push": true,
195
+ "commit": true,
196
+ "tag": true,
197
+ "requireCommits": false,
198
+ "requireCleanWorkingDir": false
199
+ },
200
+ "github": {
201
+ "release": true,
202
+ "draft": true
203
+ },
204
+ "npm": {
205
+ "publish": false,
206
+ "ignoreVersion": false
207
+ },
208
+ "plugins": {
209
+ "@release-it/conventional-changelog": {
210
+ "preset": "angular",
211
+ "infile": "CHANGELOG.md",
212
+ "header": "# Changelog"
213
+ }
214
+ },
215
+ "hooks": {
216
+ "before:init": "npm test",
217
+ "after:bump": "gulp version --bump ${version} && npm run build && npm run test:build:version",
218
+ "before:release": "npm run release:changelog:fix && git add ./package-lock.json",
219
+ "after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
220
+ }
221
+ },
222
+ "commitlint": {
223
+ "rules": {
224
+ "header-max-length": [
225
+ 2,
226
+ "always",
227
+ 130
228
+ ]
229
+ },
230
+ "extends": [
231
+ "@commitlint/config-conventional"
232
+ ]
233
+ }
234
+ }
ui/node_modules/bare-events/LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
ui/node_modules/bare-events/README.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # bare-events
2
+
3
+ Event emitters for JavaScript.
4
+
5
+ ```
6
+ npm install bare-events
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ ```js
12
+ const EventEmitter = require('bare-events')
13
+
14
+ const e = new EventEmitter()
15
+
16
+ e.on('hello', function (data) {
17
+ console.log(data)
18
+ })
19
+
20
+ e.emit('hello', 'world')
21
+ ```
22
+
23
+ ## License
24
+
25
+ Apache-2.0
ui/node_modules/bare-events/index.d.ts ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ interface EventMap {
2
+ [event: string | symbol]: unknown[]
3
+ }
4
+
5
+ interface EventHandler<in A extends unknown[] = unknown[], out R = unknown> {
6
+ (...args: A): R
7
+ }
8
+
9
+ declare class EventEmitterError extends Error {
10
+ static OPERATION_ABORTED(cause: Error, msg?: string): EventEmitterError
11
+ static UNHANDLED_ERROR(cause: Error, msg?: string): EventEmitterError
12
+ }
13
+
14
+ interface EventEmitter<in out M extends EventMap = EventMap> {
15
+ addListener<E extends keyof M, R>(name: E, fn: EventHandler<M[E], R>): this
16
+
17
+ addOnceListener<E extends keyof M, R>(
18
+ name: E,
19
+ fn: EventHandler<M[E], R>
20
+ ): this
21
+
22
+ prependListener<E extends keyof M, R>(
23
+ name: E,
24
+ fn: EventHandler<M[E], R>
25
+ ): this
26
+
27
+ prependOnceListener<E extends keyof M, R>(
28
+ name: E,
29
+ fn: EventHandler<M[E], R>
30
+ ): this
31
+
32
+ removeListener<E extends keyof M, R>(name: E, fn: EventHandler<M[E], R>): this
33
+
34
+ removeAllListeners<E extends keyof M>(name?: E): this
35
+
36
+ on<E extends keyof M, R>(name: E, fn: EventHandler<M[E], R>): this
37
+
38
+ once<E extends keyof M, R>(name: E, fn: EventHandler<M[E], R>): this
39
+
40
+ off<E extends keyof M, R>(name: E, fn: EventHandler<M[E], R>): this
41
+
42
+ emit<E extends keyof M>(name: E, ...args: M[E]): boolean
43
+
44
+ listeners<E extends keyof M, R>(name: E): EventHandler<M[E], R>
45
+
46
+ listenerCount<E extends keyof M>(name: E): number
47
+
48
+ getMaxListeners(): number
49
+ setMaxListeners(n: number): void
50
+ }
51
+
52
+ declare class EventEmitter<in out M extends EventMap = EventMap> {}
53
+
54
+ declare namespace EventEmitter {
55
+ export function on<M extends EventMap, E extends keyof M>(
56
+ emitter: EventEmitter<M>,
57
+ name: E,
58
+ opts?: { signal?: AbortSignal }
59
+ ): AsyncIterableIterator<M[E]>
60
+
61
+ export function once<M extends EventMap, E extends keyof M>(
62
+ emitter: EventEmitter<M>,
63
+ name: E,
64
+ opts?: { signal?: AbortSignal }
65
+ ): Promise<M[E]>
66
+
67
+ export function forward<
68
+ F extends EventMap,
69
+ E extends keyof F,
70
+ T extends Pick<F, E>
71
+ >(
72
+ from: EventEmitter<F>,
73
+ to: EventEmitter<T>,
74
+ names: E | E[],
75
+ opts?: { emit?: (name: E, ...args: T[E]) => void }
76
+ ): void
77
+
78
+ export function listenerCount<M extends EventMap, E extends keyof M>(
79
+ emitter: EventEmitter<M>,
80
+ name: E
81
+ ): number
82
+
83
+ export function getMaxListeners(emitter: EventEmitter): number
84
+
85
+ export function setMaxListeners(n: number, ...emitters: EventEmitter[]): void
86
+
87
+ export let defaultMaxListeners: number
88
+
89
+ export { EventEmitter, EventEmitterError as errors, EventMap, EventHandler }
90
+ }
91
+
92
+ export = EventEmitter
ui/node_modules/bare-events/index.js ADDED
@@ -0,0 +1,355 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const errors = require('./lib/errors')
2
+
3
+ class EventListener {
4
+ constructor() {
5
+ this.list = []
6
+ this.count = 0
7
+ }
8
+
9
+ append(ctx, name, fn, once) {
10
+ this.count++
11
+ ctx.emit('newListener', name, fn) // Emit BEFORE adding
12
+ this.list.push([fn, once])
13
+ }
14
+
15
+ prepend(ctx, name, fn, once) {
16
+ this.count++
17
+ ctx.emit('newListener', name, fn) // Emit BEFORE adding
18
+ this.list.unshift([fn, once])
19
+ }
20
+
21
+ remove(ctx, name, fn) {
22
+ for (let i = 0, n = this.list.length; i < n; i++) {
23
+ const l = this.list[i]
24
+
25
+ if (l[0] === fn) {
26
+ this.list.splice(i, 1)
27
+
28
+ if (this.count === 1) delete ctx._events[name]
29
+
30
+ ctx.emit('removeListener', name, fn) // Emit AFTER removing
31
+
32
+ this.count--
33
+ return
34
+ }
35
+ }
36
+ }
37
+
38
+ removeAll(ctx, name) {
39
+ const list = [...this.list]
40
+ this.list = []
41
+
42
+ if (this.count === list.length) delete ctx._events[name]
43
+
44
+ for (let i = list.length - 1; i >= 0; i--) {
45
+ ctx.emit('removeListener', name, list[i][0]) // Emit AFTER removing
46
+ }
47
+
48
+ this.count -= list.length
49
+ }
50
+
51
+ emit(ctx, name, ...args) {
52
+ const list = [...this.list]
53
+
54
+ for (let i = 0, n = list.length; i < n; i++) {
55
+ const l = list[i]
56
+
57
+ if (l[1] === true) this.remove(ctx, name, l[0])
58
+
59
+ l[0].call(ctx, ...args)
60
+ }
61
+
62
+ return list.length > 0
63
+ }
64
+ }
65
+
66
+ function appendListener(ctx, name, fn, once) {
67
+ const e = ctx._events[name] || (ctx._events[name] = new EventListener())
68
+ e.append(ctx, name, fn, once)
69
+ return ctx
70
+ }
71
+
72
+ function prependListener(ctx, name, fn, once) {
73
+ const e = ctx._events[name] || (ctx._events[name] = new EventListener())
74
+ e.prepend(ctx, name, fn, once)
75
+ return ctx
76
+ }
77
+
78
+ function removeListener(ctx, name, fn) {
79
+ const e = ctx._events[name]
80
+ if (e !== undefined) e.remove(ctx, name, fn)
81
+ return ctx
82
+ }
83
+
84
+ function throwUnhandledError(...args) {
85
+ let err
86
+
87
+ if (args.length > 0) err = args[0]
88
+
89
+ if (err instanceof Error === false) err = errors.UNHANDLED_ERROR(err)
90
+
91
+ if (Error.captureStackTrace) {
92
+ Error.captureStackTrace(err, exports.prototype.emit)
93
+ }
94
+
95
+ queueMicrotask(() => {
96
+ throw err
97
+ })
98
+ }
99
+
100
+ module.exports = exports = class EventEmitter {
101
+ constructor() {
102
+ this._events = Object.create(null)
103
+ }
104
+
105
+ addListener(name, fn) {
106
+ return appendListener(this, name, fn, false)
107
+ }
108
+
109
+ addOnceListener(name, fn) {
110
+ return appendListener(this, name, fn, true)
111
+ }
112
+
113
+ prependListener(name, fn) {
114
+ return prependListener(this, name, fn, false)
115
+ }
116
+
117
+ prependOnceListener(name, fn) {
118
+ return prependListener(this, name, fn, true)
119
+ }
120
+
121
+ removeListener(name, fn) {
122
+ return removeListener(this, name, fn)
123
+ }
124
+
125
+ on(name, fn) {
126
+ return appendListener(this, name, fn, false)
127
+ }
128
+
129
+ once(name, fn) {
130
+ return appendListener(this, name, fn, true)
131
+ }
132
+
133
+ off(name, fn) {
134
+ return removeListener(this, name, fn)
135
+ }
136
+
137
+ emit(name, ...args) {
138
+ if (name === 'error' && this._events.error === undefined) {
139
+ throwUnhandledError(...args)
140
+ }
141
+
142
+ const e = this._events[name]
143
+ return e === undefined ? false : e.emit(this, name, ...args)
144
+ }
145
+
146
+ listeners(name) {
147
+ const e = this._events[name]
148
+ return e === undefined ? [] : [...e.list]
149
+ }
150
+
151
+ listenerCount(name) {
152
+ const e = this._events[name]
153
+ return e === undefined ? 0 : e.list.length
154
+ }
155
+
156
+ getMaxListeners() {
157
+ return EventEmitter.defaultMaxListeners
158
+ }
159
+
160
+ setMaxListeners(n) {}
161
+
162
+ removeAllListeners(name) {
163
+ if (arguments.length === 0) {
164
+ for (const key of Reflect.ownKeys(this._events)) {
165
+ if (key === 'removeListener') continue
166
+ this.removeAllListeners(key)
167
+ }
168
+ this.removeAllListeners('removeListener')
169
+ } else {
170
+ const e = this._events[name]
171
+ if (e !== undefined) e.removeAll(this, name)
172
+ }
173
+ return this
174
+ }
175
+ }
176
+
177
+ exports.EventEmitter = exports
178
+
179
+ exports.errors = errors
180
+
181
+ exports.defaultMaxListeners = 10
182
+
183
+ exports.on = function on(emitter, name, opts = {}) {
184
+ const { signal } = opts
185
+
186
+ if (signal && signal.aborted) {
187
+ throw errors.OPERATION_ABORTED(signal.reason)
188
+ }
189
+
190
+ let error = null
191
+ let done = false
192
+
193
+ const events = []
194
+ const promises = []
195
+
196
+ emitter.on(name, onevent)
197
+
198
+ if (name !== 'error') emitter.on('error', onerror)
199
+
200
+ if (signal) signal.addEventListener('abort', onabort)
201
+
202
+ return {
203
+ next() {
204
+ if (events.length) {
205
+ return Promise.resolve({ value: events.shift(), done: false })
206
+ }
207
+
208
+ if (error) {
209
+ const err = error
210
+
211
+ error = null
212
+
213
+ return Promise.reject(err)
214
+ }
215
+
216
+ if (done) return onclose()
217
+
218
+ return new Promise((resolve, reject) =>
219
+ promises.push({ resolve, reject })
220
+ )
221
+ },
222
+
223
+ return() {
224
+ return onclose()
225
+ },
226
+
227
+ throw(err) {
228
+ return onerror(err)
229
+ },
230
+
231
+ [Symbol.asyncIterator]() {
232
+ return this
233
+ }
234
+ }
235
+
236
+ function onevent(...args) {
237
+ if (promises.length) {
238
+ promises.shift().resolve({ value: args, done: false })
239
+ } else {
240
+ events.push(args)
241
+ }
242
+ }
243
+
244
+ function onerror(err) {
245
+ if (promises.length) {
246
+ promises.shift().reject(err)
247
+ } else {
248
+ error = err
249
+ }
250
+
251
+ return Promise.resolve({ done: true })
252
+ }
253
+
254
+ function onabort() {
255
+ onerror(errors.OPERATION_ABORTED(signal.reason))
256
+ }
257
+
258
+ function onclose() {
259
+ emitter.off(name, onevent)
260
+
261
+ if (name !== 'error') emitter.off('error', onerror)
262
+
263
+ if (signal) signal.removeEventListener('abort', onabort)
264
+
265
+ done = true
266
+
267
+ if (promises.length) promises.shift().resolve({ done: true })
268
+
269
+ return Promise.resolve({ done: true })
270
+ }
271
+ }
272
+
273
+ exports.once = function once(emitter, name, opts = {}) {
274
+ const { signal } = opts
275
+
276
+ if (signal && signal.aborted) {
277
+ throw errors.OPERATION_ABORTED(signal.reason)
278
+ }
279
+
280
+ return new Promise((resolve, reject) => {
281
+ if (name !== 'error') emitter.on('error', onerror)
282
+
283
+ if (signal) signal.addEventListener('abort', onabort)
284
+
285
+ emitter.once(name, (...args) => {
286
+ if (name !== 'error') emitter.off('error', onerror)
287
+
288
+ if (signal) signal.removeEventListener('abort', onabort)
289
+
290
+ resolve(args)
291
+ })
292
+
293
+ function onerror(err) {
294
+ emitter.off('error', onerror)
295
+
296
+ reject(err)
297
+ }
298
+
299
+ function onabort() {
300
+ signal.removeEventListener('abort', onabort)
301
+
302
+ onerror(errors.OPERATION_ABORTED(signal.reason))
303
+ }
304
+ })
305
+ }
306
+
307
+ exports.forward = function forward(from, to, names, opts = {}) {
308
+ if (typeof names === 'string') names = [names]
309
+
310
+ const { emit = to.emit.bind(to) } = opts
311
+
312
+ const listeners = names.map(
313
+ (name) =>
314
+ function onevent(...args) {
315
+ emit(name, ...args)
316
+ }
317
+ )
318
+
319
+ to.on('newListener', (name) => {
320
+ const i = names.indexOf(name)
321
+
322
+ if (i !== -1 && to.listenerCount(name) === 0) {
323
+ from.on(name, listeners[i])
324
+ }
325
+ }).on('removeListener', (name) => {
326
+ const i = names.indexOf(name)
327
+
328
+ if (i !== -1 && to.listenerCount(name) === 0) {
329
+ from.off(name, listeners[i])
330
+ }
331
+ })
332
+ }
333
+
334
+ exports.listenerCount = function listenerCount(emitter, name) {
335
+ return emitter.listenerCount(name)
336
+ }
337
+
338
+ exports.getMaxListeners = function getMaxListeners(emitter) {
339
+ if (typeof emitter.getMaxListeners === 'function') {
340
+ return emitter.getMaxListeners()
341
+ }
342
+
343
+ return exports.defaultMaxListeners
344
+ }
345
+
346
+ exports.setMaxListeners = function setMaxListeners(n, ...emitters) {
347
+ if (emitters.length === 0) exports.defaultMaxListeners = n
348
+ else {
349
+ for (const emitter of emitters) {
350
+ if (typeof emitter.setMaxListeners === 'function') {
351
+ emitter.setMaxListeners(n)
352
+ }
353
+ }
354
+ }
355
+ }
ui/node_modules/bare-events/package.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "bare-events",
3
+ "version": "2.6.1",
4
+ "description": "Event emitters for JavaScript",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./index.d.ts",
8
+ "default": "./index.js"
9
+ },
10
+ "./package": "./package.json",
11
+ "./errors": "./lib/errors.js"
12
+ },
13
+ "files": [
14
+ "index.js",
15
+ "index.d.ts",
16
+ "lib"
17
+ ],
18
+ "scripts": {
19
+ "test": "npm run lint && npm run test:bare && npm run test:node",
20
+ "test:bare": "bare test.js",
21
+ "test:node": "node test.js",
22
+ "lint": "prettier . --check"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/holepunchto/bare-events.git"
27
+ },
28
+ "author": "Holepunch",
29
+ "license": "Apache-2.0",
30
+ "bugs": {
31
+ "url": "https://github.com/holepunchto/bare-events/issues"
32
+ },
33
+ "homepage": "https://github.com/holepunchto/bare-events#readme",
34
+ "devDependencies": {
35
+ "brittle": "^3.3.2",
36
+ "prettier": "^3.4.2",
37
+ "prettier-config-standard": "^7.0.0"
38
+ }
39
+ }
ui/node_modules/bindings/bindings.js ADDED
@@ -0,0 +1,221 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Module dependencies.
3
+ */
4
+
5
+ var fs = require('fs'),
6
+ path = require('path'),
7
+ fileURLToPath = require('file-uri-to-path'),
8
+ join = path.join,
9
+ dirname = path.dirname,
10
+ exists =
11
+ (fs.accessSync &&
12
+ function(path) {
13
+ try {
14
+ fs.accessSync(path);
15
+ } catch (e) {
16
+ return false;
17
+ }
18
+ return true;
19
+ }) ||
20
+ fs.existsSync ||
21
+ path.existsSync,
22
+ defaults = {
23
+ arrow: process.env.NODE_BINDINGS_ARROW || ' → ',
24
+ compiled: process.env.NODE_BINDINGS_COMPILED_DIR || 'compiled',
25
+ platform: process.platform,
26
+ arch: process.arch,
27
+ nodePreGyp:
28
+ 'node-v' +
29
+ process.versions.modules +
30
+ '-' +
31
+ process.platform +
32
+ '-' +
33
+ process.arch,
34
+ version: process.versions.node,
35
+ bindings: 'bindings.node',
36
+ try: [
37
+ // node-gyp's linked version in the "build" dir
38
+ ['module_root', 'build', 'bindings'],
39
+ // node-waf and gyp_addon (a.k.a node-gyp)
40
+ ['module_root', 'build', 'Debug', 'bindings'],
41
+ ['module_root', 'build', 'Release', 'bindings'],
42
+ // Debug files, for development (legacy behavior, remove for node v0.9)
43
+ ['module_root', 'out', 'Debug', 'bindings'],
44
+ ['module_root', 'Debug', 'bindings'],
45
+ // Release files, but manually compiled (legacy behavior, remove for node v0.9)
46
+ ['module_root', 'out', 'Release', 'bindings'],
47
+ ['module_root', 'Release', 'bindings'],
48
+ // Legacy from node-waf, node <= 0.4.x
49
+ ['module_root', 'build', 'default', 'bindings'],
50
+ // Production "Release" buildtype binary (meh...)
51
+ ['module_root', 'compiled', 'version', 'platform', 'arch', 'bindings'],
52
+ // node-qbs builds
53
+ ['module_root', 'addon-build', 'release', 'install-root', 'bindings'],
54
+ ['module_root', 'addon-build', 'debug', 'install-root', 'bindings'],
55
+ ['module_root', 'addon-build', 'default', 'install-root', 'bindings'],
56
+ // node-pre-gyp path ./lib/binding/{node_abi}-{platform}-{arch}
57
+ ['module_root', 'lib', 'binding', 'nodePreGyp', 'bindings']
58
+ ]
59
+ };
60
+
61
+ /**
62
+ * The main `bindings()` function loads the compiled bindings for a given module.
63
+ * It uses V8's Error API to determine the parent filename that this function is
64
+ * being invoked from, which is then used to find the root directory.
65
+ */
66
+
67
+ function bindings(opts) {
68
+ // Argument surgery
69
+ if (typeof opts == 'string') {
70
+ opts = { bindings: opts };
71
+ } else if (!opts) {
72
+ opts = {};
73
+ }
74
+
75
+ // maps `defaults` onto `opts` object
76
+ Object.keys(defaults).map(function(i) {
77
+ if (!(i in opts)) opts[i] = defaults[i];
78
+ });
79
+
80
+ // Get the module root
81
+ if (!opts.module_root) {
82
+ opts.module_root = exports.getRoot(exports.getFileName());
83
+ }
84
+
85
+ // Ensure the given bindings name ends with .node
86
+ if (path.extname(opts.bindings) != '.node') {
87
+ opts.bindings += '.node';
88
+ }
89
+
90
+ // https://github.com/webpack/webpack/issues/4175#issuecomment-342931035
91
+ var requireFunc =
92
+ typeof __webpack_require__ === 'function'
93
+ ? __non_webpack_require__
94
+ : require;
95
+
96
+ var tries = [],
97
+ i = 0,
98
+ l = opts.try.length,
99
+ n,
100
+ b,
101
+ err;
102
+
103
+ for (; i < l; i++) {
104
+ n = join.apply(
105
+ null,
106
+ opts.try[i].map(function(p) {
107
+ return opts[p] || p;
108
+ })
109
+ );
110
+ tries.push(n);
111
+ try {
112
+ b = opts.path ? requireFunc.resolve(n) : requireFunc(n);
113
+ if (!opts.path) {
114
+ b.path = n;
115
+ }
116
+ return b;
117
+ } catch (e) {
118
+ if (e.code !== 'MODULE_NOT_FOUND' &&
119
+ e.code !== 'QUALIFIED_PATH_RESOLUTION_FAILED' &&
120
+ !/not find/i.test(e.message)) {
121
+ throw e;
122
+ }
123
+ }
124
+ }
125
+
126
+ err = new Error(
127
+ 'Could not locate the bindings file. Tried:\n' +
128
+ tries
129
+ .map(function(a) {
130
+ return opts.arrow + a;
131
+ })
132
+ .join('\n')
133
+ );
134
+ err.tries = tries;
135
+ throw err;
136
+ }
137
+ module.exports = exports = bindings;
138
+
139
+ /**
140
+ * Gets the filename of the JavaScript file that invokes this function.
141
+ * Used to help find the root directory of a module.
142
+ * Optionally accepts an filename argument to skip when searching for the invoking filename
143
+ */
144
+
145
+ exports.getFileName = function getFileName(calling_file) {
146
+ var origPST = Error.prepareStackTrace,
147
+ origSTL = Error.stackTraceLimit,
148
+ dummy = {},
149
+ fileName;
150
+
151
+ Error.stackTraceLimit = 10;
152
+
153
+ Error.prepareStackTrace = function(e, st) {
154
+ for (var i = 0, l = st.length; i < l; i++) {
155
+ fileName = st[i].getFileName();
156
+ if (fileName !== __filename) {
157
+ if (calling_file) {
158
+ if (fileName !== calling_file) {
159
+ return;
160
+ }
161
+ } else {
162
+ return;
163
+ }
164
+ }
165
+ }
166
+ };
167
+
168
+ // run the 'prepareStackTrace' function above
169
+ Error.captureStackTrace(dummy);
170
+ dummy.stack;
171
+
172
+ // cleanup
173
+ Error.prepareStackTrace = origPST;
174
+ Error.stackTraceLimit = origSTL;
175
+
176
+ // handle filename that starts with "file://"
177
+ var fileSchema = 'file://';
178
+ if (fileName.indexOf(fileSchema) === 0) {
179
+ fileName = fileURLToPath(fileName);
180
+ }
181
+
182
+ return fileName;
183
+ };
184
+
185
+ /**
186
+ * Gets the root directory of a module, given an arbitrary filename
187
+ * somewhere in the module tree. The "root directory" is the directory
188
+ * containing the `package.json` file.
189
+ *
190
+ * In: /home/nate/node-native-module/lib/index.js
191
+ * Out: /home/nate/node-native-module
192
+ */
193
+
194
+ exports.getRoot = function getRoot(file) {
195
+ var dir = dirname(file),
196
+ prev;
197
+ while (true) {
198
+ if (dir === '.') {
199
+ // Avoids an infinite loop in rare cases, like the REPL
200
+ dir = process.cwd();
201
+ }
202
+ if (
203
+ exists(join(dir, 'package.json')) ||
204
+ exists(join(dir, 'node_modules'))
205
+ ) {
206
+ // Found the 'package.json' file or 'node_modules' dir; we're done
207
+ return dir;
208
+ }
209
+ if (prev === dir) {
210
+ // Got to the top
211
+ throw new Error(
212
+ 'Could not find module root given file: "' +
213
+ file +
214
+ '". Do you have a `package.json` file? '
215
+ );
216
+ }
217
+ // Try the parent dir next
218
+ prev = dir;
219
+ dir = join(dir, '..');
220
+ }
221
+ };
ui/node_modules/cacache/index.js ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict'
2
+
3
+ const ls = require('./ls.js')
4
+ const get = require('./get.js')
5
+ const put = require('./put.js')
6
+ const rm = require('./rm.js')
7
+ const verify = require('./verify.js')
8
+ const { clearMemoized } = require('./lib/memoization.js')
9
+ const tmp = require('./lib/util/tmp.js')
10
+ const index = require('./lib/entry-index.js')
11
+
12
+ module.exports.index = {}
13
+ module.exports.index.compact = index.compact
14
+ module.exports.index.insert = index.insert
15
+
16
+ module.exports.ls = ls
17
+ module.exports.ls.stream = ls.stream
18
+
19
+ module.exports.get = get
20
+ module.exports.get.byDigest = get.byDigest
21
+ module.exports.get.sync = get.sync
22
+ module.exports.get.sync.byDigest = get.sync.byDigest
23
+ module.exports.get.stream = get.stream
24
+ module.exports.get.stream.byDigest = get.stream.byDigest
25
+ module.exports.get.copy = get.copy
26
+ module.exports.get.copy.byDigest = get.copy.byDigest
27
+ module.exports.get.info = get.info
28
+ module.exports.get.hasContent = get.hasContent
29
+ module.exports.get.hasContent.sync = get.hasContent.sync
30
+
31
+ module.exports.put = put
32
+ module.exports.put.stream = put.stream
33
+
34
+ module.exports.rm = rm.entry
35
+ module.exports.rm.all = rm.all
36
+ module.exports.rm.entry = module.exports.rm
37
+ module.exports.rm.content = rm.content
38
+
39
+ module.exports.clearMemoized = clearMemoized
40
+
41
+ module.exports.tmp = {}
42
+ module.exports.tmp.mkdir = tmp.mkdir
43
+ module.exports.tmp.withTmp = tmp.withTmp
44
+
45
+ module.exports.verify = verify
46
+ module.exports.verify.lastRun = verify.lastRun
ui/node_modules/call-bind-apply-helpers/.eslintrc ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "root": true,
3
+
4
+ "extends": "@ljharb",
5
+
6
+ "rules": {
7
+ "func-name-matching": 0,
8
+ "id-length": 0,
9
+ "new-cap": [2, {
10
+ "capIsNewExceptions": [
11
+ "GetIntrinsic",
12
+ ],
13
+ }],
14
+ "no-extra-parens": 0,
15
+ "no-magic-numbers": 0,
16
+ },
17
+ }
ui/node_modules/call-bind-apply-helpers/.nycrc ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "all": true,
3
+ "check-coverage": false,
4
+ "reporter": ["text-summary", "text", "html", "json"],
5
+ "exclude": [
6
+ "coverage",
7
+ "test"
8
+ ]
9
+ }
ui/node_modules/call-bind-apply-helpers/CHANGELOG.md ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [v1.0.2](https://github.com/ljharb/call-bind-apply-helpers/compare/v1.0.1...v1.0.2) - 2025-02-12
9
+
10
+ ### Commits
11
+
12
+ - [types] improve inferred types [`e6f9586`](https://github.com/ljharb/call-bind-apply-helpers/commit/e6f95860a3c72879cb861a858cdfb8138fbedec1)
13
+ - [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/tsconfig`, `@types/tape`, `es-value-fixtures`, `for-each`, `has-strict-mode`, `object-inspect` [`e43d540`](https://github.com/ljharb/call-bind-apply-helpers/commit/e43d5409f97543bfbb11f345d47d8ce4e066d8c1)
14
+
15
+ ## [v1.0.1](https://github.com/ljharb/call-bind-apply-helpers/compare/v1.0.0...v1.0.1) - 2024-12-08
16
+
17
+ ### Commits
18
+
19
+ - [types] `reflectApply`: fix types [`4efc396`](https://github.com/ljharb/call-bind-apply-helpers/commit/4efc3965351a4f02cc55e836fa391d3d11ef2ef8)
20
+ - [Fix] `reflectApply`: oops, Reflect is not a function [`83cc739`](https://github.com/ljharb/call-bind-apply-helpers/commit/83cc7395de6b79b7730bdf092f1436f0b1263c75)
21
+ - [Dev Deps] update `@arethetypeswrong/cli` [`80bd5d3`](https://github.com/ljharb/call-bind-apply-helpers/commit/80bd5d3ae58b4f6b6995ce439dd5a1bcb178a940)
22
+
23
+ ## v1.0.0 - 2024-12-05
24
+
25
+ ### Commits
26
+
27
+ - Initial implementation, tests, readme [`7879629`](https://github.com/ljharb/call-bind-apply-helpers/commit/78796290f9b7430c9934d6f33d94ae9bc89fce04)
28
+ - Initial commit [`3f1dc16`](https://github.com/ljharb/call-bind-apply-helpers/commit/3f1dc164afc43285631b114a5f9dd9137b2b952f)
29
+ - npm init [`081df04`](https://github.com/ljharb/call-bind-apply-helpers/commit/081df048c312fcee400922026f6e97281200a603)
30
+ - Only apps should have lockfiles [`5b9ca0f`](https://github.com/ljharb/call-bind-apply-helpers/commit/5b9ca0fe8101ebfaf309c549caac4e0a017ed930)
ui/node_modules/call-bind-apply-helpers/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Jordan Harband
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
ui/node_modules/call-bind-apply-helpers/README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # call-bind-apply-helpers <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
2
+
3
+ [![github actions][actions-image]][actions-url]
4
+ [![coverage][codecov-image]][codecov-url]
5
+ [![dependency status][deps-svg]][deps-url]
6
+ [![dev dependency status][dev-deps-svg]][dev-deps-url]
7
+ [![License][license-image]][license-url]
8
+ [![Downloads][downloads-image]][downloads-url]
9
+
10
+ [![npm badge][npm-badge-png]][package-url]
11
+
12
+ Helper functions around Function call/apply/bind, for use in `call-bind`.
13
+
14
+ The only packages that should likely ever use this package directly are `call-bind` and `get-intrinsic`.
15
+ Please use `call-bind` unless you have a very good reason not to.
16
+
17
+ ## Getting started
18
+
19
+ ```sh
20
+ npm install --save call-bind-apply-helpers
21
+ ```
22
+
23
+ ## Usage/Examples
24
+
25
+ ```js
26
+ const assert = require('assert');
27
+ const callBindBasic = require('call-bind-apply-helpers');
28
+
29
+ function f(a, b) {
30
+ assert.equal(this, 1);
31
+ assert.equal(a, 2);
32
+ assert.equal(b, 3);
33
+ assert.equal(arguments.length, 2);
34
+ }
35
+
36
+ const fBound = callBindBasic([f, 1]);
37
+
38
+ delete Function.prototype.call;
39
+ delete Function.prototype.bind;
40
+
41
+ fBound(2, 3);
42
+ ```
43
+
44
+ ## Tests
45
+
46
+ Clone the repo, `npm install`, and run `npm test`
47
+
48
+ [package-url]: https://npmjs.org/package/call-bind-apply-helpers
49
+ [npm-version-svg]: https://versionbadg.es/ljharb/call-bind-apply-helpers.svg
50
+ [deps-svg]: https://david-dm.org/ljharb/call-bind-apply-helpers.svg
51
+ [deps-url]: https://david-dm.org/ljharb/call-bind-apply-helpers
52
+ [dev-deps-svg]: https://david-dm.org/ljharb/call-bind-apply-helpers/dev-status.svg
53
+ [dev-deps-url]: https://david-dm.org/ljharb/call-bind-apply-helpers#info=devDependencies
54
+ [npm-badge-png]: https://nodei.co/npm/call-bind-apply-helpers.png?downloads=true&stars=true
55
+ [license-image]: https://img.shields.io/npm/l/call-bind-apply-helpers.svg
56
+ [license-url]: LICENSE
57
+ [downloads-image]: https://img.shields.io/npm/dm/call-bind-apply-helpers.svg
58
+ [downloads-url]: https://npm-stat.com/charts.html?package=call-bind-apply-helpers
59
+ [codecov-image]: https://codecov.io/gh/ljharb/call-bind-apply-helpers/branch/main/graphs/badge.svg
60
+ [codecov-url]: https://app.codecov.io/gh/ljharb/call-bind-apply-helpers/
61
+ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/call-bind-apply-helpers
62
+ [actions-url]: https://github.com/ljharb/call-bind-apply-helpers/actions
ui/node_modules/call-bind-apply-helpers/actualApply.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export = Reflect.apply;
ui/node_modules/call-bind-apply-helpers/actualApply.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var bind = require('function-bind');
4
+
5
+ var $apply = require('./functionApply');
6
+ var $call = require('./functionCall');
7
+ var $reflectApply = require('./reflectApply');
8
+
9
+ /** @type {import('./actualApply')} */
10
+ module.exports = $reflectApply || bind.call($call, $apply);
ui/node_modules/call-bind-apply-helpers/applyBind.d.ts ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import actualApply from './actualApply';
2
+
3
+ type TupleSplitHead<T extends any[], N extends number> = T['length'] extends N
4
+ ? T
5
+ : T extends [...infer R, any]
6
+ ? TupleSplitHead<R, N>
7
+ : never
8
+
9
+ type TupleSplitTail<T, N extends number, O extends any[] = []> = O['length'] extends N
10
+ ? T
11
+ : T extends [infer F, ...infer R]
12
+ ? TupleSplitTail<[...R], N, [...O, F]>
13
+ : never
14
+
15
+ type TupleSplit<T extends any[], N extends number> = [TupleSplitHead<T, N>, TupleSplitTail<T, N>]
16
+
17
+ declare function applyBind(...args: TupleSplit<Parameters<typeof actualApply>, 2>[1]): ReturnType<typeof actualApply>;
18
+
19
+ export = applyBind;
ui/node_modules/call-bind-apply-helpers/applyBind.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var bind = require('function-bind');
4
+ var $apply = require('./functionApply');
5
+ var actualApply = require('./actualApply');
6
+
7
+ /** @type {import('./applyBind')} */
8
+ module.exports = function applyBind() {
9
+ return actualApply(bind, $apply, arguments);
10
+ };
ui/node_modules/call-bind-apply-helpers/functionApply.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export = Function.prototype.apply;
ui/node_modules/call-bind-apply-helpers/functionApply.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ /** @type {import('./functionApply')} */
4
+ module.exports = Function.prototype.apply;
ui/node_modules/call-bind-apply-helpers/functionCall.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export = Function.prototype.call;
ui/node_modules/call-bind-apply-helpers/functionCall.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ /** @type {import('./functionCall')} */
4
+ module.exports = Function.prototype.call;
ui/node_modules/call-bind-apply-helpers/index.d.ts ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ type RemoveFromTuple<
2
+ Tuple extends readonly unknown[],
3
+ RemoveCount extends number,
4
+ Index extends 1[] = []
5
+ > = Index["length"] extends RemoveCount
6
+ ? Tuple
7
+ : Tuple extends [infer First, ...infer Rest]
8
+ ? RemoveFromTuple<Rest, RemoveCount, [...Index, 1]>
9
+ : Tuple;
10
+
11
+ type ConcatTuples<
12
+ Prefix extends readonly unknown[],
13
+ Suffix extends readonly unknown[]
14
+ > = [...Prefix, ...Suffix];
15
+
16
+ type ExtractFunctionParams<T> = T extends (this: infer TThis, ...args: infer P extends readonly unknown[]) => infer R
17
+ ? { thisArg: TThis; params: P; returnType: R }
18
+ : never;
19
+
20
+ type BindFunction<
21
+ T extends (this: any, ...args: any[]) => any,
22
+ TThis,
23
+ TBoundArgs extends readonly unknown[],
24
+ ReceiverBound extends boolean
25
+ > = ExtractFunctionParams<T> extends {
26
+ thisArg: infer OrigThis;
27
+ params: infer P extends readonly unknown[];
28
+ returnType: infer R;
29
+ }
30
+ ? ReceiverBound extends true
31
+ ? (...args: RemoveFromTuple<P, Extract<TBoundArgs["length"], number>>) => R extends [OrigThis, ...infer Rest]
32
+ ? [TThis, ...Rest] // Replace `this` with `thisArg`
33
+ : R
34
+ : <U, RemainingArgs extends RemoveFromTuple<P, Extract<TBoundArgs["length"], number>>>(
35
+ thisArg: U,
36
+ ...args: RemainingArgs
37
+ ) => R extends [OrigThis, ...infer Rest]
38
+ ? [U, ...ConcatTuples<TBoundArgs, Rest>] // Preserve bound args in return type
39
+ : R
40
+ : never;
41
+
42
+ declare function callBind<
43
+ const T extends (this: any, ...args: any[]) => any,
44
+ Extracted extends ExtractFunctionParams<T>,
45
+ const TBoundArgs extends Partial<Extracted["params"]> & readonly unknown[],
46
+ const TThis extends Extracted["thisArg"]
47
+ >(
48
+ args: [fn: T, thisArg: TThis, ...boundArgs: TBoundArgs]
49
+ ): BindFunction<T, TThis, TBoundArgs, true>;
50
+
51
+ declare function callBind<
52
+ const T extends (this: any, ...args: any[]) => any,
53
+ Extracted extends ExtractFunctionParams<T>,
54
+ const TBoundArgs extends Partial<Extracted["params"]> & readonly unknown[]
55
+ >(
56
+ args: [fn: T, ...boundArgs: TBoundArgs]
57
+ ): BindFunction<T, Extracted["thisArg"], TBoundArgs, false>;
58
+
59
+ declare function callBind<const TArgs extends readonly unknown[]>(
60
+ args: [fn: Exclude<TArgs[0], Function>, ...rest: TArgs]
61
+ ): never;
62
+
63
+ // export as namespace callBind;
64
+ export = callBind;
ui/node_modules/call-bind-apply-helpers/index.js ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ var bind = require('function-bind');
4
+ var $TypeError = require('es-errors/type');
5
+
6
+ var $call = require('./functionCall');
7
+ var $actualApply = require('./actualApply');
8
+
9
+ /** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
10
+ module.exports = function callBindBasic(args) {
11
+ if (args.length < 1 || typeof args[0] !== 'function') {
12
+ throw new $TypeError('a function is required');
13
+ }
14
+ return $actualApply(bind, $call, args);
15
+ };
ui/node_modules/call-bind-apply-helpers/package.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "call-bind-apply-helpers",
3
+ "version": "1.0.2",
4
+ "description": "Helper functions around Function call/apply/bind, for use in `call-bind`",
5
+ "main": "index.js",
6
+ "exports": {
7
+ ".": "./index.js",
8
+ "./actualApply": "./actualApply.js",
9
+ "./applyBind": "./applyBind.js",
10
+ "./functionApply": "./functionApply.js",
11
+ "./functionCall": "./functionCall.js",
12
+ "./reflectApply": "./reflectApply.js",
13
+ "./package.json": "./package.json"
14
+ },
15
+ "scripts": {
16
+ "prepack": "npmignore --auto --commentLines=auto",
17
+ "prepublish": "not-in-publish || npm run prepublishOnly",
18
+ "prepublishOnly": "safe-publish-latest",
19
+ "prelint": "evalmd README.md",
20
+ "lint": "eslint --ext=.js,.mjs .",
21
+ "postlint": "tsc -p . && attw -P",
22
+ "pretest": "npm run lint",
23
+ "tests-only": "nyc tape 'test/**/*.js'",
24
+ "test": "npm run tests-only",
25
+ "posttest": "npx npm@'>=10.2' audit --production",
26
+ "version": "auto-changelog && git add CHANGELOG.md",
27
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/ljharb/call-bind-apply-helpers.git"
32
+ },
33
+ "author": "Jordan Harband <ljharb@gmail.com>",
34
+ "license": "MIT",
35
+ "bugs": {
36
+ "url": "https://github.com/ljharb/call-bind-apply-helpers/issues"
37
+ },
38
+ "homepage": "https://github.com/ljharb/call-bind-apply-helpers#readme",
39
+ "dependencies": {
40
+ "es-errors": "^1.3.0",
41
+ "function-bind": "^1.1.2"
42
+ },
43
+ "devDependencies": {
44
+ "@arethetypeswrong/cli": "^0.17.3",
45
+ "@ljharb/eslint-config": "^21.1.1",
46
+ "@ljharb/tsconfig": "^0.2.3",
47
+ "@types/for-each": "^0.3.3",
48
+ "@types/function-bind": "^1.1.10",
49
+ "@types/object-inspect": "^1.13.0",
50
+ "@types/tape": "^5.8.1",
51
+ "auto-changelog": "^2.5.0",
52
+ "encoding": "^0.1.13",
53
+ "es-value-fixtures": "^1.7.1",
54
+ "eslint": "=8.8.0",
55
+ "evalmd": "^0.0.19",
56
+ "for-each": "^0.3.5",
57
+ "has-strict-mode": "^1.1.0",
58
+ "in-publish": "^2.0.1",
59
+ "npmignore": "^0.3.1",
60
+ "nyc": "^10.3.2",
61
+ "object-inspect": "^1.13.4",
62
+ "safe-publish-latest": "^2.0.0",
63
+ "tape": "^5.9.0",
64
+ "typescript": "next"
65
+ },
66
+ "testling": {
67
+ "files": "test/index.js"
68
+ },
69
+ "auto-changelog": {
70
+ "output": "CHANGELOG.md",
71
+ "template": "keepachangelog",
72
+ "unreleased": false,
73
+ "commitLimit": false,
74
+ "backfillLimit": false,
75
+ "hideCredit": true
76
+ },
77
+ "publishConfig": {
78
+ "ignore": [
79
+ ".github/workflows"
80
+ ]
81
+ },
82
+ "engines": {
83
+ "node": ">= 0.4"
84
+ }
85
+ }
ui/node_modules/call-bind-apply-helpers/reflectApply.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ declare const reflectApply: false | typeof Reflect.apply;
2
+
3
+ export = reflectApply;
ui/node_modules/call-bind-apply-helpers/reflectApply.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ /** @type {import('./reflectApply')} */
4
+ module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
ui/node_modules/call-bind-apply-helpers/tsconfig.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "extends": "@ljharb/tsconfig",
3
+ "compilerOptions": {
4
+ "target": "es2021",
5
+ },
6
+ "exclude": [
7
+ "coverage",
8
+ ],
9
+ }
ui/node_modules/camelcase-css/README.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # camelcase-css [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
2
+
3
+ > Convert a kebab-cased CSS property into a camelCased DOM property.
4
+
5
+
6
+ ## Installation
7
+ [Node.js](http://nodejs.org/) `>= 6` is required. Type this at the command line:
8
+ ```shell
9
+ npm install camelcase-css
10
+ ```
11
+
12
+
13
+ ## Usage
14
+ ```js
15
+ const camelCaseCSS = require('camelcase-css');
16
+
17
+ camelCaseCSS('-webkit-border-radius'); //-> WebkitBorderRadius
18
+ camelCaseCSS('-moz-border-radius'); //-> MozBorderRadius
19
+ camelCaseCSS('-ms-border-radius'); //-> msBorderRadius
20
+ camelCaseCSS('border-radius'); //-> borderRadius
21
+ ```
22
+
23
+
24
+ [npm-image]: https://img.shields.io/npm/v/camelcase-css.svg
25
+ [npm-url]: https://npmjs.org/package/camelcase-css
26
+ [travis-image]: https://img.shields.io/travis/stevenvachon/camelcase-css.svg
27
+ [travis-url]: https://travis-ci.org/stevenvachon/camelcase-css
ui/node_modules/camelcase-css/index-es5.js ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ var pattern = /-(\w|$)/g;
4
+
5
+ var callback = function callback(dashChar, char) {
6
+ return char.toUpperCase();
7
+ };
8
+
9
+ var camelCaseCSS = function camelCaseCSS(property) {
10
+ property = property.toLowerCase();
11
+
12
+ // NOTE :: IE8's "styleFloat" is intentionally not supported
13
+ if (property === "float") {
14
+ return "cssFloat";
15
+ }
16
+ // Microsoft vendor-prefixes are uniquely cased
17
+ else if (property.charCodeAt(0) === 45&& property.charCodeAt(1) === 109&& property.charCodeAt(2) === 115&& property.charCodeAt(3) === 45) {
18
+ return property.substr(1).replace(pattern, callback);
19
+ } else {
20
+ return property.replace(pattern, callback);
21
+ }
22
+ };
23
+
24
+ module.exports = camelCaseCSS;
ui/node_modules/camelcase-css/index.js ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ const pattern = /-(\w|$)/g;
3
+
4
+ const callback = (dashChar, char) => char.toUpperCase();
5
+
6
+
7
+
8
+ const camelCaseCSS = property =>
9
+ {
10
+ property = property.toLowerCase();
11
+
12
+ // NOTE :: IE8's "styleFloat" is intentionally not supported
13
+ if (property === "float")
14
+ {
15
+ return "cssFloat";
16
+ }
17
+ // Microsoft vendor-prefixes are uniquely cased
18
+ else if (property.startsWith("-ms-"))
19
+ {
20
+ return property.substr(1).replace(pattern, callback);
21
+ }
22
+ else
23
+ {
24
+ return property.replace(pattern, callback);
25
+ }
26
+ };
27
+
28
+
29
+
30
+ module.exports = camelCaseCSS;