@roots/bud-client 2023.10.9-9 → 2023.10.10-7

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.
package/lib/lazy.js CHANGED
@@ -12,7 +12,7 @@ const lazy = async function lazy(module, handler, errorHandler) {
12
12
  return await handler(request);
13
13
  }
14
14
  catch (error) {
15
- const handle = errorHandler ? errorHandler : defaultErrorHandler;
15
+ const handle = errorHandler ?? defaultErrorHandler;
16
16
  handle(error);
17
17
  }
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roots/bud-client",
3
- "version": "2023.10.9-9",
3
+ "version": "2023.10.10-7",
4
4
  "description": "Client scripts for @roots/bud",
5
5
  "engines": {
6
6
  "node": ">=16"
@@ -69,9 +69,9 @@
69
69
  "types": "./lib/index.d.ts",
70
70
  "module": "./lib/index.mjs",
71
71
  "devDependencies": {
72
- "@roots/bud": "2023.10.9-9",
72
+ "@roots/bud": "2023.10.10-7",
73
73
  "@skypack/package-check": "0.2.2",
74
- "@types/node": "18.18.3",
74
+ "@types/node": "18.18.4",
75
75
  "@types/webpack-env": "1.18.2"
76
76
  },
77
77
  "dependencies": {
package/src/lazy.ts CHANGED
@@ -33,7 +33,7 @@ const lazy: lazy = async function lazy<T = any>(
33
33
  const {default: request} = await module
34
34
  return await handler(request)
35
35
  } catch (error: unknown) {
36
- const handle = errorHandler ? errorHandler : defaultErrorHandler
36
+ const handle = errorHandler ?? defaultErrorHandler
37
37
  handle(error)
38
38
  }
39
39
  }