Skip to content

Commit

Permalink
fix: tiny-lru usage
Browse files Browse the repository at this point in the history
chore: bump tiny-lru to 10.0.0

refactor: more explicit check
  • Loading branch information
climba03003 committed Nov 1, 2022
1 parent a71dd83 commit 13989cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lib/contentTypeParser.js
Expand Up @@ -94,9 +94,8 @@ ContentTypeParser.prototype.getParser = function (contentType) {
return this.customParsers.get(contentType)
}

if (this.cache.has(contentType)) {
return this.cache.get(contentType)
}
const parser = this.cache.get(contentType)
if (parser !== undefined) return parser

// eslint-disable-next-line no-var
for (var i = 0; i !== this.parserList.length; ++i) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -184,7 +184,7 @@
"rfdc": "^1.3.0",
"secure-json-parse": "^2.5.0",
"semver": "^7.3.7",
"tiny-lru": "^9.0.2"
"tiny-lru": "^10.0.0"
},
"standard": {
"ignore": [
Expand Down

0 comments on commit 13989cc

Please sign in to comment.