Skip to content

Commit

Permalink
fix: Upgrade amqplib to address CVE-2022-0686 (#4972)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored Dec 19, 2022
1 parent 3754c49 commit 570ed3b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 31 deletions.
6 changes: 0 additions & 6 deletions packages/nodes-base/nodes/RabbitMQ/GenericFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ import { IDataObject, IExecuteFunctions, ITriggerFunctions, sleep } from 'n8n-wo

import * as amqplib from 'amqplib';

declare module 'amqplib' {
interface Channel {
connection: amqplib.Connection;
}
}

export async function rabbitmqConnect(
this: IExecuteFunctions | ITriggerFunctions,
options: IDataObject,
Expand Down
4 changes: 2 additions & 2 deletions packages/nodes-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@
]
},
"devDependencies": {
"@types/amqplib": "^0.8.2",
"@types/amqplib": "^0.10.1",
"@types/aws4": "^1.5.1",
"@types/basic-auth": "^1.1.2",
"@types/cheerio": "^0.22.15",
Expand Down Expand Up @@ -758,7 +758,7 @@
"dependencies": {
"@kafkajs/confluent-schema-registry": "1.0.6",
"@types/js-nacl": "^1.3.0",
"amqplib": "^0.8.0",
"amqplib": "^0.10.3",
"aws4": "^1.8.0",
"basic-auth": "^2.0.1",
"change-case": "^4.1.1",
Expand Down
44 changes: 21 additions & 23 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 570ed3b

Please sign in to comment.