ci: Fix vulnerable dev dependencies (no-changelog) (#9545)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2024-05-30 13:54:29 +02:00 committed by GitHub
parent 936bbb2068
commit 596990bed7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 344 additions and 297 deletions

View file

@ -43,7 +43,7 @@
"@ngneat/falso": "^6.4.0",
"@types/jest": "^29.5.3",
"@types/supertest": "^6.0.2",
"@vitest/coverage-v8": "^1.2.1",
"@vitest/coverage-v8": "^1.6.0",
"cross-env": "^7.0.3",
"cypress": "^13.6.2",
"cypress-otp": "^1.0.3",
@ -65,10 +65,10 @@
"tsc-watch": "^6.0.4",
"turbo": "1.13.3",
"typescript": "*",
"vite": "^5.1.6",
"vite": "^5.2.12",
"vite-plugin-checker": "^0.6.4",
"vitest": "^1.3.1",
"vue-tsc": "^2.0.6"
"vitest": "^1.6.0",
"vue-tsc": "^2.0.19"
},
"pnpm": {
"onlyBuiltDependencies": [
@ -78,8 +78,10 @@
"@types/node": "^18.16.16",
"axios": "1.6.7",
"chokidar": "3.5.2",
"esbuild": "^0.20.2",
"formidable": "3.5.1",
"prettier": "^3.2.5",
"pug": "^3.0.3",
"semver": "^7.5.4",
"tslib": "^2.6.2",
"tsconfig-paths": "^4.2.0",

View file

@ -35,9 +35,6 @@ if (
process.exit(1);
}
// Prevent oclif from loading ts-node and typescript
process.env.OCLIF_TS_NODE = '0';
// Disable nodejs custom inspection across the app
const { inspect } = require('util');
inspect.defaultOptions.customInspect = false;
@ -52,5 +49,5 @@ if (process.env.NODEJS_PREFER_IPV4 === 'true') {
(async () => {
const oclif = await import('@oclif/core');
await oclif.execute({});
await oclif.execute({ dir: __dirname });
})();

View file

@ -100,7 +100,7 @@
"@n8n/permissions": "workspace:*",
"@n8n/typeorm": "0.3.20-10",
"@n8n_io/license-sdk": "2.12.0",
"@oclif/core": "3.18.1",
"@oclif/core": "3.26.6",
"@pinecone-database/pinecone": "2.1.0",
"@rudderstack/rudder-sdk-node": "2.0.7",
"@sentry/integrations": "7.87.0",

View file

@ -23,6 +23,7 @@ beforeAll(async () => {
mockInstance(InternalHooks);
mockInstance(LoadNodesAndCredentials);
await testDb.init();
await oclifConfig.load();
});
beforeEach(async () => {

View file

@ -23,6 +23,7 @@ beforeAll(async () => {
mockInstance(InternalHooks);
mockInstance(LoadNodesAndCredentials);
await testDb.init();
await oclifConfig.load();
});
beforeEach(async () => {

View file

@ -44,6 +44,7 @@ beforeAll(async () => {
// from exiting properly.
mockInstance(WaitTracker);
await testDb.init();
await oclifConfig.load();
});
afterAll(async () => {

View file

@ -7,10 +7,13 @@ import * as testDb from '../../shared/testDb';
import { createWorkflowWithTrigger, getAllWorkflows } from '../../shared/db/workflows';
import { mockInstance } from '../../../shared/mocking';
const oclifConfig = new Config({ root: __dirname });
beforeAll(async () => {
mockInstance(InternalHooks);
mockInstance(LoadNodesAndCredentials);
await testDb.init();
await oclifConfig.load();
});
beforeEach(async () => {
@ -34,8 +37,7 @@ test('update:workflow can activate all workflows', async () => {
//
// ACT
//
const config = new Config({ root: __dirname });
const updater = new UpdateWorkflowCommand(['--all', '--active=true'], config);
const updater = new UpdateWorkflowCommand(['--all', '--active=true'], oclifConfig);
await updater.init();
await updater.run();
@ -59,8 +61,7 @@ test('update:workflow can deactivate all workflows', async () => {
//
// ACT
//
const config = new Config({ root: __dirname });
const updater = new UpdateWorkflowCommand(['--all', '--active=false'], config);
const updater = new UpdateWorkflowCommand(['--all', '--active=false'], oclifConfig);
await updater.init();
await updater.run();
@ -86,8 +87,10 @@ test('update:workflow can activate a specific workflow', async () => {
//
// ACT
//
const config = new Config({ root: __dirname });
const updater = new UpdateWorkflowCommand([`--id=${workflows[0].id}`, '--active=true'], config);
const updater = new UpdateWorkflowCommand(
[`--id=${workflows[0].id}`, '--active=true'],
oclifConfig,
);
await updater.init();
await updater.run();
@ -113,8 +116,10 @@ test('update:workflow can deactivate a specific workflow', async () => {
//
// ACT
//
const config = new Config({ root: __dirname });
const updater = new UpdateWorkflowCommand([`--id=${workflows[0].id}`, '--active=false'], config);
const updater = new UpdateWorkflowCommand(
[`--id=${workflows[0].id}`, '--active=false'],
oclifConfig,
);
await updater.init();
await updater.run();

View file

@ -41,6 +41,7 @@ beforeAll(async () => {
mockInstance(RedisServicePubSubSubscriber);
mockInstance(OrchestrationService);
await testDb.init();
await oclifConfig.load();
});
afterAll(async () => {

View file

@ -48,7 +48,7 @@
"@types/inquirer": "^6.5.0"
},
"dependencies": {
"@oclif/core": "3.18.1",
"@oclif/core": "3.26.6",
"change-case": "^4.1.1",
"fast-glob": "^3.2.5",
"inquirer": "^7.0.1",

File diff suppressed because it is too large Load diff