@native-systems/utility 2.4.0 → 2.5.0

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/dist/index.cjs CHANGED
@@ -1911,6 +1911,12 @@ var LanguageHandler = /*#__PURE__*/ (function () {
1911
1911
  return LanguageHandler;
1912
1912
  })();
1913
1913
 
1914
+ function countryCodeToFlag(countryCode) {
1915
+ return countryCode.toUpperCase().replace(/./g, function (char) {
1916
+ return String.fromCodePoint(0x1f1e6 + char.charCodeAt(0) - 65);
1917
+ });
1918
+ }
1919
+
1914
1920
  exports.CookieHelper = CookieHelper;
1915
1921
  exports.DateFormatter = DateFormatter;
1916
1922
  exports.FormSanitizer = FormSanitizer;
@@ -1923,6 +1929,7 @@ exports.NativeException = NativeException;
1923
1929
  exports.PatternCompiler = PatternCompiler;
1924
1930
  exports.PgException = PgException;
1925
1931
  exports.PostgresError = PostgresError;
1932
+ exports.countryCodeToFlag = countryCodeToFlag;
1926
1933
  exports.eqPlugin = eqPlugin;
1927
1934
  exports.generatePrefix = generatePrefix;
1928
1935
  exports.logger = logger;
package/dist/index.d.ts CHANGED
@@ -951,3 +951,7 @@ declare module "@native-systems/utility" {
951
951
  static langFromLocale(locale: string): string;
952
952
  }
953
953
  }
954
+
955
+ declare module "@native-systems/utility" {
956
+ export function countryCodeToFlag(countryCode: string): string;
957
+ }
package/dist/index.esm.js CHANGED
@@ -1909,6 +1909,12 @@ var LanguageHandler = /*#__PURE__*/ (function () {
1909
1909
  return LanguageHandler;
1910
1910
  })();
1911
1911
 
1912
+ function countryCodeToFlag(countryCode) {
1913
+ return countryCode.toUpperCase().replace(/./g, function (char) {
1914
+ return String.fromCodePoint(0x1f1e6 + char.charCodeAt(0) - 65);
1915
+ });
1916
+ }
1917
+
1912
1918
  export {
1913
1919
  CookieHelper,
1914
1920
  DateFormatter,
@@ -1922,6 +1928,7 @@ export {
1922
1928
  PatternCompiler,
1923
1929
  PgException,
1924
1930
  PostgresError,
1931
+ countryCodeToFlag,
1925
1932
  eqPlugin,
1926
1933
  generatePrefix,
1927
1934
  logger,
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
13
- "version": "2.4.0",
13
+ "version": "2.5.0",
14
14
  "license": "MIT",
15
15
  "private": false,
16
16
  "engines": {