node-opcua-hostname
Advanced tools
Comparing version 0.2.2 to 0.3.0
{ | ||
"name": "node-opcua-hostname", | ||
"main": "./src/hostname.js", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"description": "pure nodejs OPCUA SDK - module -hostname", | ||
@@ -11,3 +11,3 @@ "scripts": { | ||
"fqdn": "0.0.3", | ||
"node-opcua-assert": "^0.2.0" | ||
"node-opcua-assert": "^0.3.0" | ||
}, | ||
@@ -14,0 +14,0 @@ "author": "Etienne Rossignon", |
"use strict"; | ||
var os = require("os"); | ||
const os = require("os"); | ||
var trim = function (str, length) { | ||
const trim = function (str, length) { | ||
if (!length) { | ||
@@ -11,3 +11,3 @@ return str; | ||
var _fully_qualified_domain_name_cache = null; | ||
let _fully_qualified_domain_name_cache = null; | ||
@@ -18,7 +18,7 @@ function get_fully_qualified_domain_name(optional_max_length) { | ||
} | ||
var fqdn; | ||
let fqdn; | ||
if (process.platform === "win32") { | ||
// http://serverfault.com/a/73643/251863 | ||
var env = process.env; | ||
const env = process.env; | ||
fqdn = env.COMPUTERNAME + ( (env.USERDNSDOMAIN && env.USERDNSDOMAIN.length > 0) ? "." + env.USERDNSDOMAIN : ""); | ||
@@ -25,0 +25,0 @@ _fully_qualified_domain_name_cache = fqdn; |
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
3089
+ Addedansi-styles@3.2.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addednode-opcua-assert@0.3.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
- Removednode-opcua-assert@0.2.0(transitive)
Updatednode-opcua-assert@^0.3.0