node-opcua-guid
Advanced tools
Comparing version 2.77.0 to 2.81.0
@@ -12,2 +12,3 @@ /** | ||
export declare const emptyGuid = "00000000-0000-0000-0000-000000000000"; | ||
export declare function normalizeGuid(guid: Guid | null | undefined): Guid; | ||
export declare type Guid = string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.emptyGuid = exports.isValidGuid = void 0; | ||
exports.normalizeGuid = exports.emptyGuid = exports.isValidGuid = void 0; | ||
/*** | ||
@@ -21,5 +21,9 @@ * @module node-opcua-guid | ||
exports.isValidGuid = isValidGuid; | ||
// 1 2 3 | ||
// 012345678901234567890123456789012345 | ||
// 1 2 3 | ||
// 012345678901234567890123456789012345 | ||
exports.emptyGuid = "00000000-0000-0000-0000-000000000000"; | ||
function normalizeGuid(guid) { | ||
return guid ? guid.toUpperCase() : exports.emptyGuid; | ||
} | ||
exports.normalizeGuid = normalizeGuid; | ||
//# sourceMappingURL=guid.js.map |
@@ -5,3 +5,3 @@ { | ||
"types": "./dist/index.d.ts", | ||
"version": "2.77.0", | ||
"version": "2.81.0", | ||
"description": "pure nodejs OPCUA SDK - module -guid", | ||
@@ -32,3 +32,3 @@ "scripts": { | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "5c8d45772d786fa4ba59369dd26679353ab5482b" | ||
"gitHead": "fd89928bc4a4b9f31a6b6e5921f743e8284eba2b" | ||
} |
@@ -19,6 +19,11 @@ /*** | ||
// 1 2 3 | ||
// 012345678901234567890123456789012345 | ||
// 1 2 3 | ||
// 012345678901234567890123456789012345 | ||
export const emptyGuid = "00000000-0000-0000-0000-000000000000"; | ||
export function normalizeGuid(guid: Guid |null | undefined): Guid { | ||
return guid ? guid.toUpperCase() : emptyGuid; | ||
} | ||
export type Guid = string; |
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
6011
94