@vef-framework/shared 2.0.1 → 2.0.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/cjs/color/color-ops.cjs +1 -1
- package/dist/cjs/color/index.cjs +1 -1
- package/dist/cjs/color/name.cjs +1 -1
- package/dist/cjs/color/palette.cjs +1 -1
- package/dist/cjs/constants/color-names.cjs +1 -1
- package/dist/cjs/constants/color-palettes.cjs +1 -1
- package/dist/cjs/constants/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/types/color.cjs +1 -1
- package/dist/cjs/types/common.cjs +1 -1
- package/dist/cjs/types/deep-keys.cjs +1 -1
- package/dist/cjs/types/index.cjs +1 -1
- package/dist/cjs/utils/chrono.cjs +1 -1
- package/dist/cjs/utils/equal.cjs +1 -1
- package/dist/cjs/utils/error.cjs +1 -1
- package/dist/cjs/utils/event.cjs +1 -1
- package/dist/cjs/utils/format.cjs +1 -1
- package/dist/cjs/utils/function.cjs +1 -1
- package/dist/cjs/utils/id.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/cjs/utils/key.cjs +1 -1
- package/dist/cjs/utils/lib.cjs +1 -1
- package/dist/cjs/utils/object.cjs +1 -1
- package/dist/cjs/utils/path.cjs +1 -1
- package/dist/cjs/utils/pinyin.cjs +1 -1
- package/dist/cjs/utils/security.cjs +1 -1
- package/dist/cjs/utils/string.cjs +1 -1
- package/dist/cjs/utils/task.cjs +1 -1
- package/dist/cjs/utils/tree.cjs +1 -1
- package/dist/cjs/utils/zod.cjs +1 -1
- package/dist/es/color/color-ops.js +1 -1
- package/dist/es/color/index.js +1 -1
- package/dist/es/color/name.js +1 -1
- package/dist/es/color/palette.js +1 -1
- package/dist/es/constants/color-names.js +1 -1
- package/dist/es/constants/color-palettes.js +1 -1
- package/dist/es/constants/index.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/types/color.js +1 -1
- package/dist/es/types/common.js +1 -1
- package/dist/es/types/deep-keys.js +1 -1
- package/dist/es/types/index.js +1 -1
- package/dist/es/utils/chrono.js +1 -1
- package/dist/es/utils/equal.js +1 -1
- package/dist/es/utils/error.js +1 -1
- package/dist/es/utils/event.js +1 -1
- package/dist/es/utils/format.js +1 -1
- package/dist/es/utils/function.js +1 -1
- package/dist/es/utils/id.js +1 -1
- package/dist/es/utils/index.js +1 -1
- package/dist/es/utils/key.js +1 -1
- package/dist/es/utils/lib.js +1 -1
- package/dist/es/utils/object.js +1 -1
- package/dist/es/utils/path.js +1 -1
- package/dist/es/utils/pinyin.js +1 -1
- package/dist/es/utils/security.js +1 -1
- package/dist/es/utils/string.js +1 -1
- package/dist/es/utils/task.js +1 -1
- package/dist/es/utils/tree.js +1 -1
- package/dist/es/utils/zod.js +1 -1
- package/package.json +2 -3
package/dist/cjs/color/index.cjs
CHANGED
package/dist/cjs/color/name.cjs
CHANGED
package/dist/cjs/index.cjs
CHANGED
package/dist/cjs/types/color.cjs
CHANGED
package/dist/cjs/types/index.cjs
CHANGED
package/dist/cjs/utils/equal.cjs
CHANGED
package/dist/cjs/utils/error.cjs
CHANGED
package/dist/cjs/utils/event.cjs
CHANGED
package/dist/cjs/utils/id.cjs
CHANGED
package/dist/cjs/utils/index.cjs
CHANGED
package/dist/cjs/utils/key.cjs
CHANGED
package/dist/cjs/utils/lib.cjs
CHANGED
package/dist/cjs/utils/path.cjs
CHANGED
package/dist/cjs/utils/task.cjs
CHANGED
package/dist/cjs/utils/tree.cjs
CHANGED
package/dist/cjs/utils/zod.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework/shared v2.0.
|
|
1
|
+
/*! @vef-framework/shared v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:13.127Z */
|
|
2
2
|
import { extend, colord } from 'colord';
|
|
3
3
|
import labPlugin from 'colord/plugins/lab';
|
|
4
4
|
import mixPlugin from 'colord/plugins/mix';
|
package/dist/es/color/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework/shared v2.0.
|
|
1
|
+
/*! @vef-framework/shared v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:13.127Z */
|
|
2
2
|
export { convertHslToHex, convertTransparentToOpaque, getColorDifference, isValidColor, isWhiteColor, mixColor, setColorAlpha, toHexColor, toHslColor, toHsvColor, toRgbColor } from './color-ops.js';
|
|
3
3
|
export { getColorName } from './name.js';
|
|
4
4
|
export { getColorPalette } from './palette.js';
|
package/dist/es/color/name.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework/shared v2.0.
|
|
1
|
+
/*! @vef-framework/shared v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:13.127Z */
|
|
2
2
|
import '../constants/index.js';
|
|
3
3
|
import { toHexColor, toRgbColor, toHslColor } from './color-ops.js';
|
|
4
4
|
import { colorEntries } from '../constants/color-names.js';
|
package/dist/es/color/palette.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework/shared v2.0.
|
|
1
|
+
/*! @vef-framework/shared v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:13.127Z */
|
|
2
2
|
import { lru } from 'tiny-lru';
|
|
3
3
|
import '../constants/index.js';
|
|
4
4
|
import { isValidColor, toHslColor, convertHslToHex, getColorDifference } from './color-ops.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! @vef-framework/shared v2.0.
|
|
1
|
+
/*! @vef-framework/shared v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:13.127Z */
|
|
2
2
|
export { colorEntries, colorNameMap } from './color-names.js';
|
|
3
3
|
export { colorPaletteMap, colorPalettes } from './color-palettes.js';
|
package/dist/es/index.js
CHANGED
package/dist/es/types/color.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! @vef-framework/shared v2.0.
|
|
1
|
+
/*! @vef-framework/shared v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:13.127Z */
|
package/dist/es/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! @vef-framework/shared v2.0.
|
|
1
|
+
/*! @vef-framework/shared v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:13.127Z */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! @vef-framework/shared v2.0.
|
|
1
|
+
/*! @vef-framework/shared v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:13.127Z */
|
package/dist/es/types/index.js
CHANGED
package/dist/es/utils/chrono.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework/shared v2.0.
|
|
1
|
+
/*! @vef-framework/shared v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:13.127Z */
|
|
2
2
|
import dayjs from 'dayjs';
|
|
3
3
|
import locale from 'dayjs/locale/zh-cn';
|
|
4
4
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
package/dist/es/utils/equal.js
CHANGED
package/dist/es/utils/error.js
CHANGED
package/dist/es/utils/event.js
CHANGED
package/dist/es/utils/format.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework/shared v2.0.
|
|
1
|
+
/*! @vef-framework/shared v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:13.127Z */
|
|
2
2
|
const BYTES_UNIT = 1024;
|
|
3
3
|
const BYTE_SIZES = ["B", "KB", "MB", "GB", "TB", "PB"];
|
|
4
4
|
const NUMBER_UNIT = 1e3;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework/shared v2.0.
|
|
1
|
+
/*! @vef-framework/shared v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:13.127Z */
|
|
2
2
|
function isAsyncFunction(fn) {
|
|
3
3
|
return fn.constructor.name === "AsyncFunction" || Object.prototype.toString.call(fn) === "[object AsyncFunction]" || fn.toString().startsWith("async ");
|
|
4
4
|
}
|
package/dist/es/utils/id.js
CHANGED
package/dist/es/utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework/shared v2.0.
|
|
1
|
+
/*! @vef-framework/shared v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:13.127Z */
|
|
2
2
|
export { DEFAULT_DATETIME_FORMAT, DEFAULT_DATE_FORMAT, DEFAULT_TIME_FORMAT, LOCALIZED_DATETIME_FORMAT, LOCALIZED_DATE_FORMAT, formatDate, formatDuration, getLocalizedDateTime, getNow, getNowDateString, getNowDateTimeString, getNowTimeString, getTemporalFormats, parseDate, tryParseDate } from './chrono.js';
|
|
3
3
|
export { isDeepEqual, isShallowEqual } from './equal.js';
|
|
4
4
|
export { filterUserFrame, getCurrentStack, getCurrentStackSync, getSanitizedErrorStack, parseErrorStack } from './error.js';
|
package/dist/es/utils/key.js
CHANGED
package/dist/es/utils/lib.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework/shared v2.0.
|
|
1
|
+
/*! @vef-framework/shared v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:13.127Z */
|
|
2
2
|
import { always } from 'radashi';
|
|
3
3
|
export { always, assign, camel as camelCase, capitalize, cluster, debounce, first, get, isArray, isBigInt, isBoolean, isDate, isEmpty, isError, isFloat, isFunction, isInt, isIntString, isMap, isNullish, isNumber, isObject, isPlainObject, isPrimitive, isPromise, isRegExp, isSet, isString, isSymbol, isUndefined, isWeakMap, isWeakSet, dash as kebabCase, last, max, memo as memoize, min, noop, omit, once, pascal as pascalCase, pick, set, similarity, snake as snakeCase, sum, template, throttle, toFloat, toInt, trim, unique } from 'radashi';
|
|
4
4
|
export { klona as cloneDeep } from 'klona';
|
package/dist/es/utils/object.js
CHANGED
package/dist/es/utils/path.js
CHANGED
package/dist/es/utils/pinyin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework/shared v2.0.
|
|
1
|
+
/*! @vef-framework/shared v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:13.127Z */
|
|
2
2
|
import ModernChineseDict from '@pinyin-pro/data/modern';
|
|
3
3
|
import { addDict, pinyin } from 'pinyin-pro';
|
|
4
4
|
import './lib.js';
|
package/dist/es/utils/string.js
CHANGED
package/dist/es/utils/task.js
CHANGED
package/dist/es/utils/tree.js
CHANGED
package/dist/es/utils/zod.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vef-framework/shared",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Shared utilities for VEF framework",
|
|
7
7
|
"author": {
|
|
@@ -69,7 +69,6 @@
|
|
|
69
69
|
"scripts": {
|
|
70
70
|
"clean": "rimraf dist",
|
|
71
71
|
"typecheck": "tsc --noEmit",
|
|
72
|
-
"build": "vite build"
|
|
73
|
-
"pub": "tsx ../../scripts/publish.ts"
|
|
72
|
+
"build": "vite build"
|
|
74
73
|
}
|
|
75
74
|
}
|