@smartsoft001/auth-shell-app-services 2.102.0 → 2.104.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/index.js +19 -21
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -99,24 +99,24 @@ var PasswordService = class _PasswordService {
|
|
|
99
99
|
var SlugService = class _SlugService {
|
|
100
100
|
static {
|
|
101
101
|
this.polishToEnglishMap = {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
102
|
+
\u0105: "a",
|
|
103
|
+
\u0107: "c",
|
|
104
|
+
\u0119: "e",
|
|
105
|
+
\u0142: "l",
|
|
106
|
+
\u0144: "n",
|
|
107
|
+
\u00F3: "o",
|
|
108
|
+
\u015B: "s",
|
|
109
|
+
\u017A: "z",
|
|
110
|
+
\u017C: "z",
|
|
111
|
+
\u0104: "A",
|
|
112
|
+
\u0106: "C",
|
|
113
|
+
\u0118: "E",
|
|
114
|
+
\u0141: "L",
|
|
115
|
+
\u0143: "N",
|
|
116
|
+
\u00D3: "O",
|
|
117
|
+
\u015A: "S",
|
|
118
|
+
\u0179: "Z",
|
|
119
|
+
\u017B: "Z"
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
@@ -131,9 +131,7 @@ var SlugService = class _SlugService {
|
|
|
131
131
|
if (!text) {
|
|
132
132
|
return "";
|
|
133
133
|
}
|
|
134
|
-
let slug = text.split("").map(
|
|
135
|
-
(char) => _SlugService.polishToEnglishMap[char] || char
|
|
136
|
-
).join("");
|
|
134
|
+
let slug = text.split("").map((char) => _SlugService.polishToEnglishMap[char] || char).join("");
|
|
137
135
|
slug = slug.toLowerCase();
|
|
138
136
|
slug = slug.replace(/[^a-z0-9]+/g, "-");
|
|
139
137
|
slug = slug.replace(/-+/g, "-");
|