
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.
bookshelf-uuid
Advanced tools
Automatically generate UUIDs for your models
After installing bookshelf-uuid
with npm i --save bookshelf-uuid
,
all you need to do is add it as a bookshelf plugin and enable it on your models.
let knex = require('knex')(require('./knexfile.js').development)
let bookshelf = require('bookshelf')(knex)
// Add the plugin
bookshelf.plugin(require('bookshelf-uuid'))
// Enable it on your models
let User = bookshelf.Model.extend({ tableName: 'users', uuid: true })
Nothing fancy here, just keep using bookshelf as usual.
// This user is indestructible
let user = yield User.forge({ email: 'foo@bar' }).save()
console.log(user.id) // 6b7a192f-6e1c-4dcb-8e57-14ab16d5fdf4
bookshelf-uuid
generates UUIDs v4 by default, but you can easily switch to
v1 UUIDs or a custom generator.
bookshelf.plugin(require('bookshelf-uuid'), {
type: 'v1' // Or your own function
})
git clone git@github.com:estate/bookshelf-uuid.git
cd bookshelf-uuid && npm install && npm test
FAQs
Automatically generates UUID for your models
We found that bookshelf-uuid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.