New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-guid

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-guid - npm Package Compare versions

Comparing version 2.6.0-alpha.1 to 2.6.1

9

dist/guid.d.ts

@@ -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

4

dist/index.d.ts

@@ -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

6

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc