File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 2828 ],
2929 "sideEffects" : false ,
3030 "type" : " module" ,
31- "main" : " index.js" ,
32- "types" : " index.d.ts" ,
31+ "exports" : " ./index.js" ,
3332 "files" : [
3433 " lib/" ,
3534 " index.d.ts" ,
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ import fs from 'node:fs/promises'
77import { ariaAttributes } from 'aria-attributes'
88import { h } from 'hastscript'
99import { fromHtml } from 'hast-util-from-html'
10+ import { defaultSchema } from 'hast-util-sanitize'
1011import { toHtml } from 'hast-util-to-html'
1112import { htmlElementAttributes } from 'html-element-attributes'
1213import { htmlTagNames } from 'html-tag-names'
1314import { visit } from 'unist-util-visit'
14- import { defaultSchema } from '../index.js'
1515
1616const schemaAncestors = defaultSchema . ancestors
1717const schemaAttributes = defaultSchema . attributes
Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ import assert from 'node:assert/strict'
22import test from 'node:test'
33import deepmerge from 'deepmerge'
44import { h , s } from 'hastscript'
5+ import { defaultSchema , sanitize } from 'hast-util-sanitize'
56import { toHtml } from 'hast-util-to-html'
67import { u } from 'unist-builder'
7- import { defaultSchema , sanitize } from '../index.js'
88
99const own = { } . hasOwnProperty
1010
1111test ( 'sanitize()' , async function ( t ) {
1212 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 ( ) , [
1414 'defaultSchema' ,
1515 'sanitize'
1616 ] )
You can’t perform that action at this time.
0 commit comments