@juisy/utils 3.0.0-beta.2 → 3.0.0-beta.3
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/README.md +3 -3
- package/dist/assert/argsert.js +1 -1
- package/dist/assert/assert.js +1 -1
- package/dist/constructor/apply-mixins.js +1 -1
- package/dist/constructor/get-constructor-name.js +1 -1
- package/dist/date/date-format.d.ts +1 -1
- package/dist/date/date-format.js +3 -3
- package/dist/date/get-date-range.d.ts +1 -1
- package/dist/date/get-date-range.js +4 -4
- package/dist/date/get-duration-between-times.d.ts +2 -2
- package/dist/date/get-duration-between-times.js +4 -4
- package/dist/date/get-duration-between.d.ts +2 -2
- package/dist/date/get-duration-between.js +3 -3
- package/dist/date/get-i18n-timezone-value.d.ts +1 -1
- package/dist/date/get-i18n-timezone-value.js +2 -2
- package/dist/date/get-next-date-for-time.d.ts +1 -1
- package/dist/date/get-next-date-for-time.js +3 -3
- package/dist/date/get-utc-offset.d.ts +1 -1
- package/dist/date/get-utc-offset.js +3 -3
- package/dist/fs/get-file-urls.js +1 -1
- package/dist/fs/get-files-sync.js +1 -1
- package/dist/fs/get-files.js +1 -1
- package/dist/fs/get-root-dir.js +1 -1
- package/dist/fs/is-directory.js +1 -1
- package/dist/fs/is-file.js +1 -1
- package/dist/is/is-def.js +1 -1
- package/dist/is/is-valid-css-color.js +1 -1
- package/dist/is/is.js +1 -1
- package/dist/json/compile-pointer.js +1 -1
- package/dist/json/escape-pointer-segment.js +1 -1
- package/dist/json/get-by-pointer.js +1 -1
- package/dist/json/has-value.js +1 -1
- package/dist/json/parse-pointer.js +1 -1
- package/dist/json/remove-by-pointer.js +1 -1
- package/dist/json/set-by-pointer.js +1 -1
- package/dist/json/to-pointers-dictionary.js +1 -1
- package/dist/json/traverse.js +1 -1
- package/dist/json/unescape-pointer-segment.js +1 -1
- package/dist/misc/compose.js +1 -1
- package/dist/misc/detect-browser.js +1 -1
- package/dist/misc/type-check.js +1 -1
- package/dist/object/deep-merge.js +1 -1
- package/dist/object/deep-parse.js +1 -1
- package/dist/object/get.js +1 -1
- package/dist/path/is-posix.js +1 -1
- package/dist/path/is-same-as.js +1 -1
- package/dist/path/is-win32.js +1 -1
- package/dist/path/normalize.js +1 -1
- package/dist/path/resolve-abs-from-root.js +1 -1
- package/dist/path/resolve-rel-from-root.js +1 -1
- package/dist/path/resolve-rel.js +1 -1
- package/dist/path/strip-extension.js +1 -1
- package/dist/path/to-os-format.js +1 -1
- package/dist/path/to-posix.js +1 -1
- package/dist/path/to-win32.js +1 -1
- package/dist/random/random-alpha-numeric.js +1 -1
- package/dist/random/random-number.js +1 -1
- package/dist/string/camelcase.js +1 -1
- package/dist/string/capitalize.js +1 -1
- package/dist/string/constantcase.js +1 -1
- package/dist/string/kebabcase.js +1 -1
- package/dist/string/lowercase.js +1 -1
- package/dist/string/pascalcase.js +1 -1
- package/dist/string/snakecase.js +1 -1
- package/dist/string/uppercase.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
[](http://herve-perchec.com/)
|
|
7
7
|
|
|
8
8
|
[](https://gitlab.com/hperchec/juisy/-/releases)
|
|
9
|
-
[](https://gitlab.com/hperchec/juisy/commits/v3.0.0-beta.3)
|
|
10
|
+

|
|
11
11
|
[](https://www.npmjs.com/package/@juisy/utils)
|
|
12
12
|
[](https://www.npmjs.com/package/@juisy/utils)
|
|
13
13
|
[](https://gitlab.com/hperchec/juisy/issues)
|
|
14
|
-
[](https://gitlab.com/hperchec/juisy/-/blob/v3.0.0-beta.
|
|
14
|
+
[](https://gitlab.com/hperchec/juisy/-/blob/v3.0.0-beta.3/LICENSE)
|
|
15
15
|
|
|
16
16
|
<!-- markdownlint-enable line-length -->
|
|
17
17
|
|
package/dist/assert/argsert.js
CHANGED
package/dist/assert/assert.js
CHANGED
package/dist/date/date-format.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* juisy v3.0.0-beta.
|
|
2
|
+
* juisy v3.0.0-beta.3
|
|
3
3
|
* Copyright © 2022-Present Hervé Perchec
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import dayjs from '
|
|
7
|
-
import utcPlugin from '
|
|
6
|
+
import dayjs from 'juisy_utils.scoped_dayjs';
|
|
7
|
+
import utcPlugin from 'juisy_utils.scoped_dayjs/plugin/utc.js';
|
|
8
8
|
|
|
9
9
|
dayjs.extend(utcPlugin);
|
|
10
10
|
function dateFormat(date, format, utc = false) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* juisy v3.0.0-beta.
|
|
2
|
+
* juisy v3.0.0-beta.3
|
|
3
3
|
* Copyright © 2022-Present Hervé Perchec
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import dayjs from '
|
|
7
|
-
import isSameOrBeforePlugin from '
|
|
8
|
-
import isSameOrAfterPlugin from '
|
|
6
|
+
import dayjs from 'juisy_utils.scoped_dayjs';
|
|
7
|
+
import isSameOrBeforePlugin from 'juisy_utils.scoped_dayjs/plugin/isSameOrBefore.js';
|
|
8
|
+
import isSameOrAfterPlugin from 'juisy_utils.scoped_dayjs/plugin/isSameOrAfter.js';
|
|
9
9
|
import isDef from '@juisy/utils/is/is-def';
|
|
10
10
|
|
|
11
11
|
dayjs.extend(isSameOrBeforePlugin);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dayjs } from '
|
|
2
|
-
import { default as durationPlugin } from '
|
|
1
|
+
import { Dayjs } from 'juisy_utils.scoped_dayjs';
|
|
2
|
+
import { default as durationPlugin } from 'juisy_utils.scoped_dayjs/plugin/duration.js';
|
|
3
3
|
/**
|
|
4
4
|
* Get duration between times
|
|
5
5
|
* @param startTime - The start time ('HH:mm' or 'HH:mm:ss')
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* juisy v3.0.0-beta.
|
|
2
|
+
* juisy v3.0.0-beta.3
|
|
3
3
|
* Copyright © 2022-Present Hervé Perchec
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import dayjs from '
|
|
7
|
-
import utcPlugin from '
|
|
8
|
-
import durationPlugin from '
|
|
6
|
+
import dayjs from 'juisy_utils.scoped_dayjs';
|
|
7
|
+
import utcPlugin from 'juisy_utils.scoped_dayjs/plugin/utc.js';
|
|
8
|
+
import durationPlugin from 'juisy_utils.scoped_dayjs/plugin/duration.js';
|
|
9
9
|
import getNextDateForTime from '@juisy/utils/date/get-next-date-for-time';
|
|
10
10
|
|
|
11
11
|
dayjs.extend(utcPlugin);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dayjs } from '
|
|
2
|
-
import { default as durationPlugin } from '
|
|
1
|
+
import { Dayjs } from 'juisy_utils.scoped_dayjs';
|
|
2
|
+
import { default as durationPlugin } from 'juisy_utils.scoped_dayjs/plugin/duration.js';
|
|
3
3
|
/**
|
|
4
4
|
* Get duration between times
|
|
5
5
|
* @param from - The "from" date ({@link Date}, {@link Dayjs} or string)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* juisy v3.0.0-beta.
|
|
2
|
+
* juisy v3.0.0-beta.3
|
|
3
3
|
* Copyright © 2022-Present Hervé Perchec
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import dayjs from '
|
|
7
|
-
import durationPlugin from '
|
|
6
|
+
import dayjs from 'juisy_utils.scoped_dayjs';
|
|
7
|
+
import durationPlugin from 'juisy_utils.scoped_dayjs/plugin/duration.js';
|
|
8
8
|
|
|
9
9
|
dayjs.extend(durationPlugin);
|
|
10
10
|
function getDurationBetween(from, to) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* juisy v3.0.0-beta.
|
|
2
|
+
* juisy v3.0.0-beta.3
|
|
3
3
|
* Copyright © 2022-Present Hervé Perchec
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import dayjs from '
|
|
6
|
+
import dayjs from 'juisy_utils.scoped_dayjs';
|
|
7
7
|
|
|
8
8
|
function getI18nTimezoneValue(locale, timezone, date) {
|
|
9
9
|
const baseDate = dayjs.isDayjs(date) ? date : dayjs(date);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* juisy v3.0.0-beta.
|
|
2
|
+
* juisy v3.0.0-beta.3
|
|
3
3
|
* Copyright © 2022-Present Hervé Perchec
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import dayjs from '
|
|
7
|
-
import durationPlugin from '
|
|
6
|
+
import dayjs from 'juisy_utils.scoped_dayjs';
|
|
7
|
+
import durationPlugin from 'juisy_utils.scoped_dayjs/plugin/duration.js';
|
|
8
8
|
|
|
9
9
|
dayjs.extend(durationPlugin);
|
|
10
10
|
function getNextDateForTime(date, time) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* juisy v3.0.0-beta.
|
|
2
|
+
* juisy v3.0.0-beta.3
|
|
3
3
|
* Copyright © 2022-Present Hervé Perchec
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import dayjs from '
|
|
7
|
-
import utcPlugin from '
|
|
6
|
+
import dayjs from 'juisy_utils.scoped_dayjs';
|
|
7
|
+
import utcPlugin from 'juisy_utils.scoped_dayjs/plugin/utc.js';
|
|
8
8
|
|
|
9
9
|
dayjs.extend(utcPlugin);
|
|
10
10
|
function getUtcOffset(date, format = "hours") {
|
package/dist/fs/get-file-urls.js
CHANGED
package/dist/fs/get-files.js
CHANGED
package/dist/fs/get-root-dir.js
CHANGED
package/dist/fs/is-directory.js
CHANGED
package/dist/fs/is-file.js
CHANGED
package/dist/is/is-def.js
CHANGED
package/dist/is/is.js
CHANGED
package/dist/json/has-value.js
CHANGED
package/dist/json/traverse.js
CHANGED
package/dist/misc/compose.js
CHANGED
package/dist/misc/type-check.js
CHANGED
package/dist/object/get.js
CHANGED
package/dist/path/is-posix.js
CHANGED
package/dist/path/is-same-as.js
CHANGED
package/dist/path/is-win32.js
CHANGED
package/dist/path/normalize.js
CHANGED
package/dist/path/resolve-rel.js
CHANGED
package/dist/path/to-posix.js
CHANGED
package/dist/path/to-win32.js
CHANGED
package/dist/string/camelcase.js
CHANGED
package/dist/string/kebabcase.js
CHANGED
package/dist/string/lowercase.js
CHANGED
package/dist/string/snakecase.js
CHANGED
package/dist/string/uppercase.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juisy/utils",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.3",
|
|
4
4
|
"description": "Juisy utils",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"error-stack-parser": "^2.1.4",
|
|
109
109
|
"fs-extra": "^11.2.0",
|
|
110
110
|
"glob": "^11.0.0",
|
|
111
|
-
"
|
|
111
|
+
"juisy_utils.scoped_dayjs": "npm:dayjs@^1.11.21",
|
|
112
112
|
"lodash.camelcase": "^4.3.0",
|
|
113
113
|
"lodash.capitalize": "^4.2.1",
|
|
114
114
|
"lodash.get": "^4.4.2",
|