Proconip

Latest version: v1.4.7

Safety actively analyzes 688649 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 9

1.4.1

* Fine tune error behavior of the `GetStateService.start()`.
* Add documentation for `errorCallback` parameter.
* Add new optional parameter `stopOnError: boolean`.
* Pass original `Error` (mostly `AxiosError`) instead of an own error
as parameter to the `errorCallback` (parameter of the
`GetStateService.start()` method).
* New method signature + documentation:
TypeScript
/**
* Start the service.
*
* This will periodically update the internal data and invoke the optional
* callables each time new data is received.
*
* param successCallback Will be triggered everytime the service receives
* new data. The current [[`GetStateData`]] object is passed as parameter
* to the callback.
* param errorCallback Error callback receives the most recent error as
* parameter, in case the consecutive error tolerance is hit.
* param stopOnError Whether to stop in case the consecutive error tolerance
* is hit. Default behavior (for backward compatibility) is to keep running
* in any case.
*/
start(
successCallback?: (data: GetStateData) => void,
errorCallback?: (e: Error) => void,
stopOnError?: boolean);

1.4.0

* Change build parameters making the default build an ES-Module
* There is nothing to change if you want to keep using the CommonJS build.
But you can also make use of the index.js also added with this release
(see next bullet point).
* Introduce the commonly used index.js to ease `import`/`require` statements.
This means you can import all classes and interfaces from the index module.
* For the CommonJS variant you can simply your imports by using
`import { GetStateService } from 'procon-ip/lib` instead of
`import { GetStateService } from 'procon-ip/lib/get-state.service'`.
* For the new ES Module variant just use
`import { GetStateService } from 'procon-ip'`.
* Add new property `RelayDataObject.isExternal`.
* Migrate from `tslint` to `eslint`.
* Update dependencies.

1.3.3

Fix `RelayDataObject.bitMask` (was broken since `GetStateDataObject.categoryId` refactoring).

1.3.2

* Fix `UsrcfgCgiService.send()` method for switching relays.

1.3.1

Fixes the `GetStateDataObject.categoryId` according to its documentation (now start counting at 0 instead of 1) and updates dependencies.

1.3.0

* **Breaking changes:** Some properties of the `GetStateDataSysInfo` have been
renamed fixing a typo:
* `phPlusDosageRelais` --> `phPlusDosageRelay`
* `phMinusDosageRelais` --> `phMinusDosageRelay`
* `chlorineDosageRelais` --> `chlorineDosageRelay`
* New methods have been added to the `GetStateDataSysInfo()` class (credits go to
kriede for this):
* `isElectrolysis(): boolean`
* `getDosageRelais(object: GetStateDataObject): number`
* `isAvatarEnabled(): boolean`
* `isFlowSensorEnabled(): boolean`
* `isDmxEnabled(): boolean`
* Some typos in documentation and debug output have been fixed.
* Various dependencies have been updated.

Page 5 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.