namirasoft-core
Advanced tools
Comparing version 1.4.41 to 1.4.42
export declare class BaseUUID { | ||
private static SIZE; | ||
static isValid(id: any): boolean; | ||
static isValidShort(id: string, short: string): boolean; | ||
static getShort(id: string): string; | ||
@@ -5,0 +6,0 @@ short: string; |
@@ -15,2 +15,7 @@ "use strict"; | ||
} | ||
static isValidShort(id, short) { | ||
if (BaseUUID.isValid(id)) | ||
return BaseUUID.getShort(id) === short; | ||
return false; | ||
} | ||
static getShort(id) { | ||
@@ -17,0 +22,0 @@ let parts = id.split("@")[0].split("-"); |
@@ -11,3 +11,3 @@ { | ||
"private": false, | ||
"version": "1.4.41", | ||
"version": "1.4.42", | ||
"author": "Amir Abolhasani", | ||
@@ -14,0 +14,0 @@ "license": "MIT", |
@@ -6,3 +6,3 @@ import { v4 } from "uuid"; | ||
private static SIZE = 20; | ||
static isValid(id: any) | ||
static isValid(id: any): boolean | ||
{ | ||
@@ -17,2 +17,8 @@ let value = id + ""; | ||
} | ||
static isValidShort(id: string, short: string): boolean | ||
{ | ||
if (BaseUUID.isValid(id)) | ||
return BaseUUID.getShort(id) === short; | ||
return false; | ||
} | ||
static getShort(id: string) | ||
@@ -19,0 +25,0 @@ { |
Sorry, the diff of this file is not supported yet
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
434939
5821
1