File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
- export interface Options {
1
+ export type Options = {
2
2
/**
3
3
@default 'http:'
4
4
@@ -280,7 +280,7 @@ export interface Options {
280
280
```
281
281
*/
282
282
readonly sortQueryParameters ?: boolean ;
283
- }
283
+ } ;
284
284
285
285
/**
286
286
[Normalize](https://en.wikipedia.org/wiki/URL_normalization) a URL.
Original file line number Diff line number Diff line change 11
11
"url" : " https://sindresorhus.com"
12
12
},
13
13
"type" : " module" ,
14
- "exports" : " ./index.js" ,
14
+ "exports" : {
15
+ "types" : " ./index.d.ts" ,
16
+ "default" : " ./index.js"
17
+ },
15
18
"engines" : {
16
- "node" : " >=12.20 "
19
+ "node" : " >=14.16 "
17
20
},
18
21
"scripts" : {
19
22
"test" : " xo && c8 ava && tsd"
38
41
" canonical"
39
42
],
40
43
"devDependencies" : {
41
- "ava" : " ^4 .0.1" ,
42
- "c8" : " ^7.11 .0" ,
43
- "tsd" : " ^0.19 .1" ,
44
- "xo" : " ^0.47.0 "
44
+ "ava" : " ^5 .0.1" ,
45
+ "c8" : " ^7.12 .0" ,
46
+ "tsd" : " ^0.24 .1" ,
47
+ "xo" : " ^0.52.4 "
45
48
},
46
49
"c8" : {
47
50
"reporter" : [
Original file line number Diff line number Diff line change @@ -406,4 +406,5 @@ test('ignore custom schemes', t => {
406
406
t . is ( normalizeUrl ( 'tel:004346382763' ) , 'tel:004346382763' ) ;
407
407
t . is ( normalizeUrl ( 'mailto:office@foo.com' ) , 'mailto:office@foo.com' ) ;
408
408
t . is ( normalizeUrl ( 'sindre://www.sindresorhus.com' ) , 'sindre://www.sindresorhus.com' ) ;
409
+ t . is ( normalizeUrl ( 'foo:bar' ) , 'foo:bar' ) ;
409
410
} ) ;
You can’t perform that action at this time.
0 commit comments