Skip to content

Commit 8349de4

Browse files
danezkodiakhq[bot]
andauthored
fix: remove dependency is-plain-obj (#5702)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 769e345 commit 8349de4

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

package-lock.json

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@
134134
"inquirer": "6.5.2",
135135
"inquirer-autocomplete-prompt": "1.4.0",
136136
"is-docker": "3.0.0",
137-
"is-plain-obj": "4.1.0",
138137
"is-wsl": "2.2.0",
139138
"isexe": "2.0.0",
140139
"jsonwebtoken": "9.0.0",

src/utils/detect-server-settings.mjs

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { NodeFS } from '@netlify/build-info/node'
1010
import { getFramework, listFrameworks } from '@netlify/framework-info'
1111
import fuzzy from 'fuzzy'
1212
import getPort from 'get-port'
13-
import isPlainObject from 'is-plain-obj'
1413

1514
import { NETLIFYDEVWARN, chalk, log } from './command-helpers.mjs'
1615
import { acquirePort } from './dev.mjs'
@@ -21,7 +20,7 @@ const formatProperty = (str) => chalk.magenta(`'${str}'`)
2120
const formatValue = (str) => chalk.green(`'${str}'`)
2221

2322
const readHttpsSettings = async (options) => {
24-
if (!isPlainObject(options)) {
23+
if (typeof options !== 'object' || !options.keyFile || !options.certFile) {
2524
throw new TypeError(
2625
`https options should be an object with ${formatProperty('keyFile')} and ${formatProperty(
2726
'certFile',

0 commit comments

Comments
 (0)