From ca436f0e74152d06ecfa75633122cbc81cc554bf Mon Sep 17 00:00:00 2001 From: foxriver76 Date: Sun, 30 Jul 2023 19:35:10 +0200 Subject: [PATCH] bump types version and go back to real import --- README.md | 3 +++ build/index.d.ts | 1 + build/index.js | 2 +- package-lock.json | 16 ++++++++-------- package.json | 4 ++-- src/index.ts | 2 +- 6 files changed, 16 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 0c01c96..a22c0bb 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,9 @@ If you find errors in the definitions, e.g. function calls that should be allowe Placeholder for the next version (at the beginning of the line): ### **WORK IN PROGRESS** --> +### **WORK IN PROGRESS** +- (foxriver76) upgrade to new version of types package + ### 3.0.2 (2023-07-30) - (foxriver76) fix require of `@iobroker/types` in built module diff --git a/build/index.d.ts b/build/index.d.ts index 544d6c4..4d86efa 100644 --- a/build/index.d.ts +++ b/build/index.d.ts @@ -1,4 +1,5 @@ import { ExitCodes } from "./exitCodes"; +import "@iobroker/types"; export { commonTools } from "./controllerTools"; export * from "./utils"; /** diff --git a/build/index.js b/build/index.js index 1894b3f..c9cd8e0 100644 --- a/build/index.js +++ b/build/index.js @@ -15,10 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { }; Object.defineProperty(exports, "__esModule", { value: true }); exports.EXIT_CODES = exports.getAbsoluteInstanceDataDir = exports.getAbsoluteDefaultDataDir = exports.commonTools = void 0; -/// const path = require("path"); const controllerTools_1 = require("./controllerTools"); const utils = require("./utils"); +require("@iobroker/types"); // Export utility methods to be used in adapters var controllerTools_2 = require("./controllerTools"); Object.defineProperty(exports, "commonTools", { enumerable: true, get: function () { return controllerTools_2.commonTools; } }); diff --git a/package-lock.json b/package-lock.json index 43b3b39..f6bbe92 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "devDependencies": { "@alcalzone/release-script": "~3.5.9", "@alcalzone/release-script-plugin-license": "~3.5.9", - "@iobroker/types": "^5.0.10", + "@iobroker/types": "^5.0.11", "@types/chai": "^4.3.4", "@types/chai-as-promised": "^7.1.5", "@types/mocha": "^10.0.1", @@ -37,7 +37,7 @@ "typescript": "^5.0.4" }, "peerDependencies": { - "@iobroker/types": "^5.0.10" + "@iobroker/types": "^5.0.11" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -297,9 +297,9 @@ "dev": true }, "node_modules/@iobroker/types": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/@iobroker/types/-/types-5.0.10.tgz", - "integrity": "sha512-p72nw7d43tpmw0hjUejJwzbgfepfM3UXfPrYCe18BNqqLMe9D4SU5g3SbLJjZHsz/3DcfTnJz1LAT1HizvPCDA==", + "version": "5.0.11", + "resolved": "https://registry.npmjs.org/@iobroker/types/-/types-5.0.11.tgz", + "integrity": "sha512-H96EQbum1mUVxO8gklWoW+G8R3sJLo2OOrGQHsjPrtKvmYU+UCLOjOMh9TjsYMvwGhPz86Bp8xlZSp5WifmbUA==", "dev": true, "engines": { "node": ">=12.0.0" @@ -3442,9 +3442,9 @@ "dev": true }, "@iobroker/types": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/@iobroker/types/-/types-5.0.10.tgz", - "integrity": "sha512-p72nw7d43tpmw0hjUejJwzbgfepfM3UXfPrYCe18BNqqLMe9D4SU5g3SbLJjZHsz/3DcfTnJz1LAT1HizvPCDA==", + "version": "5.0.11", + "resolved": "https://registry.npmjs.org/@iobroker/types/-/types-5.0.11.tgz", + "integrity": "sha512-H96EQbum1mUVxO8gklWoW+G8R3sJLo2OOrGQHsjPrtKvmYU+UCLOjOMh9TjsYMvwGhPz86Bp8xlZSp5WifmbUA==", "dev": true }, "@jridgewell/resolve-uri": { diff --git a/package.json b/package.json index df40770..59310f0 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "devDependencies": { "@alcalzone/release-script": "~3.5.9", "@alcalzone/release-script-plugin-license": "~3.5.9", - "@iobroker/types": "^5.0.10", + "@iobroker/types": "^5.0.11", "@types/chai": "^4.3.4", "@types/chai-as-promised": "^7.1.5", "@types/mocha": "^10.0.1", @@ -66,6 +66,6 @@ "typescript": "^5.0.4" }, "peerDependencies": { - "@iobroker/types": "^5.0.10" + "@iobroker/types": "^5.0.11" } } diff --git a/src/index.ts b/src/index.ts index 1e6d88f..dc1d8de 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,8 @@ -/// import * as path from "path"; import { controllerToolsInternal, resolveNamedModule } from "./controllerTools"; import { ExitCodes } from "./exitCodes"; import * as utils from "./utils"; +import "@iobroker/types"; // Export utility methods to be used in adapters export { commonTools } from "./controllerTools";