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

@danielgindi/bcp-charger-api

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@danielgindi/bcp-charger-api - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

10

index.js

@@ -588,3 +588,3 @@ import iconv from 'iconv-lite';

let model = {
mode: parseInt(result.data.substring(0, 4), 16),
mode: /**@type ChargerMode*/parseInt(result.data.substring(0, 4), 16),
version: this.#util.decodeString(result.data.substring(4, 44)),

@@ -598,2 +598,10 @@ firmwareVersion: parseInt(result.data.substring(44, 46), 16).toString() + '.' +

/**
* Charger model info has been retrieved.
*
* @event charger_model
* @type {ChargerModel}
*/
this.emit('charger_model', model);
return model;

@@ -600,0 +608,0 @@ }

2

package.json
{
"name": "@danielgindi/bcp-charger-api",
"version": "1.0.1",
"version": "1.0.2",
"description": "A node.js api for controlling the BCP EV chargers (Z-Box compatible chargers)",

@@ -5,0 +5,0 @@ "type": "module",

@@ -83,2 +83,3 @@ # @danielgindi/bcp-charger-api

* `'ip' (event: { ip: string, port: number })`
* `'charger_model' (model: ChargeModel)`
* `'fault_status' (status: ChargeFaultStatus)`

@@ -85,0 +86,0 @@ * `'realtime_data' (data: ChargerRealTimeData)`

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