
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Unstable
Static typed facade for IndexedDB with simple API.
type ACME = {
Users: {
Key: number
Doc: {
name: {
first: string
last: string
}
age: number
}
Indexes: {
names: [ string, string ]
ages: [ number ]
}
}
Articles: {
Key: string
Doc: {
title: string
content: string
}
Indexes: {
full: [ string, string ]
}
}
}
const db = await $$.$mol_db< ACME >( 'ACME' )
const db = await $$.$mol_db< ACME >( 'ACME',
mig => mig.store_make( 'Users' )
mig => mig.stores.Users.index_make( 'ages', [ 'age' ] )
mig => mig.stores.Users.index_make( 'names', [ 'name.first', 'name.last' ], !!'unique' )
mig => mig.store_make( 'Articles' )
mig => mig.stores.Articles.index_make( 'full', [ 'title', 'content' ] )
// mig => mig.stores.Articles.index_drop( 'full' )
// mig => mig.store_drop( 'Articles' )
)
There is 5 migrations. And DB version is 6.
db.destructor()
db.kill()
const { Users, Articles } = db.read( 'Users', 'Articles' )
const trans = db.read( 'Users', 'Articles' )
const { Users, Articles } = trans.stores
// ...
trans.abort()
// or
await trans.commit()
Uncommited transaction without errors will be commitetd automatically. Any modification error aborts transaction.
const key = await Users.put({
first: 'Jin',
last: 'Nin',
age: 36,
})
await Users.put( {
first: 'Jin',
last: 'Nin',
age: 37,
}, 1 )
const [ user ]= await Users.get( 1 )
const users = await Users.get( IDBKeyRange.bound( 10, 50 ), 10 )
const count = await Users.count( IDBKeyRange.bound( 10, 50 ) )
const { names, ages } = users.indexes
const [ user ]= await names.get([ 'Jin', 'Nin' ])
const users = await ages.get( [ 18 ], 10 )
const count = await Users.count([ 18 ])
FAQs
Static typed facade for [IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API) with simple API.
We found that mol_db demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.