File tree Expand file tree Collapse file tree 7 files changed +8
-9
lines changed Expand file tree Collapse file tree 7 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 11/**
22 * @typedef {import('css-selector-parser').AstRule } AstRule
33 *
4- * @typedef {import('./index.js ').Element } Element
4+ * @typedef {import('hast ').Element } Element
55 */
66
77import { ok as assert } from 'devlop'
Original file line number Diff line number Diff line change 3030 ],
3131 "sideEffects" : false ,
3232 "type" : " module" ,
33- "main" : " index.js" ,
34- "types" : " index.d.ts" ,
33+ "exports" : " ./index.js" ,
3534 "files" : [
3635 " lib/" ,
3736 " index.d.ts" ,
Original file line number Diff line number Diff line change 11import assert from 'node:assert/strict'
22import test from 'node:test'
33import { h } from 'hastscript'
4+ import { selectAll } from 'hast-util-select'
45import { u } from 'unist-builder'
5- import { selectAll } from '../index.js'
66
77test ( 'hast-util-select' , async function ( t ) {
88 await t . test ( 'should expose the public api' , async function ( ) {
9- assert . deepEqual ( Object . keys ( await import ( '../index.js ' ) ) . sort ( ) , [
9+ assert . deepEqual ( Object . keys ( await import ( 'hast-util-select ' ) ) . sort ( ) , [
1010 'matches' ,
1111 'select' ,
1212 'selectAll'
Original file line number Diff line number Diff line change 11import assert from 'node:assert/strict'
22import test from 'node:test'
33import { h , s } from 'hastscript'
4+ import { matches } from 'hast-util-select'
45import { u } from 'unist-builder'
5- import { matches } from '../index.js'
66
77test ( 'select.matches()' , async function ( t ) {
88 await t . test ( 'invalid selector' , async function ( t ) {
Original file line number Diff line number Diff line change 11import assert from 'node:assert/strict'
22import test from 'node:test'
33import { h , s } from 'hastscript'
4+ import { selectAll } from 'hast-util-select'
45import { u } from 'unist-builder'
5- import { selectAll } from '../index.js'
66
77test ( 'select.selectAll()' , async function ( t ) {
88 await t . test ( 'invalid selectors' , async function ( t ) {
Original file line number Diff line number Diff line change 11import assert from 'node:assert/strict'
22import test from 'node:test'
33import { h , s } from 'hastscript'
4+ import { select } from 'hast-util-select'
45import { u } from 'unist-builder'
5- import { select } from '../index.js'
66
77test ( 'select.select()' , async function ( t ) {
88 await t . test ( 'invalid selectors' , async function ( t ) {
Original file line number Diff line number Diff line change 11import assert from 'node:assert/strict'
22import test from 'node:test'
33import { h , s } from 'hastscript'
4+ import { select , selectAll } from 'hast-util-select'
45import { u } from 'unist-builder'
5- import { select , selectAll } from '../index.js'
66
77test ( 'svg' , async function ( t ) {
88 await t . test ( 'should match svg (#1)' , async function ( ) {
You can’t perform that action at this time.
0 commit comments