Comparing version 1.0.1 to 1.1.0
1.1.0 / 2015-05-08 | ||
================== | ||
* feat: support promise | ||
1.0.1 / 2014-10-30 | ||
@@ -3,0 +8,0 @@ ================== |
module.exports = require('./lib/mm'); | ||
var enable = require('enable'); | ||
@@ -4,0 +3,0 @@ if (enable.generator) { |
@@ -23,3 +23,3 @@ /**! | ||
var semver = require('semver'); | ||
var thunkify = require('thunkify-wrap'); | ||
var thenify = require('thenify').withCallback; | ||
@@ -74,3 +74,3 @@ var mock = module.exports = function mock(obj, key, method) { | ||
timeout = timeout || 0; | ||
mock(mod, method, thunkify(function () { | ||
mock(mod, method, thenify(function () { | ||
var callback = getCallback(arguments); | ||
@@ -100,3 +100,3 @@ setTimeout(function () { | ||
} | ||
mock(mod, method, thunkify(function () { | ||
mock(mod, method, thenify(function () { | ||
var callback = getCallback(arguments); | ||
@@ -103,0 +103,0 @@ setTimeout(function () { |
{ | ||
"name": "mm", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "mock mate, mock http request, fs access and so on.", | ||
@@ -19,13 +19,13 @@ "main": "index.js", | ||
"co-sleep": "~0.0.1", | ||
"enable": "~1.0.2", | ||
"enable": "~3.3.0", | ||
"is-type-of": "~0.3.1", | ||
"muk": "~0.3.1", | ||
"semver": "~4.1.0", | ||
"thunkify-wrap": "~1.0.3" | ||
"muk": "~0.3.2", | ||
"semver": "~4.3.4", | ||
"thenify": "~3.1.0" | ||
}, | ||
"devDependencies": { | ||
"autod": "*", | ||
"autod": "~2.0.1", | ||
"blanket": "*", | ||
"chunkstream": "~0.0.1", | ||
"co": "~3.1.0", | ||
"co": "~4.5.4", | ||
"co-mocha": "*", | ||
@@ -35,2 +35,3 @@ "co-urllib": "~0.2.3", | ||
"coveralls": "*", | ||
"istanbul-harmony": "~0.3.12", | ||
"mocha": "*", | ||
@@ -40,4 +41,5 @@ "mocha-lcov-reporter": "*", | ||
"pedding": "~1.0.0", | ||
"should": "~4.1.0", | ||
"should": "~6.0.1", | ||
"should-http": "*", | ||
"thunkify-wrap": "~1.0.4", | ||
"travis-cov": "*" | ||
@@ -44,0 +46,0 @@ }, |
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
149233
23
795
17
+ Addedthenify@~3.1.0
+ Addedenable@3.3.0(transitive)
+ Addednative-or-bluebird@1.2.0(transitive)
+ Addedsemver@4.3.6(transitive)
+ Addedthenify@3.1.1(transitive)
- Removedthunkify-wrap@~1.0.3
- Removedenable@1.0.2(transitive)
- Removedsemver@4.1.1(transitive)
- Removedthunkify-wrap@1.0.4(transitive)
Updatedenable@~3.3.0
Updatedmuk@~0.3.2
Updatedsemver@~4.3.4