@homebound/beam 2.335.0 → 2.335.1

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.
@@ -14,12 +14,12 @@ function defaultOptionLabel(opt) {
14
14
  if (typeof opt !== "object" || !opt)
15
15
  (0, utils_1.fail)(`Option ${opt} has no id or code`);
16
16
  // Use `in` because returning undefined is fine
17
- return "displayName" in opt
18
- ? opt.displayName
19
- : "label" in opt
20
- ? opt.label
21
- : "name" in opt
22
- ? opt.name
17
+ return "name" in opt
18
+ ? opt.name
19
+ : "displayName" in opt
20
+ ? opt.displayName
21
+ : "label" in opt
22
+ ? opt.label
23
23
  : (0, utils_1.fail)(`Option ${JSON.stringify(opt)} has no displayName, label, or name`);
24
24
  }
25
25
  exports.defaultOptionLabel = defaultOptionLabel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.335.0",
3
+ "version": "2.335.1",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",