Skip to content

Commit

Permalink
expose JSONB wrap for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictarr committed May 21, 2013
1 parent 296287b commit 2670d73
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions jsonb.js
Expand Up @@ -3,6 +3,10 @@ var serializer = require('stream-serializer')

var inject = require('./inject')

module.exports = inject(function (stream) {
function wrap (stream) {
return serializer.json(stream, JSONB)
})
}

module.exports = inject(wrap)

module.exports.wrap = wrap

0 comments on commit 2670d73

Please sign in to comment.