Skip to content

Commit b39ae93

Browse files
committed
3.2.1
1 parent 737df04 commit b39ae93

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

dist/testdouble.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
2+
33
*
44
* A minimal test double library for TDD with JavaScript
55
*
@@ -10085,13 +10085,17 @@ var _lodash = require('../../wrap/lodash');
1008510085

1008610086
var _lodash2 = _interopRequireDefault(_lodash);
1008710087

10088+
var _isPrimitiveLike = require('./is-primitive-like');
10089+
10090+
var _isPrimitiveLike2 = _interopRequireDefault(_isPrimitiveLike);
10091+
1008810092
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1008910093

1009010094
exports.default = function (thing) {
1009110095
var originalThing = thing;
1009210096
var props = {};
1009310097

10094-
while (!isNativePrototype(thing)) {
10098+
while (!(0, _isPrimitiveLike2.default)(thing) && !isNativePrototype(thing)) {
1009510099
Object.getOwnPropertyNames(thing).forEach(function (propName) {
1009610100
if (!props[propName] && propName !== 'constructor') {
1009710101
props[propName] = Object.getOwnPropertyDescriptor(thing, propName);
@@ -10118,7 +10122,7 @@ var removeAbsentProperties = function removeAbsentProperties(props, originalThin
1011810122
});
1011910123
};
1012010124

10121-
},{"../../wrap/lodash":336}],310:[function(require,module,exports){
10125+
},{"../../wrap/lodash":336,"./is-primitive-like":311}],310:[function(require,module,exports){
1012210126
'use strict';
1012310127

1012410128
Object.defineProperty(exports, "__esModule", {
@@ -11287,7 +11291,7 @@ var ignoreMessage = function ignoreMessage(config) {
1128711291
Object.defineProperty(exports, "__esModule", {
1128811292
value: true
1128911293
});
11290-
exports.default = '3.2.0';
11294+
exports.default = '3.2.1';
1129111295

1129211296
},{}],335:[function(require,module,exports){
1129311297
'use strict';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "testdouble",
3-
"version": "3.2.0",
3+
"version": "3.2.1",
44
"description": "A minimal test double library for TDD with JavaScript",
55
"homepage": "https://github.com/testdouble/testdouble.js",
66
"author": {

src/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default '3.2.0'
1+
export default '3.2.1'

0 commit comments

Comments
 (0)