@base-web-kits/base-tools-ts 1.0.2 → 1.1.0
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 +2 -2
- package/dist/base-tools-ts.umd.global.js +2 -2
- package/dist/base-tools-ts.umd.global.js.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/string/random.d.ts +3 -3
- package/dist/string/random.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/ts/string/random.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -3037,7 +3037,7 @@ function createUUID() {
|
|
|
3037
3037
|
return v.toString(16);
|
|
3038
3038
|
});
|
|
3039
3039
|
}
|
|
3040
|
-
function
|
|
3040
|
+
function createViewRandId(prefix = "id_") {
|
|
3041
3041
|
return `${prefix}${Math.random().toString(36).substring(2, 16)}`;
|
|
3042
3042
|
}
|
|
3043
3043
|
function createTimeRandId(digits = 6) {
|
|
@@ -3591,9 +3591,9 @@ export {
|
|
|
3591
3591
|
compact,
|
|
3592
3592
|
constantCase,
|
|
3593
3593
|
countBy,
|
|
3594
|
-
createRandId,
|
|
3595
3594
|
createTimeRandId,
|
|
3596
3595
|
createUUID,
|
|
3596
|
+
createViewRandId,
|
|
3597
3597
|
curry,
|
|
3598
3598
|
curryRight,
|
|
3599
3599
|
dayjs,
|