node-opcua-utils
Advanced tools
Comparing version 2.66.0 to 2.67.0
@@ -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
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
68050