@nocobase/plugin-ai-gigachat 2.2.19 → 2.2.20

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.
Files changed (88) hide show
  1. package/dist/externalVersion.js +5 -5
  2. package/dist/node_modules/gigachat/package.json +1 -1
  3. package/dist/node_modules/langchain-gigachat/index.cjs +2 -2
  4. package/dist/node_modules/langchain-gigachat/package.json +1 -1
  5. package/package.json +2 -2
  6. package/dist/node_modules/gigachat/node_modules/axios/dist/axios.js +0 -5249
  7. package/dist/node_modules/gigachat/node_modules/axios/dist/axios.min.js +0 -5
  8. package/dist/node_modules/gigachat/node_modules/axios/dist/browser/axios.cjs +0 -5146
  9. package/dist/node_modules/gigachat/node_modules/axios/dist/esm/axios.js +0 -5167
  10. package/dist/node_modules/gigachat/node_modules/axios/dist/esm/axios.min.js +0 -3
  11. package/dist/node_modules/gigachat/node_modules/axios/dist/node/axios.cjs +0 -5996
  12. package/dist/node_modules/gigachat/node_modules/axios/index.d.cts +0 -738
  13. package/dist/node_modules/gigachat/node_modules/axios/index.d.ts +0 -755
  14. package/dist/node_modules/gigachat/node_modules/axios/index.js +0 -45
  15. package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/adapters.js +0 -132
  16. package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/fetch.js +0 -643
  17. package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/http.js +0 -1417
  18. package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/xhr.js +0 -228
  19. package/dist/node_modules/gigachat/node_modules/axios/lib/axios.js +0 -89
  20. package/dist/node_modules/gigachat/node_modules/axios/lib/cancel/CancelToken.js +0 -135
  21. package/dist/node_modules/gigachat/node_modules/axios/lib/cancel/CanceledError.js +0 -22
  22. package/dist/node_modules/gigachat/node_modules/axios/lib/cancel/isCancel.js +0 -5
  23. package/dist/node_modules/gigachat/node_modules/axios/lib/core/Axios.js +0 -283
  24. package/dist/node_modules/gigachat/node_modules/axios/lib/core/AxiosError.js +0 -188
  25. package/dist/node_modules/gigachat/node_modules/axios/lib/core/AxiosHeaders.js +0 -351
  26. package/dist/node_modules/gigachat/node_modules/axios/lib/core/InterceptorManager.js +0 -72
  27. package/dist/node_modules/gigachat/node_modules/axios/lib/core/buildFullPath.js +0 -50
  28. package/dist/node_modules/gigachat/node_modules/axios/lib/core/dispatchRequest.js +0 -89
  29. package/dist/node_modules/gigachat/node_modules/axios/lib/core/mergeConfig.js +0 -159
  30. package/dist/node_modules/gigachat/node_modules/axios/lib/core/settle.js +0 -27
  31. package/dist/node_modules/gigachat/node_modules/axios/lib/core/transformData.js +0 -28
  32. package/dist/node_modules/gigachat/node_modules/axios/lib/defaults/index.js +0 -177
  33. package/dist/node_modules/gigachat/node_modules/axios/lib/defaults/transitional.js +0 -10
  34. package/dist/node_modules/gigachat/node_modules/axios/lib/env/classes/FormData.js +0 -2
  35. package/dist/node_modules/gigachat/node_modules/axios/lib/env/data.js +0 -1
  36. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -156
  37. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -59
  38. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
  39. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -77
  40. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -29
  41. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/bind.js +0 -14
  42. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/buildURL.js +0 -69
  43. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/callbackify.js +0 -18
  44. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/combineURLs.js +0 -15
  45. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/composeSignals.js +0 -57
  46. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/cookies.js +0 -64
  47. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -31
  48. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +0 -105
  49. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/formDataToJSON.js +0 -119
  50. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/formDataToStream.js +0 -119
  51. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/fromDataURI.js +0 -68
  52. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -19
  53. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
  54. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
  55. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/null.js +0 -2
  56. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/parseHeaders.js +0 -69
  57. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
  58. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/progressEventReducer.js +0 -54
  59. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/readBlob.js +0 -15
  60. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/resolveConfig.js +0 -119
  61. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +0 -60
  62. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/shouldBypassProxy.js +0 -210
  63. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/speedometer.js +0 -55
  64. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/spread.js +0 -28
  65. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/throttle.js +0 -44
  66. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/toFormData.js +0 -285
  67. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
  68. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/trackStream.js +0 -89
  69. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/validator.js +0 -112
  70. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
  71. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
  72. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
  73. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/index.js +0 -13
  74. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/common/utils.js +0 -52
  75. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/index.js +0 -7
  76. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
  77. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
  78. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/node/index.js +0 -37
  79. package/dist/node_modules/gigachat/node_modules/axios/lib/utils.js +0 -1017
  80. package/dist/node_modules/gigachat/node_modules/axios/package.json +0 -201
  81. package/dist/node_modules/gigachat/node_modules/follow-redirects/debug.js +0 -15
  82. package/dist/node_modules/gigachat/node_modules/follow-redirects/http.js +0 -1
  83. package/dist/node_modules/gigachat/node_modules/follow-redirects/https.js +0 -1
  84. package/dist/node_modules/gigachat/node_modules/follow-redirects/index.js +0 -709
  85. package/dist/node_modules/gigachat/node_modules/follow-redirects/package.json +0 -58
  86. package/dist/node_modules/gigachat/node_modules/proxy-from-env/index.cjs +0 -105
  87. package/dist/node_modules/gigachat/node_modules/proxy-from-env/index.js +0 -103
  88. package/dist/node_modules/gigachat/node_modules/proxy-from-env/package.json +0 -43
@@ -1,58 +0,0 @@
1
- {
2
- "name": "follow-redirects",
3
- "version": "1.16.0",
4
- "description": "HTTP and HTTPS modules that follow redirects.",
5
- "license": "MIT",
6
- "main": "index.js",
7
- "files": [
8
- "*.js"
9
- ],
10
- "engines": {
11
- "node": ">=4.0"
12
- },
13
- "scripts": {
14
- "lint": "eslint *.js test",
15
- "test": "nyc mocha"
16
- },
17
- "repository": {
18
- "type": "git",
19
- "url": "git+ssh://git@github.com/follow-redirects/follow-redirects.git"
20
- },
21
- "homepage": "https://github.com/follow-redirects/follow-redirects",
22
- "bugs": {
23
- "url": "https://github.com/follow-redirects/follow-redirects/issues"
24
- },
25
- "keywords": [
26
- "http",
27
- "https",
28
- "url",
29
- "redirect",
30
- "client",
31
- "location",
32
- "utility"
33
- ],
34
- "author": "Ruben Verborgh <ruben@verborgh.org> (https://ruben.verborgh.org/)",
35
- "contributors": [
36
- "Olivier Lalonde <olalonde@gmail.com> (http://www.syskall.com)",
37
- "James Talmage <james@talmage.io>"
38
- ],
39
- "funding": [
40
- {
41
- "type": "individual",
42
- "url": "https://github.com/sponsors/RubenVerborgh"
43
- }
44
- ],
45
- "peerDependenciesMeta": {
46
- "debug": {
47
- "optional": true
48
- }
49
- },
50
- "devDependencies": {
51
- "concat-stream": "^2.0.0",
52
- "eslint": "^5.16.0",
53
- "express": "^4.16.4",
54
- "lolex": "^3.1.0",
55
- "mocha": "^6.0.2",
56
- "nyc": "^14.1.1"
57
- }
58
- }
@@ -1,105 +0,0 @@
1
- 'use strict';
2
-
3
- var DEFAULT_PORTS = {
4
- ftp: 21,
5
- gopher: 70,
6
- http: 80,
7
- https: 443,
8
- ws: 80,
9
- wss: 443,
10
- };
11
-
12
- function parseUrl(urlString) {
13
- try {
14
- return new URL(urlString);
15
- } catch {
16
- return null;
17
- }
18
- }
19
-
20
- /**
21
- * @param {string|object|URL} url - The URL as a string or URL instance, or a
22
- * compatible object (such as the result from legacy url.parse).
23
- * @return {string} The URL of the proxy that should handle the request to the
24
- * given URL. If no proxy is set, this will be an empty string.
25
- */
26
- function getProxyForUrl(url) {
27
- var parsedUrl = (typeof url === 'string' ? parseUrl(url) : url) || {};
28
- var proto = parsedUrl.protocol;
29
- var hostname = parsedUrl.host;
30
- var port = parsedUrl.port;
31
- if (typeof hostname !== 'string' || !hostname || typeof proto !== 'string') {
32
- return ''; // Don't proxy URLs without a valid scheme or host.
33
- }
34
-
35
- proto = proto.split(':', 1)[0];
36
- // Stripping ports in this way instead of using parsedUrl.hostname to make
37
- // sure that the brackets around IPv6 addresses are kept.
38
- hostname = hostname.replace(/:\d*$/, '');
39
- port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
40
- if (!shouldProxy(hostname, port)) {
41
- return ''; // Don't proxy URLs that match NO_PROXY.
42
- }
43
-
44
- var proxy = getEnv(proto + '_proxy') || getEnv('all_proxy');
45
- if (proxy && proxy.indexOf('://') === -1) {
46
- // Missing scheme in proxy, default to the requested URL's scheme.
47
- proxy = proto + '://' + proxy;
48
- }
49
- return proxy;
50
- }
51
-
52
- /**
53
- * Determines whether a given URL should be proxied.
54
- *
55
- * @param {string} hostname - The host name of the URL.
56
- * @param {number} port - The effective port of the URL.
57
- * @returns {boolean} Whether the given URL should be proxied.
58
- * @private
59
- */
60
- function shouldProxy(hostname, port) {
61
- var NO_PROXY = getEnv('no_proxy').toLowerCase();
62
- if (!NO_PROXY) {
63
- return true; // Always proxy if NO_PROXY is not set.
64
- }
65
- if (NO_PROXY === '*') {
66
- return false; // Never proxy if wildcard is set.
67
- }
68
-
69
- return NO_PROXY.split(/[,\s]/).every(function(proxy) {
70
- if (!proxy) {
71
- return true; // Skip zero-length hosts.
72
- }
73
- var parsedProxy = proxy.match(/^(.+):(\d+)$/);
74
- var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
75
- var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
76
- if (parsedProxyPort && parsedProxyPort !== port) {
77
- return true; // Skip if ports don't match.
78
- }
79
-
80
- if (!/^[.*]/.test(parsedProxyHostname)) {
81
- // No wildcards, so stop proxying if there is an exact match.
82
- return hostname !== parsedProxyHostname;
83
- }
84
-
85
- if (parsedProxyHostname.charAt(0) === '*') {
86
- // Remove leading wildcard.
87
- parsedProxyHostname = parsedProxyHostname.slice(1);
88
- }
89
- // Stop proxying if the hostname ends with the no_proxy host.
90
- return !hostname.endsWith(parsedProxyHostname);
91
- });
92
- }
93
-
94
- /**
95
- * Get the value for an environment variable.
96
- *
97
- * @param {string} key - The name of the environment variable.
98
- * @return {string} The value of the environment variable.
99
- * @private
100
- */
101
- function getEnv(key) {
102
- return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || '';
103
- }
104
-
105
- exports.getProxyForUrl = getProxyForUrl;
@@ -1,103 +0,0 @@
1
- 'use strict';
2
-
3
- var DEFAULT_PORTS = {
4
- ftp: 21,
5
- gopher: 70,
6
- http: 80,
7
- https: 443,
8
- ws: 80,
9
- wss: 443,
10
- };
11
-
12
- function parseUrl(urlString) {
13
- try {
14
- return new URL(urlString);
15
- } catch {
16
- return null;
17
- }
18
- }
19
-
20
- /**
21
- * @param {string|object|URL} url - The URL as a string or URL instance, or a
22
- * compatible object (such as the result from legacy url.parse).
23
- * @return {string} The URL of the proxy that should handle the request to the
24
- * given URL. If no proxy is set, this will be an empty string.
25
- */
26
- export function getProxyForUrl(url) {
27
- var parsedUrl = (typeof url === 'string' ? parseUrl(url) : url) || {};
28
- var proto = parsedUrl.protocol;
29
- var hostname = parsedUrl.host;
30
- var port = parsedUrl.port;
31
- if (typeof hostname !== 'string' || !hostname || typeof proto !== 'string') {
32
- return ''; // Don't proxy URLs without a valid scheme or host.
33
- }
34
-
35
- proto = proto.split(':', 1)[0];
36
- // Stripping ports in this way instead of using parsedUrl.hostname to make
37
- // sure that the brackets around IPv6 addresses are kept.
38
- hostname = hostname.replace(/:\d*$/, '');
39
- port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
40
- if (!shouldProxy(hostname, port)) {
41
- return ''; // Don't proxy URLs that match NO_PROXY.
42
- }
43
-
44
- var proxy = getEnv(proto + '_proxy') || getEnv('all_proxy');
45
- if (proxy && proxy.indexOf('://') === -1) {
46
- // Missing scheme in proxy, default to the requested URL's scheme.
47
- proxy = proto + '://' + proxy;
48
- }
49
- return proxy;
50
- }
51
-
52
- /**
53
- * Determines whether a given URL should be proxied.
54
- *
55
- * @param {string} hostname - The host name of the URL.
56
- * @param {number} port - The effective port of the URL.
57
- * @returns {boolean} Whether the given URL should be proxied.
58
- * @private
59
- */
60
- function shouldProxy(hostname, port) {
61
- var NO_PROXY = getEnv('no_proxy').toLowerCase();
62
- if (!NO_PROXY) {
63
- return true; // Always proxy if NO_PROXY is not set.
64
- }
65
- if (NO_PROXY === '*') {
66
- return false; // Never proxy if wildcard is set.
67
- }
68
-
69
- return NO_PROXY.split(/[,\s]/).every(function(proxy) {
70
- if (!proxy) {
71
- return true; // Skip zero-length hosts.
72
- }
73
- var parsedProxy = proxy.match(/^(.+):(\d+)$/);
74
- var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
75
- var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
76
- if (parsedProxyPort && parsedProxyPort !== port) {
77
- return true; // Skip if ports don't match.
78
- }
79
-
80
- if (!/^[.*]/.test(parsedProxyHostname)) {
81
- // No wildcards, so stop proxying if there is an exact match.
82
- return hostname !== parsedProxyHostname;
83
- }
84
-
85
- if (parsedProxyHostname.charAt(0) === '*') {
86
- // Remove leading wildcard.
87
- parsedProxyHostname = parsedProxyHostname.slice(1);
88
- }
89
- // Stop proxying if the hostname ends with the no_proxy host.
90
- return !hostname.endsWith(parsedProxyHostname);
91
- });
92
- }
93
-
94
- /**
95
- * Get the value for an environment variable.
96
- *
97
- * @param {string} key - The name of the environment variable.
98
- * @return {string} The value of the environment variable.
99
- * @private
100
- */
101
- function getEnv(key) {
102
- return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || '';
103
- }
@@ -1,43 +0,0 @@
1
- {
2
- "name": "proxy-from-env",
3
- "version": "2.1.0",
4
- "description": "Offers getProxyForUrl to get the proxy URL for a URL, respecting the *_PROXY (e.g. HTTP_PROXY) and NO_PROXY environment variables.",
5
- "main": "index.cjs",
6
- "exports": {
7
- "import": "./index.js",
8
- "require": "./index.cjs"
9
- },
10
- "files": ["index.js", "index.cjs"],
11
- "scripts": {
12
- "lint": "eslint *.js *.mjs *.cjs",
13
- "test": "node --test ./test.js",
14
- "test-require": "node ./test-require.cjs",
15
- "test-coverage": "node --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info ./test.js",
16
- "test-coverage-as-html": "npm run test-coverage && genhtml lcov.info -o coverage/"
17
- },
18
- "repository": {
19
- "type": "git",
20
- "url": "git+https://github.com/Rob--W/proxy-from-env.git"
21
- },
22
- "keywords": [
23
- "proxy",
24
- "http_proxy",
25
- "https_proxy",
26
- "no_proxy",
27
- "environment"
28
- ],
29
- "author": "Rob Wu <rob@robwu.nl> (https://robwu.nl/)",
30
- "license": "MIT",
31
- "bugs": {
32
- "url": "https://github.com/Rob--W/proxy-from-env/issues"
33
- },
34
- "homepage": "https://github.com/Rob--W/proxy-from-env#readme",
35
- "devDependencies": {
36
- "eslint": "^9.39.2"
37
- },
38
- "type": "module",
39
- "engines": {
40
- "node": ">=10"
41
- },
42
- "sideEffects": false
43
- }