Skip to content

Commit

Permalink
Remove is-plain-object dependency
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Wubben <[email protected]>
  • Loading branch information
Conaclos and novemberborn authored Feb 16, 2020
1 parent 5f56fc2 commit e43f188
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
const path = require('path');

const escapeStringRegexp = require('escape-string-regexp');
const isPlainObject = require('is-plain-object');

const pkg = require('./package.json');

function isPlainObject(x) {
return x !== null && typeof x === 'object' && Reflect.getPrototypeOf(x) === Object.prototype;
}

function isValidExtensions(extensions) {
return Array.isArray(extensions) &&
extensions.length > 0 &&
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
"test": "xo && nyc ava"
},
"dependencies": {
"escape-string-regexp": "^2.0.0",
"is-plain-object": "^3.0.0"
"escape-string-regexp": "^2.0.0"
},
"devDependencies": {
"ava": "^3.0.0",
Expand Down

0 comments on commit e43f188

Please sign in to comment.