Skip to content

Commit

Permalink
build(deps-dev): bump prettier from 2.2.1 to 2.3.0 (#1851)
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Böhm <188768+fb55@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and fb55 committed May 17, 2021
1 parent 3a9cd89 commit 68f25aa
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 29 deletions.
44 changes: 22 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@
"eslint": "^7.26.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-jsdoc": "^34.6.3",
"eslint-plugin-jsdoc": "^34.0.2",
"eslint-plugin-node": "^11.1.0",
"husky": "^4.3.8",
"jest": "^26.6.3",
"jquery": "^3.6.0",
"jsdom": "^16.5.3",
"lint-staged": "^11.0.0",
"node-fetch": "^2.6.1",
"prettier": "^2.2.1",
"prettier": "^2.3.0",
"prettier-plugin-jsdoc": "0.3.22",
"ts-jest": "^26.5.6",
"ts-node": "^9.1.1",
Expand Down
3 changes: 2 additions & 1 deletion src/api/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ const primitives: Record<string, unknown> = {
false: false,
};
// Attributes that are booleans
const rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i;
const rboolean =
/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i;
// Matches strings that look like JSON objects or arrays
const rbrace = /^(?:{[\w\W]*}|\[[\w\W]*])$/;

Expand Down
2 changes: 1 addition & 1 deletion src/api/traversing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ export function filter<T>(
typeof match === 'string'
? select.filter(
match,
((nodes as unknown) as Node[]).filter(isTag),
(nodes as unknown as Node[]).filter(isTag),
container.options
)
: nodes.filter(getFilterFn(match));
Expand Down
9 changes: 6 additions & 3 deletions src/cheerio.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,12 @@ describe('cheerio', () => {

it('(extended Array) should not interfere with prototype methods (issue #119)', () => {
const extended: any = [];
extended.find = extended.children = extended.each = function () {
/* Ignore */
};
extended.find =
extended.children =
extended.each =
function () {
/* Ignore */
};
const $empty = cheerio(extended);

expect($empty.find).toBe(cheerio.prototype.find);
Expand Down

0 comments on commit 68f25aa

Please sign in to comment.