@ttoss/postgresdb
Advanced tools
@@ -17,7 +17,7 @@ /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */ | ||
| }) => { | ||
| const username = process.env.DB_USERNAME, | ||
| password = process.env.DB_PASSWORD, | ||
| database = process.env.DB_NAME, | ||
| host = process.env.DB_HOST, | ||
| port = Number(process.env.DB_PORT) || 5432; | ||
| const username = process.env.DATABASE_USER, | ||
| password = process.env.DATABASE_PASSWORD, | ||
| database = process.env.DATABASE_NAME, | ||
| host = process.env.DATABASE_HOST, | ||
| port = Number(process.env.DATABASE_PORT) || 5432; | ||
| if (!sequelize) { | ||
@@ -24,0 +24,0 @@ sequelize = new Sequelize({ |
+2
-2
| { | ||
| "name": "@ttoss/postgresdb", | ||
| "version": "0.2.25", | ||
| "version": "0.2.27", | ||
| "description": "A library to handle PostgreSQL database connections and queries", | ||
@@ -12,3 +12,3 @@ "license": "MIT", | ||
| "type": "git", | ||
| "url": "https://github.com/ttoss/ttoss.git", | ||
| "url": "git+https://github.com/ttoss/ttoss.git", | ||
| "directory": "packages/postgresdb" | ||
@@ -15,0 +15,0 @@ }, |
+5
-5
@@ -101,7 +101,7 @@ # @ttoss/postgresdb | ||
| ```env | ||
| DB_NAME=postgres | ||
| DB_USERNAME=postgres | ||
| DB_PASSWORD=mysecretpassword | ||
| DB_HOST=localhost | ||
| DB_PORT=5432 | ||
| DATABASE_NAME=postgres | ||
| DATABASE_USER=postgres | ||
| DATABASE_PASSWORD=mysecretpassword | ||
| DATABASE_HOST=localhost | ||
| DATABASE_PORT=5432 | ||
| ``` | ||
@@ -108,0 +108,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
12683
0.44%1
Infinity%