@kopexa/shared-utils 1.1.6 → 1.1.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.
package/dist/index.js CHANGED
@@ -148,6 +148,9 @@ var getInitials = (text) => {
148
148
  return safeText(text);
149
149
  }
150
150
  const initials = words.map((word) => word.charAt(0).toUpperCase());
151
+ if (initials.length > 2) {
152
+ initials.length = 2;
153
+ }
151
154
  return initials.join("");
152
155
  };
153
156
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -106,6 +106,9 @@ var getInitials = (text) => {
106
106
  return safeText(text);
107
107
  }
108
108
  const initials = words.map((word) => word.charAt(0).toUpperCase());
109
+ if (initials.length > 2) {
110
+ initials.length = 2;
111
+ }
109
112
  return initials.join("");
110
113
  };
111
114
  export {
package/dist/text.js CHANGED
@@ -35,6 +35,9 @@ var getInitials = (text) => {
35
35
  return safeText(text);
36
36
  }
37
37
  const initials = words.map((word) => word.charAt(0).toUpperCase());
38
+ if (initials.length > 2) {
39
+ initials.length = 2;
40
+ }
38
41
  return initials.join("");
39
42
  };
40
43
  // Annotate the CommonJS export names for ESM import in node:
package/dist/text.mjs CHANGED
@@ -10,6 +10,9 @@ var getInitials = (text) => {
10
10
  return safeText(text);
11
11
  }
12
12
  const initials = words.map((word) => word.charAt(0).toUpperCase());
13
+ if (initials.length > 2) {
14
+ initials.length = 2;
15
+ }
13
16
  return initials.join("");
14
17
  };
15
18
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kopexa/shared-utils",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "A set of kopexa shared utilities",
5
5
  "keywords": [
6
6
  "system"