mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-02 20:37:08 +01:00
feat: include private fields during convert
This commit is contained in:
2
dist/core/abstract-resume.js
vendored
2
dist/core/abstract-resume.js
vendored
@ -78,7 +78,7 @@ Definition of the AbstractResume class.
|
||||
traverse = require('traverse');
|
||||
ignoreList = [];
|
||||
privateList = [];
|
||||
includePrivates = (opts != null ? opts["private"] : void 0) == null ? true : opts != null ? opts["private"] : void 0;
|
||||
includePrivates = opts && opts["private"];
|
||||
scrubbed = traverse(rep).map(function() {
|
||||
if (!this.isLeaf) {
|
||||
if (this.node.ignore === true || this.node.ignore === 'true') {
|
||||
|
9
dist/core/fresh-resume.js
vendored
9
dist/core/fresh-resume.js
vendored
@ -77,10 +77,11 @@ Definition of the FRESHResume class.
|
||||
*/
|
||||
|
||||
FreshResume.prototype.parseJSON = function(rep, opts) {
|
||||
var ignoreList, privateList, ref, ref1, scrubbed, that;
|
||||
that = this;
|
||||
ref = this.scrubResume(rep, opts), scrubbed = ref.scrubbed, ignoreList = ref.ignoreList, privateList = ref.privateList;
|
||||
extend(true, this, scrubbed);
|
||||
var ignoreList, privateList, ref, ref1, scrubbed;
|
||||
if (opts && opts.privatize) {
|
||||
ref = this.scrubResume(rep, opts), scrubbed = ref.scrubbed, ignoreList = ref.ignoreList, privateList = ref.privateList;
|
||||
}
|
||||
extend(true, this, opts && opts.privatize ? scrubbed : rep);
|
||||
if (!((ref1 = this.imp) != null ? ref1.processed : void 0)) {
|
||||
opts = opts || {};
|
||||
if (opts.imp === void 0 || opts.imp) {
|
||||
|
9
dist/core/jrs-resume.js
vendored
9
dist/core/jrs-resume.js
vendored
@ -71,11 +71,12 @@ Definition of the JRSResume class.
|
||||
*/
|
||||
|
||||
JRSResume.prototype.parseJSON = function(rep, opts) {
|
||||
var ignoreList, privateList, ref, ref1, scrubbed, that;
|
||||
var ignoreList, privateList, ref, ref1, scrubbed;
|
||||
opts = opts || {};
|
||||
that = this;
|
||||
ref = this.scrubResume(rep, opts), scrubbed = ref.scrubbed, ignoreList = ref.ignoreList, privateList = ref.privateList;
|
||||
extend(true, this, scrubbed);
|
||||
if (opts.privatize) {
|
||||
ref = this.scrubResume(rep, opts), scrubbed = ref.scrubbed, ignoreList = ref.ignoreList, privateList = ref.privateList;
|
||||
}
|
||||
extend(true, this, opts.privatize ? scrubbed : rep);
|
||||
if (!((ref1 = this.imp) != null ? ref1.processed : void 0)) {
|
||||
opts = opts || {};
|
||||
if (opts.imp === void 0 || opts.imp) {
|
||||
|
5
dist/verbs/convert.js
vendored
5
dist/verbs/convert.js
vendored
@ -93,7 +93,10 @@ Implementation of the 'convert' verb for HackMyResume.
|
||||
var rez, rinfo, srcFmt, targetFormat;
|
||||
rinfo = ResumeFactory.loadOne(src, {
|
||||
format: null,
|
||||
objectify: true
|
||||
objectify: true,
|
||||
inner: {
|
||||
privatize: false
|
||||
}
|
||||
});
|
||||
if (rinfo.fluenterror) {
|
||||
this.stat(HMEVENT.beforeConvert, {
|
||||
|
Reference in New Issue
Block a user