@pushrocks/lik
Advanced tools
Comparing version 4.0.12 to 4.0.13
import * as plugins from './lik.plugins'; | ||
export declare const uni: (prefix?: string) => string; | ||
export interface IObjectmapForEachFunction<T> { | ||
@@ -3,0 +4,0 @@ (itemArg: T): void; |
@@ -22,5 +22,12 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ObjectMap = void 0; | ||
exports.ObjectMap = exports.uni = void 0; | ||
const plugins = __importStar(require("./lik.plugins")); | ||
const lik_fastmap_1 = require("./lik.fastmap"); | ||
exports.uni = (prefix = 'uni') => { | ||
return `${prefix}xxxxxxxxxxx`.replace(/[xy]/g, c => { | ||
const r = (Math.random() * 16) | 0; | ||
const v = c === 'x' ? r : (r & 0x3) | 0x8; | ||
return v.toString(16); | ||
}); | ||
}; | ||
/** | ||
@@ -74,3 +81,3 @@ * allows keeping track of objects | ||
// otherwise lets create it | ||
const uniqueKey = plugins.smartunique.shortId(); | ||
const uniqueKey = exports.uni('key'); | ||
this.addMappedUnique(uniqueKey, objectArg); | ||
@@ -207,2 +214,2 @@ return uniqueKey; | ||
exports.ObjectMap = ObjectMap; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLm9iamVjdG1hcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL2xpay5vYmplY3RtYXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHVEQUF5QztBQUN6QywrQ0FBd0M7QUFVeEM7O0dBRUc7QUFDSCxNQUFhLFNBQVM7SUFNcEI7O09BRUc7SUFDSDtRQVJRLFlBQU8sR0FBRyxJQUFJLHFCQUFPLEVBQUssQ0FBQztRQUVuQyxTQUFTO1FBQ0YsaUJBQVksR0FBRyxJQUFJLE9BQU8sQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLE9BQU8sRUFBTyxDQU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DO1NBQ3BDO0lBQ0gsQ0FBQztJQUVEOztPQUVHO0lBQ0ksTUFBTSxDQUFDLFlBQTBCO1FBQ3RDLE1BQU0sa0JBQWtCLEdBQUcsSUFBSSxTQUFTLEVBQUssQ0FBQztRQUM5QyxrQkFBa0IsQ0FBQyxPQUFPLENBQUMsZUFBZSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUN6RCxrQkFBa0IsQ0FBQyxPQUFPLENBQUMsZUFBZSxDQUFDLFlBQVksQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUNqRSxPQUFPLGtCQUFrQixDQUFDO0lBQzVCLENBQUM7SUFFRDs7OztPQUlHO0lBQ0ksZUFBZSxDQUFDLFlBQTBCO1FBQy9DLElBQUksQ0FBQyxPQUFPLENBQUMsZUFBZSxDQUFDLFlBQVksQ0FBQyxPQUFPLENBQUMsQ0FBQztJQUNyRCxDQUFDO0NBQ0Y7QUFqTUQsOEJBaU1DIn0= |
@@ -6,5 +6,4 @@ import * as smartdelay from '@pushrocks/smartdelay'; | ||
import * as smarttime from '@pushrocks/smarttime'; | ||
import * as smartunique from '@pushrocks/smartunique'; | ||
export { smartdelay, smartmatch, smartpromise, smartrx, smarttime, smartunique }; | ||
export { smartdelay, smartmatch, smartpromise, smartrx, smarttime }; | ||
declare const symbolTree: any; | ||
export { symbolTree }; |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.symbolTree = exports.smartunique = exports.smarttime = exports.smartrx = exports.smartpromise = exports.smartmatch = exports.smartdelay = void 0; | ||
exports.symbolTree = exports.smarttime = exports.smartrx = exports.smartpromise = exports.smartmatch = exports.smartdelay = void 0; | ||
// ============== | ||
@@ -37,4 +37,2 @@ // @pushrocks | ||
exports.smarttime = smarttime; | ||
const smartunique = __importStar(require("@pushrocks/smartunique")); | ||
exports.smartunique = smartunique; | ||
// ============== | ||
@@ -45,2 +43,2 @@ // third party | ||
exports.symbolTree = symbol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TUFBTSxVQUFVLEdBQUcsT0FBTyxDQUFDLGFBQWEsQ0FBQyxDQUFDO0FBRWpDLGdDQUFVIn0= |
{ | ||
"name": "@pushrocks/lik", | ||
"version": "4.0.12", | ||
"version": "4.0.13", | ||
"private": false, | ||
@@ -38,3 +38,2 @@ "description": "light little helpers for node", | ||
"@pushrocks/smarttime": "^3.0.18", | ||
"@pushrocks/smartunique": "^3.0.3", | ||
"@types/minimatch": "^3.0.3", | ||
@@ -41,0 +40,0 @@ "symbol-tree": "^3.2.4" |
import * as plugins from './lik.plugins'; | ||
import { FastMap } from './lik.fastmap'; | ||
export const uni = (prefix: string = 'uni') => { | ||
return `${prefix}xxxxxxxxxxx`.replace(/[xy]/g, c => { | ||
const r = (Math.random() * 16) | 0; | ||
const v = c === 'x' ? r : (r & 0x3) | 0x8; | ||
return v.toString(16); | ||
}); | ||
}; | ||
export interface IObjectmapForEachFunction<T> { | ||
@@ -67,3 +75,3 @@ (itemArg: T): void; | ||
// otherwise lets create it | ||
const uniqueKey = plugins.smartunique.shortId(); | ||
const uniqueKey = uni('key'); | ||
this.addMappedUnique(uniqueKey, objectArg); | ||
@@ -70,0 +78,0 @@ return uniqueKey; |
@@ -9,5 +9,4 @@ // ============== | ||
import * as smarttime from '@pushrocks/smarttime'; | ||
import * as smartunique from '@pushrocks/smartunique'; | ||
export { smartdelay, smartmatch, smartpromise, smartrx, smarttime, smartunique }; | ||
export { smartdelay, smartmatch, smartpromise, smartrx, smarttime }; | ||
@@ -14,0 +13,0 @@ // ============== |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1608848
7
14469
- Removed@pushrocks/smartunique@^3.0.3
- Removed@pushrocks/smartunique@3.0.3(transitive)
- Removed@types/shortid@0.0.29(transitive)
- Removed@types/uuid@7.0.8(transitive)
- Removednanoid@2.1.11(transitive)
- Removedshortid@2.2.16(transitive)
- Removeduuid@7.0.3(transitive)