Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Puffer is an extendable Couchbase library for Hapi js. It uses Boom to return nicer DB errors and use Q to provide promises.
You can initialize it in your server and use it in your other files or even other plugins.
In your server.coffee have something like this:
Hapi = require 'hapi'
new require('puffer')( { host: '127.0.0.1', name: 'default' } )
Above line will create an instance of couchbase which you can use in your other files as an example in your userModel.coffee you can use this:
bucket = require('puffer').instance
bucket.insert( 'doc1', { color: 'red' } )
.then( (d) -> console.log d )
In your server.coffee have something like this:
Hapi = require 'hapi'
db = new require('puffer')( { host: '127.0.0.1', name: 'default' } )
server.register {
register: require('myPlugin'),
options: { bucket: db }
}, (err) ->
throw err if err
server.start()
Above line will create an instance of couchbase which you should pass to plugins. In your myPlugin module you can do this:
exports.register = (plugin, options, next) ->
bucket = options.bucket
bucket.insert( 'doc1', { color: 'red' } )
.then( (d) -> console.log d )
groc
, you can make a copy of in your local version.npm test
. Make sure you have development dependencies installed.FAQs
Extendable Couchbase ODM for Hapi js
The npm package puffer receives a total of 0 weekly downloads. As such, puffer popularity was classified as not popular.
We found that puffer 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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.