Skip to content

Commit f8a2bf0

Browse files
committed
Update dev-dependencies
1 parent ba747bb commit f8a2bf0

File tree

3 files changed

+45
-45
lines changed

3 files changed

+45
-45
lines changed

lib/util/find-selected-options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function findSelectedOptions(node, explicitProperties) {
4444
}
4545

4646
const list = selectedOptions.length > 0 ? selectedOptions : options
47-
const max = list.length > size ? size : list.length
47+
const max = Math.min(list.length, size)
4848
index = -1
4949

5050
while (++index < max) {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
"micromark-extension-gfm": "^3.0.0",
3737
"prettier": "^3.0.0",
3838
"remark-cli": "^12.0.0",
39-
"remark-preset-wooorm": "^10.0.0",
39+
"remark-preset-wooorm": "^11.0.0",
4040
"type-coverage": "^2.0.0",
4141
"typescript": "^5.0.0",
4242
"unist-builder": "^4.0.0",
4343
"unist-util-remove-position": "^5.0.0",
44-
"xo": "^0.59.0"
44+
"xo": "^0.60.0"
4545
},
4646
"exports": "./index.js",
4747
"files": [

readme.md

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -438,100 +438,100 @@ Use of `hast-util-to-mdast` is safe by default.
438438

439439
## Contribute
440440

441-
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
442-
started.
443-
See [`support.md`][support] for ways to get help.
441+
See [`contributing.md` in `syntax-tree/.github`][health-contributing] for ways
442+
to get started.
443+
See [`support.md`][health-support] for ways to get help.
444444

445-
This project has a [code of conduct][coc].
445+
This project has a [code of conduct][health-coc].
446446
By interacting with this repository, organization, or community you agree to
447447
abide by its terms.
448448

449449
## License
450450

451-
[MIT][license] © [Titus Wormer][author]
451+
[MIT][file-license] © [Titus Wormer][author]
452452

453453
<!-- Definitions -->
454454

455-
[build-badge]: https://github.com/syntax-tree/hast-util-to-mdast/workflows/main/badge.svg
456-
457-
[build]: https://github.com/syntax-tree/hast-util-to-mdast/actions
455+
[api-default-handlers]: #defaulthandlers
458456

459-
[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/hast-util-to-mdast.svg
457+
[api-default-node-handlers]: #defaultnodehandlers
460458

461-
[coverage]: https://codecov.io/github/syntax-tree/hast-util-to-mdast
459+
[api-handle]: #handle
462460

463-
[downloads-badge]: https://img.shields.io/npm/dm/hast-util-to-mdast.svg
461+
[api-node-handle]: #nodehandle
464462

465-
[downloads]: https://www.npmjs.com/package/hast-util-to-mdast
463+
[api-options]: #options
466464

467-
[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=hast-util-to-mdast
465+
[api-state]: #state
468466

469-
[size]: https://bundlejs.com/?q=hast-util-to-mdast
467+
[api-to-mdast]: #tomdasttree-options
470468

471-
[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
469+
[author]: https://wooorm.com
472470

473471
[backers-badge]: https://opencollective.com/unified/backers/badge.svg
474472

475-
[collective]: https://opencollective.com/unified
473+
[build]: https://github.com/syntax-tree/hast-util-to-mdast/actions
476474

477-
[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg
475+
[build-badge]: https://github.com/syntax-tree/hast-util-to-mdast/workflows/main/badge.svg
478476

479477
[chat]: https://github.com/syntax-tree/unist/discussions
480478

481-
[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
479+
[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg
482480

483-
[npm]: https://docs.npmjs.com/cli/install
481+
[collective]: https://opencollective.com/unified
484482

485-
[esmsh]: https://esm.sh
483+
[commonmark]: https://commonmark.org
486484

487-
[license]: license
485+
[coverage]: https://codecov.io/github/syntax-tree/hast-util-to-mdast
488486

489-
[author]: https://wooorm.com
487+
[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/hast-util-to-mdast.svg
490488

491-
[typescript]: https://www.typescriptlang.org
489+
[downloads]: https://www.npmjs.com/package/hast-util-to-mdast
492490

493-
[contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md
491+
[downloads-badge]: https://img.shields.io/npm/dm/hast-util-to-mdast.svg
494492

495-
[support]: https://github.com/syntax-tree/.github/blob/main/support.md
493+
[element]: https://github.com/syntax-tree/hast#element
496494

497-
[coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md
495+
[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
498496

499-
[mdast]: https://github.com/syntax-tree/mdast
497+
[esmsh]: https://esm.sh
500498

501-
[mdast-node]: https://github.com/syntax-tree/mdast#nodes
499+
[file-license]: license
502500

503-
[phrasing]: https://github.com/syntax-tree/mdast#phrasingcontent
501+
[gfm]: https://github.github.com/gfm/
504502

505503
[hast]: https://github.com/syntax-tree/hast
506504

507505
[hast-node]: https://github.com/syntax-tree/hast#nodes
508506

509507
[hast-parent]: https://github.com/syntax-tree/hast#parent
510508

511-
[element]: https://github.com/syntax-tree/hast#element
509+
[health-coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md
512510

513-
[html]: https://html.spec.whatwg.org/multipage/
511+
[health-contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md
514512

515-
[gfm]: https://github.github.com/gfm/
513+
[health-support]: https://github.com/syntax-tree/.github/blob/main/support.md
516514

517-
[commonmark]: https://commonmark.org
515+
[html]: https://html.spec.whatwg.org/multipage/
518516

519517
[html-paragraphs]: https://html.spec.whatwg.org/multipage/dom.html#paragraphs
520518

521-
[mdast-util-to-hast]: https://github.com/syntax-tree/mdast-util-to-hast
519+
[mdast]: https://github.com/syntax-tree/mdast
522520

523-
[rehype-remark]: https://github.com/rehypejs/rehype-remark
521+
[mdast-node]: https://github.com/syntax-tree/mdast#nodes
524522

525-
[api-default-handlers]: #defaulthandlers
523+
[mdast-util-to-hast]: https://github.com/syntax-tree/mdast-util-to-hast
526524

527-
[api-default-node-handlers]: #defaultnodehandlers
525+
[npm]: https://docs.npmjs.com/cli/install
528526

529-
[api-to-mdast]: #tomdasttree-options
527+
[phrasing]: https://github.com/syntax-tree/mdast#phrasingcontent
530528

531-
[api-options]: #options
529+
[rehype-remark]: https://github.com/rehypejs/rehype-remark
532530

533-
[api-state]: #state
531+
[size]: https://bundlejs.com/?q=hast-util-to-mdast
534532

535-
[api-handle]: #handle
533+
[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=hast-util-to-mdast
536534

537-
[api-node-handle]: #nodehandle
535+
[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
536+
537+
[typescript]: https://www.typescriptlang.org

0 commit comments

Comments
 (0)