node-opcua-hostname
Advanced tools
Comparing version 2.120.0 to 2.128.0
@@ -6,3 +6,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.resolveFullyQualifiedDomainName = exports.getHostname = exports.getFullyQualifiedDomainName = exports.prepareFQDN = exports.extractFullyQualifiedDomainName = void 0; | ||
exports.extractFullyQualifiedDomainName = extractFullyQualifiedDomainName; | ||
exports.prepareFQDN = prepareFQDN; | ||
exports.getFullyQualifiedDomainName = getFullyQualifiedDomainName; | ||
exports.getHostname = getHostname; | ||
exports.resolveFullyQualifiedDomainName = resolveFullyQualifiedDomainName; | ||
/** | ||
@@ -66,7 +70,5 @@ * @module node-opcua-hostname | ||
} | ||
exports.extractFullyQualifiedDomainName = extractFullyQualifiedDomainName; | ||
async function prepareFQDN() { | ||
_fullyQualifiedDomainNameInCache = await extractFullyQualifiedDomainName(); | ||
} | ||
exports.prepareFQDN = prepareFQDN; | ||
function getFullyQualifiedDomainName(optional_max_length) { | ||
@@ -78,7 +80,5 @@ if (!_fullyQualifiedDomainNameInCache) { | ||
} | ||
exports.getFullyQualifiedDomainName = getFullyQualifiedDomainName; | ||
function getHostname() { | ||
return os_1.default.hostname(); | ||
} | ||
exports.getHostname = getHostname; | ||
function resolveFullyQualifiedDomainName(str) { | ||
@@ -93,5 +93,4 @@ if (!_fullyQualifiedDomainNameInCache) { | ||
} | ||
exports.resolveFullyQualifiedDomainName = resolveFullyQualifiedDomainName; | ||
// note : under windows ... echo %COMPUTERNAME%.%USERDNSDOMAIN% | ||
prepareFQDN(); | ||
//# sourceMappingURL=hostname.js.map |
@@ -5,3 +5,3 @@ { | ||
"types": "./dist/index.d.ts", | ||
"version": "2.120.0", | ||
"version": "2.128.0", | ||
"description": "pure nodejs OPCUA SDK - module hostname", | ||
@@ -14,5 +14,2 @@ "scripts": { | ||
}, | ||
"devDependencies": { | ||
"should": "^13.2.3" | ||
}, | ||
"author": "Etienne Rossignon", | ||
@@ -33,3 +30,3 @@ "license": "MIT", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "f4ae243bb61ba7af4c019a3cfe76dfc0f6427983", | ||
"gitHead": "67a73af6b831d8651a0e66ceb295f159cab4386b", | ||
"files": [ | ||
@@ -36,0 +33,0 @@ "dist", |
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
0
13406
226