Skip to content

Commit 36aa2b5

Browse files
authored
Merge pull request #269 from SettingDust/fix/update_url_pattern_polyfill
chore: update `urlpattern-polyfill`
2 parents d9d5ab3 + ee5e1c5 commit 36aa2b5

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import {AxiosRequestConfig} from "axios";
44
import {IOptions as SanitizeOptions} from "sanitize-html";
55
import {defaults} from "html-crush";
6-
import {URLPatternInit} from "urlpattern-polyfill";
6+
import "urlpattern-polyfill";
77

88
type HtmlCrushOptions = Partial<typeof defaults>
99

src/utils/findRulesByUrl.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// utils --> findRulesByUrl
2-
3-
import { URLPattern } from 'urlpattern-polyfill'
4-
52
import { getQueryRules } from '../config.js'
6-
3+
import 'urlpattern-polyfill'
74
/**
85
* @param urls {string[]}
96
* @returns {QueryRule|{}}

0 commit comments

Comments
 (0)