@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.cjs
CHANGED
|
@@ -57,9 +57,9 @@ __export(index_exports, {
|
|
|
57
57
|
compact: () => compact,
|
|
58
58
|
constantCase: () => constantCase,
|
|
59
59
|
countBy: () => countBy,
|
|
60
|
-
createRandId: () => createRandId,
|
|
61
60
|
createTimeRandId: () => createTimeRandId,
|
|
62
61
|
createUUID: () => createUUID,
|
|
62
|
+
createViewRandId: () => createViewRandId,
|
|
63
63
|
curry: () => curry,
|
|
64
64
|
curryRight: () => curryRight,
|
|
65
65
|
dayjs: () => import_dayjs.default,
|
|
@@ -3333,7 +3333,7 @@ function createUUID() {
|
|
|
3333
3333
|
return v.toString(16);
|
|
3334
3334
|
});
|
|
3335
3335
|
}
|
|
3336
|
-
function
|
|
3336
|
+
function createViewRandId(prefix = "id_") {
|
|
3337
3337
|
return `${prefix}${Math.random().toString(36).substring(2, 16)}`;
|
|
3338
3338
|
}
|
|
3339
3339
|
function createTimeRandId(digits = 6) {
|
|
@@ -3888,9 +3888,9 @@ function isLongitude(s) {
|
|
|
3888
3888
|
compact,
|
|
3889
3889
|
constantCase,
|
|
3890
3890
|
countBy,
|
|
3891
|
-
createRandId,
|
|
3892
3891
|
createTimeRandId,
|
|
3893
3892
|
createUUID,
|
|
3893
|
+
createViewRandId,
|
|
3894
3894
|
curry,
|
|
3895
3895
|
curryRight,
|
|
3896
3896
|
dayjs,
|