We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f56fc2 commit e43f188Copy full SHA for e43f188
index.js
@@ -2,10 +2,13 @@
2
const path = require('path');
3
4
const escapeStringRegexp = require('escape-string-regexp');
5
-const isPlainObject = require('is-plain-object');
6
7
const pkg = require('./package.json');
8
+function isPlainObject(x) {
9
+ return x !== null && typeof x === 'object' && Reflect.getPrototypeOf(x) === Object.prototype;
10
+}
11
+
12
function isValidExtensions(extensions) {
13
return Array.isArray(extensions) &&
14
extensions.length > 0 &&
package.json
@@ -19,8 +19,7 @@
19
"test": "xo && nyc ava"
20
},
21
"dependencies": {
22
- "escape-string-regexp": "^2.0.0",
23
- "is-plain-object": "^3.0.0"
+ "escape-string-regexp": "^2.0.0"
24
25
"devDependencies": {
26
"ava": "^3.0.0",
0 commit comments