@wordpress/env 11.2.0 → 11.3.1-next.v.202604091042.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.
@@ -61,7 +61,7 @@ module.exports = async function loadConfig(
61
61
  if ( customConfigPath ) {
62
62
  try {
63
63
  await fs.stat( configFilePath );
64
- } catch ( error ) {
64
+ } catch {
65
65
  throw new ValidationError(
66
66
  `Config file not found: ${ configFilePath }`
67
67
  );
@@ -106,7 +106,7 @@ function parseSourceString( sourceString, { cacheDirectoryPath } ) {
106
106
  basename,
107
107
  };
108
108
  }
109
- } catch ( err ) {}
109
+ } catch {}
110
110
 
111
111
  const gitHubFields = sourceString.match(
112
112
  /^([^\/]+)\/([^#\/]+)(\/([^#]+))?(?:#(.+))?$/
@@ -64,7 +64,7 @@ async function configureWordPress( environment, config, spinner ) {
64
64
  spinner,
65
65
  config.debug
66
66
  );
67
- } catch ( err ) {
67
+ } catch {
68
68
  // Ignore error.
69
69
  }
70
70
 
@@ -327,7 +327,7 @@ class PlaygroundRuntime {
327
327
  try {
328
328
  const pidContent = await fs.readFile( pidFile, 'utf8' );
329
329
  pid = parseInt( pidContent.trim(), 10 );
330
- } catch ( error ) {
330
+ } catch {
331
331
  // PID file doesn't exist or can't be read
332
332
  spinner.text = 'Stopped WordPress Playground.';
333
333
  return;
@@ -350,7 +350,7 @@ class PlaygroundRuntime {
350
350
  } catch {
351
351
  // Process group already terminated
352
352
  }
353
- } catch ( error ) {
353
+ } catch {
354
354
  // Process group doesn't exist or already terminated
355
355
  }
356
356
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/env",
3
- "version": "11.2.0",
3
+ "version": "11.3.1-next.v.202604091042.0+668146787",
4
4
  "description": "A zero-config, self contained local WordPress environment for development and testing.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -63,5 +63,5 @@
63
63
  "scripts": {
64
64
  "test": "echo \"Error: run tests from root\" && exit 1"
65
65
  },
66
- "gitHead": "c20787b1778ae64c2db65643b1c236309d68e6ba"
66
+ "gitHead": "73606df74f1c38a084bfa5db97205259ef817593"
67
67
  }