Skip to content

Commit 4c76b6f

Browse files
authored
Use correct ESM import syntax (#1173)
1 parent 27e8496 commit 4c76b6f

File tree

8 files changed

+11
-8
lines changed

8 files changed

+11
-8
lines changed

dist/purify.cjs.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
22

3-
import { TrustedTypePolicy, TrustedHTML, TrustedTypesWindow } from 'trusted-types/lib';
3+
import { TrustedTypePolicy, TrustedHTML, TrustedTypesWindow } from 'trusted-types/lib/index.js';
44

55
/**
66
* Configuration to control DOMPurify behavior.

dist/purify.cjs.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/purify.es.d.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
22

3-
import { TrustedTypePolicy, TrustedHTML, TrustedTypesWindow } from 'trusted-types/lib';
3+
import { TrustedTypePolicy, TrustedHTML, TrustedTypesWindow } from 'trusted-types/lib/index.js';
44

55
/**
66
* Configuration to control DOMPurify behavior.

dist/purify.es.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/purify.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/purify.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable @typescript-eslint/indent */
22

3-
import type { TrustedTypePolicy } from 'trusted-types/lib';
3+
import type { TrustedTypePolicy } from 'trusted-types/lib/index.js';
44

55
/**
66
* Configuration to control DOMPurify behavior.

src/purify.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
/* eslint-disable @typescript-eslint/indent */
22

3-
import type { TrustedHTML, TrustedTypesWindow } from 'trusted-types/lib';
3+
import type {
4+
TrustedHTML,
5+
TrustedTypesWindow,
6+
} from 'trusted-types/lib/index.js';
47
import type { Config, UseProfilesConfig } from './config';
58
import * as TAGS from './tags.js';
69
import * as ATTRS from './attrs.js';

0 commit comments

Comments
 (0)