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

iobroker.boschindego

Package Overview
Dependencies
Maintainers
31
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iobroker.boschindego - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

15

io-package.json
{
"common": {
"name": "boschindego",
"version": "1.1.0",
"version": "1.1.1",
"news": {
"1.1.1": {
"en": "fix Login",
"de": "Login Fix",
"ru": "исправление",
"pt": "corrigir Login",
"nl": "aanmelden repareren",
"fr": "correction de la connexion",
"it": "correzione Login",
"es": "fijación Iniciar sesión",
"pl": "fix Login",
"uk": "увійти",
"zh-cn": "固定登录"
},
"1.1.0": {

@@ -7,0 +20,0 @@ "en": "fix login flow",

37

main.js

@@ -105,14 +105,8 @@ 'use strict';

await this.updateDevices();
this.updateInterval = setInterval(
async () => {
await this.updateDevices();
},
this.config.interval * 60 * 1000,
);
this.refreshTokenInterval = setInterval(
async () => {
await this.refreshToken();
},
(this.session.expires_in || 3600) * 1000,
);
this.updateInterval = setInterval(async () => {
await this.updateDevices();
}, this.config.interval * 60 * 1000);
this.refreshTokenInterval = setInterval(async () => {
await this.refreshToken();
}, (this.session.expires_in - 100 || 3500) * 1000);
}

@@ -129,4 +123,3 @@ }

code_challenge_method: 'S256',
scope:
'openid profile email https://prodindego.onmicrosoft.com/indego-mobile-api/Indego.Mower.User offline_access',
scope: 'openid profile email https://prodindego.onmicrosoft.com/indego-mobile-api/Indego.Mower.User offline_access',
code_challenge: '5C1HXuvfGjAo-6TVzy_95lQNmpAjorsngCwiD3w3VHs',

@@ -181,3 +174,8 @@ redirect_uri: 'msauth.com.bosch.indegoconnect.cloud://auth/',

const token = this.cookieJar.getCookiesSync('https://singlekey-id.com/auth/').find((cookie) => cookie.key === 'X-CSRF-FORM-TOKEN');
if (!loginParams || !loginParams.ReturnUrl) {
this.log.error('Could not extract login params');
this.log.error(JSON.stringify(loginParams));
return;
}
// const token = this.cookieJar.getCookiesSync('https://singlekey-id.com/auth/').find((cookie) => cookie.key === 'X-CSRF-FORM-TOKEN');
const userResponse = await this.requestClient({

@@ -248,3 +246,3 @@ method: 'post',

method: 'get',
url: 'https://singlekey-id.com' + loginParams.returnUrl,
url: 'https://singlekey-id.com' + loginParams.ReturnUrl,
});

@@ -528,6 +526,3 @@ const formDataAuth = this.extractHidden(htmlForm.data);

for (const id of this.deviceArray) {
if (
(this.config.getMap && this.lastState[id] == null) ||
(this.lastState[id] >= 500 && this.lastState[id] <= 799)
) {
if ((this.config.getMap && this.lastState[id] == null) || (this.lastState[id] >= 500 && this.lastState[id] <= 799)) {
statusArray.push({

@@ -618,3 +613,3 @@ path: 'map',

'</svg>',
`<circle cx="${state.svg_xPos}" cy="${state.svg_yPos}" r="20" stroke="black" stroke-width="3" fill="yellow"/> </svg>`,
`<circle cx="${state.svg_xPos}" cy="${state.svg_yPos}" r="20" stroke="black" stroke-width="3" fill="yellow"/> </svg>`
);

@@ -621,0 +616,0 @@ //transparent background

{
"name": "iobroker.boschindego",
"version": "1.1.0",
"version": "1.1.1",
"description": "Adapter for Bosch Indego Mower",

@@ -23,5 +23,5 @@ "author": {

"@iobroker/adapter-core": "^3.0.4",
"axios": "^1.6.2",
"axios": "^1.6.7",
"http-cookie-agent": "^5.0.4",
"json2iob": "^2.4.11",
"json2iob": "^2.6.8",
"qs": "^6.11.2",

@@ -37,20 +37,8 @@ "tough-cookie": "^4.1.3"

"@tsconfig/node16": "^16.1.1",
"@types/chai": "^4.3.11",
"@types/chai-as-promised": "^7.1.8",
"@types/mocha": "^10.0.6",
"@types/node": "^20.10.2",
"@types/proxyquire": "^1.3.31",
"@types/sinon": "^17.0.2",
"@types/sinon-chai": "^3.2.12",
"chai": "^4.3.10",
"chai-as-promised": "^7.1.1",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"mocha": "^10.2.0",
"prettier": "^3.1.0",
"proxyquire": "^2.1.3",
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0",
"typescript": "~5.3.2"
"@types/node": "^20.11.24",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.2.5",
"typescript": "~5.3.3"
},

@@ -82,4 +70,4 @@ "main": "main.js",

"overrides": {
"axios": "^1.6.2"
"axios": "^1.6.7"
}
}

@@ -30,2 +30,6 @@ ![Logo](admin/boschindego.png)

-->
### 1.1.1 (2024-03-03)
- fix Login
### 1.1.0 (2023-12-01)

@@ -55,3 +59,3 @@

Copyright (c) 2023 TA2k <tombox2020@gmail.com>
Copyright (c) 2024 TA2k <tombox2020@gmail.com>

@@ -58,0 +62,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

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