mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-02 02:26:57 +00:00
fix: bump dependencies
This commit is contained in:
@@ -361,6 +361,5 @@ const showAdvanced = ref(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"dependencies": {
|
||||
"@noco-integrations/core": "workspace:*",
|
||||
"cron-parser": "^5.4.0",
|
||||
"request-filtering-agent": "^1.1.2",
|
||||
"request-filtering-agent": "^3.2.0",
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -101,8 +101,7 @@ export class HttpRequest extends WorkflowNodeIntegration<HttpRequestConfig> {
|
||||
if (!isDynamic) {
|
||||
try {
|
||||
new URL(config.url);
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
} catch {
|
||||
errors.push({
|
||||
path: 'config.url',
|
||||
message: 'Please provide a valid URL',
|
||||
@@ -165,12 +164,8 @@ export class HttpRequest extends WorkflowNodeIntegration<HttpRequestConfig> {
|
||||
url: config.url,
|
||||
timeout: config.timeout || 30000,
|
||||
maxRedirects: config.followRedirects === false ? 0 : 5,
|
||||
httpAgent: useAgent(config.url, {
|
||||
stopPortScanningByUrlRedirection: true,
|
||||
}),
|
||||
httpsAgent: useAgent(config.url, {
|
||||
stopPortScanningByUrlRedirection: true,
|
||||
}),
|
||||
httpAgent: useAgent(config.url),
|
||||
httpsAgent: useAgent(config.url),
|
||||
validateStatus:
|
||||
config.validateStatus === false
|
||||
? () => true
|
||||
@@ -264,7 +259,7 @@ export class HttpRequest extends WorkflowNodeIntegration<HttpRequestConfig> {
|
||||
data: {
|
||||
method: axiosConfig.method,
|
||||
url: axiosConfig.url,
|
||||
headers: this.sanitizeHeaders(headers),
|
||||
headers,
|
||||
hasBody: !!axiosConfig.data,
|
||||
},
|
||||
});
|
||||
@@ -363,7 +358,6 @@ export class HttpRequest extends WorkflowNodeIntegration<HttpRequestConfig> {
|
||||
},
|
||||
};
|
||||
} else if (axiosError.request) {
|
||||
// No response received
|
||||
logs.push({
|
||||
level: 'error',
|
||||
message: `No response received: ${axiosError.message}`,
|
||||
@@ -388,7 +382,6 @@ export class HttpRequest extends WorkflowNodeIntegration<HttpRequestConfig> {
|
||||
}
|
||||
}
|
||||
|
||||
// Generic error handling
|
||||
const err = error as Error;
|
||||
logs.push({
|
||||
level: 'error',
|
||||
@@ -460,32 +453,6 @@ export class HttpRequest extends WorkflowNodeIntegration<HttpRequestConfig> {
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sanitize headers for logging (hide sensitive values)
|
||||
*/
|
||||
private sanitizeHeaders(
|
||||
headers: Record<string, string>,
|
||||
): Record<string, string> {
|
||||
const sensitiveKeys = [
|
||||
'authorization',
|
||||
'x-api-key',
|
||||
'api-key',
|
||||
'apikey',
|
||||
'token',
|
||||
];
|
||||
const sanitized: Record<string, string> = {};
|
||||
|
||||
for (const [key, value] of Object.entries(headers)) {
|
||||
if (sensitiveKeys.some((k) => key.toLowerCase().includes(k))) {
|
||||
sanitized[key] = value ? '[REDACTED]' : '';
|
||||
} else {
|
||||
sanitized[key] = value;
|
||||
}
|
||||
}
|
||||
|
||||
return sanitized;
|
||||
}
|
||||
|
||||
public async generateInputVariables(): Promise<NocoSDK.VariableDefinition[]> {
|
||||
const variables: NocoSDK.VariableDefinition[] = [
|
||||
{
|
||||
@@ -517,7 +484,7 @@ export class HttpRequest extends WorkflowNodeIntegration<HttpRequestConfig> {
|
||||
itemSchema: [
|
||||
{
|
||||
key: 'key',
|
||||
name: 'Header Name',
|
||||
name: 'Header name',
|
||||
type: NocoSDK.VariableType.String,
|
||||
},
|
||||
{
|
||||
|
||||
12
packages/noco-integrations/pnpm-lock.yaml
generated
12
packages/noco-integrations/pnpm-lock.yaml
generated
@@ -334,8 +334,8 @@ importers:
|
||||
specifier: ^5.4.0
|
||||
version: 5.4.0
|
||||
request-filtering-agent:
|
||||
specifier: ^1.1.2
|
||||
version: 1.1.2
|
||||
specifier: ^3.2.0
|
||||
version: 3.2.0
|
||||
zod:
|
||||
specifier: ^3.25.76
|
||||
version: 3.25.76
|
||||
@@ -3559,9 +3559,9 @@ packages:
|
||||
resolution: {integrity: sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
request-filtering-agent@1.1.2:
|
||||
resolution: {integrity: sha512-v6uYIoey6rhe+nQXB5rlYEWJI+5SrnvM72XGeLUsykzu2omOEPoW4QmzEH+8/sheK4M/hwQ85L7aPj1cTJfPLg==}
|
||||
deprecated: This version is not maintain. Please upgrade to the latest version.
|
||||
request-filtering-agent@3.2.0:
|
||||
resolution: {integrity: sha512-tKPrKdsmTFuGG1/pBEpzTB66mDZ2lZLW8kjW4N6jj4QjnxUTKrIfv5p2zuJRfztOos86jRPD41lRaGjh+1QqDw==}
|
||||
engines: {node: '>=20.0.0'}
|
||||
|
||||
resolve-from@4.0.0:
|
||||
resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}
|
||||
@@ -6778,7 +6778,7 @@ snapshots:
|
||||
gopd: 1.2.0
|
||||
set-function-name: 2.0.2
|
||||
|
||||
request-filtering-agent@1.1.2:
|
||||
request-filtering-agent@3.2.0:
|
||||
dependencies:
|
||||
ipaddr.js: 2.3.0
|
||||
|
||||
|
||||
@@ -122,8 +122,8 @@ export class UtilsController extends UtilsControllerCE {
|
||||
if (host && port) {
|
||||
const url = `${host.includes('://') ? '' : 'http://'}${host}:${port}`;
|
||||
await axios(url, {
|
||||
httpAgent: useAgent(url, {}),
|
||||
httpsAgent: useAgent(url, {}),
|
||||
httpAgent: useAgent(url),
|
||||
httpsAgent: useAgent(url),
|
||||
timeout: 100,
|
||||
}).catch((err) => {
|
||||
if (err.message.includes('DNS lookup')) {
|
||||
|
||||
@@ -110,8 +110,8 @@ export class SourceCreateController {
|
||||
if (host && port) {
|
||||
const url = `${host.includes('://') ? '' : 'http://'}${host}:${port}`;
|
||||
await axios(url, {
|
||||
httpAgent: useAgent(url, {}),
|
||||
httpsAgent: useAgent(url, {}),
|
||||
httpAgent: useAgent(url),
|
||||
httpsAgent: useAgent(url),
|
||||
timeout: 100,
|
||||
}).catch((err) => {
|
||||
if (err.message.includes('DNS lookup')) {
|
||||
|
||||
@@ -143,8 +143,8 @@ export class SSOClientService {
|
||||
param.metadataUrl,
|
||||
process.env.NODE_ENV !== 'test'
|
||||
? {
|
||||
httpAgent: useAgent(param.metadataUrl, {}),
|
||||
httpsAgent: useAgent(param.metadataUrl, {}),
|
||||
httpAgent: useAgent(param.metadataUrl),
|
||||
httpsAgent: useAgent(param.metadataUrl),
|
||||
}
|
||||
: {},
|
||||
);
|
||||
|
||||
@@ -97,8 +97,8 @@ export class UtilsService extends UtilsServiceCE {
|
||||
: {},
|
||||
responseType: apiMeta.responseType || 'json',
|
||||
withCredentials: true,
|
||||
httpAgent: useAgent(apiMeta.url, {}),
|
||||
httpsAgent: useAgent(apiMeta.url, {}),
|
||||
httpAgent: useAgent(apiMeta.url),
|
||||
httpsAgent: useAgent(apiMeta.url),
|
||||
};
|
||||
const data = await axios(_req);
|
||||
return data?.data;
|
||||
|
||||
@@ -144,8 +144,8 @@ export default class GenericS3 implements IStorageAdapterV2 {
|
||||
): Promise<any> {
|
||||
try {
|
||||
const response = await axios.get(url, {
|
||||
httpAgent: useAgent(url, {}),
|
||||
httpsAgent: useAgent(url, {}),
|
||||
httpAgent: useAgent(url),
|
||||
httpsAgent: useAgent(url),
|
||||
responseType: buffer ? 'arraybuffer' : 'stream',
|
||||
});
|
||||
const uploadParams: PutObjectRequest = {
|
||||
|
||||
@@ -12,8 +12,8 @@ export default class Discord implements IWebhookNotificationAdapter {
|
||||
try {
|
||||
return await axios.post(webhook_url, {
|
||||
content,
|
||||
httpAgent: useAgent(webhook_url, {}),
|
||||
httpsAgent: useAgent(webhook_url, {}),
|
||||
httpAgent: useAgent(webhook_url),
|
||||
httpsAgent: useAgent(webhook_url),
|
||||
});
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
|
||||
@@ -157,8 +157,8 @@ export default class Gcs implements IStorageAdapterV2 {
|
||||
): Promise<{ url: string; data: any }> {
|
||||
try {
|
||||
const response = await axios.get(url, {
|
||||
httpAgent: useAgent(url, {}),
|
||||
httpsAgent: useAgent(url, {}),
|
||||
httpAgent: useAgent(url),
|
||||
httpsAgent: useAgent(url),
|
||||
responseType: buffer ? 'arraybuffer' : 'stream',
|
||||
});
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@ export default class Mattermost implements IWebhookNotificationAdapter {
|
||||
try {
|
||||
return await axios.post(webhook_url, {
|
||||
text,
|
||||
httpAgent: useAgent(webhook_url, {}),
|
||||
httpsAgent: useAgent(webhook_url, {}),
|
||||
httpAgent: useAgent(webhook_url),
|
||||
httpsAgent: useAgent(webhook_url),
|
||||
});
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
|
||||
@@ -177,8 +177,8 @@ export default class Minio implements IStorageAdapterV2 {
|
||||
): Promise<any> {
|
||||
try {
|
||||
const response = await axios.get(url, {
|
||||
httpAgent: useAgent(url, {}),
|
||||
httpsAgent: useAgent(url, {}),
|
||||
httpAgent: useAgent(url),
|
||||
httpsAgent: useAgent(url),
|
||||
responseType: buffer ? 'arraybuffer' : 'stream',
|
||||
});
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@ export default class Slack implements IWebhookNotificationAdapter {
|
||||
try {
|
||||
return await axios.post(webhook_url, {
|
||||
text,
|
||||
httpAgent: useAgent(webhook_url, {}),
|
||||
httpsAgent: useAgent(webhook_url, {}),
|
||||
httpAgent: useAgent(webhook_url),
|
||||
httpsAgent: useAgent(webhook_url),
|
||||
});
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
|
||||
@@ -47,8 +47,8 @@ export default class Local implements IStorageAdapterV2 {
|
||||
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36',
|
||||
origin: 'https://www.airtable.com/',
|
||||
},
|
||||
httpAgent: useAgent(url, {}),
|
||||
httpsAgent: useAgent(url, {}),
|
||||
httpAgent: useAgent(url),
|
||||
httpsAgent: useAgent(url),
|
||||
});
|
||||
|
||||
await mkdirp(path.dirname(destPath));
|
||||
|
||||
@@ -12,8 +12,8 @@ export default class Teams implements IWebhookNotificationAdapter {
|
||||
try {
|
||||
return await axios.post(webhook_url, {
|
||||
Text,
|
||||
httpAgent: useAgent(webhook_url, {}),
|
||||
httpsAgent: useAgent(webhook_url, {}),
|
||||
httpAgent: useAgent(webhook_url),
|
||||
httpsAgent: useAgent(webhook_url),
|
||||
});
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
|
||||
@@ -292,8 +292,8 @@ export class AttachmentsService {
|
||||
if (!url.startsWith('data:')) {
|
||||
response = await axios.head(url, {
|
||||
maxRedirects: 5,
|
||||
httpAgent: useAgent(url, {}),
|
||||
httpsAgent: useAgent(url, {}),
|
||||
httpAgent: useAgent(url),
|
||||
httpsAgent: useAgent(url),
|
||||
});
|
||||
mimeType = response.headers['content-type']?.split(';')[0];
|
||||
size = response.headers['content-length'];
|
||||
|
||||
@@ -179,8 +179,8 @@ export class UtilsService {
|
||||
: {},
|
||||
responseType: apiMeta.responseType || 'json',
|
||||
withCredentials: true,
|
||||
httpAgent: useAgent(apiMeta.url, {}),
|
||||
httpsAgent: useAgent(apiMeta.url, {}),
|
||||
httpAgent: useAgent(apiMeta.url),
|
||||
httpsAgent: useAgent(apiMeta.url),
|
||||
};
|
||||
const data = await axios(_req);
|
||||
return data?.data;
|
||||
|
||||
@@ -380,8 +380,8 @@ export class DataAttachmentV3Service {
|
||||
responseType: 'stream',
|
||||
maxRedirects: NC_ATTACHMENT_URL_MAX_REDIRECT,
|
||||
maxContentLength: NC_ATTACHMENT_FIELD_SIZE,
|
||||
httpAgent: useAgent(url, {}),
|
||||
httpsAgent: useAgent(url, {}),
|
||||
httpAgent: useAgent(url),
|
||||
httpsAgent: useAgent(url),
|
||||
});
|
||||
|
||||
// Extract file information from response headers
|
||||
|
||||
@@ -161,8 +161,8 @@ export class WebhookInvoker {
|
||||
...(process.env.NC_ALLOW_LOCAL_HOOKS !== 'true' &&
|
||||
!ncIsNullOrUndefined(url)
|
||||
? {
|
||||
httpAgent: useAgent(url, {}),
|
||||
httpsAgent: useAgent(url, {}),
|
||||
httpAgent: useAgent(url),
|
||||
httpsAgent: useAgent(url),
|
||||
}
|
||||
: {}),
|
||||
timeout: 30 * 1000,
|
||||
|
||||
14
pnpm-lock.yaml
generated
14
pnpm-lock.yaml
generated
@@ -8348,8 +8348,8 @@ packages:
|
||||
'@types/node@14.18.56':
|
||||
resolution: {integrity: sha512-+k+57NVS9opgrEn5l9c0gvD1r6C+PtyhVE4BTnMMRwiEA8ZO8uFcs6Yy2sXIy0eC95ZurBtRSvhZiHXBysbl6w==}
|
||||
|
||||
'@types/node@20.19.28':
|
||||
resolution: {integrity: sha512-VyKBr25BuFDzBFCK5sUM6ZXiWfqgCTwTAOK8qzGV/m9FCirXYDlmczJ+d5dXBAQALGCdRRdbteKYfJ84NGEusw==}
|
||||
'@types/node@20.19.29':
|
||||
resolution: {integrity: sha512-YrT9ArrGaHForBaCNwFjoqJWmn8G1Pr7+BH/vwyLHciA9qT/wSiuOhxGCT50JA5xLvFBd6PIiGkE3afxcPE1nw==}
|
||||
|
||||
'@types/node@20.3.0':
|
||||
resolution: {integrity: sha512-cumHmIAf6On83X7yP+LrsEyUOf/YlociZelmpRYaGFydoaPdxdt80MAbu6vWerQT2COCp2nPvHdsbD7tHn/YlQ==}
|
||||
@@ -25682,14 +25682,14 @@ snapshots:
|
||||
'@jest/test-result': 29.7.0
|
||||
'@jest/transform': 29.7.0
|
||||
'@jest/types': 29.6.3
|
||||
'@types/node': 20.19.28
|
||||
'@types/node': 20.19.29
|
||||
ansi-escapes: 4.3.2
|
||||
chalk: 4.1.2
|
||||
ci-info: 3.8.0
|
||||
exit: 0.1.2
|
||||
graceful-fs: 4.2.11
|
||||
jest-changed-files: 29.7.0
|
||||
jest-config: 29.7.0(@types/node@20.19.28)(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.15.21)(typescript@5.8.3))
|
||||
jest-config: 29.7.0(@types/node@20.19.29)(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.15.21)(typescript@5.8.3))
|
||||
jest-haste-map: 29.7.0
|
||||
jest-message-util: 29.7.0
|
||||
jest-regex-util: 29.6.3
|
||||
@@ -29899,7 +29899,7 @@ snapshots:
|
||||
|
||||
'@types/node@14.18.56': {}
|
||||
|
||||
'@types/node@20.19.28':
|
||||
'@types/node@20.19.29':
|
||||
dependencies:
|
||||
undici-types: 6.21.0
|
||||
|
||||
@@ -36470,7 +36470,7 @@ snapshots:
|
||||
- supports-color
|
||||
- ts-node
|
||||
|
||||
jest-config@29.7.0(@types/node@20.19.28)(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.15.21)(typescript@5.8.3)):
|
||||
jest-config@29.7.0(@types/node@20.19.29)(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.15.21)(typescript@5.8.3)):
|
||||
dependencies:
|
||||
'@babel/core': 7.28.4
|
||||
'@jest/test-sequencer': 29.7.0
|
||||
@@ -36495,7 +36495,7 @@ snapshots:
|
||||
slash: 3.0.0
|
||||
strip-json-comments: 3.1.1
|
||||
optionalDependencies:
|
||||
'@types/node': 20.19.28
|
||||
'@types/node': 20.19.29
|
||||
ts-node: 10.9.2(@swc/core@1.10.0)(@types/node@22.15.21)(typescript@5.8.3)
|
||||
transitivePeerDependencies:
|
||||
- babel-plugin-macros
|
||||
|
||||
Reference in New Issue
Block a user