@openclaw/feishu 2026.11.5 → 2026.11.10-beta.1
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/dist/.setup/{app-registration-DhnIp0Kd.mjs → app-registration-CBgQSu2L.mjs} +1 -2
- package/dist/.setup/async-WkOXCAZ1.mjs +32 -0
- package/dist/.setup/{channel-TBw3rO3z.mjs → channel-mDZxm2Gc.mjs} +125 -128
- package/dist/.setup/{channel.runtime-uAj58l3V.mjs → channel.runtime-DCooVws1.mjs} +10 -14
- package/dist/.setup/{chat-g8dTUdIb.mjs → chat-XINRHAOR.mjs} +3 -4
- package/dist/.setup/{client-DqGMyzOi.mjs → client-BAiJnY41.mjs} +4 -7
- package/dist/.setup/{conversation-id-BLsHZ7pf.mjs → conversation-id-N6q3vKm-.mjs} +2 -4
- package/dist/.setup/{doctor-contract-CPh2u5-o.mjs → doctor-contract-ItAh0keT.mjs} +10 -20
- package/dist/.setup/{message-action-contract-DMVMY_ng.mjs → message-action-contract-BZK6bpAl.mjs} +1 -2
- package/dist/.setup/{monitor-CqBu27Nc.mjs → monitor-DIBB2_Y_.mjs} +7 -10
- package/dist/.setup/{monitor.account-B6_SNuhx.mjs → monitor.account-B_qIOniw.mjs} +375 -296
- package/dist/.setup/{probe-CbNVGjv_.mjs → probe-DMOl26H9.mjs} +11 -41
- package/dist/.setup/{reply-delivery-result-BjOCvaPo.mjs → reply-delivery-result-Dcan9Dz_.mjs} +211 -150
- package/dist/.setup/{runtime-C5JxBWZp.mjs → runtime-6V3uDMw5.mjs} +1 -2
- package/dist/.setup/runtime-setter-api-DSLLnejl.mjs +2 -0
- package/dist/.setup/{secret-contract-Do6HTIFT.mjs → secret-contract-BAucuP6O.mjs} +1 -2
- package/dist/.setup/{secret-contract-api-LwCXK5Qg.mjs → secret-contract-api-DR5mIHhJ.mjs} +1 -1
- package/dist/.setup/{security-audit-b86aSgH2.mjs → security-audit-CYRW0D76.mjs} +1 -2
- package/dist/.setup/{session-conversation-CM3UgYZY.mjs → session-conversation-DLgXP0-H.mjs} +2 -3
- package/dist/.setup/{setup-api-DWvNh6et.mjs → setup-api-DR15GZv5.mjs} +1 -1
- package/dist/.setup/{subagent-hooks-DdiyEIi7.mjs → subagent-hooks-BRem84Mh.mjs} +4 -5
- package/dist/.setup/{thread-bindings-BxKmOara.mjs → thread-bindings-6eyktxK_.mjs} +1 -2
- package/dist/.source-module-urls/6579f1b33dd01f8f0aaea28311ed6df1a635f9ad1e6fa86dcba53bca46407e55.json +1 -1
- package/dist/api.js +28 -33
- package/dist/channel-entry.js +1 -2
- package/dist/channel-plugin-api.js +1 -1
- package/dist/configured-state.js +1 -2
- package/dist/contract-api.js +3 -3
- package/dist/doctor-contract-api.js +1 -1
- package/dist/index.js +1 -2
- package/dist/runtime-api.js +2 -2
- package/dist/runtime-setter-api.js +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/security-contract-api.js +1 -1
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/session-key-api.js +1 -1
- package/dist/setup-api.js +1 -1
- package/dist/setup-entry.js +4 -5
- package/dist/subagent-hooks-api.js +2 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/README.md +41 -106
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.js +931 -278
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/browser/axios.cjs +948 -268
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.js +948 -268
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/node/axios.cjs +925 -242
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/index.d.cts +20 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/index.d.ts +18 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/fetch.js +73 -20
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/http.js +145 -26
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/xhr.js +120 -13
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/Axios.js +67 -12
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/AxiosError.js +59 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/AxiosHeaders.js +17 -4
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/InterceptorManager.js +13 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/assertParamsAcyclic.js +49 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/createMultipartBody.js +37 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/dispatchRequest.js +20 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/mergeConfig.js +183 -120
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/defaults/transitional.js +1 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/AxiosTransformStream.js +11 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/Http2Sessions.js +2 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/composeSignals.js +6 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/cookies.js +30 -6
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +34 -7
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/formDataToBlob.js +113 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/formDataToJSON.js +25 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/fromDataURI.js +8 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js +4 -9
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/parseHeaders.js +2 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/resolveConfig.js +16 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/shouldBypassProxy.js +16 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/utils.js +61 -10
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/package.json +1 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/follow-redirects/README.md +27 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/follow-redirects/index.js +1 -5
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/.editorconfig +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/CHANGELOG.md +87 -22
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/README.md +63 -10
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/dist/qs.js +17 -17
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/eslint.config.mjs +61 -50
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/formats.js +7 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/parse.js +29 -10
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/stringify.js +5 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/utils.js +28 -9
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/package.json +6 -6
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/parse.js +335 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/stringify.js +222 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/utils.js +61 -3
- package/node_modules/typebox/build/format/date_time.d.mts +2 -1
- package/node_modules/typebox/build/format/date_time.mjs +12 -3
- package/node_modules/typebox/package.json +1 -1
- package/openclaw.plugin.json +5 -0
- package/package.json +5 -5
- package/dist/.setup/runtime-setter-api-BrQHE03y.mjs +0 -2
package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/formDataToJSON.js
CHANGED
|
@@ -65,6 +65,29 @@ function arrayToObject(arr) {
|
|
|
65
65
|
return obj;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
function normalizeArray(value) {
|
|
69
|
+
if (!utils.isArray(value)) return value;
|
|
70
|
+
|
|
71
|
+
const keys = Object.keys(value);
|
|
72
|
+
return keys.length !== value.length || keys.some((key, index) => key !== String(index))
|
|
73
|
+
? arrayToObject(value)
|
|
74
|
+
: value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function normalizeArrays(obj) {
|
|
78
|
+
const pending = [obj];
|
|
79
|
+
while (pending.length) {
|
|
80
|
+
const target = pending.pop();
|
|
81
|
+
Object.keys(target).forEach((key) => {
|
|
82
|
+
const value = (target[key] = normalizeArray(target[key]));
|
|
83
|
+
if (utils.isArray(value) || utils.isPlainObject(value)) {
|
|
84
|
+
pending.push(value);
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
return obj;
|
|
89
|
+
}
|
|
90
|
+
|
|
68
91
|
/**
|
|
69
92
|
* It takes a FormData object and returns a JavaScript object
|
|
70
93
|
*
|
|
@@ -86,6 +109,7 @@ function formDataToJSON(formData) {
|
|
|
86
109
|
|
|
87
110
|
if (isLast) {
|
|
88
111
|
if (utils.hasOwnProp(target, name)) {
|
|
112
|
+
target[name] = normalizeArray(target[name]);
|
|
89
113
|
target[name] = utils.isArray(target[name])
|
|
90
114
|
? target[name].concat(value)
|
|
91
115
|
: [target[name], value];
|
|
@@ -116,7 +140,7 @@ function formDataToJSON(formData) {
|
|
|
116
140
|
buildPath(parsePropPath(name), value, obj, 0);
|
|
117
141
|
});
|
|
118
142
|
|
|
119
|
-
return obj;
|
|
143
|
+
return normalizeArrays(obj);
|
|
120
144
|
}
|
|
121
145
|
|
|
122
146
|
return null;
|
|
@@ -6,7 +6,10 @@ import platform from '../platform/index.js';
|
|
|
6
6
|
|
|
7
7
|
// RFC 2397: data:[<mediatype>][;base64],<data>
|
|
8
8
|
// mediatype = type/subtype followed by optional ;name=value parameters
|
|
9
|
-
|
|
9
|
+
// The `i` flag makes the `;base64` token case-insensitive, matching the WHATWG
|
|
10
|
+
// URL/Fetch data URL processor (and therefore the fetch adapter and browsers).
|
|
11
|
+
// The remaining character classes do not depend on letter case.
|
|
12
|
+
const DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/i;
|
|
10
13
|
|
|
11
14
|
/**
|
|
12
15
|
* Parse data uri to a Buffer or Blob
|
|
@@ -51,7 +54,10 @@ export default function fromDataURI(uri, asBlob, options) {
|
|
|
51
54
|
|
|
52
55
|
const buffer =
|
|
53
56
|
encoding === 'base64'
|
|
54
|
-
? Buffer.from(
|
|
57
|
+
? Buffer.from(
|
|
58
|
+
body.replace(/%([\da-f]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16))),
|
|
59
|
+
'base64'
|
|
60
|
+
)
|
|
55
61
|
: Buffer.from(decodeURIComponent(body), encoding);
|
|
56
62
|
|
|
57
63
|
if (asBlob) {
|
package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import platform from '../platform/index.js';
|
|
2
2
|
|
|
3
3
|
export default platform.hasStandardBrowserEnv
|
|
4
|
-
? ((origin
|
|
5
|
-
url = new URL(url, platform.origin);
|
|
4
|
+
? ((origin) => (url) => {
|
|
5
|
+
url = new URL(url, document.baseURI || platform.origin);
|
|
6
6
|
|
|
7
7
|
return (
|
|
8
|
-
origin.protocol === url.protocol &&
|
|
9
|
-
origin.host === url.host &&
|
|
10
|
-
(isMSIE || origin.port === url.port)
|
|
8
|
+
origin.protocol === url.protocol && origin.host === url.host && origin.port === url.port
|
|
11
9
|
);
|
|
12
|
-
})(
|
|
13
|
-
new URL(platform.origin),
|
|
14
|
-
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
15
|
-
)
|
|
10
|
+
})(new URL(platform.origin))
|
|
16
11
|
: () => true;
|
|
@@ -39,7 +39,8 @@ const ignoreDuplicateOf = utils.toObjectSet([
|
|
|
39
39
|
* @returns {Object} Headers parsed into an object
|
|
40
40
|
*/
|
|
41
41
|
export default (rawHeaders) => {
|
|
42
|
-
|
|
42
|
+
// Header names are data, including __proto__; avoid inherited setters.
|
|
43
|
+
const parsed = Object.create(null);
|
|
43
44
|
let key;
|
|
44
45
|
let val;
|
|
45
46
|
let i;
|
package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/resolveConfig.js
CHANGED
|
@@ -22,7 +22,9 @@ const encodeUTF8 = (str) =>
|
|
|
22
22
|
String.fromCharCode(parseInt(hex, 16))
|
|
23
23
|
);
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
const readCookie = (name) => cookies.read(name);
|
|
26
|
+
|
|
27
|
+
function resolveConfig(config, readXsrfCookie = readCookie) {
|
|
26
28
|
const newConfig = mergeConfig({}, config);
|
|
27
29
|
|
|
28
30
|
// Read only own properties to prevent prototype pollution gadgets
|
|
@@ -51,11 +53,22 @@ function resolveConfig(config) {
|
|
|
51
53
|
if (auth) {
|
|
52
54
|
const username = utils.getSafeProp(auth, 'username') || '';
|
|
53
55
|
const password = utils.getSafeProp(auth, 'password') || '';
|
|
56
|
+
const transitional = own('transitional');
|
|
57
|
+
const encodeUsername =
|
|
58
|
+
transitional &&
|
|
59
|
+
utils.hasOwnProp(transitional, 'encodeBasicAuthUsername') &&
|
|
60
|
+
transitional.encodeBasicAuthUsername === true;
|
|
54
61
|
|
|
55
62
|
try {
|
|
56
63
|
headers.set(
|
|
57
64
|
'Authorization',
|
|
58
|
-
|
|
65
|
+
// Preserve legacy username bytes unless the caller opts in to UTF-8.
|
|
66
|
+
'Basic ' +
|
|
67
|
+
btoa(
|
|
68
|
+
(encodeUsername ? encodeUTF8(username) : username) +
|
|
69
|
+
':' +
|
|
70
|
+
(password ? encodeUTF8(password) : '')
|
|
71
|
+
)
|
|
59
72
|
);
|
|
60
73
|
} catch (e) {
|
|
61
74
|
throw AxiosError.from(e, AxiosError.ERR_BAD_OPTION_VALUE, config);
|
|
@@ -93,7 +106,7 @@ function resolveConfig(config) {
|
|
|
93
106
|
withXSRFToken === true || (withXSRFToken == null && isURLSameOrigin(newConfig.url));
|
|
94
107
|
|
|
95
108
|
if (shouldSendXSRF) {
|
|
96
|
-
const xsrfValue = xsrfHeaderName && xsrfCookieName &&
|
|
109
|
+
const xsrfValue = xsrfHeaderName && xsrfCookieName && readXsrfCookie(xsrfCookieName);
|
|
97
110
|
|
|
98
111
|
if (xsrfValue) {
|
|
99
112
|
headers.set(xsrfHeaderName, xsrfValue);
|
package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/shouldBypassProxy.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { domainToASCII } from 'url';
|
|
2
|
+
|
|
1
3
|
const LOOPBACK_HOSTNAMES = new Set(['localhost', '0.0.0.0']);
|
|
2
4
|
|
|
3
5
|
const trimTrailingDots = (value) => {
|
|
@@ -319,7 +321,20 @@ const normalizeNoProxyHost = (hostname) => {
|
|
|
319
321
|
hostname = hostname.slice(1, -1);
|
|
320
322
|
}
|
|
321
323
|
|
|
322
|
-
|
|
324
|
+
let trimmed = trimTrailingDots(hostname);
|
|
325
|
+
if (trimmed.indexOf(':') !== -1) {
|
|
326
|
+
try {
|
|
327
|
+
trimmed = new URL('http://[' + trimmed + ']/').hostname.slice(1, -1);
|
|
328
|
+
} catch (_err) {
|
|
329
|
+
return trimmed;
|
|
330
|
+
}
|
|
331
|
+
} else if (/[\u0080-\uffff]/.test(trimmed)) {
|
|
332
|
+
const prefix = /^[*.]+/.exec(trimmed);
|
|
333
|
+
const start = prefix ? prefix[0] : '';
|
|
334
|
+
const ascii = domainToASCII(trimmed.slice(start.length));
|
|
335
|
+
if (!ascii) return '';
|
|
336
|
+
trimmed = start + trimTrailingDots(ascii);
|
|
337
|
+
}
|
|
323
338
|
|
|
324
339
|
// IPv4 shorthand/octal/hex → dotted-decimal; helper is a no-op for inputs
|
|
325
340
|
// containing ':' (IPv6 and IPv4-mapped IPv6) so we fall through to unmap.
|
|
@@ -313,11 +313,17 @@ const isPlainObject = (val) => {
|
|
|
313
313
|
const prototype = getPrototypeOf(val);
|
|
314
314
|
return (
|
|
315
315
|
(prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) &&
|
|
316
|
-
// Treat
|
|
317
|
-
//
|
|
318
|
-
//
|
|
319
|
-
|
|
320
|
-
|
|
316
|
+
// Treat own Symbol.toStringTag or Symbol.iterator members as evidence the
|
|
317
|
+
// value is tagged/iterable, ignoring members reachable only through shared
|
|
318
|
+
// or terminal prototype boundaries. This is exactly what
|
|
319
|
+
// hasOwnInPrototypeChain(val, prop) computes here: every prototype admitted
|
|
320
|
+
// above (null, Object.prototype, or a terminal null-prototype template) is
|
|
321
|
+
// a boundary, so the walk never inspects anything but `val`'s own members,
|
|
322
|
+
// and stops before even those when `val` is itself the boundary
|
|
323
|
+
// Object.prototype. Checking that inline avoids allocating the walker's
|
|
324
|
+
// `seen` list twice per call on the mergeConfig / merge hot path.
|
|
325
|
+
(isPrototypeBoundary(val, prototype, true) ||
|
|
326
|
+
(!hasOwnProperty(val, toStringTag) && !hasOwnProperty(val, iterator)))
|
|
321
327
|
);
|
|
322
328
|
};
|
|
323
329
|
|
|
@@ -581,15 +587,30 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
581
587
|
function merge(...objs) {
|
|
582
588
|
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
583
589
|
const result = {};
|
|
590
|
+
// Caseless lookup only applies to string keys — symbol keys are
|
|
591
|
+
// identity-matched. Every string key that reaches `result` passes through
|
|
592
|
+
// this index first, so it can never hold two case variants of one key and a
|
|
593
|
+
// lowercase -> key map is exactly what findKey(result, key) would rescan
|
|
594
|
+
// Object.keys(result) for on each assignment.
|
|
595
|
+
const lowerCaseKeys = caseless ? Object.create(null) : null;
|
|
584
596
|
const assignValue = (val, key) => {
|
|
585
597
|
// Skip dangerous property names to prevent prototype pollution
|
|
586
598
|
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
|
|
587
599
|
return;
|
|
588
600
|
}
|
|
589
601
|
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
602
|
+
let targetKey = key;
|
|
603
|
+
if (lowerCaseKeys && typeof key === 'string') {
|
|
604
|
+
const lowerKey = key.toLowerCase();
|
|
605
|
+
const knownKey = lowerCaseKeys[lowerKey];
|
|
606
|
+
// A key recorded but absent from `result` was skipped by skipUndefined;
|
|
607
|
+
// the later spelling wins then, as it does for findKey.
|
|
608
|
+
if (knownKey !== undefined && hasOwnProperty(result, knownKey)) {
|
|
609
|
+
targetKey = knownKey;
|
|
610
|
+
} else {
|
|
611
|
+
lowerCaseKeys[lowerKey] = key;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
593
614
|
// Read via own-prop only — a bare `result[targetKey]` walks the prototype
|
|
594
615
|
// chain, so a polluted Object.prototype value could surface here and get
|
|
595
616
|
// copied into the merged result.
|
|
@@ -613,7 +634,7 @@ function merge(...objs) {
|
|
|
613
634
|
|
|
614
635
|
forEach(source, assignValue);
|
|
615
636
|
|
|
616
|
-
if (typeof source !== 'object' || isArray(source)) {
|
|
637
|
+
if (typeof source !== 'object' || isArray(source) || !Object.getOwnPropertySymbols) {
|
|
617
638
|
continue;
|
|
618
639
|
}
|
|
619
640
|
|
|
@@ -772,7 +793,37 @@ const toArray = (thing) => {
|
|
|
772
793
|
if (!thing) return null;
|
|
773
794
|
if (isArray(thing)) return thing;
|
|
774
795
|
let i = thing.length;
|
|
775
|
-
if (!
|
|
796
|
+
if (!Number.isSafeInteger(i) || i < 0 || i > 0xffffffff) return null;
|
|
797
|
+
|
|
798
|
+
// Bound the copy by actual indexed properties, including hidden and inherited
|
|
799
|
+
// members of array-like collections, rather than by the declared length alone.
|
|
800
|
+
const indexes = new Set();
|
|
801
|
+
const seen = new Set();
|
|
802
|
+
let source = thing;
|
|
803
|
+
|
|
804
|
+
while (source != null && indexes.size < i) {
|
|
805
|
+
if (seen.has(source)) return null;
|
|
806
|
+
seen.add(source);
|
|
807
|
+
|
|
808
|
+
const prototype = getPrototypeOf(source);
|
|
809
|
+
if (isPrototypeBoundary(source, prototype, source === thing)) break;
|
|
810
|
+
|
|
811
|
+
Object.getOwnPropertyNames(source).forEach((key) => {
|
|
812
|
+
const index = +key;
|
|
813
|
+
if (
|
|
814
|
+
Number.isInteger(index) &&
|
|
815
|
+
index >= 0 &&
|
|
816
|
+
index < i &&
|
|
817
|
+
String(index) === key &&
|
|
818
|
+
hasOwnProperty(source, key)
|
|
819
|
+
) {
|
|
820
|
+
indexes.add(index);
|
|
821
|
+
}
|
|
822
|
+
});
|
|
823
|
+
source = prototype;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
if (indexes.size !== i) return null;
|
|
776
827
|
const arr = new Array(i);
|
|
777
828
|
while (i-- > 0) {
|
|
778
829
|
arr[i] = thing[i];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axios",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0",
|
|
4
4
|
"description": "Promise based HTTP client for the browser and node.js",
|
|
5
5
|
"main": "./dist/node/axios.cjs",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -161,7 +161,6 @@
|
|
|
161
161
|
"abortcontroller-polyfill": "^1.7.8",
|
|
162
162
|
"acorn": "^8.17.0",
|
|
163
163
|
"body-parser": "^2.3.0",
|
|
164
|
-
"chalk": "^5.6.2",
|
|
165
164
|
"cross-env": "^10.1.0",
|
|
166
165
|
"dev-null": "^0.1.1",
|
|
167
166
|
"eslint": "^10.6.0",
|
|
@@ -1,4 +1,30 @@
|
|
|
1
|
-
##
|
|
1
|
+
## _Follow Redirects_ is in need of funding
|
|
2
|
+
|
|
3
|
+
> [!IMPORTANT]
|
|
4
|
+
> **Maintenance paused until funding found.**
|
|
5
|
+
>
|
|
6
|
+
> follow-redirects is downloaded over 400 million times per month,
|
|
7
|
+
> It has been maintained for over ten years by one volunteer,
|
|
8
|
+
> who has no funds to provide update and security guarantees.
|
|
9
|
+
>
|
|
10
|
+
> **What this means for you:**
|
|
11
|
+
> the package stays published and keeps working as it does today,
|
|
12
|
+
> but there are no guarantees of bug fixes, security fixes,
|
|
13
|
+
> or replies to issues and pull requests.
|
|
14
|
+
> Security reports are handled best-effort only; see [SECURITY.md](SECURITY.md).
|
|
15
|
+
>
|
|
16
|
+
> **What can restart maintenance:**
|
|
17
|
+
> Even if only 0.1% of downloads paid $0.01, we'd be fully funded
|
|
18
|
+
> with $4000 per month.
|
|
19
|
+
> That's not the case, and that's okay,
|
|
20
|
+
> but unfortunately also insufficient to continue.
|
|
21
|
+
> We need to cover security triage, CVE handling, fixes, and releases.
|
|
22
|
+
> Progress toward that goal will be posted here.
|
|
23
|
+
>
|
|
24
|
+
> **If your company depends on follow-redirects,**
|
|
25
|
+
> directly or another library,
|
|
26
|
+
> please [sponsor on GitHub](https://github.com/sponsors/RubenVerborgh)
|
|
27
|
+
> or email us for invoice-based funding or a security support agreement.
|
|
2
28
|
|
|
3
29
|
Drop-in replacement for Node's `http` and `https` modules that automatically follows redirects.
|
|
4
30
|
|
|
@@ -311,7 +311,7 @@ RedirectableRequest.prototype._sanitizeOptions = function (options) {
|
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
// Ensure sensitive headers are always present
|
|
314
|
-
if (!isArray(options.sensitiveHeaders)) {
|
|
314
|
+
if (!Array.isArray(options.sensitiveHeaders)) {
|
|
315
315
|
options.sensitiveHeaders = [];
|
|
316
316
|
}
|
|
317
317
|
|
|
@@ -689,10 +689,6 @@ function isSubdomain(subdomain, domain) {
|
|
|
689
689
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
690
690
|
}
|
|
691
691
|
|
|
692
|
-
function isArray(value) {
|
|
693
|
-
return value instanceof Array;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
692
|
function isString(value) {
|
|
697
693
|
return typeof value === "string" || value instanceof String;
|
|
698
694
|
}
|
|
@@ -1,26 +1,64 @@
|
|
|
1
|
+
## **6.17.1**
|
|
2
|
+
- [Fix] `parse`: `interpretNumericEntities`: decode code points above U+FFFF as surrogate pairs (#640)
|
|
3
|
+
- [Fix] `parse`: respect `plainObjects` for `[]` with `parseArrays: false` (#639)
|
|
4
|
+
- [Fix] `utils`: `merge`: count the elements of a sparse array against `arrayLimit`, not its holes
|
|
5
|
+
- [Fix] `parse`: guard bracket-wrapped prototype keys at depth 0 (#638)
|
|
6
|
+
- [Refactor] `parse`: extract wrapping-bracket stripping helper
|
|
7
|
+
- [readme] document that `depth: 0` and `depth: false` keep keys flat
|
|
8
|
+
- [Tests] `parse`: pin depth-0 bracket stripping and prototype keys kept by `allowPrototypes`/`plainObjects`
|
|
9
|
+
|
|
10
|
+
## **6.17.0**
|
|
11
|
+
- [New] `stringify`: add `WHATWG` format (#623)
|
|
12
|
+
- [Fix] `stringify`: do not sort the caller's `filter` array in place (#637)
|
|
13
|
+
- [Fix] `parse`: copy an own `__proto__` key as data (#636)
|
|
14
|
+
- [Fix] `parse`: decode percent-encoded dots case-insensitively (#635)
|
|
15
|
+
- [Fix] `stringify`: encode keys when `allowEmptyArrays` is set (#561)
|
|
16
|
+
- [Fix] `parse`: preserve comma arrays when interpreting numeric entities (#630)
|
|
17
|
+
- [Fix] `parse`: allow scalar fields with a zero array limit (#627)
|
|
18
|
+
- [Fix] `parse`: do not count an existing comma array toward `arrayLimit` when `duplicates` discards or replaces it
|
|
19
|
+
- [Fix] `utils`: `encode`: encode lone surrogates as U+FFFD instead of consuming the next code unit (#624)
|
|
20
|
+
- [eslint] fix indentation
|
|
21
|
+
- [readme] document the encoder's `format` argument
|
|
22
|
+
- [meta] add changelog acknowledgement
|
|
23
|
+
- [meta] fix changelog indents
|
|
24
|
+
- [Dev Deps] update `eslint`, `evalmd`, `npmignore`
|
|
25
|
+
- [Tests] `stringify`: pin `allowEmptyArrays` output for keys that need no encoding
|
|
26
|
+
- [Tests] `stringify`: pin `sort` order for nested keys selected by an array `filter`
|
|
27
|
+
- [Tests] `parse`: cover `interpretNumericEntities` across value shapes, keys, and the charset sentinel
|
|
28
|
+
- [Tests] `parse`: cover more input that builds no array at a zero or negative `arrayLimit`
|
|
29
|
+
- [Tests] `parse`: cover `comma` with a zero or negative `arrayLimit`, and combining a full comma array
|
|
30
|
+
- [Tests] `parse`: pin the behavior of a zero or negative `arrayLimit`
|
|
31
|
+
- [Tests] `utils`/`stringify`: pin `~`, `*`, and parens encoding in RFC3986 and RFC1738
|
|
32
|
+
|
|
33
|
+
## **6.16.2**
|
|
34
|
+
- [Fix] `stringify`: encode keys when `allowEmptyArrays` is set (#561)
|
|
35
|
+
- [meta] use double quotes for better OS support
|
|
36
|
+
- [Dev Deps] update `evalmd`, `npmignore`
|
|
37
|
+
- [Tests] `stringify`: pin `allowEmptyArrays` output for keys that need no encoding
|
|
38
|
+
|
|
1
39
|
## **6.16.1**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
40
|
+
- [Fix] `parse`: do not mutate an object input
|
|
41
|
+
- [Fix] `stringify`: stop re-encoding structural separator dots when `encodeDotInKeys` is set (#564)
|
|
42
|
+
- [Fix] `stringify`: `arrayFormat: 'comma'`: pass the full encoder arguments with `encodeValuesOnly`
|
|
43
|
+
- [Fix] `utils`: encode `+` as `%2B` in iso-8859-1 mode so values round-trip (#565)
|
|
44
|
+
- [Fix] parse: only convert top-level dots to brackets when allowDots is on (#621)
|
|
45
|
+
- [Fix] `stringify`: ignore inherited array format names (#622)
|
|
46
|
+
- [Fix] `stringify`: `arrayFormat: 'comma'`: do not throw on elements with no callable `toString`
|
|
47
|
+
- [Fix] `utils`: `merge`: seed an overflow container's index from its own keys, not just the source
|
|
48
|
+
- [Fix] `utils`: `merge`: keep a `strictMerge` conflict container's index and `arrayLimit` correct
|
|
49
|
+
- [Fix] `parse`: only treat `[]` as array syntax when it ends the key
|
|
50
|
+
- [Perf] `decode`: skip decoders when there is no percent sign (#583)
|
|
51
|
+
- [Robustness] `utils`: `merge`: apply `arrayLimit` to the two-element array built for colliding values
|
|
52
|
+
- [Robustness] `parse`: bound the nesting added by repeated `strictMerge` conflicts (credit @Yeaseen)
|
|
53
|
+
- [Docs] document that `qs` and flat parsers disagree about parameter names
|
|
54
|
+
- [Docs] clarify that `throwOnLimitExceeded` limits each array, not the total number of values
|
|
55
|
+
- [Docs] clarify 6.14.1/6.15.2 parse bracket behavior change (#567, #568)
|
|
56
|
+
- [meta] fix changelog indents
|
|
57
|
+
- [actions] set least-privilege `cache-mode`
|
|
58
|
+
- [Tests] `utils`: `decode`: add missing cases
|
|
59
|
+
- [Tests] `parse`: characterize the `]=` split when an `=` precedes any bracket group (#620)
|
|
60
|
+
- [Tests] `parse`: `allowDots`: cover stray close brackets before a dot
|
|
61
|
+
- [Dev Deps] update `@ljharb/eslint-config`, `eslint`, `tape`
|
|
24
62
|
|
|
25
63
|
## **6.16.0**
|
|
26
64
|
- [New] `stringify`: add a `depth` option to bound recursion depth (default `Infinity`)
|
|
@@ -37,6 +75,12 @@
|
|
|
37
75
|
- [Dev Deps] update `@ljharb/eslint-config`, `eslint`
|
|
38
76
|
- [Dev Deps] update `eslint`, `evalmd`
|
|
39
77
|
|
|
78
|
+
## **6.15.4**
|
|
79
|
+
- [Fix] `stringify`: encode keys when `allowEmptyArrays` is set (#561)
|
|
80
|
+
- [meta] use double quotes for better OS support
|
|
81
|
+
- [Dev Deps] update `@ljharb/eslint-config`, `evalmd`, `npmignore`, `tape`
|
|
82
|
+
- [Tests] `stringify`: pin `allowEmptyArrays` output for keys that need no encoding
|
|
83
|
+
|
|
40
84
|
## **6.15.3**
|
|
41
85
|
- [Fix] `parse`: enforce `throwOnLimitExceeded` for cumulative array growth via `combine`/`merge`
|
|
42
86
|
- [Fix] `utils`: respect encoding of surrogate pairs across chunks (#559)
|
|
@@ -68,6 +112,13 @@
|
|
|
68
112
|
- [New] `parse`: add `strictMerge` option to wrap object/primitive conflicts in an array (#425, #122)
|
|
69
113
|
- [Fix] `duplicates` option should not apply to bracket notation keys (#514)
|
|
70
114
|
|
|
115
|
+
## **6.14.3**
|
|
116
|
+
- [Fix] `stringify`: encode keys when `allowEmptyArrays` is set (#561)
|
|
117
|
+
- [meta] use double quotes for better OS support
|
|
118
|
+
- [Deps] update `side-channel`
|
|
119
|
+
- [Dev Deps] update `@ljharb/eslint-config`, `es-value-fixtures`, `eslint`, `evalmd`, `mock-property`, `npmignore`, `tape`
|
|
120
|
+
- [Tests] `stringify`: pin `allowEmptyArrays` output for keys that need no encoding
|
|
121
|
+
|
|
71
122
|
## **6.14.2**
|
|
72
123
|
- [Fix] `parse`: mark overflow objects for indexed notation exceeding `arrayLimit` (#546)
|
|
73
124
|
- [Fix] `arrayLimit` means max count, not max index, in `combine`/`merge`/`parseArrayValue`
|
|
@@ -100,6 +151,13 @@
|
|
|
100
151
|
- [Dev Deps] update `es-value-fixtures`, `has-bigints`, `has-proto`, `has-symbols`
|
|
101
152
|
- [Tests] increase coverage
|
|
102
153
|
|
|
154
|
+
## **6.13.4**
|
|
155
|
+
- [Fix] `stringify`: encode keys when `allowEmptyArrays` is set (#561)
|
|
156
|
+
- [meta] use double quotes for better OS support
|
|
157
|
+
- [Deps] update `side-channel`
|
|
158
|
+
- [Dev Deps] update `@ljharb/eslint-config`, `es-value-fixtures`, `eslint`, `evalmd`, `for-each`, `has-symbols`, `mock-property`, `npmignore`, `object-inspect`, `tape`
|
|
159
|
+
- [Tests] `stringify`: pin `allowEmptyArrays` output for keys that need no encoding
|
|
160
|
+
|
|
103
161
|
## **6.13.3**
|
|
104
162
|
[Fix] fix regressions from robustness refactor
|
|
105
163
|
[actions] update reusable workflows
|
|
@@ -127,6 +185,13 @@
|
|
|
127
185
|
- [New] `parse`: add `strictDepth` option (#511)
|
|
128
186
|
- [Tests] use `npm audit` instead of `aud`
|
|
129
187
|
|
|
188
|
+
## **6.12.6**
|
|
189
|
+
- [Fix] `stringify`: encode keys when `allowEmptyArrays` is set (#561)
|
|
190
|
+
- [meta] use `npm audit` instead of `aud`
|
|
191
|
+
- [Deps] update `side-channel`
|
|
192
|
+
- [Dev Deps] update `@ljharb/eslint-config`, `es-value-fixtures`, `eslint`, `evalmd`, `for-each`, `has-symbols`, `mock-property`, `npmignore`, `object-inspect`, `tape`
|
|
193
|
+
- [Tests] `stringify`: pin `allowEmptyArrays` output for keys that need no encoding
|
|
194
|
+
|
|
130
195
|
## **6.12.5**
|
|
131
196
|
- [Fix] fix regressions from robustness refactor
|
|
132
197
|
- [actions] update reusable workflows
|