@smartsoft001/auth-shell-nestjs 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
|
@@ -122,24 +122,24 @@ var PasswordService = class _PasswordService {
|
|
|
122
122
|
var SlugService = class _SlugService {
|
|
123
123
|
static {
|
|
124
124
|
this.polishToEnglishMap = {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
125
|
+
\u0105: "a",
|
|
126
|
+
\u0107: "c",
|
|
127
|
+
\u0119: "e",
|
|
128
|
+
\u0142: "l",
|
|
129
|
+
\u0144: "n",
|
|
130
|
+
\u00F3: "o",
|
|
131
|
+
\u015B: "s",
|
|
132
|
+
\u017A: "z",
|
|
133
|
+
\u017C: "z",
|
|
134
|
+
\u0104: "A",
|
|
135
|
+
\u0106: "C",
|
|
136
|
+
\u0118: "E",
|
|
137
|
+
\u0141: "L",
|
|
138
|
+
\u0143: "N",
|
|
139
|
+
\u00D3: "O",
|
|
140
|
+
\u015A: "S",
|
|
141
|
+
\u0179: "Z",
|
|
142
|
+
\u017B: "Z"
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
@@ -154,9 +154,7 @@ var SlugService = class _SlugService {
|
|
|
154
154
|
if (!text) {
|
|
155
155
|
return "";
|
|
156
156
|
}
|
|
157
|
-
let slug = text.split("").map(
|
|
158
|
-
(char) => _SlugService.polishToEnglishMap[char] || char
|
|
159
|
-
).join("");
|
|
157
|
+
let slug = text.split("").map((char) => _SlugService.polishToEnglishMap[char] || char).join("");
|
|
160
158
|
slug = slug.toLowerCase();
|
|
161
159
|
slug = slug.replace(/[^a-z0-9]+/g, "-");
|
|
162
160
|
slug = slug.replace(/-+/g, "-");
|