Skip to content

Commit 716a32c

Browse files
committed
Remove unused dependency
1 parent dd41c3b commit 716a32c

File tree

4 files changed

+1
-35
lines changed

4 files changed

+1
-35
lines changed

lib/utils/validateTypes/index.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { isPlainObject as _isPlainObject } from "is-plain-object"
2-
31
/**
42
* Checks if the value is a boolean or a Boolean object.
53
* @param {unknown} value
@@ -64,15 +62,6 @@ export function isString (value) {
6462
return typeof value === `string` || value instanceof String
6563
}
6664

67-
/**
68-
* Checks if the value is a plain object.
69-
* @param {unknown} value
70-
* @returns {value is Record<string, unknown>}
71-
*/
72-
export function isPlainObject (value) {
73-
return _isPlainObject(value)
74-
}
75-
7665
/**
7766
* Assert that the value is truthy.
7867
* @param {unknown} value
@@ -96,15 +85,6 @@ export function assertFunction (value) {
9685
console.assert(isFunction(value), `"${value}" must be a function`)
9786
}
9887

99-
/**
100-
* Assert that the value is a number or a Number object.
101-
* @param {unknown} value
102-
* @returns {asserts value is number}
103-
*/
104-
export function assertNumber (value) {
105-
console.assert(isNumber(value), `"${value}" must be a number`)
106-
}
107-
10888
/**
10989
* Assert that the value is a string or a String object.
11090
* @param {unknown} value

lib/utils/validateTypes/index.test.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { equal } from "node:assert/strict"
22
import { describe, it } from "node:test"
33

4-
import { isBoolean, isFunction, isNullish, isNumber, isObject, isPlainObject, isRegExp, isString } from "./index.js"
4+
import { isBoolean, isFunction, isNullish, isNumber, isObject, isRegExp, isString } from "./index.js"
55

66
describe(`isBoolean()`, () => {
77
it(`returns true when a boolean value is specified`, () => {
@@ -92,13 +92,3 @@ describe(`isString()`, () => {
9292
equal(isString(null), false)
9393
})
9494
})
95-
96-
describe(`isPlainObject()`, () => {
97-
it(`returns true when a plain object is specified`, () => {
98-
equal(isPlainObject({}), true)
99-
})
100-
101-
it(`returns false when a plain object is not specified`, () => {
102-
equal(isPlainObject(null), false)
103-
})
104-
})

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"@csstools/css-parser-algorithms": "^3.0.5",
3232
"@csstools/css-tokenizer": "^3.0.4",
3333
"@csstools/media-query-list-parser": "^4.0.3",
34-
"is-plain-object": "^5.0.0",
3534
"postcss": "^8.5.6",
3635
"postcss-selector-parser": "^7.1.0",
3736
"postcss-value-parser": "^4.2.0",

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)