asv-hlps 1.4.51 → 1.4.52
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/lib/cjs/utils.js +4 -0
- package/lib/esm/utils.js +4 -0
- package/package.json +4 -1
package/lib/cjs/utils.js
CHANGED
|
@@ -11,6 +11,7 @@ const isSameOrBefore_1 = __importDefault(require("dayjs/plugin/isSameOrBefore"))
|
|
|
11
11
|
const relativeTime_1 = __importDefault(require("dayjs/plugin/relativeTime"));
|
|
12
12
|
const weekOfYear_1 = __importDefault(require("dayjs/plugin/weekOfYear"));
|
|
13
13
|
const lodash_1 = __importDefault(require("lodash"));
|
|
14
|
+
const remove_accents_1 = __importDefault(require("remove-accents"));
|
|
14
15
|
require("dayjs/locale/fr");
|
|
15
16
|
dayjs_1.default.extend(relativeTime_1.default);
|
|
16
17
|
dayjs_1.default.extend(isSameOrBefore_1.default);
|
|
@@ -223,6 +224,9 @@ const sequencesToNumbers = (arr) => {
|
|
|
223
224
|
return seqs;
|
|
224
225
|
};
|
|
225
226
|
exports.sequencesToNumbers = sequencesToNumbers;
|
|
227
|
+
const removeAccent = (str) => {
|
|
228
|
+
return (0, remove_accents_1.default)(str);
|
|
229
|
+
};
|
|
226
230
|
const findSequencesMissing = (arr) => {
|
|
227
231
|
const seqs = [];
|
|
228
232
|
for (const item of arr) {
|
package/lib/esm/utils.js
CHANGED
|
@@ -4,6 +4,7 @@ import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
|
|
|
4
4
|
import relativeTime from "dayjs/plugin/relativeTime";
|
|
5
5
|
import weekOfYear from "dayjs/plugin/weekOfYear";
|
|
6
6
|
import lodash from "lodash";
|
|
7
|
+
import removeAccents from "remove-accents";
|
|
7
8
|
import "dayjs/locale/fr";
|
|
8
9
|
dayjs.extend(relativeTime);
|
|
9
10
|
dayjs.extend(isSameOrBefore);
|
|
@@ -196,6 +197,9 @@ export const sequencesToNumbers = (arr) => {
|
|
|
196
197
|
}
|
|
197
198
|
return seqs;
|
|
198
199
|
};
|
|
200
|
+
const removeAccent = (str) => {
|
|
201
|
+
return removeAccents(str);
|
|
202
|
+
};
|
|
199
203
|
export const findSequencesMissing = (arr) => {
|
|
200
204
|
const seqs = [];
|
|
201
205
|
for (const item of arr) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "asv-hlps",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.52",
|
|
4
4
|
"description": "helpers",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -30,10 +30,13 @@
|
|
|
30
30
|
"classnames": "^2.5.1",
|
|
31
31
|
"dayjs": "^1.11.13",
|
|
32
32
|
"express": "^4.21.2",
|
|
33
|
+
"i": "^0.3.7",
|
|
33
34
|
"jwt-decode": "^4.0.0",
|
|
34
35
|
"lodash": "^4.17.21",
|
|
36
|
+
"npm": "^11.4.2",
|
|
35
37
|
"pdfmake": "^0.2.20",
|
|
36
38
|
"randomatic": "^3.1.1",
|
|
39
|
+
"remove-accents": "^0.5.0",
|
|
37
40
|
"typeorm": "^0.3.25",
|
|
38
41
|
"typescript": "^5.8.3",
|
|
39
42
|
"yup": "^1.6.1",
|