@iobroker/adapter-core
Advanced tools
Comparing version 2.6.7 to 2.6.8
@@ -56,2 +56,6 @@ export declare let controllerCommonModulesInternal: any; | ||
declare function getInstalledInfo(hostJsControllerVersion?: string): GetInstalledInfoReponse; | ||
/** | ||
* Checks if we are running inside a docker container | ||
*/ | ||
declare function isDocker(): boolean; | ||
export declare const commonTools: { | ||
@@ -61,2 +65,3 @@ pattern2RegEx: typeof pattern2RegEx; | ||
getInstalledInfo: typeof getInstalledInfo; | ||
isDocker: typeof isDocker; | ||
password: any; | ||
@@ -63,0 +68,0 @@ letsEncrypt: any; |
@@ -113,2 +113,8 @@ "use strict"; | ||
} | ||
/** | ||
* Checks if we are running inside a docker container | ||
*/ | ||
function isDocker() { | ||
return exports.controllerToolsInternal.isDocker(); | ||
} | ||
exports.commonTools = { | ||
@@ -118,2 +124,3 @@ pattern2RegEx, | ||
getInstalledInfo, | ||
isDocker, | ||
// TODO: Add more methods from lib/tools.js as needed | ||
@@ -120,0 +127,0 @@ password: resolveNamedModule("password"), |
@@ -1,2 +0,2 @@ | ||
export declare type ExitCodes = Readonly<{ | ||
export type ExitCodes = Readonly<{ | ||
NO_ERROR: number; | ||
@@ -3,0 +3,0 @@ JS_CONTROLLER_STOPPED: number; |
@@ -14,3 +14,3 @@ /// <reference types="iobroker" /> | ||
/** This type augments the ioBroker Adapter options to accept two generics for the objects and states cache */ | ||
export declare type AdapterOptions<HasObjectsCache extends boolean | undefined = undefined, HasStatesCache extends boolean | undefined = undefined> = Omit<ioBroker.AdapterOptions, "objects" | "states"> & (true extends HasObjectsCache ? { | ||
export type AdapterOptions<HasObjectsCache extends boolean | undefined = undefined, HasStatesCache extends boolean | undefined = undefined> = Omit<ioBroker.AdapterOptions, "objects" | "states"> & (true extends HasObjectsCache ? { | ||
objects: true; | ||
@@ -17,0 +17,0 @@ } : { |
{ | ||
"name": "@iobroker/adapter-core", | ||
"version": "2.6.7", | ||
"version": "2.6.8", | ||
"description": "Core module to be used in ioBroker adapters. Acts as the bridge to js-controller.", | ||
@@ -40,25 +40,25 @@ "author": { | ||
"@alcalzone/release-script-plugin-license": "~3.5.9", | ||
"@types/chai": "^4.3.3", | ||
"@types/chai": "^4.3.4", | ||
"@types/chai-as-promised": "^7.1.5", | ||
"@types/mocha": "^9.1.0", | ||
"@types/node": "^18.7.23", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^18.15.7", | ||
"@types/proxyquire": "^1.3.28", | ||
"@types/sinon": "^10.0.11", | ||
"@types/sinon-chai": "^3.2.8", | ||
"@typescript-eslint/eslint-plugin": "^5.38.1", | ||
"@typescript-eslint/parser": "^5.38.1", | ||
"chai": "^4.3.6", | ||
"@types/sinon": "^10.0.13", | ||
"@types/sinon-chai": "^3.2.9", | ||
"@typescript-eslint/eslint-plugin": "^5.56.0", | ||
"@typescript-eslint/parser": "^5.56.0", | ||
"chai": "^4.3.7", | ||
"chai-as-promised": "^7.1.1", | ||
"eslint": "^8.24.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint": "^8.36.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"mocha": "^9.2.2", | ||
"prettier": "^2.7.1", | ||
"proxyquire": "^2.1.0", | ||
"rimraf": "^3.0.0", | ||
"sinon": "^13.0.2", | ||
"mocha": "^10.2.0", | ||
"prettier": "^2.8.7", | ||
"proxyquire": "^2.1.3", | ||
"rimraf": "^3.0.2", | ||
"sinon": "^15.0.2", | ||
"sinon-chai": "^3.7.0", | ||
"source-map-support": "^0.5.21", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.8.4" | ||
"typescript": "^4.9.5" | ||
}, | ||
@@ -65,0 +65,0 @@ "dependencies": { |
@@ -77,2 +77,3 @@ # Adapter-Core | ||
- `commonTools.zipFiles` - Previously exposed as `lib/zipFiles.js` in JS-Controller. | ||
- `commonTools.isDocker` - Checks if we are running inside a docker container | ||
@@ -111,2 +112,5 @@ ## Automatic backup of data files | ||
--> | ||
### 2.6.8 (2023-03-24) | ||
- (Apollon77) Expose more JS-Controller internals under the `commonTools` export | ||
### 2.6.7 (2022-10-08) | ||
@@ -173,3 +177,3 @@ - (Apollon77) Expose more JS-Controller internals under the `commonTools` export | ||
Copyright (c) 2018-2022 AlCalzone | ||
Copyright (c) 2018-2023 AlCalzone | ||
@@ -176,0 +180,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37611
21
557
194