File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 28
28
],
29
29
"sideEffects" : false ,
30
30
"type" : " module" ,
31
- "main" : " index.js" ,
32
- "types" : " index.d.ts" ,
31
+ "exports" : " ./index.js" ,
33
32
"files" : [
34
33
" lib/" ,
35
34
" index.d.ts" ,
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ import fs from 'node:fs/promises'
7
7
import { ariaAttributes } from 'aria-attributes'
8
8
import { h } from 'hastscript'
9
9
import { fromHtml } from 'hast-util-from-html'
10
+ import { defaultSchema } from 'hast-util-sanitize'
10
11
import { toHtml } from 'hast-util-to-html'
11
12
import { htmlElementAttributes } from 'html-element-attributes'
12
13
import { htmlTagNames } from 'html-tag-names'
13
14
import { visit } from 'unist-util-visit'
14
- import { defaultSchema } from '../index.js'
15
15
16
16
const schemaAncestors = defaultSchema . ancestors
17
17
const schemaAttributes = defaultSchema . attributes
Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
3
import deepmerge from 'deepmerge'
4
4
import { h , s } from 'hastscript'
5
+ import { defaultSchema , sanitize } from 'hast-util-sanitize'
5
6
import { toHtml } from 'hast-util-to-html'
6
7
import { u } from 'unist-builder'
7
- import { defaultSchema , sanitize } from '../index.js'
8
8
9
9
const own = { } . hasOwnProperty
10
10
11
11
test ( 'sanitize()' , async function ( t ) {
12
12
await t . test ( 'should expose the public api' , async function ( ) {
13
- assert . deepEqual ( Object . keys ( await import ( '../index.js ' ) ) . sort ( ) , [
13
+ assert . deepEqual ( Object . keys ( await import ( 'hast-util-sanitize ' ) ) . sort ( ) , [
14
14
'defaultSchema' ,
15
15
'sanitize'
16
16
] )
You can’t perform that action at this time.
0 commit comments