@danielgindi/bcp-charger-api
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -94,3 +94,3 @@ import iconv from 'iconv-lite'; | ||
input = input.replaceAll(' ', ''); | ||
input = input.replace(/ /g, ''); | ||
const length = input.length; | ||
@@ -167,3 +167,3 @@ | ||
decodeString(hexInput) { | ||
return iconv.decode(Buffer.from(hexInput.replaceAll(' ', ''), 'hex'), 'gbk') | ||
return iconv.decode(Buffer.from(hexInput.replace(/ /g, ''), 'hex'), 'gbk') | ||
// eslint-disable-next-line no-control-regex | ||
@@ -170,0 +170,0 @@ .replace(/\x00*$/, ''); |
{ | ||
"name": "@danielgindi/bcp-charger-api", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A node.js api for controlling the BCP EV chargers (Z-Box compatible chargers)", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
53136