@heyform-inc/utils 1.2.1 → 1.2.2
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/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import _isURL from 'validator/lib/isURL';
|
|
|
9
9
|
import _clone from 'clone';
|
|
10
10
|
import { convert } from 'html-to-text';
|
|
11
11
|
import _ms from 'ms';
|
|
12
|
-
import
|
|
12
|
+
import _dayjs from 'dayjs';
|
|
13
13
|
import { customAlphabet } from 'nanoid';
|
|
14
14
|
import * as objectPath from 'object-path';
|
|
15
15
|
export { deepEqual } from 'fast-equals';
|
|
@@ -518,11 +518,10 @@ var toMillisecond = ms;
|
|
|
518
518
|
function timestamp() {
|
|
519
519
|
return Math.floor(Date.now() / 1e3);
|
|
520
520
|
}
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
}
|
|
521
|
+
var dayjs = _dayjs;
|
|
522
|
+
var date = dayjs;
|
|
524
523
|
function unixDate(t) {
|
|
525
|
-
return
|
|
524
|
+
return date.unix(t);
|
|
526
525
|
}
|
|
527
526
|
function isDateExpired(start, end, expire) {
|
|
528
527
|
return end - start > hs(expire);
|
|
@@ -1923,6 +1922,6 @@ function slugify(text, options) {
|
|
|
1923
1922
|
});
|
|
1924
1923
|
}
|
|
1925
1924
|
|
|
1926
|
-
export { FILE_MIME_TYPES, IMAGE_MIME_TYPES, RandomType, alpha, alphaHexToRgb, bytes, clone, colorBrightness, commonFileMimeTypes, commonImageMimeTypes, copyObjectValues, darken, date, datePeriod, excludeObject, formatBytes, helper_default as helper, hexToRgb, hs, htmlToText, invert, isDarkColor, isDateExpired, isHexColor, isLightColor, isRgb, isRgba, lighten, mime, ms, nanoid, nanoidCustomAlphabet, parseBool, parseBytes, parseJson, parseNumber, pickObject, pickValidValues, random, removeObjectNil, rgbToHex, slugify, timestamp, toBool, toDuration, toFixed, toFloat, toInt, toInteger, toIntlNumber, toJSON, toMillisecond, toSecond, toURLParams, toURLQuery, type, unixDate, unixDiff };
|
|
1925
|
+
export { FILE_MIME_TYPES, IMAGE_MIME_TYPES, RandomType, alpha, alphaHexToRgb, bytes, clone, colorBrightness, commonFileMimeTypes, commonImageMimeTypes, copyObjectValues, darken, date, datePeriod, dayjs, excludeObject, formatBytes, helper_default as helper, hexToRgb, hs, htmlToText, invert, isDarkColor, isDateExpired, isHexColor, isLightColor, isRgb, isRgba, lighten, mime, ms, nanoid, nanoidCustomAlphabet, parseBool, parseBytes, parseJson, parseNumber, pickObject, pickValidValues, random, removeObjectNil, rgbToHex, slugify, timestamp, toBool, toDuration, toFixed, toFloat, toInt, toInteger, toIntlNumber, toJSON, toMillisecond, toSecond, toURLParams, toURLQuery, type, unixDate, unixDiff };
|
|
1927
1926
|
//# sourceMappingURL=out.js.map
|
|
1928
1927
|
//# sourceMappingURL=index.mjs.map
|