asv-hlps 1.4.52 → 1.4.53
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.d.ts +1 -0
- package/lib/cjs/utils.js +3 -2
- package/lib/esm/utils.d.ts +1 -0
- package/lib/esm/utils.js +1 -1
- package/package.json +1 -1
package/lib/cjs/utils.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export declare const currencyFormatter: (val: number, separator?: string, curren
|
|
|
33
33
|
export declare const currencyFormatterCfa: (val: number) => string;
|
|
34
34
|
export declare const notInSequence: (arr: number[]) => number[];
|
|
35
35
|
export declare const sequencesToNumbers: (arr: any[]) => number[];
|
|
36
|
+
export declare const removeAccent: (str: string) => string;
|
|
36
37
|
export declare const findSequencesMissing: (arr: any[]) => number[];
|
|
37
38
|
export declare const fillNumWithZero: (num: number, targetLength: number) => string;
|
|
38
39
|
export declare const findFirstSequenceMissing: (arr: any[]) => number;
|
package/lib/cjs/utils.js
CHANGED
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.nthIndexOf = exports.pathName = exports.checkObjInArray = exports.arraySome = exports.winMaxHeight = exports.toggleProp = exports.roundLastNDigits = exports.removeParamKeyName = exports.countryIsoToFlag = exports.monthStringName = exports.returnBool = exports.formatAmountToString = exports.reduceTimes = exports.reduceSum = exports.sumAmount = exports.fillEndWithZero = exports.fillStartWithZero = exports.absFromSequence = exports.returnDates = exports.displayFrDatePeriode = exports.getArrayOfRandomColor = exports.randomHslColor = exports.randomHexColor = exports.genRandomNumberArray = exports.randomRgbColor = exports.randomInteger = exports.insertAtInArray = exports.isBirthday = exports.padEndWithZero = exports.padStartWithZero = exports.formatMonthYearToLocaleString = exports.calculPercent = exports.validEmail = exports.convertToCfa = exports.packAndUnit = exports.unCheckedAll = exports.inputChecked = exports.arrayMultiChecked = exports.getPeriodDateColor = void 0;
|
|
6
|
+
exports.genRandomColour = exports.formatNgbDate = exports.dateNth = exports.dateNthMonth = exports.dateNthDay = exports.dateNthWeek = exports.getNbOfDaysBetweenTwoDates = exports.displayDateRangeFr = exports.reformatDates = exports.firstDayOfDate = exports.dateToString = exports.dateDiff = exports.dateFormatter = exports.replaceSpacesWith = exports.replaceAllIn = exports.toPlural = exports.sesStorageGet = exports.sesStorageSet = exports.genSequenceRef = exports.refGenerator = exports.removeBackSlashOccurences = exports.stringifyFormatter = exports.removeString = exports.diffArraysByProp = exports.diffArraysByFunc = exports.deepClone = exports.findFirstSequenceMissing = exports.fillNumWithZero = exports.findSequencesMissing = exports.removeAccent = exports.sequencesToNumbers = exports.notInSequence = exports.currencyFormatterCfa = exports.currencyFormatter = exports.checkAuth = exports.wakeUp = exports.sleep = exports.limitTo = exports.titleCase = exports.toObjectDate = exports.duplicateObjectsGrouped = exports.duplicateObjects = exports.removeDuplicateValues = exports.removeDuplicateObjects = exports.getRandomColor = exports.calPercent = exports.percentOf = exports.genDateMinutesStep = exports.formatDateFirstDayFr = exports.isEmpty = void 0;
|
|
7
|
+
exports.nthIndexOf = exports.pathName = exports.checkObjInArray = exports.arraySome = exports.winMaxHeight = exports.toggleProp = exports.roundLastNDigits = exports.removeParamKeyName = exports.countryIsoToFlag = exports.monthStringName = exports.returnBool = exports.formatAmountToString = exports.reduceTimes = exports.reduceSum = exports.sumAmount = exports.fillEndWithZero = exports.fillStartWithZero = exports.absFromSequence = exports.returnDates = exports.displayFrDatePeriode = exports.getArrayOfRandomColor = exports.randomHslColor = exports.randomHexColor = exports.genRandomNumberArray = exports.randomRgbColor = exports.randomInteger = exports.insertAtInArray = exports.isBirthday = exports.padEndWithZero = exports.padStartWithZero = exports.formatMonthYearToLocaleString = exports.calculPercent = exports.validEmail = exports.convertToCfa = exports.packAndUnit = exports.unCheckedAll = exports.inputChecked = exports.arrayMultiChecked = exports.getPeriodDateColor = exports.getColorAccordingToDate = void 0;
|
|
8
8
|
const dayjs_1 = __importDefault(require("dayjs"));
|
|
9
9
|
const dayOfYear_1 = __importDefault(require("dayjs/plugin/dayOfYear"));
|
|
10
10
|
const isSameOrBefore_1 = __importDefault(require("dayjs/plugin/isSameOrBefore"));
|
|
@@ -227,6 +227,7 @@ exports.sequencesToNumbers = sequencesToNumbers;
|
|
|
227
227
|
const removeAccent = (str) => {
|
|
228
228
|
return (0, remove_accents_1.default)(str);
|
|
229
229
|
};
|
|
230
|
+
exports.removeAccent = removeAccent;
|
|
230
231
|
const findSequencesMissing = (arr) => {
|
|
231
232
|
const seqs = [];
|
|
232
233
|
for (const item of arr) {
|
package/lib/esm/utils.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export declare const currencyFormatter: (val: number, separator?: string, curren
|
|
|
33
33
|
export declare const currencyFormatterCfa: (val: number) => string;
|
|
34
34
|
export declare const notInSequence: (arr: number[]) => number[];
|
|
35
35
|
export declare const sequencesToNumbers: (arr: any[]) => number[];
|
|
36
|
+
export declare const removeAccent: (str: string) => string;
|
|
36
37
|
export declare const findSequencesMissing: (arr: any[]) => number[];
|
|
37
38
|
export declare const fillNumWithZero: (num: number, targetLength: number) => string;
|
|
38
39
|
export declare const findFirstSequenceMissing: (arr: any[]) => number;
|
package/lib/esm/utils.js
CHANGED