File tree 7 files changed +8
-9
lines changed 7 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* @typedef {import('css-selector-parser').AstRule } AstRule
3
3
*
4
- * @typedef {import('./index.js ').Element } Element
4
+ * @typedef {import('hast ').Element } Element
5
5
*/
6
6
7
7
import { ok as assert } from 'devlop'
Original file line number Diff line number Diff line change 30
30
],
31
31
"sideEffects" : false ,
32
32
"type" : " module" ,
33
- "main" : " index.js" ,
34
- "types" : " index.d.ts" ,
33
+ "exports" : " ./index.js" ,
35
34
"files" : [
36
35
" lib/" ,
37
36
" index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
3
import { h } from 'hastscript'
4
+ import { selectAll } from 'hast-util-select'
4
5
import { u } from 'unist-builder'
5
- import { selectAll } from '../index.js'
6
6
7
7
test ( 'hast-util-select' , async function ( t ) {
8
8
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 ( ) , [
10
10
'matches' ,
11
11
'select' ,
12
12
'selectAll'
Original file line number Diff line number Diff line change 1
1
import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
3
import { h , s } from 'hastscript'
4
+ import { matches } from 'hast-util-select'
4
5
import { u } from 'unist-builder'
5
- import { matches } from '../index.js'
6
6
7
7
test ( 'select.matches()' , async function ( t ) {
8
8
await t . test ( 'invalid selector' , async function ( t ) {
Original file line number Diff line number Diff line change 1
1
import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
3
import { h , s } from 'hastscript'
4
+ import { selectAll } from 'hast-util-select'
4
5
import { u } from 'unist-builder'
5
- import { selectAll } from '../index.js'
6
6
7
7
test ( 'select.selectAll()' , async function ( t ) {
8
8
await t . test ( 'invalid selectors' , async function ( t ) {
Original file line number Diff line number Diff line change 1
1
import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
3
import { h , s } from 'hastscript'
4
+ import { select } from 'hast-util-select'
4
5
import { u } from 'unist-builder'
5
- import { select } from '../index.js'
6
6
7
7
test ( 'select.select()' , async function ( t ) {
8
8
await t . test ( 'invalid selectors' , async function ( t ) {
Original file line number Diff line number Diff line change 1
1
import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
3
import { h , s } from 'hastscript'
4
+ import { select , selectAll } from 'hast-util-select'
4
5
import { u } from 'unist-builder'
5
- import { select , selectAll } from '../index.js'
6
6
7
7
test ( 'svg' , async function ( t ) {
8
8
await t . test ( 'should match svg (#1)' , async function ( ) {
You can’t perform that action at this time.
0 commit comments