Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-hostname

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-hostname - npm Package Compare versions

Comparing version 0.2.2 to 0.3.0

4

package.json
{
"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

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