From 068b18320816a1a7d3f738892f8feb1e44b57070 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 24 Jul 2024 06:32:31 +0000 Subject: [PATCH] fix: package.json & package-lock.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-MYSQL2-6591085 - https://snyk.io/vuln/SNYK-JS-MYSQL2-6670046 - https://snyk.io/vuln/SNYK-JS-MYSQL2-6861580 - https://snyk.io/vuln/SNYK-JS-MYSQL2-6591084 - https://snyk.io/vuln/SNYK-JS-MYSQL2-6591300 --- package-lock.json | 62 +++++++++++++++-------------------------------- package.json | 2 +- 2 files changed, 21 insertions(+), 43 deletions(-) diff --git a/package-lock.json b/package-lock.json index 90f7bd4a..86f89578 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@deepgram/sdk": "^1.21.0", "@google-cloud/speech": "^6.5.0", "@google-cloud/storage": "^7.9.0", - "@jambonz/db-helpers": "^0.9.3", + "@jambonz/db-helpers": "^0.9.5", "@jambonz/lamejs": "^1.2.2", "@jambonz/mw-registrar": "^0.2.7", "@jambonz/realtimedb-helpers": "^0.8.9", @@ -1948,51 +1948,18 @@ } }, "node_modules/@jambonz/db-helpers": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/@jambonz/db-helpers/-/db-helpers-0.9.3.tgz", - "integrity": "sha512-3XFs7NC7J7Q/eb1CwG1YJHa6N4elh8IP/4hMMDgoM9U5Loplx61XI4nZ58FIrY3C/F6gEF4UdjqKvbusEVw7cQ==", + "version": "0.9.5", + "resolved": "https://registry.npmjs.org/@jambonz/db-helpers/-/db-helpers-0.9.5.tgz", + "integrity": "sha512-2GTaKQHaGwHsBkTgWXDOiI0J9l0eq74YyxeMpqLruHnd3lMUlIDVvfuyINOfBR7NbnosML6UIW9dFJ4+yk+pQg==", + "license": "MIT", "dependencies": { "cidr-matcher": "^2.1.1", "debug": "^4.3.4", - "mysql2": "^2.3.3", + "mysql2": "^3.9.7", "node-object-hash": "^2.3.10", "uuid": "^8.3.2" } }, - "node_modules/@jambonz/db-helpers/node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@jambonz/db-helpers/node_modules/long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" - }, - "node_modules/@jambonz/db-helpers/node_modules/mysql2": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-2.3.3.tgz", - "integrity": "sha512-wxJUev6LgMSgACDkb/InIFxDprRa6T95+VEoR+xPvtngtccNH2dGjEB/fVZ8yg1gWv1510c9CvXuJHi5zUm0ZA==", - "dependencies": { - "denque": "^2.0.1", - "generate-function": "^2.3.1", - "iconv-lite": "^0.6.3", - "long": "^4.0.0", - "lru-cache": "^6.0.0", - "named-placeholders": "^1.1.2", - "seq-queue": "^0.0.5", - "sqlstring": "^2.3.2" - }, - "engines": { - "node": ">= 8.0" - } - }, "node_modules/@jambonz/db-helpers/node_modules/uuid": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", @@ -3434,6 +3401,15 @@ "node": "*" } }, + "node_modules/aws-ssl-profiles": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/aws-ssl-profiles/-/aws-ssl-profiles-1.1.1.tgz", + "integrity": "sha512-+H+kuK34PfMaI9PNU/NSjBKL5hh/KDM9J72kwYeYEm0A8B1AC4fuCy3qsjnA7lxklgyXsB68yn8Z2xoZEjgwCQ==", + "license": "MIT", + "engines": { + "node": ">= 6.0.0" + } + }, "node_modules/aws4": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.12.0.tgz", @@ -6909,10 +6885,12 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "node_modules/mysql2": { - "version": "3.9.3", - "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.9.3.tgz", - "integrity": "sha512-+ZaoF0llESUy7BffccHG+urErHcWPZ/WuzYAA9TEeLaDYyke3/3D+VQDzK9xzRnXpd0eMtRf0WNOeo4Q1Baung==", + "version": "3.10.3", + "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.10.3.tgz", + "integrity": "sha512-k43gmH9i79rZD4hGPdj7pDuT0UBiFjs4UzXEy1cJrV0QqcSABomoLwvejqdbcXN+Vd7gi999CVM6o9vCPKq29g==", + "license": "MIT", "dependencies": { + "aws-ssl-profiles": "^1.1.1", "denque": "^2.1.0", "generate-function": "^2.3.1", "iconv-lite": "^0.6.3", diff --git a/package.json b/package.json index 1470bd7b..55caf927 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "@deepgram/sdk": "^1.21.0", "@google-cloud/speech": "^6.5.0", "@google-cloud/storage": "^7.9.0", - "@jambonz/db-helpers": "^0.9.3", + "@jambonz/db-helpers": "^0.9.5", "@jambonz/lamejs": "^1.2.2", "@jambonz/mw-registrar": "^0.2.7", "@jambonz/realtimedb-helpers": "^0.8.9",