@nxtedition/lib 19.0.6 → 19.0.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.
Files changed (2) hide show
  1. package/errors.js +1 -1
  2. package/package.json +1 -1
package/errors.js CHANGED
@@ -145,7 +145,7 @@ export function makeMessages(error, options) {
145
145
  } else if (typeof error === 'object') {
146
146
  const level = parseInt(error.level) || options?.level || 50
147
147
  const code =
148
- [error?.code, options?.codes?.[error?.code]].find(
148
+ [error?.code, options?.codes?.[error?.code], options?.code].find(
149
149
  (x) => typeof x === 'string' && x.length > 0,
150
150
  ) ?? undefined
151
151
  const msg =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "19.0.6",
3
+ "version": "19.0.7",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",