1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-07-14 22:21:07 +01:00

feat: include private fields during convert

This commit is contained in:
hacksalot
2018-02-01 06:44:07 -05:00
parent 76a386c9df
commit 5161a3a823
8 changed files with 30 additions and 21 deletions

View File

@ -63,7 +63,7 @@ class AbstractResume
traverse = require 'traverse'
ignoreList = []
privateList = []
includePrivates = if not opts?.private? then true else opts?.private
includePrivates = opts && opts.private
scrubbed = traverse( rep ).map () -> # [^1]
if !@isLeaf
@ -86,7 +86,7 @@ class AbstractResume
module.exports = AbstractResume
# [^1]: As of this writing, the NPM traverse library has a quirk when attempting
# [^1]: As of v0.6.6, the NPM traverse library has a quirk when attempting
# to remove array elements directly using traverse's `this.remove`. See:
#
# https://github.com/substack/js-traverse/issues/48