Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
56b8581d2b | |||
37a9df9086 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/smartdata",
|
"name": "@push.rocks/smartdata",
|
||||||
"version": "5.0.36",
|
"version": "5.0.37",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "do more with data",
|
"description": "do more with data",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartdata',
|
name: '@push.rocks/smartdata',
|
||||||
version: '5.0.36',
|
version: '5.0.37',
|
||||||
description: 'do more with data'
|
description: 'do more with data'
|
||||||
}
|
}
|
||||||
|
@ -130,8 +130,8 @@ export class SmartDataDbDoc<T extends TImplements, TImplements, TManager extends
|
|||||||
/**
|
/**
|
||||||
* get a unique id prefixed with the class name
|
* get a unique id prefixed with the class name
|
||||||
*/
|
*/
|
||||||
public static async getUniqueId<T = any>(this: plugins.tsclass.typeFest.Class<T>) {
|
public static async getNewId<T = any>(this: plugins.tsclass.typeFest.Class<T>, lengthArg: number = 20) {
|
||||||
return `${this.name}:${plugins.smartunique.shortId(20)}`;
|
return `${this.name}:${plugins.smartunique.shortId(lengthArg)}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user