@dyedurham/search-and-file-widget 2.0.39 → 2.0.40

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.
@@ -87923,8 +87923,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87923
87923
  }
87924
87924
  function mapAddress(address) {
87925
87925
  const country = normalizeCountryCode(address?.country ?? "");
87926
- const provinceState = country === "CA" ? CANCodeToProvince(address?.province_state) : country === "US" ? USCodeToState(address?.province_state) : address?.province_state ?? "";
87927
- const addressRegion = country === "CA" ? CANProvinceToCode(provinceState) : country === "US" ? USStateToCode(provinceState) : provinceState;
87926
+ const provinceState = country === "CA" ? CANCodeToProvince(address?.province_state) : country === "US" ? USCodeToState(address?.province_state) || address?.province_state : address?.province_state ?? "";
87927
+ const addressRegion = country === "CA" ? CANProvinceToCode(provinceState) : country === "US" ? USStateToCode(provinceState) : provinceState;
87928
87928
  const street = resolveStreet(address);
87929
87929
  return {
87930
87930
  // Spec: CareOf min length 4 and UnitNumber/AddressLine2 min length 3 when present, so omit blanks.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "2.0.39",
3
+ "version": "2.0.40",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {