Skip to content

Commit

Permalink
Build: Update versions of dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sttk committed Sep 21, 2020
1 parent 69ef436 commit f60b928
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 34 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

var eachProps = require('each-props');
var isPlainObject = require('is-plain-object');
var isPlainObject = require('is-plain-object').isPlainObject;

module.exports = function(src, dst, fromto, converter, reverse) {

Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@
},
"homepage": "https://github.com/sttk/copy-props#readme",
"dependencies": {
"each-props": "^1.3.0",
"is-plain-object": "^2.0.1"
"each-props": "^1.3.2",
"is-plain-object": "^5.0.0"
},
"devDependencies": {
"browserify": "^16.2.2",
"browserify": "^16.5.2",
"chai": "^3.5.0",
"coveralls": "^3.0.1",
"eslint": "^4.19.1",
"mocha": "^3.2.0",
"nyc": "^11.7.2",
"uglify-js": "^3.3.24"
"coveralls": "^3.1.0",
"eslint": "^7.9.0",
"mocha": "^3.5.3",
"nyc": "^15.1.0",
"uglify-js": "^3.10.4"
}
}
2 changes: 1 addition & 1 deletion test/copy-props-proc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var copyProps = require('..');
var chai = require('chai');
var expect = chai.expect;

/* eslint max-statements: "off", branch-style: "off" */
/* eslint max-statements: "off" */

describe('Processing', function() {

Expand Down
2 changes: 1 addition & 1 deletion test/web/copy-props-proc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

var expect = chai.expect;

/* eslint max-statements: "off", branch-style: "off" */
/* eslint max-statements: "off" */

describe('Processing', function() {

Expand Down
82 changes: 61 additions & 21 deletions web/copy-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict';

var eachProps = require('each-props');
var isPlainObject = require('is-plain-object');
var isPlainObject = require('is-plain-object').isPlainObject;

module.exports = function(src, dst, fromto, converter, reverse) {

Expand Down Expand Up @@ -226,7 +226,7 @@ function isObject(v) {
return Object.prototype.toString.call(v) === '[object Object]';
}

},{"each-props":4,"is-plain-object":7}],2:[function(require,module,exports){
},{"each-props":4,"is-plain-object":8}],2:[function(require,module,exports){
/*!
* array-each <https://github.com/jonschlinkert/array-each>
*
Expand Down Expand Up @@ -368,7 +368,46 @@ function isObject(v) {
}


},{"is-plain-object":7,"object.defaults/immutable":9}],5:[function(require,module,exports){
},{"is-plain-object":5,"object.defaults/immutable":10}],5:[function(require,module,exports){
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/

'use strict';

var isObject = require('isobject');

function isObjectObject(o) {
return isObject(o) === true
&& Object.prototype.toString.call(o) === '[object Object]';
}

module.exports = function isPlainObject(o) {
var ctor,prot;

if (isObjectObject(o) === false) return false;

// If has modified constructor
ctor = o.constructor;
if (typeof ctor !== 'function') return false;

// If has modified prototype
prot = ctor.prototype;
if (isObjectObject(prot) === false) return false;

// If constructor does not have an Object-specific method
if (prot.hasOwnProperty('isPrototypeOf') === false) {
return false;
}

// Most likely a plain Object
return true;
};

},{"isobject":9}],6:[function(require,module,exports){
/*!
* for-in <https://github.com/jonschlinkert/for-in>
*
Expand All @@ -386,7 +425,7 @@ module.exports = function forIn(obj, fn, thisArg) {
}
};

},{}],6:[function(require,module,exports){
},{}],7:[function(require,module,exports){
/*!
* for-own <https://github.com/jonschlinkert/for-own>
*
Expand All @@ -407,35 +446,34 @@ module.exports = function forOwn(obj, fn, thisArg) {
});
};

},{"for-in":5}],7:[function(require,module,exports){
},{"for-in":6}],8:[function(require,module,exports){
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/

'use strict';

var isObject = require('isobject');

function isObjectObject(o) {
return isObject(o) === true
&& Object.prototype.toString.call(o) === '[object Object]';
function isObject(o) {
return Object.prototype.toString.call(o) === '[object Object]';
}

module.exports = function isPlainObject(o) {
function isPlainObject(o) {
var ctor,prot;

if (isObjectObject(o) === false) return false;
if (isObject(o) === false) return false;

// If has modified constructor
ctor = o.constructor;
if (typeof ctor !== 'function') return false;
if (ctor === undefined) return true;

// If has modified prototype
prot = ctor.prototype;
if (isObjectObject(prot) === false) return false;
if (isObject(prot) === false) return false;

// If constructor does not have an Object-specific method
if (prot.hasOwnProperty('isPrototypeOf') === false) {
Expand All @@ -444,9 +482,11 @@ module.exports = function isPlainObject(o) {

// Most likely a plain Object
return true;
};
}

},{"isobject":8}],8:[function(require,module,exports){
exports.isPlainObject = isPlainObject;

},{}],9:[function(require,module,exports){
/*!
* isobject <https://github.com/jonschlinkert/isobject>
*
Expand All @@ -460,7 +500,7 @@ module.exports = function isObject(val) {
return val != null && typeof val === 'object' && Array.isArray(val) === false;
};

},{}],9:[function(require,module,exports){
},{}],10:[function(require,module,exports){
'use strict';

var slice = require('array-slice');
Expand All @@ -482,7 +522,7 @@ module.exports = function immutableDefaults() {
return defaults.apply(null, [{}].concat(args));
};

},{"./mutable":10,"array-slice":3}],10:[function(require,module,exports){
},{"./mutable":11,"array-slice":3}],11:[function(require,module,exports){
'use strict';

var each = require('array-each');
Expand Down Expand Up @@ -519,5 +559,5 @@ module.exports = function defaults(target, objects) {
return target;
};

},{"array-each":2,"array-slice":3,"for-own":6,"isobject":8}]},{},[1])(1)
},{"array-each":2,"array-slice":3,"for-own":7,"isobject":9}]},{},[1])(1)
});
2 changes: 1 addition & 1 deletion web/copy-props.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f60b928

Please sign in to comment.