From fe46d150311173d38a2346b668c569cd5ae3708f Mon Sep 17 00:00:00 2001 From: Daniele Rapagnani Date: Sun, 14 Feb 2016 21:53:10 +0100 Subject: [PATCH] The ANALYZE command now excludes private fields by default for consistency. --- dist/verbs/analyze.js | 2 +- src/verbs/analyze.coffee | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/verbs/analyze.js b/dist/verbs/analyze.js index c83ee7d..2f2d29b 100644 --- a/dist/verbs/analyze.js +++ b/dist/verbs/analyze.js @@ -58,7 +58,7 @@ Implementation of the 'analyze' verb for HackMyResume. format: 'FRESH', objectify: true, inner: { - "private": opts["private"] + "private": opts["private"] === true } }, this); if (opts.assert && this.hasError()) { diff --git a/src/verbs/analyze.coffee b/src/verbs/analyze.coffee index 6df67e9..8905ba5 100644 --- a/src/verbs/analyze.coffee +++ b/src/verbs/analyze.coffee @@ -33,7 +33,9 @@ _analyze = ( sources, dst, opts ) -> nlzrs = _loadInspectors() results = _.map sources, (src) -> - r = ResumeFactory.loadOne src, format: 'FRESH', objectify: true, inner: { private: opts.private }, @ + r = ResumeFactory.loadOne src, format: 'FRESH', objectify: true, inner: { + private: opts.private is true + }, @ return { } if opts.assert and @hasError() if r.fluenterror