
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
@obi-tec/manager-postgres-database
Advanced tools
A simple library to help developers to manage connections and queries on postgres database
🚀 A simple library to help developers to manage connections and queries on postgres database
npm install @obi-tec/manager-postgres-database
See all tags clicking here.
const { DatabaseConnection } = require('@obi-tec/manager-postgres-database');
DatabaseConnection.getInstance(
'default',
true,
connectionSettings : {
application_name : '',
min : 0,
max : 1,
host : 'localhost',
port : '5432',
user : 'postgres',
password : 'postgres',
database : 'postgres'
},
enableLogs : false,
camelizeKeys : true
);
We are used to using two types of instances: read and write. By the way, when you will use this function, remember to inform which of the options you wanna use.
Example:
const query = 'SELECT * FROM user WHERE id = $1';
const userId = 1;
await DatabaseConnection.getInstance().connect();
// passing true value if you want to use database read-only
// await DatabaseConnection.getInstance(true).connect();
const user = await DatabaseConnection.getInstance().queryFirstOrNull('getUserById', query, [userId]);
await DatabaseConnection.getInstance().closeConnection();
FAQs
A simple library to help developers to manage connections and queries on postgres database
We found that @obi-tec/manager-postgres-database demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.