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