From c2c3ab8edb84630abe35d7f9f41656b376e667ef Mon Sep 17 00:00:00 2001 From: enigmalicenses <12291962+enigmalicenses@users.noreply.github.com> Date: Fri, 1 Feb 2019 15:52:45 +0200 Subject: [PATCH] Cleanup object dumps for concise logging This simple change sets the ARI _client on the resource to not be enumerable. What that means is that it won't print it (I checked the code for other use cases that involve iterating through properties and didn't see an issue). Harmless change that makes dev much easier. --- lib/resources.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/resources.js b/lib/resources.js index d5d4e70..3b9a99b 100644 --- a/lib/resources.js +++ b/lib/resources.js @@ -51,7 +51,10 @@ var swaggerListTypeRegex = /List\[([A-Za-z]+)\]/; function Resource (client, id, objValues) { var self = this; - self._client = client; + Object.defineProperty(self, '_client', { + value: client + }); + // id is optional if (!objValues) { objValues = id;