@qqbrowser/openclaw-qbot 0.10.8 → 0.10.9
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/README.md +1 -54
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/canvas-host/a2ui/a2ui.bundle.js +12 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +21 -21
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +2 -0
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +3 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js +2 -0
- package/node_modules/@aws-sdk/core/package.json +6 -4
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
- package/node_modules/@aws-sdk/nested-clients/package.json +18 -18
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/axios/dist/axios.js +34 -11
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/browser/axios.cjs +32 -6
- package/node_modules/axios/dist/esm/axios.js +32 -6
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/node/axios.cjs +91 -37
- package/node_modules/axios/index.d.cts +1 -0
- package/node_modules/axios/lib/adapters/http.js +69 -22
- package/node_modules/axios/lib/core/mergeConfig.js +13 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/resolveConfig.js +14 -2
- package/node_modules/axios/lib/helpers/validator.js +3 -1
- package/node_modules/axios/package.json +1 -1
- package/package.json +1 -1
|
@@ -10,12 +10,24 @@ import buildURL from './buildURL.js';
|
|
|
10
10
|
export default (config) => {
|
|
11
11
|
const newConfig = mergeConfig({}, config);
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// Read only own properties to prevent prototype pollution gadgets
|
|
14
|
+
// (e.g. Object.prototype.baseURL = 'https://evil.com'). See GHSA-q8qp-cvcw-x6jj.
|
|
15
|
+
const own = (key) => (utils.hasOwnProp(newConfig, key) ? newConfig[key] : undefined);
|
|
16
|
+
|
|
17
|
+
const data = own('data');
|
|
18
|
+
let withXSRFToken = own('withXSRFToken');
|
|
19
|
+
const xsrfHeaderName = own('xsrfHeaderName');
|
|
20
|
+
const xsrfCookieName = own('xsrfCookieName');
|
|
21
|
+
let headers = own('headers');
|
|
22
|
+
const auth = own('auth');
|
|
23
|
+
const baseURL = own('baseURL');
|
|
24
|
+
const allowAbsoluteUrls = own('allowAbsoluteUrls');
|
|
25
|
+
const url = own('url');
|
|
14
26
|
|
|
15
27
|
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
16
28
|
|
|
17
29
|
newConfig.url = buildURL(
|
|
18
|
-
buildFullPath(
|
|
30
|
+
buildFullPath(baseURL, url, allowAbsoluteUrls),
|
|
19
31
|
config.params,
|
|
20
32
|
config.paramsSerializer
|
|
21
33
|
);
|
|
@@ -86,7 +86,9 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
86
86
|
let i = keys.length;
|
|
87
87
|
while (i-- > 0) {
|
|
88
88
|
const opt = keys[i];
|
|
89
|
-
|
|
89
|
+
// Use hasOwnProperty so a polluted Object.prototype.<opt> cannot supply
|
|
90
|
+
// a non-function validator and cause a TypeError. See GHSA-q8qp-cvcw-x6jj.
|
|
91
|
+
const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : undefined;
|
|
90
92
|
if (validator) {
|
|
91
93
|
const value = options[opt];
|
|
92
94
|
const result = value === undefined || validator(value, opt, options);
|
package/package.json
CHANGED