@jjrawlins/cdk-iam-policy-builder-helper 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +210 -62
- package/.mergify.yml +60 -0
- package/jjrawlinscdkiampolicybuilderhelper/jsii/jsii.go +2 -2
- package/jjrawlinscdkiampolicybuilderhelper/version +1 -1
- package/lib/constructs/Actions.d.ts +799 -61
- package/lib/constructs/Actions.js +800 -62
- package/methods_list.txt +19274 -0
- package/node_modules/axios/CHANGELOG.md +257 -0
- package/node_modules/axios/README.md +71 -87
- package/node_modules/axios/dist/axios.js +303 -235
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +230 -177
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +230 -177
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +268 -187
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +22 -6
- package/node_modules/axios/index.d.ts +14 -4
- package/node_modules/axios/lib/adapters/fetch.js +22 -22
- package/node_modules/axios/lib/adapters/http.js +7 -7
- package/node_modules/axios/lib/cancel/CancelToken.js +14 -0
- package/node_modules/axios/lib/core/Axios.js +20 -6
- package/node_modules/axios/lib/core/AxiosError.js +5 -2
- package/node_modules/axios/lib/core/AxiosHeaders.js +15 -3
- package/node_modules/axios/lib/core/buildFullPath.js +3 -2
- package/node_modules/axios/lib/core/mergeConfig.js +6 -6
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +7 -1
- package/node_modules/axios/lib/helpers/composeSignals.js +31 -29
- package/node_modules/axios/lib/helpers/formDataToStream.js +6 -5
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +12 -65
- package/node_modules/axios/lib/helpers/resolveConfig.js +1 -1
- package/node_modules/axios/lib/helpers/throttle.js +1 -1
- package/node_modules/axios/lib/helpers/toFormData.js +4 -0
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +4 -3
- package/node_modules/axios/lib/helpers/trackStream.js +25 -5
- package/node_modules/axios/lib/helpers/validator.js +8 -0
- package/node_modules/axios/lib/platform/common/utils.js +5 -4
- package/node_modules/axios/lib/platform/node/index.js +26 -0
- package/node_modules/axios/lib/utils.js +48 -28
- package/node_modules/axios/package.json +14 -5
- package/node_modules/form-data/CHANGELOG.md +601 -0
- package/node_modules/form-data/{Readme.md → README.md} +34 -37
- package/node_modules/form-data/lib/browser.js +3 -1
- package/node_modules/form-data/lib/form_data.js +126 -135
- package/node_modules/form-data/lib/populate.js +5 -5
- package/node_modules/form-data/package.json +24 -16
- package/package.json +15 -10
- package/node_modules/axios/SECURITY.md +0 -6
|
@@ -1,67 +1,14 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import utils from './../utils.js';
|
|
4
1
|
import platform from '../platform/index.js';
|
|
5
2
|
|
|
6
|
-
export default platform.hasStandardBrowserEnv ?
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* @param {String} url The URL to be parsed
|
|
19
|
-
* @returns {Object}
|
|
20
|
-
*/
|
|
21
|
-
function resolveURL(url) {
|
|
22
|
-
let href = url;
|
|
23
|
-
|
|
24
|
-
if (msie) {
|
|
25
|
-
// IE needs attribute set twice to normalize properties
|
|
26
|
-
urlParsingNode.setAttribute('href', href);
|
|
27
|
-
href = urlParsingNode.href;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
urlParsingNode.setAttribute('href', href);
|
|
31
|
-
|
|
32
|
-
// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
|
|
33
|
-
return {
|
|
34
|
-
href: urlParsingNode.href,
|
|
35
|
-
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
|
|
36
|
-
host: urlParsingNode.host,
|
|
37
|
-
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
|
|
38
|
-
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
|
|
39
|
-
hostname: urlParsingNode.hostname,
|
|
40
|
-
port: urlParsingNode.port,
|
|
41
|
-
pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
|
|
42
|
-
urlParsingNode.pathname :
|
|
43
|
-
'/' + urlParsingNode.pathname
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
originURL = resolveURL(window.location.href);
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Determine if a URL shares the same origin as the current location
|
|
51
|
-
*
|
|
52
|
-
* @param {String} requestURL The URL to test
|
|
53
|
-
* @returns {boolean} True if URL shares the same origin, otherwise false
|
|
54
|
-
*/
|
|
55
|
-
return function isURLSameOrigin(requestURL) {
|
|
56
|
-
const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
|
|
57
|
-
return (parsed.protocol === originURL.protocol &&
|
|
58
|
-
parsed.host === originURL.host);
|
|
59
|
-
};
|
|
60
|
-
})() :
|
|
61
|
-
|
|
62
|
-
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
63
|
-
(function nonStandardBrowserEnv() {
|
|
64
|
-
return function isURLSameOrigin() {
|
|
65
|
-
return true;
|
|
66
|
-
};
|
|
67
|
-
})();
|
|
3
|
+
export default platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
|
|
4
|
+
url = new URL(url, platform.origin);
|
|
5
|
+
|
|
6
|
+
return (
|
|
7
|
+
origin.protocol === url.protocol &&
|
|
8
|
+
origin.host === url.host &&
|
|
9
|
+
(isMSIE || origin.port === url.port)
|
|
10
|
+
);
|
|
11
|
+
})(
|
|
12
|
+
new URL(platform.origin),
|
|
13
|
+
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
14
|
+
) : () => true;
|
|
@@ -14,7 +14,7 @@ export default (config) => {
|
|
|
14
14
|
|
|
15
15
|
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
16
16
|
|
|
17
|
-
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
17
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
18
18
|
|
|
19
19
|
// HTTP basic authentication
|
|
20
20
|
if (auth) {
|
|
@@ -120,6 +120,10 @@ function toFormData(obj, formData, options) {
|
|
|
120
120
|
return value.toISOString();
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
if (utils.isBoolean(value)) {
|
|
124
|
+
return value.toString();
|
|
125
|
+
}
|
|
126
|
+
|
|
123
127
|
if (!useBlob && utils.isBlob(value)) {
|
|
124
128
|
throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
125
129
|
}
|
|
@@ -5,7 +5,7 @@ import toFormData from './toFormData.js';
|
|
|
5
5
|
import platform from '../platform/index.js';
|
|
6
6
|
|
|
7
7
|
export default function toURLEncodedForm(data, options) {
|
|
8
|
-
return toFormData(data, new platform.classes.URLSearchParams(),
|
|
8
|
+
return toFormData(data, new platform.classes.URLSearchParams(), {
|
|
9
9
|
visitor: function(value, key, path, helpers) {
|
|
10
10
|
if (platform.isNode && utils.isBuffer(value)) {
|
|
11
11
|
this.append(key, value.toString('base64'));
|
|
@@ -13,6 +13,7 @@ export default function toURLEncodedForm(data, options) {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
return helpers.defaultVisitor.apply(this, arguments);
|
|
16
|
-
}
|
|
17
|
-
|
|
16
|
+
},
|
|
17
|
+
...options
|
|
18
|
+
});
|
|
18
19
|
}
|
|
@@ -17,14 +17,34 @@ export const streamChunk = function* (chunk, chunkSize) {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export const readBytes = async function* (iterable, chunkSize
|
|
21
|
-
for await (const chunk of iterable) {
|
|
22
|
-
yield* streamChunk(
|
|
20
|
+
export const readBytes = async function* (iterable, chunkSize) {
|
|
21
|
+
for await (const chunk of readStream(iterable)) {
|
|
22
|
+
yield* streamChunk(chunk, chunkSize);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
const readStream = async function* (stream) {
|
|
27
|
+
if (stream[Symbol.asyncIterator]) {
|
|
28
|
+
yield* stream;
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const reader = stream.getReader();
|
|
33
|
+
try {
|
|
34
|
+
for (;;) {
|
|
35
|
+
const {done, value} = await reader.read();
|
|
36
|
+
if (done) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
yield value;
|
|
40
|
+
}
|
|
41
|
+
} finally {
|
|
42
|
+
await reader.cancel();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
47
|
+
const iterator = readBytes(stream, chunkSize);
|
|
28
48
|
|
|
29
49
|
let bytes = 0;
|
|
30
50
|
let done;
|
|
@@ -52,6 +52,14 @@ validators.transitional = function transitional(validator, version, message) {
|
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
+
validators.spelling = function spelling(correctSpelling) {
|
|
56
|
+
return (value, opt) => {
|
|
57
|
+
// eslint-disable-next-line no-console
|
|
58
|
+
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
55
63
|
/**
|
|
56
64
|
* Assert object's properties type
|
|
57
65
|
*
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
2
2
|
|
|
3
|
+
const _navigator = typeof navigator === 'object' && navigator || undefined;
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
6
|
* Determine if we're running in a standard browser environment
|
|
5
7
|
*
|
|
@@ -17,10 +19,8 @@ const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'unde
|
|
|
17
19
|
*
|
|
18
20
|
* @returns {boolean}
|
|
19
21
|
*/
|
|
20
|
-
const hasStandardBrowserEnv =
|
|
21
|
-
(product)
|
|
22
|
-
return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0
|
|
23
|
-
})(typeof navigator !== 'undefined' && navigator.product);
|
|
22
|
+
const hasStandardBrowserEnv = hasBrowserEnv &&
|
|
23
|
+
(!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Determine if we're running in a standard browser webWorker environment
|
|
@@ -46,5 +46,6 @@ export {
|
|
|
46
46
|
hasBrowserEnv,
|
|
47
47
|
hasStandardBrowserWebWorkerEnv,
|
|
48
48
|
hasStandardBrowserEnv,
|
|
49
|
+
_navigator as navigator,
|
|
49
50
|
origin
|
|
50
51
|
}
|
|
@@ -1,6 +1,30 @@
|
|
|
1
|
+
import crypto from 'crypto';
|
|
1
2
|
import URLSearchParams from './classes/URLSearchParams.js'
|
|
2
3
|
import FormData from './classes/FormData.js'
|
|
3
4
|
|
|
5
|
+
const ALPHA = 'abcdefghijklmnopqrstuvwxyz'
|
|
6
|
+
|
|
7
|
+
const DIGIT = '0123456789';
|
|
8
|
+
|
|
9
|
+
const ALPHABET = {
|
|
10
|
+
DIGIT,
|
|
11
|
+
ALPHA,
|
|
12
|
+
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
16
|
+
let str = '';
|
|
17
|
+
const {length} = alphabet;
|
|
18
|
+
const randomValues = new Uint32Array(size);
|
|
19
|
+
crypto.randomFillSync(randomValues);
|
|
20
|
+
for (let i = 0; i < size; i++) {
|
|
21
|
+
str += alphabet[randomValues[i] % length];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return str;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
4
28
|
export default {
|
|
5
29
|
isNode: true,
|
|
6
30
|
classes: {
|
|
@@ -8,5 +32,7 @@ export default {
|
|
|
8
32
|
FormData,
|
|
9
33
|
Blob: typeof Blob !== 'undefined' && Blob || null
|
|
10
34
|
},
|
|
35
|
+
ALPHABET,
|
|
36
|
+
generateString,
|
|
11
37
|
protocols: [ 'http', 'https', 'file', 'data' ]
|
|
12
38
|
};
|
|
@@ -6,6 +6,7 @@ import bind from './helpers/bind.js';
|
|
|
6
6
|
|
|
7
7
|
const {toString} = Object.prototype;
|
|
8
8
|
const {getPrototypeOf} = Object;
|
|
9
|
+
const {iterator, toStringTag} = Symbol;
|
|
9
10
|
|
|
10
11
|
const kindOf = (cache => thing => {
|
|
11
12
|
const str = toString.call(thing);
|
|
@@ -132,7 +133,28 @@ const isPlainObject = (val) => {
|
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
const prototype = getPrototypeOf(val);
|
|
135
|
-
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(
|
|
136
|
+
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Determine if a value is an empty object (safely handles Buffers)
|
|
141
|
+
*
|
|
142
|
+
* @param {*} val The value to test
|
|
143
|
+
*
|
|
144
|
+
* @returns {boolean} True if value is an empty object, otherwise false
|
|
145
|
+
*/
|
|
146
|
+
const isEmptyObject = (val) => {
|
|
147
|
+
// Early return for non-objects or Buffers to prevent RangeError
|
|
148
|
+
if (!isObject(val) || isBuffer(val)) {
|
|
149
|
+
return false;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
try {
|
|
153
|
+
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
154
|
+
} catch (e) {
|
|
155
|
+
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
136
158
|
}
|
|
137
159
|
|
|
138
160
|
/**
|
|
@@ -257,6 +279,11 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
257
279
|
fn.call(null, obj[i], i, obj);
|
|
258
280
|
}
|
|
259
281
|
} else {
|
|
282
|
+
// Buffer check
|
|
283
|
+
if (isBuffer(obj)) {
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
|
|
260
287
|
// Iterate over object keys
|
|
261
288
|
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
262
289
|
const len = keys.length;
|
|
@@ -270,6 +297,10 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
270
297
|
}
|
|
271
298
|
|
|
272
299
|
function findKey(obj, key) {
|
|
300
|
+
if (isBuffer(obj)){
|
|
301
|
+
return null;
|
|
302
|
+
}
|
|
303
|
+
|
|
273
304
|
key = key.toLowerCase();
|
|
274
305
|
const keys = Object.keys(obj);
|
|
275
306
|
let i = keys.length;
|
|
@@ -483,13 +514,13 @@ const isTypedArray = (TypedArray => {
|
|
|
483
514
|
* @returns {void}
|
|
484
515
|
*/
|
|
485
516
|
const forEachEntry = (obj, fn) => {
|
|
486
|
-
const generator = obj && obj[
|
|
517
|
+
const generator = obj && obj[iterator];
|
|
487
518
|
|
|
488
|
-
const
|
|
519
|
+
const _iterator = generator.call(obj);
|
|
489
520
|
|
|
490
521
|
let result;
|
|
491
522
|
|
|
492
|
-
while ((result =
|
|
523
|
+
while ((result = _iterator.next()) && !result.done) {
|
|
493
524
|
const pair = result.value;
|
|
494
525
|
fn.call(obj, pair[0], pair[1]);
|
|
495
526
|
}
|
|
@@ -602,26 +633,6 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
602
633
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
603
634
|
}
|
|
604
635
|
|
|
605
|
-
const ALPHA = 'abcdefghijklmnopqrstuvwxyz'
|
|
606
|
-
|
|
607
|
-
const DIGIT = '0123456789';
|
|
608
|
-
|
|
609
|
-
const ALPHABET = {
|
|
610
|
-
DIGIT,
|
|
611
|
-
ALPHA,
|
|
612
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
616
|
-
let str = '';
|
|
617
|
-
const {length} = alphabet;
|
|
618
|
-
while (size--) {
|
|
619
|
-
str += alphabet[Math.random() * length|0]
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
return str;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
636
|
/**
|
|
626
637
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
627
638
|
*
|
|
@@ -630,7 +641,7 @@ const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
|
630
641
|
* @returns {boolean}
|
|
631
642
|
*/
|
|
632
643
|
function isSpecCompliantForm(thing) {
|
|
633
|
-
return !!(thing && isFunction(thing.append) && thing[
|
|
644
|
+
return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
|
634
645
|
}
|
|
635
646
|
|
|
636
647
|
const toJSONObject = (obj) => {
|
|
@@ -643,6 +654,11 @@ const toJSONObject = (obj) => {
|
|
|
643
654
|
return;
|
|
644
655
|
}
|
|
645
656
|
|
|
657
|
+
//Buffer check
|
|
658
|
+
if (isBuffer(source)) {
|
|
659
|
+
return source;
|
|
660
|
+
}
|
|
661
|
+
|
|
646
662
|
if(!('toJSON' in source)) {
|
|
647
663
|
stack[i] = source;
|
|
648
664
|
const target = isArray(source) ? [] : {};
|
|
@@ -699,6 +715,10 @@ const asap = typeof queueMicrotask !== 'undefined' ?
|
|
|
699
715
|
|
|
700
716
|
// *********************
|
|
701
717
|
|
|
718
|
+
|
|
719
|
+
const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
720
|
+
|
|
721
|
+
|
|
702
722
|
export default {
|
|
703
723
|
isArray,
|
|
704
724
|
isArrayBuffer,
|
|
@@ -710,6 +730,7 @@ export default {
|
|
|
710
730
|
isBoolean,
|
|
711
731
|
isObject,
|
|
712
732
|
isPlainObject,
|
|
733
|
+
isEmptyObject,
|
|
713
734
|
isReadableStream,
|
|
714
735
|
isRequest,
|
|
715
736
|
isResponse,
|
|
@@ -749,12 +770,11 @@ export default {
|
|
|
749
770
|
findKey,
|
|
750
771
|
global: _global,
|
|
751
772
|
isContextDefined,
|
|
752
|
-
ALPHABET,
|
|
753
|
-
generateString,
|
|
754
773
|
isSpecCompliantForm,
|
|
755
774
|
toJSONObject,
|
|
756
775
|
isAsyncFn,
|
|
757
776
|
isThenable,
|
|
758
777
|
setImmediate: _setImmediate,
|
|
759
|
-
asap
|
|
778
|
+
asap,
|
|
779
|
+
isIterable
|
|
760
780
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axios",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "Promise based HTTP client for the browser and node.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
"require": "./index.d.cts",
|
|
10
10
|
"default": "./index.d.ts"
|
|
11
11
|
},
|
|
12
|
+
"react-native": {
|
|
13
|
+
"require": "./dist/browser/axios.cjs",
|
|
14
|
+
"default": "./dist/esm/axios.js"
|
|
15
|
+
},
|
|
12
16
|
"browser": {
|
|
13
17
|
"require": "./dist/browser/axios.cjs",
|
|
14
18
|
"default": "./index.js"
|
|
@@ -143,12 +147,17 @@
|
|
|
143
147
|
"./lib/platform/node/index.js": "./lib/platform/browser/index.js",
|
|
144
148
|
"./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
|
|
145
149
|
},
|
|
150
|
+
"react-native": {
|
|
151
|
+
"./lib/adapters/http.js": "./lib/helpers/null.js",
|
|
152
|
+
"./lib/platform/node/index.js": "./lib/platform/browser/index.js",
|
|
153
|
+
"./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
|
|
154
|
+
},
|
|
146
155
|
"jsdelivr": "dist/axios.min.js",
|
|
147
156
|
"unpkg": "dist/axios.min.js",
|
|
148
157
|
"typings": "./index.d.ts",
|
|
149
158
|
"dependencies": {
|
|
150
159
|
"follow-redirects": "^1.15.6",
|
|
151
|
-
"form-data": "^4.0.
|
|
160
|
+
"form-data": "^4.0.4",
|
|
152
161
|
"proxy-from-env": "^1.1.0"
|
|
153
162
|
},
|
|
154
163
|
"bundlesize": [
|
|
@@ -167,10 +176,10 @@
|
|
|
167
176
|
"Justin Beckwith (https://github.com/JustinBeckwith)",
|
|
168
177
|
"Martti Laine (https://github.com/codeclown)",
|
|
169
178
|
"Xianming Zhong (https://github.com/chinesedfan)",
|
|
170
|
-
"Rikki Gibson (https://github.com/RikkiGibson)",
|
|
171
179
|
"Remco Haszing (https://github.com/remcohaszing)",
|
|
172
|
-
"
|
|
173
|
-
"Ben Carp (https://github.com/carpben)"
|
|
180
|
+
"Rikki Gibson (https://github.com/RikkiGibson)",
|
|
181
|
+
"Ben Carp (https://github.com/carpben)",
|
|
182
|
+
"Yasu Flores (https://github.com/yasuf)"
|
|
174
183
|
],
|
|
175
184
|
"sideEffects": false,
|
|
176
185
|
"release-it": {
|