node-opcua-guid
Advanced tools
Comparing version 2.6.0-alpha.1 to 2.6.1
@@ -0,3 +1,12 @@ | ||
/** | ||
* checks if provided string is a valid Guid | ||
* a valid GUID has the form XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX | ||
* when X is a hexadecimal digit | ||
* | ||
* @method isValidGuid | ||
* @param guid - the GUID to test for validaty | ||
* @return - true if the string is a valid GUID. | ||
*/ | ||
export declare function isValidGuid(guid: string): boolean; | ||
export declare const emptyGuid = "00000000-0000-0000-0000-000000000000"; | ||
export declare type Guid = string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.emptyGuid = exports.isValidGuid = void 0; | ||
/*** | ||
* @module node-opcua-guid | ||
*/ | ||
const regexGUID = /^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}/; | ||
/** | ||
* checks if provided string is a valid Guid | ||
* a valid GUID has the form XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX | ||
* when X is a hexadecimal digit | ||
* | ||
* @method isValidGuid | ||
* @param guid - the GUID to test for validaty | ||
* @return - true if the string is a valid GUID. | ||
*/ | ||
function isValidGuid(guid) { | ||
@@ -9,3 +21,5 @@ return regexGUID.test(guid); | ||
exports.isValidGuid = isValidGuid; | ||
// 1 2 3 | ||
// 012345678901234567890123456789012345 | ||
exports.emptyGuid = "00000000-0000-0000-0000-000000000000"; | ||
//# sourceMappingURL=guid.js.map |
@@ -0,1 +1,5 @@ | ||
/** | ||
* @module node-opcua-guid | ||
* | ||
*/ | ||
export * from "./guid"; |
@@ -11,5 +11,9 @@ "use strict"; | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
} | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* @module node-opcua-guid | ||
* | ||
*/ | ||
__exportStar(require("./guid"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -5,3 +5,3 @@ { | ||
"types": "./dist/index.d.ts", | ||
"version": "2.6.0-alpha.1", | ||
"version": "2.6.1", | ||
"description": "pure nodejs OPCUA SDK - module -guid", | ||
@@ -15,3 +15,3 @@ "scripts": { | ||
"dependencies": { | ||
"node-opcua-assert": "^2.6.0-alpha.1" | ||
"node-opcua-assert": "^2.6.1" | ||
}, | ||
@@ -36,3 +36,3 @@ "devDependencies": { | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "becfcbe561410100413321e3f7f3913c6f75b837" | ||
"gitHead": "15f0c0f83232fc63310dc04fea187048c7a01e4b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5334
82
0
Updatednode-opcua-assert@^2.6.1