File tree 3 files changed +13
-12
lines changed
3 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ interface WebSpec {
10
10
currentSpecification : string ;
11
11
title : string ;
12
12
shortTitle : string ;
13
- nightlyUrl : string ;
13
+ nightlyUrl ? : string ;
14
14
} ;
15
- nightly : {
15
+ nightly ? : {
16
16
url : string ;
17
17
status : string ;
18
18
sourcePath : string ;
@@ -49,10 +49,11 @@ export async function getWebSpec(url: string): Promise<WebSpec | undefined> {
49
49
return specs . find (
50
50
( spec ) =>
51
51
url . startsWith ( spec . url ) ||
52
- url . startsWith ( spec . nightly . url ) ||
53
- spec . nightly . alternateUrls . some ( ( s ) => url . startsWith ( s ) ) ||
54
- // When grabbing series nightly, make sure we're grabbing the latest spec version
55
- ( spec . shortname === spec . series . currentSpecification &&
56
- url . startsWith ( spec . series . nightlyUrl ) )
52
+ ( spec . nightly &&
53
+ ( url . startsWith ( spec . nightly . url ) ||
54
+ spec . nightly . alternateUrls . some ( ( s ) => url . startsWith ( s ) ) ||
55
+ // When grabbing series nightly, make sure we're grabbing the latest spec version
56
+ ( spec . shortname === spec . series . currentSpecification &&
57
+ url . startsWith ( spec . series . nightlyUrl ) ) ) )
57
58
) ;
58
59
}
Original file line number Diff line number Diff line change 146
146
"unist-builder" : " ^4.0.0" ,
147
147
"unist-util-visit" : " ^5.0.0" ,
148
148
"web-features" : " ^0.5.1" ,
149
- "web-specs" : " ^2.79 .0"
149
+ "web-specs" : " ^3.0 .0"
150
150
},
151
151
"devDependencies" : {
152
152
"@babel/core" : " ^7.23.9" ,
Original file line number Diff line number Diff line change @@ -15446,10 +15446,10 @@ web-namespaces@^2.0.0:
15446
15446
resolved "https://registry.yarnpkg.com/web-namespaces/-/web-namespaces-2.0.1.tgz#1010ff7c650eccb2592cebeeaf9a1b253fd40692"
15447
15447
integrity sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==
15448
15448
15449
- web-specs@^2.79 .0:
15450
- version "2.79 .0"
15451
- resolved "https://registry.yarnpkg.com/web-specs/-/web-specs-2.79 .0.tgz#c6db408943387cc1a95608ba77a0fae51f131f25 "
15452
- integrity sha512-364IxMgYLUjWDeTPrfNtO/+zZxIJ2ZzV4STzbOdVn6DANptLBo3aNTEJ0SS2Qe2P331apSfnU0b4K6wxl6cuew ==
15449
+ web-specs@^3.0 .0:
15450
+ version "3.0 .0"
15451
+ resolved "https://registry.yarnpkg.com/web-specs/-/web-specs-3.0 .0.tgz#b564c3f1e3f935f78c2a055e6390f48662fee8f8 "
15452
+ integrity sha512-iFIqX1Zu13dJ9slgPlnxs0ndb1v/oB3WilmTAQRIm/RxyuAdjghoxWWnG6ypYOKdr+zv9lX+q/p9JLMZ1gi1GQ ==
15453
15453
15454
15454
15455
15455
version "4.0.0-beta.3"
You can’t perform that action at this time.
0 commit comments