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

homebridge-fordpass

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-fordpass - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

dist/accessory.js

18

dist/index.js

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

const fordpass_connection_1 = require("./fordpass-connection");
const accessory_1 = require("./accessory");
let hap;

@@ -34,16 +35,7 @@ let Accessory;

const vehicle = new fordpass_1.Vehicle(accessory.context.name, accessory.context.vin, this.config, this.log);
const oldLockService = accessory.getService(hap.Service.LockMechanism);
if (oldLockService) {
this.log.debug(`Existing lock found for ${accessory.displayName}. Removing...`);
accessory.removeService(oldLockService);
}
const oldSwitchService = accessory.getService(hap.Service.Switch);
if (oldSwitchService) {
this.log.debug(`Existing switch found for ${accessory.displayName}. Removing...`);
accessory.removeService(oldSwitchService);
}
const fordAccessory = new accessory_1.FordpassAccessory(accessory);
// Create Lock service
const defaultState = 1;
const lockService = new hap.Service.LockMechanism();
const switchService = new hap.Service.Switch();
const lockService = fordAccessory.createService(hap.Service.LockMechanism);
const switchService = fordAccessory.createService(hap.Service.Switch);
lockService.setCharacteristic(hap.Characteristic.LockCurrentState, defaultState);

@@ -81,3 +73,2 @@ lockService

});
accessory.addService(lockService);
switchService

@@ -113,3 +104,2 @@ .setCharacteristic(hap.Characteristic.On, false)

});
accessory.addService(switchService);
this.vehicles.push(vehicle);

@@ -116,0 +106,0 @@ this.accessories.push(accessory);

{
"displayName": "Homebridge FordPass",
"name": "homebridge-fordpass",
"version": "1.1.3",
"version": "1.1.4",
"description": "Fordpass plugin for homebridge: https://homebridge.io/",

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

"dependencies": {
"axios": "^0.19.2"
"axios": "^0.20.0"
},

@@ -63,3 +63,3 @@ "devDependencies": {

"@types/node": "^14.0.22",
"@typescript-eslint/eslint-plugin": "^3.6.0",
"@typescript-eslint/eslint-plugin": "^4.0.0",
"@typescript-eslint/parser": "^3.6.0",

@@ -66,0 +66,0 @@ "eslint": "^7.4.0",

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