
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@gitsense/gscb-db
Advanced tools
A database library for GitSense Chat Bridge (GSCB) that provides a clean and type-safe interface for database operations.
npm install gscb-db
import { DatabaseClient, DatabaseConfig } from '@gitsense/gscb-db';
// Configure the database
const config: DatabaseConfig = {
path: './data.db',
poolSize: 5,
timeout: 5000,
verbose: false
};
// Create and initialize the client
const client = new DatabaseClient(config);
await client.initialize();
// Use the services
const groupId = await client.groups.createGroup({
name: 'My Group',
type: 'git-repo',
gitMeta: {
type: 'repo',
path: '/path/to/repo',
bare: false,
importedAt: new Date().toISOString()
}
});
// Close the client when done
await client.close();
The main client class that provides access to all services.
const client = new DatabaseClient(config);
await client.initialize();
// Access services
client.groups // GroupService
client.chats // ChatService
client.messages // MessageService
client.prompts // PromptService
Each service provides CRUD operations for its respective entity:
createX
: Create a new entitygetXById
: Get an entity by IDupdateX
: Update an existing entitydeleteX
: Delete an entityThe library provides specific error types for different scenarios:
GSCBError
: Base error classDatabaseError
: Database-related errorsConnectionError
: Connection issuesQueryError
: SQL query errorsValidationError
: Data validation errorsNotFoundError
: Resource not foundMIT
FAQs
Database library for GitSense Chat Bridge (GSCB)
The npm package @gitsense/gscb-db receives a total of 14 weekly downloads. As such, @gitsense/gscb-db popularity was classified as not popular.
We found that @gitsense/gscb-db demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.