From 6b80f916daf75ae7841c08272a83efd7518a0045 Mon Sep 17 00:00:00 2001 From: Thomas Pohl Date: Fri, 15 Sep 2023 11:47:22 +0200 Subject: [PATCH] Prepare release 0.1.0 --- README.md | 4 ++++ build/main.js | 1 - build/main.js.map | 4 ++-- io-package.json | 15 ++++++++++++++- package-lock.json | 4 ++-- package.json | 6 +++--- 6 files changed, 25 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 687ed54..edb82af 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,10 @@ Use the available blocks to automatically interact with your spreadsheet. ![Blockly](img/blockly-append.png) ## Changelog +### 0.1.0 +* (Thomas Pohl) Preparation for first stable release +* (Thomas Pohl) Improve logging + Code cleanup + ### 0.0.6 * (Thomas Pohl) Parameter validation diff --git a/build/main.js b/build/main.js index 98e9d52..466d9c3 100644 --- a/build/main.js +++ b/build/main.js @@ -44,7 +44,6 @@ class GoogleSpreadsheet extends utils.Adapter { } onMessage(obj) { if (typeof obj === "object" && obj.message) { - this.log.warn("switching command: " + obj.command); switch (obj.command) { case "append": { this.log.debug("append to spreadsheet"); diff --git a/build/main.js.map b/build/main.js.map index 8502e07..6ae2c84 100644 --- a/build/main.js.map +++ b/build/main.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["../src/main.ts"], - "sourcesContent": ["/*\n * Created with @iobroker/create-adapter v2.4.0\n */\n\n\n\n\nimport * as utils from \"@iobroker/adapter-core\";\n\nimport fs from \"fs\";\nimport { SpreadsheetUtils } from \"./lib/google\";\n\n\nclass GoogleSpreadsheet extends utils.Adapter {\n\n private spreadsheet: SpreadsheetUtils;\n\n public constructor(options: Partial = {}) {\n super({\n ...options,\n name: \"google-spreadsheet\",\n });\n this.on(\"ready\", this.onReady.bind(this));\n this.on(\"message\", this.onMessage.bind(this));\n this.on(\"unload\", this.onUnload.bind(this));\n this.spreadsheet = new SpreadsheetUtils(this.config, this.log);\n }\n\n /**\n * Is called when databases are connected and adapter received configuration.\n */\n private async onReady(): Promise {\n // Initialize your adapter here\n\n // The adapters config (in the instance object everything under the attribute \"native\") is accessible via\n // this.config:\n this.log.debug(\"config spreadsheetId: \" + this.config.spreadsheetId);\n this.spreadsheet = new SpreadsheetUtils(this.config, this.log);\n\n }\n\n /**\n * Is called when adapter shuts down - callback has to be called under any circumstances!\n */\n private onUnload(callback: () => void): void {\n try {\n\n callback();\n } catch (e) {\n callback();\n }\n }\n\n // If you need to accept messages in your adapter, uncomment the following block and the corresponding line in the constructor.\n // /**\n // * Some message was sent to this instance over message box. Used by email, pushover, text2speech, ...\n // * Using this method requires \"common.messagebox\" property to be set to true in io-package.json\n // */\n private onMessage(obj: ioBroker.Message): void {\n if (typeof obj === \"object\" && obj.message) {\n this.log.warn(\"switching command: \" + obj.command);\n switch (obj.command) {\n case \"append\": {\n this.log.debug(\"append to spreadsheet\");\n this.append(obj);\n\n if (obj.callback) this.sendTo(obj.from, obj.command, \"Message received\", obj.callback);\n break; \n }\n case \"deleteRows\": {\n this.log.debug(\"delete rows from spreadsheet\");\n this.deleteRows(obj);\n\n if (obj.callback) this.sendTo(obj.from, obj.command, \"Message received\", obj.callback);\n break; \n }\n case \"createSheet\": {\n this.log.debug(\"create sheet\");\n this.createSheet(obj);\n\n if (obj.callback) this.sendTo(obj.from, obj.command, \"Message received\", obj.callback);\n break; \n }\n case \"deleteSheet\": {\n this.log.debug(\"delete sheet\");\n this.deleteSheet(obj);\n\n if (obj.callback) this.sendTo(obj.from, obj.command, \"Message received\", obj.callback);\n break; \n }\n case \"duplicateSheet\": {\n this.log.debug(\"duplicate sheet\");\n this.duplicateSheet(obj);\n\n if (obj.callback) this.sendTo(obj.from, obj.command, \"Message received\", obj.callback);\n break; \n }\n case \"upload\": {\n this.log.debug(\"upload file\");\n this.upload(obj);\n\n if (obj.callback) this.sendTo(obj.from, obj.command, \"Message received\", obj.callback);\n break; \n }\n default: {\n this.log.warn(\"unknown command: \" + obj.command);\n break; \n }\n }\n }\n }\n\n private upload(message: Record): void {\n const messageData: Record = message.message as Record;\n if (this.missingParameters([\"source\", \"target\", \"parentFolder\"], messageData)) {\n return;\n }\n this.spreadsheet.upload(messageData[\"source\"], messageData[\"target\"], messageData[\"parentFolder\"], fs.createReadStream(messageData[\"source\"]));\n }\n private append(message: Record): void {\n const messageData: Record = message.message as Record;\n if (this.missingParameters([\"sheetName\", \"data\"], messageData)) {\n return;\n }\n this.spreadsheet.append(messageData[\"sheetName\"], messageData[\"data\"]);\n }\n public deleteRows(message: ioBroker.Message): void {\n const messageData: Record = message.message as Record;\n if (this.missingParameters([\"sheetName\", \"start\", \"end\"], messageData)) {\n return;\n }\n this.spreadsheet.deleteRows(messageData[\"sheetName\"], messageData[\"start\"], messageData[\"end\"]);\n }\n public createSheet(message: ioBroker.Message): void {\n this.spreadsheet.createSheet(message.message as string);\n }\n public deleteSheet(message: ioBroker.Message): void {\n this.spreadsheet.deleteSheet(message.message as string);\n }\n public duplicateSheet(message: ioBroker.Message): void {\n const messageData: Record = message.message as Record;\n if (this.missingParameters([\"source\", \"target\", \"index\"], messageData)) {\n return;\n }\n this.spreadsheet.duplicateSheet(messageData[\"source\"], messageData[\"target\"], messageData[\"index\"]);\n }\n\n private missingParameters(neededParameters: string[], messageData: Record): boolean {\n\n let result = false;\n for (const parameter of neededParameters) {\n if (Object.keys(messageData).indexOf(parameter) == -1) {\n result = true;\n this.log.error(\"The parameter '\" + parameter + \"' is required but was not passed!\");\n }\n }\n\n return result;\n }\n\n}\n\n\nif (require.main !== module) {\n // Export the constructor in compact mode\n module.exports = (options: Partial | undefined) => new GoogleSpreadsheet(options);\n} else {\n // otherwise start the instance directly\n (() => new GoogleSpreadsheet())();\n}\n"], - "mappings": ";;;;;;;;;;;;;;;;;;;AAOA,YAAuB;AAEvB,gBAAe;AACf,oBAAiC;AAGjC,MAAM,0BAA0B,MAAM,QAAQ;AAAA,EAInC,YAAY,UAAyC,CAAC,GAAG;AAC5D,UAAM;AAAA,MACF,GAAG;AAAA,MACH,MAAM;AAAA,IACV,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Y,UAAU,YAAY,MAAM;AAAA,EAClG;AAAA,EACO,YAAY,SAAiC;AAChD,SAAK,YAAY,YAAY,QAAQ,OAAiB;AAAA,EAC1D;AAAA,EACO,YAAY,SAAiC;AAChD,SAAK,YAAY,YAAY,QAAQ,OAAiB;AAAA,EAC1D;AAAA,EACO,eAAe,SAAiC;AACnD,UAAM,cAAmC,QAAQ;AACjD,QAAI,KAAK,kBAAkB,CAAC,UAAU,UAAU,OAAO,GAAG,WAAW,GAAG;AACpE;AAAA,IACJ;AACA,SAAK,YAAY,eAAe,YAAY,WAAW,YAAY,WAAW,YAAY,QAAQ;AAAA,EACtG;AAAA,EAEQ,kBAAkB,kBAA4B,aAA2C;AAE7F,QAAI,SAAS;AACb,eAAW,aAAa,kBAAkB;AACtC,UAAI,OAAO,KAAK,WAAW,EAAE,QAAQ,SAAS,KAAK,IAAI;AACnD,iBAAS;AACT,aAAK,IAAI,MAAM,oBAAoB,YAAY,mCAAmC;AAAA,MACtF;AAAA,IACJ;AAEA,WAAO;AAAA,EACX;AAEJ;AAGA,IAAI,QAAQ,SAAS,QAAQ;AAEzB,SAAO,UAAU,CAAC,YAAuD,IAAI,kBAAkB,OAAO;AAC1G,OAAO;AAEH,GAAC,MAAM,IAAI,kBAAkB,GAAG;AACpC;", + "sourcesContent": ["/*\n * Created with @iobroker/create-adapter v2.4.0\n */\n\n\n\n\nimport * as utils from \"@iobroker/adapter-core\";\n\nimport fs from \"fs\";\nimport { SpreadsheetUtils } from \"./lib/google\";\n\n\nclass GoogleSpreadsheet extends utils.Adapter {\n\n private spreadsheet: SpreadsheetUtils;\n\n public constructor(options: Partial = {}) {\n super({\n ...options,\n name: \"google-spreadsheet\",\n });\n this.on(\"ready\", this.onReady.bind(this));\n this.on(\"message\", this.onMessage.bind(this));\n this.on(\"unload\", this.onUnload.bind(this));\n this.spreadsheet = new SpreadsheetUtils(this.config, this.log);\n }\n\n /**\n * Is called when databases are connected and adapter received configuration.\n */\n private async onReady(): Promise {\n // Initialize your adapter here\n\n // The adapters config (in the instance object everything under the attribute \"native\") is accessible via\n // this.config:\n this.log.debug(\"config spreadsheetId: \" + this.config.spreadsheetId);\n this.spreadsheet = new SpreadsheetUtils(this.config, this.log);\n\n }\n\n /**\n * Is called when adapter shuts down - callback has to be called under any circumstances!\n */\n private onUnload(callback: () => void): void {\n try {\n\n callback();\n } catch (e) {\n callback();\n }\n }\n\n // If you need to accept messages in your adapter, uncomment the following block and the corresponding line in the constructor.\n // /**\n // * Some message was sent to this instance over message box. Used by email, pushover, text2speech, ...\n // * Using this method requires \"common.messagebox\" property to be set to true in io-package.json\n // */\n private onMessage(obj: ioBroker.Message): void {\n if (typeof obj === \"object\" && obj.message) {\n switch (obj.command) {\n case \"append\": {\n this.log.debug(\"append to spreadsheet\");\n this.append(obj);\n\n if (obj.callback) this.sendTo(obj.from, obj.command, \"Message received\", obj.callback);\n break;\n }\n case \"deleteRows\": {\n this.log.debug(\"delete rows from spreadsheet\");\n this.deleteRows(obj);\n\n if (obj.callback) this.sendTo(obj.from, obj.command, \"Message received\", obj.callback);\n break;\n }\n case \"createSheet\": {\n this.log.debug(\"create sheet\");\n this.createSheet(obj);\n\n if (obj.callback) this.sendTo(obj.from, obj.command, \"Message received\", obj.callback);\n break;\n }\n case \"deleteSheet\": {\n this.log.debug(\"delete sheet\");\n this.deleteSheet(obj);\n\n if (obj.callback) this.sendTo(obj.from, obj.command, \"Message received\", obj.callback);\n break;\n }\n case \"duplicateSheet\": {\n this.log.debug(\"duplicate sheet\");\n this.duplicateSheet(obj);\n\n if (obj.callback) this.sendTo(obj.from, obj.command, \"Message received\", obj.callback);\n break;\n }\n case \"upload\": {\n this.log.debug(\"upload file\");\n this.upload(obj);\n\n if (obj.callback) this.sendTo(obj.from, obj.command, \"Message received\", obj.callback);\n break;\n }\n default: {\n this.log.warn(\"unknown command: \" + obj.command);\n break;\n }\n }\n }\n }\n\n private upload(message: Record): void {\n const messageData: Record = message.message as Record;\n if (this.missingParameters([\"source\", \"target\", \"parentFolder\"], messageData)) {\n return;\n }\n this.spreadsheet.upload(messageData[\"source\"], messageData[\"target\"], messageData[\"parentFolder\"], fs.createReadStream(messageData[\"source\"]));\n }\n private append(message: Record): void {\n const messageData: Record = message.message as Record;\n if (this.missingParameters([\"sheetName\", \"data\"], messageData)) {\n return;\n }\n this.spreadsheet.append(messageData[\"sheetName\"], messageData[\"data\"]);\n }\n public deleteRows(message: ioBroker.Message): void {\n const messageData: Record = message.message as Record;\n if (this.missingParameters([\"sheetName\", \"start\", \"end\"], messageData)) {\n return;\n }\n this.spreadsheet.deleteRows(messageData[\"sheetName\"], messageData[\"start\"], messageData[\"end\"]);\n }\n public createSheet(message: ioBroker.Message): void {\n this.spreadsheet.createSheet(message.message as string);\n }\n public deleteSheet(message: ioBroker.Message): void {\n this.spreadsheet.deleteSheet(message.message as string);\n }\n public duplicateSheet(message: ioBroker.Message): void {\n const messageData: Record = message.message as Record;\n if (this.missingParameters([\"source\", \"target\", \"index\"], messageData)) {\n return;\n }\n this.spreadsheet.duplicateSheet(messageData[\"source\"], messageData[\"target\"], messageData[\"index\"]);\n }\n\n private missingParameters(neededParameters: string[], messageData: Record): boolean {\n\n let result = false;\n for (const parameter of neededParameters) {\n if (Object.keys(messageData).indexOf(parameter) == -1) {\n result = true;\n this.log.error(\"The parameter '\" + parameter + \"' is required but was not passed!\");\n }\n }\n\n return result;\n }\n\n}\n\n\nif (require.main !== module) {\n // Export the constructor in compact mode\n module.exports = (options: Partial | undefined) => new GoogleSpreadsheet(options);\n} else {\n // otherwise start the instance directly\n (() => new GoogleSpreadsheet())();\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;;AAOA,YAAuB;AAEvB,gBAAe;AACf,oBAAiC;AAGjC,MAAM,0BAA0B,MAAM,QAAQ;AAAA,EAInC,YAAY,UAAyC,CAAC,GAAG;AAC5D,UAAM;AAAA,MACF,GAAG;AAAA,MACH,MAAM;AAAA,IACV,CAAC;AACD,SAAK,GAAG,SAAS,KAAK,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,QAAQ,OAAiB;AAAA,EAC1D;AAAA,EACO,YAAY,SAAiC;AAChD,SAAK,YAAY,YAAY,QAAQ,OAAiB;AAAA,EAC1D;AAAA,EACO,eAAe,SAAiC;AACnD,UAAM,cAAmC,QAAQ;AACjD,QAAI,KAAK,kBAAkB,CAAC,UAAU,UAAU,OAAO,GAAG,WAAW,GAAG;AACpE;AAAA,IACJ;AACA,SAAK,YAAY,eAAe,YAAY,WAAW,YAAY,WAAW,YAAY,QAAQ;AAAA,EACtG;AAAA,EAEQ,kBAAkB,kBAA4B,aAA2C;AAE7F,QAAI,SAAS;AACb,eAAW,aAAa,kBAAkB;AACtC,UAAI,OAAO,KAAK,WAAW,EAAE,QAAQ,SAAS,KAAK,IAAI;AACnD,iBAAS;AACT,aAAK,IAAI,MAAM,oBAAoB,YAAY,mCAAmC;AAAA,MACtF;AAAA,IACJ;AAEA,WAAO;AAAA,EACX;AAEJ;AAGA,IAAI,QAAQ,SAAS,QAAQ;AAEzB,SAAO,UAAU,CAAC,YAAuD,IAAI,kBAAkB,OAAO;AAC1G,OAAO;AAEH,GAAC,MAAM,IAAI,kBAAkB,GAAG;AACpC;", "names": ["fs"] } diff --git a/io-package.json b/io-package.json index 336118f..eb7898d 100644 --- a/io-package.json +++ b/io-package.json @@ -1,7 +1,7 @@ { "common": { "name": "google-spreadsheet", - "version": "0.0.6", + "version": "0.1.0", "news": { "0.0.1": { "en": "initial release", @@ -80,6 +80,19 @@ "pl": "dodano walidację parametrów", "uk": "додана перевірка параметрів", "zh-cn": "添加参数验证" + }, + "0.1.0": { + "en": "Improved logging and code cleanup", + "de": "Verbesserte Protokollierung und Codebereinigung", + "ru": "Улучшено ведение журнала и очистка кода.", + "pt": "Registro aprimorado e limpeza de código", + "nl": "Verbeterde logboekregistratie en opschoning van de code", + "fr": "Journalisation et nettoyage du code améliorés", + "it": "Registrazione e pulizia del codice migliorate", + "es": "Registro mejorado y limpieza de código", + "pl": "Ulepszone rejestrowanie i czyszczenie kodu", + "uk": "Покращено журналювання та очищення коду", + "zh-cn": "改进的日志记录和代码清理" } }, "titleLang": { diff --git a/package-lock.json b/package-lock.json index bdffbdd..b4051ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "iobroker.google-spreadsheet", - "version": "0.0.7", + "version": "0.0.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "iobroker.google-spreadsheet", - "version": "0.0.7", + "version": "0.0.6", "license": "Apache-2.0", "dependencies": { "@iobroker/adapter-core": "^3.0.3", diff --git a/package.json b/package.json index c6a24fc..28da04f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.google-spreadsheet", - "version": "0.0.6", + "version": "0.1.0", "description": "Append data to google spreadsheets", "author": { "name": "Thomas Pohl", @@ -21,8 +21,8 @@ }, "dependencies": { "@iobroker/adapter-core": "^3.0.3", - "googleapis": "^126.0.1", - "@types/gapi": "^0.0.44" + "@types/gapi": "^0.0.44", + "googleapis": "^126.0.1" }, "devDependencies": { "@alcalzone/release-script": "^3.6.0",