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

node-opcua-utils

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-utils - npm Package Compare versions

Comparing version 2.66.0 to 2.67.0

6

dist/string_utils.js

@@ -12,3 +12,3 @@ "use strict";

}
return str.substr(0, 1).toUpperCase() + str.substr(1);
return str.substring(0, 1).toUpperCase() + str.substring(1);
}

@@ -122,5 +122,5 @@ exports.capitalizeFirstLetter = capitalizeFirstLetter;

}
let result = str.substr(0, 1).toLowerCase() + str.substr(1);
let result = str.substring(0, 1).toLowerCase() + str.substring(1);
if (result.length > 3 && isUpperCaseChar(str[1]) && isUpperCaseChar(str[2])) {
result = str.substr(0, 2).toLowerCase() + str.substr(2);
result = str.substring(0, 2).toLowerCase() + str.substring(2);
}

@@ -127,0 +127,0 @@ return result;

@@ -5,3 +5,3 @@ "use strict";

function w(s, length) {
return ("000" + s).substr(-length);
return ("" + s).padStart(length, "0");
}

@@ -8,0 +8,0 @@ function t(d) {

{
"name": "node-opcua-utils",
"version": "2.66.0",
"version": "2.67.0",
"description": "pure nodejs OPCUA SDK - module -utils",

@@ -38,3 +38,3 @@ "main": "./dist/index.js",

"homepage": "http://node-opcua.github.io/",
"gitHead": "97f47e2e242a1fd737495fd64cb65e8fb7a9964b"
"gitHead": "74c2fd7d4ce3eb48d25a911258bf90a64218ea0e"
}

@@ -9,3 +9,3 @@ /**

}
return str.substr(0, 1).toUpperCase() + str.substr(1);
return str.substring(0, 1).toUpperCase() + str.substring(1);
}

@@ -117,7 +117,7 @@

}
let result = str.substr(0, 1).toLowerCase() + str.substr(1);
let result = str.substring(0, 1).toLowerCase() + str.substring(1);
if (result.length > 3 && isUpperCaseChar(str[1]) && isUpperCaseChar(str[2])) {
result = str.substr(0, 2).toLowerCase() + str.substr(2);
result = str.substring(0, 2).toLowerCase() + str.substring(2);
}
return result;
}
function w(s: string | number, length: number): string {
return ("000" + s).substr(-length);
return ("" + s).padStart(length, "0");
}

@@ -4,0 +4,0 @@

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