Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
/*! @azure/msal-node v2.16.2 2024-11-19 */
'use strict';
import { v4 } from 'uuid';
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
class GuidGenerator {
/**
*
* RFC4122: The version 4 UUID is meant for generating UUIDs from truly-random or pseudo-random numbers.
* uuidv4 generates guids from cryprtographically-string random
*/
generateGuid() {
return v4();
}
/**
* verifies if a string is GUID
* @param guid
*/
isGuid(guid) {
const regexGuid = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
return regexGuid.test(guid);
}
}
export { GuidGenerator };
//# sourceMappingURL=GuidGenerator.mjs.map