From 71309a078802db2a3cc80eba290a2e0c978416c6 Mon Sep 17 00:00:00 2001 From: LuanRT Date: Tue, 14 Jun 2022 20:10:12 -0300 Subject: [PATCH] fix: oopsie --- lib/parser/contents/README.md | 3 +-- lib/parser/contents/index.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/parser/contents/README.md b/lib/parser/contents/README.md index 3993b368..875b29fe 100644 --- a/lib/parser/contents/README.md +++ b/lib/parser/contents/README.md @@ -7,13 +7,12 @@ This will eventually replace the old parser. ## Methods -#### parse(data: object, ctx?: any) +#### parse(data: object) Responsible for parsing specifically the `contents` property of the response object. ##### Arguments * `data` - the `contents` property. - * `ctx` - optional, can be used to give additional context to the parser. #### parseResponse(data: object) diff --git a/lib/parser/contents/index.js b/lib/parser/contents/index.js index e8a78de3..bb6bfad3 100644 --- a/lib/parser/contents/index.js +++ b/lib/parser/contents/index.js @@ -106,7 +106,7 @@ class Parser { const keys = Object.keys(item); const classname = this.sanitizeClassName(keys[0]); - if (this.shouldIgnore(classname)) { + if (!this.shouldIgnore(classname)) { try { const TargetClass = require('./classes/' + classname); results.push(new TargetClass(item[keys[0]]));