copy-descriptor
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -51,3 +51,3 @@ /*! | ||
module.exports = function copyDescriptor(receiver, provider, from, to) { | ||
if (!isObject(provider)) { | ||
if (!isObject(provider) && typeof provider !== 'function') { | ||
to = from; | ||
@@ -57,7 +57,6 @@ from = provider; | ||
} | ||
if (!isObject(receiver)) { | ||
if (!isObject(receiver) && typeof receiver !== 'function') { | ||
throw new TypeError('expected the first argument to be an object'); | ||
} | ||
if (!isObject(provider)) { | ||
if (!isObject(provider) && typeof provider !== 'function') { | ||
throw new TypeError('expected provider to be an object'); | ||
@@ -64,0 +63,0 @@ } |
{ | ||
"name": "copy-descriptor", | ||
"description": "Copy a descriptor from object A to object B", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/jonschlinkert/copy-descriptor", | ||
@@ -23,4 +23,4 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"devDependencies": { | ||
"gulp-format-md": "^0.1.4", | ||
"mocha": "*" | ||
"gulp-format-md": "^0.1.9", | ||
"mocha": "^2.5.3" | ||
}, | ||
@@ -32,2 +32,10 @@ "keywords": [ | ||
"verb": { | ||
"toc": false, | ||
"layout": "default", | ||
"tasks": [ | ||
"readme" | ||
], | ||
"plugins": [ | ||
"gulp-format-md" | ||
], | ||
"related": { | ||
@@ -42,7 +50,10 @@ "list": [ | ||
}, | ||
"plugins": [ | ||
"gulp-format-md" | ||
], | ||
"layout": "default" | ||
"lint": { | ||
"reflinks": true | ||
}, | ||
"reflinks": [ | ||
"verb-readme-generator", | ||
"verb" | ||
] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
4148
3
1
0