@shopify/address
Advanced tools
Comparing version 2.4.3 to 2.4.4
@@ -149,2 +149,5 @@ "use strict"; | ||
} | ||
else if (exports.SUPPORTED_LOCALES.includes(supportedLocale.substring(0, 2))) { | ||
return supportedLocale.substring(0, 2); | ||
} | ||
else { | ||
@@ -151,0 +154,0 @@ return DEFAULT_LOCALE; |
{ | ||
"name": "@shopify/address", | ||
"version": "2.4.3", | ||
"version": "2.4.4", | ||
"license": "MIT", | ||
@@ -26,3 +26,3 @@ "description": "Address utilities for formatting addresses.", | ||
"devDependencies": { | ||
"@shopify/address-mocks": "^1.0.4", | ||
"@shopify/address-mocks": "^1.0.5", | ||
"@shopify/jest-dom-mocks": "^2.1.0", | ||
@@ -29,0 +29,0 @@ "typescript": "~3.0.1" |
@@ -101,2 +101,4 @@ import { | ||
return supportedLocale; | ||
} else if (SUPPORTED_LOCALES.includes(supportedLocale.substring(0, 2))) { | ||
return supportedLocale.substring(0, 2); | ||
} else { | ||
@@ -103,0 +105,0 @@ return DEFAULT_LOCALE; |
@@ -223,2 +223,6 @@ import {fetch} from '@shopify/jest-dom-mocks'; | ||
}); | ||
it('returns most similar locale available if complex', () => { | ||
expect(toSupportedLocale('fr-FR')).toEqual('FR'); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
48363
1183
2