netlify-cli 19.0.0 → 19.0.1-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"framework-server.d.ts","sourceRoot":"","sources":["../../src/utils/framework-server.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAK3C,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,uBAG9B;IACD,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,cAAc,CAAA;CACzB,KAAG,OAAO,CAAC,iBAAiB,CAmD5B,CAAA"}
1
+ {"version":3,"file":"framework-server.d.ts","sourceRoot":"","sources":["../../src/utils/framework-server.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAK3C,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,uBAG9B;IACD,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,cAAc,CAAA;CACzB,KAAG,OAAO,CAAC,iBAAiB,CAmD5B,CAAA"}
@@ -1,3 +1,4 @@
1
+ import dns from 'node:dns/promises';
1
2
  import { rm } from 'node:fs/promises';
2
3
  import waitPort from 'wait-port';
3
4
  import { startSpinner, stopSpinner } from '../lib/spinner.js';
@@ -28,8 +29,8 @@ export const startFrameworkServer = async function ({ cwd, settings, }) {
28
29
  let port;
29
30
  try {
30
31
  if (settings.skipWaitPort) {
31
- // default ip version based on node version
32
- const ipVersion = parseInt(process.versions.node.split('.')[0]) >= 18 ? 6 : 4;
32
+ const ipInfo = await dns.lookup('localhost');
33
+ const ipVersion = ipInfo?.family || 4;
33
34
  port = { open: true, ipVersion };
34
35
  }
35
36
  else {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "19.0.0",
3
+ "version": "19.0.1-rc.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "19.0.0",
9
+ "version": "19.0.1-rc.0",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "19.0.0",
4
+ "version": "19.0.1-rc.0",
5
5
  "author": "Netlify Inc.",
6
6
  "type": "module",
7
7
  "engines": {