@smartsoft001/crud-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 +3 -3
package/index.js
CHANGED
|
@@ -123,24 +123,24 @@ var PasswordService = class _PasswordService {
|
|
|
123
123
|
var SlugService = class _SlugService {
|
|
124
124
|
static {
|
|
125
125
|
this.polishToEnglishMap = {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
126
|
+
\u0105: "a",
|
|
127
|
+
\u0107: "c",
|
|
128
|
+
\u0119: "e",
|
|
129
|
+
\u0142: "l",
|
|
130
|
+
\u0144: "n",
|
|
131
|
+
\u00F3: "o",
|
|
132
|
+
\u015B: "s",
|
|
133
|
+
\u017A: "z",
|
|
134
|
+
\u017C: "z",
|
|
135
|
+
\u0104: "A",
|
|
136
|
+
\u0106: "C",
|
|
137
|
+
\u0118: "E",
|
|
138
|
+
\u0141: "L",
|
|
139
|
+
\u0143: "N",
|
|
140
|
+
\u00D3: "O",
|
|
141
|
+
\u015A: "S",
|
|
142
|
+
\u0179: "Z",
|
|
143
|
+
\u017B: "Z"
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
146
|
/**
|
|
@@ -155,9 +155,7 @@ var SlugService = class _SlugService {
|
|
|
155
155
|
if (!text) {
|
|
156
156
|
return "";
|
|
157
157
|
}
|
|
158
|
-
let slug = text.split("").map(
|
|
159
|
-
(char) => _SlugService.polishToEnglishMap[char] || char
|
|
160
|
-
).join("");
|
|
158
|
+
let slug = text.split("").map((char) => _SlugService.polishToEnglishMap[char] || char).join("");
|
|
161
159
|
slug = slug.toLowerCase();
|
|
162
160
|
slug = slug.replace(/[^a-z0-9]+/g, "-");
|
|
163
161
|
slug = slug.replace(/-+/g, "-");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartsoft001/crud-shell-nestjs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.104.0",
|
|
4
4
|
"description": "Utils to crud",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"url": "https://github.com/emiljuchnikowski/smartsoft/issues"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@smartsoft001/crud-shell-app-services": "2.
|
|
20
|
+
"@smartsoft001/crud-shell-app-services": "2.104.0",
|
|
21
21
|
"@smartsoft001/crud-shell-dto": "*",
|
|
22
|
-
"@smartsoft001/domain-core": "2.
|
|
22
|
+
"@smartsoft001/domain-core": "2.104.0"
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://github.com/emiljuchnikowski/smartsoft#readme"
|
|
25
25
|
}
|