cls-bluebird
Advanced tools
Comparing version 1.1.2 to 1.1.3
# Changelog | ||
## 1.1.3 | ||
* Improved validation that `ns` argument is a namespace | ||
* Add npm keywords | ||
## 1.1.2 | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "cls-bluebird", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Make bluebird work with the continuation-local-storage module.", | ||
"main": "shim.js", | ||
"scripts": { | ||
"test": "tap test/*.tap.js" | ||
"test": "npm run jshint && npm run test-main", | ||
"test-main": "tap test/*.tap.js", | ||
"jshint": "jshint shim.js test" | ||
}, | ||
@@ -15,7 +17,14 @@ "repository": { | ||
"continuation-local-storage", | ||
"cls", | ||
"bluebird", | ||
"continuation", | ||
"local", | ||
"storage", | ||
"promise", | ||
"promises", | ||
"async", | ||
"thread", | ||
"glue", | ||
"baling-wire" | ||
"baling-wire", | ||
"patch" | ||
], | ||
@@ -35,4 +44,5 @@ "author": "Tim Beyer <tim.beyer@gmail.com>", | ||
"continuation-local-storage": "^3.1.7", | ||
"bluebird": "^2.10.2" | ||
"bluebird": "^2.10.2", | ||
"jshint": "^2.9.2" | ||
} | ||
} |
@@ -12,5 +12,3 @@ 'use strict'; | ||
module.exports = function patchBluebird(ns, Promise) { | ||
if (typeof ns.bind !== 'function') { | ||
throw new TypeError('must include namespace to patch bluebird against'); | ||
} | ||
if (!ns || typeof ns.bind !== 'function' || typeof ns.run !== 'function') throw new TypeError('must include namespace to patch bluebird against'); | ||
@@ -17,0 +15,0 @@ if (!Promise) { |
'use strict'; | ||
// jshint quotmark:false | ||
var test = require('tap').test; | ||
@@ -4,0 +6,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12278
5
121