@smartsoft001/auth-shell-dtos 2.102.0 → 2.103.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
|
@@ -137,24 +137,24 @@ import md5 from "md5";
|
|
|
137
137
|
var SlugService = class _SlugService {
|
|
138
138
|
static {
|
|
139
139
|
this.polishToEnglishMap = {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
140
|
+
\u0105: "a",
|
|
141
|
+
\u0107: "c",
|
|
142
|
+
\u0119: "e",
|
|
143
|
+
\u0142: "l",
|
|
144
|
+
\u0144: "n",
|
|
145
|
+
\u00F3: "o",
|
|
146
|
+
\u015B: "s",
|
|
147
|
+
\u017A: "z",
|
|
148
|
+
\u017C: "z",
|
|
149
|
+
\u0104: "A",
|
|
150
|
+
\u0106: "C",
|
|
151
|
+
\u0118: "E",
|
|
152
|
+
\u0141: "L",
|
|
153
|
+
\u0143: "N",
|
|
154
|
+
\u00D3: "O",
|
|
155
|
+
\u015A: "S",
|
|
156
|
+
\u0179: "Z",
|
|
157
|
+
\u017B: "Z"
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
@@ -169,9 +169,7 @@ var SlugService = class _SlugService {
|
|
|
169
169
|
if (!text) {
|
|
170
170
|
return "";
|
|
171
171
|
}
|
|
172
|
-
let slug = text.split("").map(
|
|
173
|
-
(char) => _SlugService.polishToEnglishMap[char] || char
|
|
174
|
-
).join("");
|
|
172
|
+
let slug = text.split("").map((char) => _SlugService.polishToEnglishMap[char] || char).join("");
|
|
175
173
|
slug = slug.toLowerCase();
|
|
176
174
|
slug = slug.replace(/[^a-z0-9]+/g, "-");
|
|
177
175
|
slug = slug.replace(/-+/g, "-");
|
package/package.json
CHANGED