Socket
Socket
Sign inDemoInstall

mm

Package Overview
Dependencies
1
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.5 to 0.1.6

5

History.md
0.1.6 / 2013-07-04
==================
* update muk to 0.3.1, it had fixed https://github.com/fent/node-muk/pull/2 bug
0.1.5 / 2013-07-03

@@ -3,0 +8,0 @@ ==================

19

lib/mm.js

@@ -20,16 +20,3 @@ /*!

// hotfix for https://github.com/fent/node-muk/pull/2
var mocks = [];
var mock = module.exports = function mock(obj, key, method) {
// hotfix for https://github.com/fent/node-muk/pull/2
if (typeof obj !== 'string') {
mocks.push({
obj: obj,
key: key,
original: obj[key]
});
obj[key] = method === undefined ? function () {} : method;
return;
}
return muk.apply(null, arguments);

@@ -356,9 +343,3 @@ };

muk.restore();
// hotfix for https://github.com/fent/node-muk/pull/2
for (var i = mocks.length - 1; i >= 0; i--) {
var m = mocks[i];
m.obj[m.key] = m.original;
}
mocks = [];
return this;
};

4

package.json
{
"name": "mm",
"version": "0.1.5",
"version": "0.1.6",
"description": "mock mate, mock http request, fs access and so on.",

@@ -19,3 +19,3 @@ "main": "index.js",

"dependencies": {
"muk": ">=0.3.0"
"muk": ">=0.3.1"
},

@@ -22,0 +22,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc