Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
dynogels-promise
Advanced tools
This package was created for two main reasons:
the maintainer of dynogels has not fixed a vulnerability that exists in the package eventhough a PR has been submitted for fixing that close to year now. See here
The promisified version, dynogels-promisified of that package also has outdated dependencies. The PR submitted there is also almost a year.
The projects is great, so decided to combine the both projects and deploy it as dynogels-promise
> npm install dynogels-promise
All methods available in dynogels have been promisified and and can be assessed under the same name
Also Async
versions of the methods that were available in dynogels-promisified are also available for backward-compatibility. So you can replace dynogels-promisified with this package, and will still work perfectly.
const dynogels = require('dynogels-promise')
const Todo = dynogels.define('Todo', {
timestamps: true,
hashKey: 'id',
schema: {
id: joi.string().required(),
done: joi.boolean.default(false),
content: joi.string().required()
}
})
//=> Create Todo
const newTodo = await Todo.create({ id: uuid(), content: 'Write this doc' })
const newTodo = await Todo.createAsync({ id: uuid(), content: 'Write this doc' }) // backward compatibility
//=> Get a Todo item
const todo = await Todo.get('4549b30d-4a4a-4230-82d4-3286c9348d24')
const todo = await Todo.getAsync('4549b30d-4a4a-4230-82d4-3286c9348d24') // backward compatibility
FAQs
Promisified dynogels module
The npm package dynogels-promise receives a total of 18 weekly downloads. As such, dynogels-promise popularity was classified as not popular.
We found that dynogels-promise demonstrated a not healthy version release cadence and project activity because the last version was released 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.