Skip to content

Commit

Permalink
Formatting (#584)
Browse files Browse the repository at this point in the history
* Formatting

* Build code
  • Loading branch information
GermanBluefox authored Aug 6, 2024
1 parent 136f5e9 commit 0c3850e
Show file tree
Hide file tree
Showing 20 changed files with 769 additions and 433 deletions.
25 changes: 0 additions & 25 deletions .npmignore

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Currently, the following **methods** are available:

- `commonTools.pattern2RegEx` - Converts a pattern to match object IDs into a RegEx string that can be used in `new RegExp(...)`
- `commonTools.getAdapterDir` - Finds the adapter directory of a given adapter
- `commonTools.getInstalledInfo` - Get list of all installed adapters and controller version on this host
- `commonTools.getInstalledInfo` - Get a list of all installed adapters and controller version on this host
- `commonTools.getLocalAddress` - Get the localhost (IPv6 or IPv4) address according to the ioBroker config
- `commonTools.getListenAllAddress` - Get the "listen all" (IPv6 or IPv4) address according to the ioBroker config
- `commonTools.isLocalAddress` - Check if given IPv4 or IPv6 ip address corresponds to localhost
Expand Down Expand Up @@ -100,8 +100,8 @@ This path is relative to the path returned by `getAbsoluteDefaultDataDir()`. The
## Tips while working on this module
- `npm run build` creates a clean rebuild of the module. This is done automatically before every build
- `npm run lint` checks for linting errors
- `npm run build` creates a clean rebuild of the module. This is done automatically before every build;
- `npm run lint` checks for linting errors;
- `npm run watch` creates an initial build and then incrementally compiles the changes while working.
## Errors in the definitions?
Expand Down Expand Up @@ -199,7 +199,7 @@ If you find errors in the definitions, e.g., function calls that should be allow
- (AlCalzone) Updated core declarations to v3.0.2. This includes support for new methods in JS-Controller 3.0
### v2.2.1 (2020-01-27)
- (AlCalzone) Included typings for the objects and states cache in the adapter class
- (AlCalzone) Included the typings for the objects and states cache in the adapter class
### v2.0.0 (2019-12-27)
- (AlCalzone) Updated core declarations to v2.0.0. This removes access to `adapter.objects` and `adapter.states`. You must use the new methods `adapter.getObjectView` and `adapter.getObjectList` instead of their counterparts from `objects`.
Expand Down
4 changes: 2 additions & 2 deletions build/cjs/controllerTools.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ declare function pattern2RegEx(pattern: string): string;
/**
* Finds the adapter directory of a given adapter
*
* @param adapter name of the adapter, e.g. hm-rpc
* @param adapter name of the adapter, e.g., hm-rpc
* @returns path to adapter directory or null if no directory found
*/
declare function getAdapterDir(adapter: string): string | null;
Expand All @@ -35,7 +35,7 @@ export interface InstalledInfo {
licenseUrl?: string;
}
/**
* Get list of all installed adapters and controller version on this host
* Get a list of all installed adapters and controller version on this host
* @param hostJsControllerVersion Version of the running js-controller, will be included in the returned information if provided
* @returns object containing information about installed host
*/
Expand Down
20 changes: 12 additions & 8 deletions build/cjs/controllerTools.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0c3850e

Please sign in to comment.