Skip to content

Commit

Permalink
Merge: Update dependencies and expand ci target versions. (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
sttk committed Sep 21, 2020
2 parents 122d56d + 46ccb0a commit e90d6ea
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 28 deletions.
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ sudo: false
language: node_js

node_js:
- '14'
- '13'
- '12'
- '11'
- '10'
- '9'
- '8'
Expand All @@ -13,8 +17,13 @@ node_js:
- '0.12'
- '0.10'

before_install:
- if [ $(echo "${TRAVIS_NODE_VERSION}" | cut -d'.' -f1) -eq 5 ]; then
npm i -g npm@4;
fi

after_success:
- if [ $(echo "${TRAVIS_NODE_VERSION}" | cut -d'.' -f1) -ge 4 ]; then
- if [ $(echo "${TRAVIS_NODE_VERSION}" | cut -d'.' -f1) -ge 6 ]; then
npm run coveralls;
fi

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2016 Takayuki Sato
Copyright (c) 2016-2020 Takayuki Sato

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Executes the *fn* function for all properties.

## License

Copyright (C) 2016-2018 Takayuki Sato
Copyright (C) 2016-2020 Takayuki Sato

This program is free software under [MIT][mit-url] License.
See the file LICENSE in this distribution for more details.
Expand Down
7 changes: 6 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
environment:
matrix:
# node.js
- nodejs_version: "14"
- nodejs_version: "13"
- nodejs_version: "12"
- nodejs_version: "11"
- nodejs_version: "10"
- nodejs_version: "9"
- nodejs_version: "8"
Expand All @@ -16,7 +20,8 @@ environment:

install:
- ps: Install-Product node $env:nodejs_version
- npm install
- ps: if ($env:nodejs_version -eq '5') { npm i -g npm@4 }
- cmd: npm install

test_script:
- node --version
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var isPlainObject = require('is-plain-object');
var isPlainObject = require('is-plain-object').isPlainObject;
var defaults = require('object.defaults/immutable');

module.exports = function(obj, fn, opts) {
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@
},
"homepage": "https://github.com/sttk/each-props#readme",
"dependencies": {
"is-plain-object": "^2.0.1",
"is-plain-object": "^5.0.0",
"object.defaults": "^1.1.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"
}
}
29 changes: 15 additions & 14 deletions web/each-props.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.eachProps = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
'use strict';

var isPlainObject = require('is-plain-object');
var isPlainObject = require('is-plain-object').isPlainObject;
var defaults = require('object.defaults/immutable');

module.exports = function(obj, fn, opts) {
Expand Down Expand Up @@ -180,34 +180,33 @@ module.exports = function forOwn(obj, fn, thisArg) {
};

},{"for-in":4}],6:[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 @@ -216,9 +215,11 @@ module.exports = function isPlainObject(o) {

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

exports.isPlainObject = isPlainObject;

},{"isobject":7}],7:[function(require,module,exports){
},{}],7:[function(require,module,exports){
/*!
* isobject <https://github.com/jonschlinkert/isobject>
*
Expand Down
2 changes: 1 addition & 1 deletion web/each-props.min.js

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

2 changes: 1 addition & 1 deletion web/each-props.min.js.map

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

0 comments on commit e90d6ea

Please sign in to comment.