From 00f5d15490a23d04f6be54a3dd7ea8d4ea71bee0 Mon Sep 17 00:00:00 2001 From: Alison Aquinas Date: Sat, 4 Nov 2023 17:14:20 -0400 Subject: [PATCH 1/3] Switch to safe-utf 7 to avoid vulnerability notifications --- lib/Connection.js | 2 +- lib/Parser.js | 2 +- package.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Connection.js b/lib/Connection.js index bd31e98b..0e07c7cd 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -4,7 +4,7 @@ var tls = require('tls'), inherits = require('util').inherits, inspect = require('util').inspect, isDate = require('util').isDate, - utf7 = require('utf7').imap; + utf7 = require('safe-utf7').imap; var Parser = require('./Parser').Parser, parseExpr = require('./Parser').parseExpr, diff --git a/lib/Parser.js b/lib/Parser.js index 1dd386ba..2b369d2a 100644 --- a/lib/Parser.js +++ b/lib/Parser.js @@ -4,7 +4,7 @@ var EventEmitter = require('events').EventEmitter, inherits = require('util').inherits, inspect = require('util').inspect; -var utf7 = require('utf7').imap, +var utf7 = require('safe-utf7').imap, jsencoding; // lazy-loaded var CH_LF = 10, diff --git a/package.json b/package.json index 96633a11..e2b43832 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "imap", - "version": "0.8.19", + "version": "0.8.20", "author": "Brian White ", "description": "An IMAP module for node.js that makes communicating with IMAP servers easy", "main": "./lib/Connection", "dependencies": { - "utf7": ">=1.0.2" + "safe-utf7": ">=1.0.3" }, "scripts": { "test": "node test/test.js" From a084aae358a91c78561deeddc4144c1d217e26bb Mon Sep 17 00:00:00 2001 From: Alison Aquinas Date: Thu, 9 Nov 2023 19:23:42 -0500 Subject: [PATCH 2/3] Updating to a version with another PR that was never merged --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e2b43832..23b1424e 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "An IMAP module for node.js that makes communicating with IMAP servers easy", "main": "./lib/Connection", "dependencies": { - "safe-utf7": ">=1.0.3" + "safe-utf7": ">=1.0.4" }, "scripts": { "test": "node test/test.js" From 26884be6538ece05dd258dc4a92d80600707a84e Mon Sep 17 00:00:00 2001 From: Alison Aquinas Date: Thu, 9 Nov 2023 19:53:51 -0500 Subject: [PATCH 3/3] one mor bump to keep the package light --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 23b1424e..79266b9a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "An IMAP module for node.js that makes communicating with IMAP servers easy", "main": "./lib/Connection", "dependencies": { - "safe-utf7": ">=1.0.4" + "safe-utf7": ">=1.0.6" }, "scripts": { "test": "node test/test.js"