From bfc62b0dddd15f53932a80b9e64f0fadc977d870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alu=C3=ADsio=20Amaral?= Date: Tue, 6 Feb 2018 16:00:38 -0200 Subject: [PATCH 1/2] query and filter should not add question mark even when printing --- src/RosApiCommands.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RosApiCommands.ts b/src/RosApiCommands.ts index bbb2c93..13c8fad 100644 --- a/src/RosApiCommands.ts +++ b/src/RosApiCommands.ts @@ -96,7 +96,7 @@ export class RosApiCommands extends RouterOSAPICrud { * @param value the value if a string key is passed */ public query(key: object | string, value?: string): RosApiCommands { - return this.where(key, value); + return this.where(key, value, false); } /** @@ -106,7 +106,7 @@ export class RosApiCommands extends RouterOSAPICrud { * @param value the value if a string key is passed */ public filter(key: object | string, value?: string): RosApiCommands { - return this.where(key, value); + return this.where(key, value, false); } /** From 0ebb30a213a37da656a08e5f2a382b01f487c2f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alu=C3=ADsio=20Amaral?= Date: Tue, 6 Feb 2018 16:00:57 -0200 Subject: [PATCH 2/2] v0.5.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9b8fa00..92fa4b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "routeros-client", - "version": "0.5.1", + "version": "0.5.2", "description": "Easy to use abstraction layer over the node-routeros API", "main": "./dist/index", "types": "./dist/index",