feedscout 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -17
- package/dist/blogrolls/defaults.cjs +1 -3
- package/dist/blogrolls/defaults.js +1 -2
- package/dist/blogrolls/extractors.cjs +6 -9
- package/dist/blogrolls/extractors.js +6 -9
- package/dist/blogrolls/index.cjs +6 -9
- package/dist/blogrolls/index.d.cts +1 -1
- package/dist/blogrolls/index.d.ts +1 -1
- package/dist/blogrolls/index.js +1 -4
- package/dist/blogrolls.cjs +4 -5
- package/dist/blogrolls.js +1 -2
- package/dist/common/discover/index.cjs +60 -21
- package/dist/common/discover/index.js +58 -19
- package/dist/common/discover/utils.cjs +30 -9
- package/dist/common/discover/utils.js +28 -8
- package/dist/common/locales.cjs +127 -8
- package/dist/common/locales.js +116 -2
- package/dist/common/types.cjs +10 -0
- package/dist/common/types.d.cts +23 -5
- package/dist/common/types.d.ts +23 -5
- package/dist/common/types.js +10 -0
- package/dist/common/uris/feed/index.cjs +12 -0
- package/dist/common/uris/feed/index.d.cts +6 -0
- package/dist/common/uris/feed/index.d.ts +6 -0
- package/dist/common/uris/feed/index.js +12 -0
- package/dist/common/uris/feed/types.d.cts +9 -0
- package/dist/common/uris/feed/types.d.ts +9 -0
- package/dist/common/uris/guess/index.cjs +2 -4
- package/dist/common/uris/guess/index.d.cts +2 -1
- package/dist/common/uris/guess/index.d.ts +2 -1
- package/dist/common/uris/guess/index.js +1 -3
- package/dist/common/uris/guess/types.d.cts +3 -1
- package/dist/common/uris/guess/types.d.ts +3 -1
- package/dist/common/uris/guess/utils.cjs +5 -4
- package/dist/common/uris/guess/utils.d.cts +3 -1
- package/dist/common/uris/guess/utils.d.ts +3 -1
- package/dist/common/uris/guess/utils.js +5 -3
- package/dist/common/uris/headers/index.cjs +2 -4
- package/dist/common/uris/headers/index.js +1 -3
- package/dist/common/uris/html/handlers.cjs +2 -4
- package/dist/common/uris/html/handlers.js +1 -3
- package/dist/common/uris/html/index.cjs +2 -4
- package/dist/common/uris/html/index.js +1 -3
- package/dist/common/uris/index.cjs +23 -17
- package/dist/common/uris/index.js +19 -13
- package/dist/common/uris/platform/index.cjs +3 -5
- package/dist/common/uris/platform/index.d.cts +7 -0
- package/dist/common/uris/platform/index.d.ts +7 -0
- package/dist/common/uris/platform/index.js +3 -4
- package/dist/common/uris/platform/types.d.cts +4 -2
- package/dist/common/uris/platform/types.d.ts +4 -2
- package/dist/common/utils.cjs +25 -8
- package/dist/common/utils.d.cts +2 -2
- package/dist/common/utils.d.ts +2 -2
- package/dist/common/utils.js +23 -7
- package/dist/favicons/defaults.cjs +60 -0
- package/dist/favicons/defaults.d.cts +18 -0
- package/dist/favicons/defaults.d.ts +18 -0
- package/dist/favicons/defaults.js +53 -0
- package/dist/favicons/extractors.cjs +13 -0
- package/dist/favicons/extractors.d.cts +7 -0
- package/dist/favicons/extractors.d.ts +7 -0
- package/dist/favicons/extractors.js +13 -0
- package/dist/favicons/index.cjs +29 -0
- package/dist/favicons/index.d.cts +7 -0
- package/dist/favicons/index.d.ts +7 -0
- package/dist/favicons/index.js +29 -0
- package/dist/favicons/platform/handlers/bluesky.cjs +27 -0
- package/dist/favicons/platform/handlers/bluesky.js +27 -0
- package/dist/favicons/platform/handlers/codeberg.cjs +18 -0
- package/dist/favicons/platform/handlers/codeberg.js +18 -0
- package/dist/favicons/platform/handlers/deviantart.cjs +29 -0
- package/dist/favicons/platform/handlers/deviantart.js +29 -0
- package/dist/favicons/platform/handlers/github.cjs +18 -0
- package/dist/favicons/platform/handlers/github.js +18 -0
- package/dist/favicons/platform/handlers/githubGist.cjs +18 -0
- package/dist/favicons/platform/handlers/githubGist.js +18 -0
- package/dist/favicons/platform/handlers/lobsters.cjs +21 -0
- package/dist/favicons/platform/handlers/lobsters.js +21 -0
- package/dist/favicons/platform/handlers/mastodon.cjs +36 -0
- package/dist/favicons/platform/handlers/mastodon.js +34 -0
- package/dist/favicons/platform/handlers/reddit.cjs +41 -0
- package/dist/favicons/platform/handlers/reddit.js +41 -0
- package/dist/favicons/platform/handlers/sourceforge.cjs +21 -0
- package/dist/favicons/platform/handlers/sourceforge.js +21 -0
- package/dist/favicons/platform/handlers/tumblr.cjs +16 -0
- package/dist/favicons/platform/handlers/tumblr.js +16 -0
- package/dist/favicons/types.d.cts +4 -0
- package/dist/favicons/types.d.ts +4 -0
- package/dist/favicons.cjs +12 -0
- package/dist/favicons.d.cts +4 -0
- package/dist/favicons.d.ts +4 -0
- package/dist/favicons.js +3 -0
- package/dist/feeds/defaults.cjs +66 -37
- package/dist/feeds/defaults.d.cts +2 -2
- package/dist/feeds/defaults.d.ts +2 -2
- package/dist/feeds/defaults.js +52 -23
- package/dist/feeds/extractors.cjs +1 -3
- package/dist/feeds/extractors.js +1 -3
- package/dist/feeds/index.cjs +6 -8
- package/dist/feeds/index.d.cts +1 -1
- package/dist/feeds/index.d.ts +1 -1
- package/dist/feeds/index.js +1 -3
- package/dist/feeds/platform/handlers/behance.cjs +10 -6
- package/dist/feeds/platform/handlers/behance.js +10 -6
- package/dist/feeds/platform/handlers/blogspot.cjs +19 -8
- package/dist/feeds/platform/handlers/blogspot.js +19 -7
- package/dist/feeds/platform/handlers/bluesky.cjs +7 -6
- package/dist/feeds/platform/handlers/bluesky.js +7 -6
- package/dist/feeds/platform/handlers/codeberg.cjs +69 -0
- package/dist/feeds/platform/handlers/codeberg.js +67 -0
- package/dist/feeds/platform/handlers/csdn.cjs +19 -0
- package/dist/feeds/platform/handlers/csdn.js +19 -0
- package/dist/feeds/platform/handlers/dailymotion.cjs +10 -6
- package/dist/feeds/platform/handlers/dailymotion.js +10 -6
- package/dist/feeds/platform/handlers/deviantart.cjs +20 -8
- package/dist/feeds/platform/handlers/deviantart.js +18 -8
- package/dist/feeds/platform/handlers/devto.cjs +10 -6
- package/dist/feeds/platform/handlers/devto.js +10 -6
- package/dist/feeds/platform/handlers/douban.cjs +54 -0
- package/dist/feeds/platform/handlers/douban.js +54 -0
- package/dist/feeds/platform/handlers/github.cjs +37 -16
- package/dist/feeds/platform/handlers/github.js +35 -16
- package/dist/feeds/platform/handlers/githubGist.cjs +17 -17
- package/dist/feeds/platform/handlers/githubGist.js +15 -17
- package/dist/feeds/platform/handlers/gitlab.cjs +18 -8
- package/dist/feeds/platform/handlers/gitlab.js +18 -8
- package/dist/feeds/platform/handlers/goodreads.cjs +39 -0
- package/dist/feeds/platform/handlers/goodreads.js +39 -0
- package/dist/feeds/platform/handlers/hashnode.cjs +16 -0
- package/dist/feeds/platform/handlers/hashnode.js +16 -0
- package/dist/feeds/platform/handlers/hatenablog.cjs +53 -0
- package/dist/feeds/platform/handlers/hatenablog.js +53 -0
- package/dist/feeds/platform/handlers/itchio.cjs +88 -0
- package/dist/feeds/platform/handlers/itchio.js +88 -0
- package/dist/feeds/platform/handlers/kickstarter.cjs +10 -6
- package/dist/feeds/platform/handlers/kickstarter.js +10 -6
- package/dist/feeds/platform/handlers/letterboxd.cjs +42 -0
- package/dist/feeds/platform/handlers/letterboxd.js +42 -0
- package/dist/feeds/platform/handlers/lobsters.cjs +35 -12
- package/dist/feeds/platform/handlers/lobsters.js +34 -12
- package/dist/feeds/platform/handlers/mastodon.cjs +40 -0
- package/dist/feeds/platform/handlers/mastodon.js +40 -0
- package/dist/feeds/platform/handlers/medium.cjs +26 -10
- package/dist/feeds/platform/handlers/medium.js +26 -10
- package/dist/feeds/platform/handlers/paragraph.cjs +21 -0
- package/dist/feeds/platform/handlers/paragraph.js +21 -0
- package/dist/feeds/platform/handlers/pinterest.cjs +6 -10
- package/dist/feeds/platform/handlers/pinterest.js +6 -10
- package/dist/feeds/platform/handlers/producthunt.cjs +14 -7
- package/dist/feeds/platform/handlers/producthunt.js +14 -7
- package/dist/feeds/platform/handlers/reddit.cjs +35 -12
- package/dist/feeds/platform/handlers/reddit.js +34 -12
- package/dist/feeds/platform/handlers/soundcloud.cjs +6 -5
- package/dist/feeds/platform/handlers/soundcloud.js +6 -5
- package/dist/feeds/platform/handlers/sourceforge.cjs +20 -0
- package/dist/feeds/platform/handlers/sourceforge.js +19 -0
- package/dist/feeds/platform/handlers/stackExchange.cjs +37 -0
- package/dist/feeds/platform/handlers/stackExchange.js +37 -0
- package/dist/feeds/platform/handlers/steam.cjs +26 -0
- package/dist/feeds/platform/handlers/steam.js +26 -0
- package/dist/feeds/platform/handlers/substack.cjs +6 -5
- package/dist/feeds/platform/handlers/substack.js +6 -5
- package/dist/feeds/platform/handlers/tumblr.cjs +13 -7
- package/dist/feeds/platform/handlers/tumblr.js +12 -7
- package/dist/feeds/platform/handlers/v2ex.cjs +33 -0
- package/dist/feeds/platform/handlers/v2ex.js +33 -0
- package/dist/feeds/platform/handlers/vimeo.cjs +68 -0
- package/dist/feeds/platform/handlers/vimeo.js +68 -0
- package/dist/feeds/platform/handlers/wordpress.cjs +46 -12
- package/dist/feeds/platform/handlers/wordpress.js +46 -12
- package/dist/feeds/platform/handlers/wpengine.cjs +10 -0
- package/dist/feeds/platform/handlers/wpengine.js +11 -0
- package/dist/feeds/platform/handlers/ximalaya.cjs +19 -0
- package/dist/feeds/platform/handlers/ximalaya.js +19 -0
- package/dist/feeds/platform/handlers/youtube.cjs +35 -13
- package/dist/feeds/platform/handlers/youtube.js +35 -13
- package/dist/feeds.cjs +4 -5
- package/dist/feeds.js +1 -2
- package/dist/hubs/discover/index.cjs +7 -9
- package/dist/hubs/discover/index.js +1 -3
- package/dist/hubs/discover/utils.cjs +1 -3
- package/dist/hubs/discover/utils.js +1 -2
- package/dist/hubs/feed/index.cjs +1 -3
- package/dist/hubs/feed/index.js +1 -3
- package/dist/hubs/headers/index.cjs +3 -5
- package/dist/hubs/headers/index.js +1 -3
- package/dist/hubs/html/index.cjs +3 -5
- package/dist/hubs/html/index.js +1 -3
- package/dist/hubs.js +1 -1
- package/dist/index.cjs +8 -7
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -2
- package/dist/methods.cjs +13 -10
- package/dist/methods.d.cts +3 -1
- package/dist/methods.d.ts +3 -1
- package/dist/methods.js +3 -2
- package/dist/utils.cjs +3 -4
- package/dist/utils.js +1 -2
- package/package.json +15 -5
package/dist/common/locales.cjs
CHANGED
|
@@ -1,16 +1,135 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/common/locales.json
|
|
3
2
|
var errors = {
|
|
4
3
|
"platformMethodRequiresUrl": "Platform method requires url to be provided in input",
|
|
4
|
+
"feedMethodRequiresContent": "Feed method requires content to be provided in input",
|
|
5
5
|
"htmlMethodRequiresContent": "HTML method requires content to be provided in input",
|
|
6
6
|
"headersMethodRequiresHeaders": "Headers method requires headers to be provided in input",
|
|
7
7
|
"guessMethodRequiresUrl": "Guess method requires url to be provided in input"
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
var hints = {
|
|
10
|
+
"youtube:all": "All uploads",
|
|
11
|
+
"youtube:videos": "Videos only",
|
|
12
|
+
"youtube:shorts": "Shorts only",
|
|
13
|
+
"youtube:live": "Live streams only",
|
|
14
|
+
"youtube:playlist": "Playlist",
|
|
15
|
+
"github:activity": "Activity",
|
|
16
|
+
"github:releases": "Releases",
|
|
17
|
+
"github:commits": "Commits",
|
|
18
|
+
"github:tags": "Tags",
|
|
19
|
+
"github:wiki": "Wiki",
|
|
20
|
+
"github:discussions": "Discussions",
|
|
21
|
+
"github:branch-commits": "Branch commits",
|
|
22
|
+
"github:file-history": "File history",
|
|
23
|
+
"reddit:posts": "Posts",
|
|
24
|
+
"reddit:post-comments": "Post comments",
|
|
25
|
+
"reddit:comments": "Comments",
|
|
26
|
+
"reddit:multireddit": "Multireddit",
|
|
27
|
+
"gitlab:activity": "Activity",
|
|
28
|
+
"gitlab:releases": "Releases",
|
|
29
|
+
"gitlab:tags": "Tags",
|
|
30
|
+
"codeberg:activity": "Activity",
|
|
31
|
+
"codeberg:releases": "Releases",
|
|
32
|
+
"codeberg:tags": "Tags",
|
|
33
|
+
"codeberg:branch-commits": "Branch commits",
|
|
34
|
+
"codeberg:file-history": "File history",
|
|
35
|
+
"wordpress:category": "Category",
|
|
36
|
+
"wordpress:tag": "Tag",
|
|
37
|
+
"wordpress:author": "Author",
|
|
38
|
+
"wordpress:posts-rss2": "Posts (RSS 2.0)",
|
|
39
|
+
"wordpress:posts-rss2-alt": "Posts (RSS 2.0)",
|
|
40
|
+
"wordpress:posts-rdf": "Posts (RDF)",
|
|
41
|
+
"wordpress:posts-atom": "Posts (Atom)",
|
|
42
|
+
"wordpress:comments": "Comments",
|
|
43
|
+
"wordpress:comments-rss2": "Comments (RSS 2.0)",
|
|
44
|
+
"wordpress:comments-rdf": "Comments (RDF)",
|
|
45
|
+
"wordpress:comments-atom": "Comments (Atom)",
|
|
46
|
+
"blogspot:label": "Label",
|
|
47
|
+
"blogspot:posts-atom": "Posts (Atom)",
|
|
48
|
+
"blogspot:posts-rss": "Posts (RSS)",
|
|
49
|
+
"behance:portfolio": "Portfolio",
|
|
50
|
+
"behance:appreciated": "Appreciated",
|
|
51
|
+
"bluesky:posts": "Posts",
|
|
52
|
+
"dailymotion:videos": "Videos",
|
|
53
|
+
"dailymotion:playlist": "Playlist",
|
|
54
|
+
"deviantart:tag": "Tag",
|
|
55
|
+
"deviantart:favorites": "Favorites",
|
|
56
|
+
"deviantart:gallery": "Gallery",
|
|
57
|
+
"deviantart:deviations": "Deviations",
|
|
58
|
+
"devto:posts": "Posts",
|
|
59
|
+
"devto:tag": "Tag",
|
|
60
|
+
"github-gist:gists": "Gists",
|
|
61
|
+
"github-gist:starred": "Starred",
|
|
62
|
+
"kickstarter:updates": "Updates",
|
|
63
|
+
"kickstarter:projects": "Projects",
|
|
64
|
+
"letterboxd:diary": "Diary",
|
|
65
|
+
"lobsters:tag": "Tag",
|
|
66
|
+
"lobsters:domain": "Domain",
|
|
67
|
+
"lobsters:stories": "Stories",
|
|
68
|
+
"lobsters:top": "Top stories",
|
|
69
|
+
"lobsters:newest": "Newest",
|
|
70
|
+
"lobsters:comments": "Comments",
|
|
71
|
+
"mastodon:posts": "Posts",
|
|
72
|
+
"mastodon:tag": "Tag",
|
|
73
|
+
"medium:posts": "Posts",
|
|
74
|
+
"medium:tag": "Tag",
|
|
75
|
+
"medium:tagged": "Tagged",
|
|
76
|
+
"medium:publication": "Publication",
|
|
77
|
+
"pinterest:pins": "Pins",
|
|
78
|
+
"producthunt:topic": "Topic",
|
|
79
|
+
"producthunt:category": "Category",
|
|
80
|
+
"producthunt:products": "Products",
|
|
81
|
+
"soundcloud:tracks": "Tracks",
|
|
82
|
+
"stackexchange:tag": "Tag",
|
|
83
|
+
"stackexchange:question": "Question",
|
|
84
|
+
"stackexchange:user": "User",
|
|
85
|
+
"steam:news": "News",
|
|
86
|
+
"steam:group": "Group",
|
|
87
|
+
"substack:newsletter": "Newsletter",
|
|
88
|
+
"tumblr:posts": "Posts",
|
|
89
|
+
"tumblr:tag": "Tag",
|
|
90
|
+
"goodreads:updates": "Updates",
|
|
91
|
+
"goodreads:reviews": "Reviews",
|
|
92
|
+
"sourceforge:activity": "Activity",
|
|
93
|
+
"vimeo:videos": "Videos",
|
|
94
|
+
"vimeo:likes": "Likes",
|
|
95
|
+
"vimeo:channel": "Channel",
|
|
96
|
+
"vimeo:group": "Group",
|
|
97
|
+
"hashnode:blog": "Blog",
|
|
98
|
+
"paragraph:blog": "Blog",
|
|
99
|
+
"hatenablog:posts-rss": "Posts (RSS)",
|
|
100
|
+
"hatenablog:posts-atom": "Posts (Atom)",
|
|
101
|
+
"hatenablog:category-rss": "Category (RSS)",
|
|
102
|
+
"hatenablog:category-atom": "Category (Atom)",
|
|
103
|
+
"hatenablog:author-rss": "Author (RSS)",
|
|
104
|
+
"hatenablog:author-atom": "Author (Atom)",
|
|
105
|
+
"itchio:devlog": "Devlog",
|
|
106
|
+
"itchio:games": "Games",
|
|
107
|
+
"itchio:tag": "Tag",
|
|
108
|
+
"itchio:section": "Section",
|
|
109
|
+
"itchio:featured": "Featured",
|
|
110
|
+
"itchio:new": "New",
|
|
111
|
+
"itchio:sales": "Sales",
|
|
112
|
+
"csdn:blog": "Blog",
|
|
113
|
+
"douban:interests": "Interests",
|
|
114
|
+
"douban:reviews": "Reviews",
|
|
115
|
+
"douban:notes": "Notes",
|
|
116
|
+
"douban:subjectReviews": "Subject reviews",
|
|
117
|
+
"v2ex:index": "Index",
|
|
118
|
+
"v2ex:node": "Node",
|
|
119
|
+
"v2ex:member": "Member",
|
|
120
|
+
"v2ex:tab": "Tab",
|
|
121
|
+
"ximalaya:album": "Album"
|
|
122
|
+
};
|
|
10
123
|
//#endregion
|
|
11
|
-
Object.defineProperty(exports,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
124
|
+
Object.defineProperty(exports, "errors", {
|
|
125
|
+
enumerable: true,
|
|
126
|
+
get: function() {
|
|
127
|
+
return errors;
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
Object.defineProperty(exports, "hints", {
|
|
131
|
+
enumerable: true,
|
|
132
|
+
get: function() {
|
|
133
|
+
return hints;
|
|
134
|
+
}
|
|
135
|
+
});
|
package/dist/common/locales.js
CHANGED
|
@@ -1,10 +1,124 @@
|
|
|
1
1
|
//#region src/common/locales.json
|
|
2
2
|
var errors = {
|
|
3
3
|
"platformMethodRequiresUrl": "Platform method requires url to be provided in input",
|
|
4
|
+
"feedMethodRequiresContent": "Feed method requires content to be provided in input",
|
|
4
5
|
"htmlMethodRequiresContent": "HTML method requires content to be provided in input",
|
|
5
6
|
"headersMethodRequiresHeaders": "Headers method requires headers to be provided in input",
|
|
6
7
|
"guessMethodRequiresUrl": "Guess method requires url to be provided in input"
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
+
var hints = {
|
|
10
|
+
"youtube:all": "All uploads",
|
|
11
|
+
"youtube:videos": "Videos only",
|
|
12
|
+
"youtube:shorts": "Shorts only",
|
|
13
|
+
"youtube:live": "Live streams only",
|
|
14
|
+
"youtube:playlist": "Playlist",
|
|
15
|
+
"github:activity": "Activity",
|
|
16
|
+
"github:releases": "Releases",
|
|
17
|
+
"github:commits": "Commits",
|
|
18
|
+
"github:tags": "Tags",
|
|
19
|
+
"github:wiki": "Wiki",
|
|
20
|
+
"github:discussions": "Discussions",
|
|
21
|
+
"github:branch-commits": "Branch commits",
|
|
22
|
+
"github:file-history": "File history",
|
|
23
|
+
"reddit:posts": "Posts",
|
|
24
|
+
"reddit:post-comments": "Post comments",
|
|
25
|
+
"reddit:comments": "Comments",
|
|
26
|
+
"reddit:multireddit": "Multireddit",
|
|
27
|
+
"gitlab:activity": "Activity",
|
|
28
|
+
"gitlab:releases": "Releases",
|
|
29
|
+
"gitlab:tags": "Tags",
|
|
30
|
+
"codeberg:activity": "Activity",
|
|
31
|
+
"codeberg:releases": "Releases",
|
|
32
|
+
"codeberg:tags": "Tags",
|
|
33
|
+
"codeberg:branch-commits": "Branch commits",
|
|
34
|
+
"codeberg:file-history": "File history",
|
|
35
|
+
"wordpress:category": "Category",
|
|
36
|
+
"wordpress:tag": "Tag",
|
|
37
|
+
"wordpress:author": "Author",
|
|
38
|
+
"wordpress:posts-rss2": "Posts (RSS 2.0)",
|
|
39
|
+
"wordpress:posts-rss2-alt": "Posts (RSS 2.0)",
|
|
40
|
+
"wordpress:posts-rdf": "Posts (RDF)",
|
|
41
|
+
"wordpress:posts-atom": "Posts (Atom)",
|
|
42
|
+
"wordpress:comments": "Comments",
|
|
43
|
+
"wordpress:comments-rss2": "Comments (RSS 2.0)",
|
|
44
|
+
"wordpress:comments-rdf": "Comments (RDF)",
|
|
45
|
+
"wordpress:comments-atom": "Comments (Atom)",
|
|
46
|
+
"blogspot:label": "Label",
|
|
47
|
+
"blogspot:posts-atom": "Posts (Atom)",
|
|
48
|
+
"blogspot:posts-rss": "Posts (RSS)",
|
|
49
|
+
"behance:portfolio": "Portfolio",
|
|
50
|
+
"behance:appreciated": "Appreciated",
|
|
51
|
+
"bluesky:posts": "Posts",
|
|
52
|
+
"dailymotion:videos": "Videos",
|
|
53
|
+
"dailymotion:playlist": "Playlist",
|
|
54
|
+
"deviantart:tag": "Tag",
|
|
55
|
+
"deviantart:favorites": "Favorites",
|
|
56
|
+
"deviantart:gallery": "Gallery",
|
|
57
|
+
"deviantart:deviations": "Deviations",
|
|
58
|
+
"devto:posts": "Posts",
|
|
59
|
+
"devto:tag": "Tag",
|
|
60
|
+
"github-gist:gists": "Gists",
|
|
61
|
+
"github-gist:starred": "Starred",
|
|
62
|
+
"kickstarter:updates": "Updates",
|
|
63
|
+
"kickstarter:projects": "Projects",
|
|
64
|
+
"letterboxd:diary": "Diary",
|
|
65
|
+
"lobsters:tag": "Tag",
|
|
66
|
+
"lobsters:domain": "Domain",
|
|
67
|
+
"lobsters:stories": "Stories",
|
|
68
|
+
"lobsters:top": "Top stories",
|
|
69
|
+
"lobsters:newest": "Newest",
|
|
70
|
+
"lobsters:comments": "Comments",
|
|
71
|
+
"mastodon:posts": "Posts",
|
|
72
|
+
"mastodon:tag": "Tag",
|
|
73
|
+
"medium:posts": "Posts",
|
|
74
|
+
"medium:tag": "Tag",
|
|
75
|
+
"medium:tagged": "Tagged",
|
|
76
|
+
"medium:publication": "Publication",
|
|
77
|
+
"pinterest:pins": "Pins",
|
|
78
|
+
"producthunt:topic": "Topic",
|
|
79
|
+
"producthunt:category": "Category",
|
|
80
|
+
"producthunt:products": "Products",
|
|
81
|
+
"soundcloud:tracks": "Tracks",
|
|
82
|
+
"stackexchange:tag": "Tag",
|
|
83
|
+
"stackexchange:question": "Question",
|
|
84
|
+
"stackexchange:user": "User",
|
|
85
|
+
"steam:news": "News",
|
|
86
|
+
"steam:group": "Group",
|
|
87
|
+
"substack:newsletter": "Newsletter",
|
|
88
|
+
"tumblr:posts": "Posts",
|
|
89
|
+
"tumblr:tag": "Tag",
|
|
90
|
+
"goodreads:updates": "Updates",
|
|
91
|
+
"goodreads:reviews": "Reviews",
|
|
92
|
+
"sourceforge:activity": "Activity",
|
|
93
|
+
"vimeo:videos": "Videos",
|
|
94
|
+
"vimeo:likes": "Likes",
|
|
95
|
+
"vimeo:channel": "Channel",
|
|
96
|
+
"vimeo:group": "Group",
|
|
97
|
+
"hashnode:blog": "Blog",
|
|
98
|
+
"paragraph:blog": "Blog",
|
|
99
|
+
"hatenablog:posts-rss": "Posts (RSS)",
|
|
100
|
+
"hatenablog:posts-atom": "Posts (Atom)",
|
|
101
|
+
"hatenablog:category-rss": "Category (RSS)",
|
|
102
|
+
"hatenablog:category-atom": "Category (Atom)",
|
|
103
|
+
"hatenablog:author-rss": "Author (RSS)",
|
|
104
|
+
"hatenablog:author-atom": "Author (Atom)",
|
|
105
|
+
"itchio:devlog": "Devlog",
|
|
106
|
+
"itchio:games": "Games",
|
|
107
|
+
"itchio:tag": "Tag",
|
|
108
|
+
"itchio:section": "Section",
|
|
109
|
+
"itchio:featured": "Featured",
|
|
110
|
+
"itchio:new": "New",
|
|
111
|
+
"itchio:sales": "Sales",
|
|
112
|
+
"csdn:blog": "Blog",
|
|
113
|
+
"douban:interests": "Interests",
|
|
114
|
+
"douban:reviews": "Reviews",
|
|
115
|
+
"douban:notes": "Notes",
|
|
116
|
+
"douban:subjectReviews": "Subject reviews",
|
|
117
|
+
"v2ex:index": "Index",
|
|
118
|
+
"v2ex:node": "Node",
|
|
119
|
+
"v2ex:member": "Member",
|
|
120
|
+
"v2ex:tab": "Tab",
|
|
121
|
+
"ximalaya:album": "Album"
|
|
122
|
+
};
|
|
9
123
|
//#endregion
|
|
10
|
-
export { errors };
|
|
124
|
+
export { errors, hints };
|
package/dist/common/types.d.cts
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
+
import { FeedMethodOptions } from "./uris/feed/types.cjs";
|
|
1
2
|
import { GuessMethodOptions } from "./uris/guess/types.cjs";
|
|
2
3
|
import { HeadersMethodOptions } from "./uris/headers/types.cjs";
|
|
3
4
|
import { HtmlMethodOptions } from "./uris/html/types.cjs";
|
|
4
5
|
import { PlatformMethodOptions } from "./uris/platform/types.cjs";
|
|
5
6
|
|
|
6
7
|
//#region src/common/types.d.ts
|
|
8
|
+
type UriEntry = string | Array<string>;
|
|
9
|
+
type DiscoverUriHint = {
|
|
10
|
+
key: string;
|
|
11
|
+
label: string;
|
|
12
|
+
};
|
|
13
|
+
type DiscoverUriEntry = {
|
|
14
|
+
uri: UriEntry;
|
|
15
|
+
hint?: DiscoverUriHint;
|
|
16
|
+
};
|
|
17
|
+
declare const discoverMethodOrder: readonly ["platform", "feed", "html", "headers", "guess"];
|
|
18
|
+
type DiscoverMethod = (typeof discoverMethodOrder)[number];
|
|
7
19
|
type LinkSelector = {
|
|
8
20
|
rel: string;
|
|
9
21
|
types?: Array<string>;
|
|
@@ -31,15 +43,20 @@ type DiscoverOnProgressFn = (progress: DiscoverProgress) => void;
|
|
|
31
43
|
type DiscoverResult<TValid = object> = ({
|
|
32
44
|
url: string;
|
|
33
45
|
isValid: true;
|
|
46
|
+
method?: DiscoverMethod;
|
|
47
|
+
hint?: DiscoverUriHint;
|
|
34
48
|
} & TValid) | {
|
|
35
49
|
url: string;
|
|
36
50
|
isValid: false;
|
|
51
|
+
method?: DiscoverMethod;
|
|
52
|
+
hint?: DiscoverUriHint;
|
|
37
53
|
error?: unknown;
|
|
38
54
|
};
|
|
39
55
|
type DiscoverExtractFn<TValid> = (input: {
|
|
40
56
|
url: string;
|
|
41
57
|
content: string;
|
|
42
58
|
headers?: Headers;
|
|
59
|
+
status?: number;
|
|
43
60
|
}) => Promise<DiscoverResult<TValid>>;
|
|
44
61
|
type DiscoverInputObject = {
|
|
45
62
|
url: string;
|
|
@@ -47,14 +64,15 @@ type DiscoverInputObject = {
|
|
|
47
64
|
headers?: Headers;
|
|
48
65
|
};
|
|
49
66
|
type DiscoverInput = string | DiscoverInputObject;
|
|
50
|
-
type DiscoverMethodsConfig
|
|
67
|
+
type DiscoverMethodsConfig<TMethods extends DiscoverMethod = DiscoverMethod> = Array<TMethods> | Pick<{
|
|
51
68
|
platform?: true | Partial<PlatformMethodOptions>;
|
|
69
|
+
feed?: true | Partial<FeedMethodOptions>;
|
|
52
70
|
html?: true | Partial<Omit<HtmlMethodOptions, 'baseUrl'>>;
|
|
53
71
|
headers?: true | Partial<Omit<HeadersMethodOptions, 'baseUrl'>>;
|
|
54
72
|
guess?: true | Partial<Omit<GuessMethodOptions, 'baseUrl'>>;
|
|
55
|
-
}
|
|
56
|
-
type DiscoverOptions<TValid> = {
|
|
57
|
-
methods?: DiscoverMethodsConfig
|
|
73
|
+
}, TMethods>;
|
|
74
|
+
type DiscoverOptions<TValid, TMethods extends DiscoverMethod = DiscoverMethod> = {
|
|
75
|
+
methods?: DiscoverMethodsConfig<TMethods>;
|
|
58
76
|
fetchFn?: DiscoverFetchFn;
|
|
59
77
|
extractFn?: DiscoverExtractFn<TValid>;
|
|
60
78
|
normalizeUrlFn?: DiscoverNormalizeUrlFn;
|
|
@@ -65,4 +83,4 @@ type DiscoverOptions<TValid> = {
|
|
|
65
83
|
includeInvalid?: boolean;
|
|
66
84
|
};
|
|
67
85
|
//#endregion
|
|
68
|
-
export { DiscoverExtractFn, DiscoverFetchFn, DiscoverFetchFnOptions, DiscoverFetchFnResponse, DiscoverInput, DiscoverInputObject, DiscoverMethodsConfig, DiscoverNormalizeUrlFn, DiscoverOnProgressFn, DiscoverOptions, DiscoverProgress, DiscoverResult, LinkSelector };
|
|
86
|
+
export { DiscoverExtractFn, DiscoverFetchFn, DiscoverFetchFnOptions, DiscoverFetchFnResponse, DiscoverInput, DiscoverInputObject, DiscoverMethod, DiscoverMethodsConfig, DiscoverNormalizeUrlFn, DiscoverOnProgressFn, DiscoverOptions, DiscoverProgress, DiscoverResult, DiscoverUriEntry, DiscoverUriHint, LinkSelector, UriEntry };
|
package/dist/common/types.d.ts
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
+
import { FeedMethodOptions } from "./uris/feed/types.js";
|
|
1
2
|
import { GuessMethodOptions } from "./uris/guess/types.js";
|
|
2
3
|
import { HeadersMethodOptions } from "./uris/headers/types.js";
|
|
3
4
|
import { HtmlMethodOptions } from "./uris/html/types.js";
|
|
4
5
|
import { PlatformMethodOptions } from "./uris/platform/types.js";
|
|
5
6
|
|
|
6
7
|
//#region src/common/types.d.ts
|
|
8
|
+
type UriEntry = string | Array<string>;
|
|
9
|
+
type DiscoverUriHint = {
|
|
10
|
+
key: string;
|
|
11
|
+
label: string;
|
|
12
|
+
};
|
|
13
|
+
type DiscoverUriEntry = {
|
|
14
|
+
uri: UriEntry;
|
|
15
|
+
hint?: DiscoverUriHint;
|
|
16
|
+
};
|
|
17
|
+
declare const discoverMethodOrder: readonly ["platform", "feed", "html", "headers", "guess"];
|
|
18
|
+
type DiscoverMethod = (typeof discoverMethodOrder)[number];
|
|
7
19
|
type LinkSelector = {
|
|
8
20
|
rel: string;
|
|
9
21
|
types?: Array<string>;
|
|
@@ -31,15 +43,20 @@ type DiscoverOnProgressFn = (progress: DiscoverProgress) => void;
|
|
|
31
43
|
type DiscoverResult<TValid = object> = ({
|
|
32
44
|
url: string;
|
|
33
45
|
isValid: true;
|
|
46
|
+
method?: DiscoverMethod;
|
|
47
|
+
hint?: DiscoverUriHint;
|
|
34
48
|
} & TValid) | {
|
|
35
49
|
url: string;
|
|
36
50
|
isValid: false;
|
|
51
|
+
method?: DiscoverMethod;
|
|
52
|
+
hint?: DiscoverUriHint;
|
|
37
53
|
error?: unknown;
|
|
38
54
|
};
|
|
39
55
|
type DiscoverExtractFn<TValid> = (input: {
|
|
40
56
|
url: string;
|
|
41
57
|
content: string;
|
|
42
58
|
headers?: Headers;
|
|
59
|
+
status?: number;
|
|
43
60
|
}) => Promise<DiscoverResult<TValid>>;
|
|
44
61
|
type DiscoverInputObject = {
|
|
45
62
|
url: string;
|
|
@@ -47,14 +64,15 @@ type DiscoverInputObject = {
|
|
|
47
64
|
headers?: Headers;
|
|
48
65
|
};
|
|
49
66
|
type DiscoverInput = string | DiscoverInputObject;
|
|
50
|
-
type DiscoverMethodsConfig
|
|
67
|
+
type DiscoverMethodsConfig<TMethods extends DiscoverMethod = DiscoverMethod> = Array<TMethods> | Pick<{
|
|
51
68
|
platform?: true | Partial<PlatformMethodOptions>;
|
|
69
|
+
feed?: true | Partial<FeedMethodOptions>;
|
|
52
70
|
html?: true | Partial<Omit<HtmlMethodOptions, 'baseUrl'>>;
|
|
53
71
|
headers?: true | Partial<Omit<HeadersMethodOptions, 'baseUrl'>>;
|
|
54
72
|
guess?: true | Partial<Omit<GuessMethodOptions, 'baseUrl'>>;
|
|
55
|
-
}
|
|
56
|
-
type DiscoverOptions<TValid> = {
|
|
57
|
-
methods?: DiscoverMethodsConfig
|
|
73
|
+
}, TMethods>;
|
|
74
|
+
type DiscoverOptions<TValid, TMethods extends DiscoverMethod = DiscoverMethod> = {
|
|
75
|
+
methods?: DiscoverMethodsConfig<TMethods>;
|
|
58
76
|
fetchFn?: DiscoverFetchFn;
|
|
59
77
|
extractFn?: DiscoverExtractFn<TValid>;
|
|
60
78
|
normalizeUrlFn?: DiscoverNormalizeUrlFn;
|
|
@@ -65,4 +83,4 @@ type DiscoverOptions<TValid> = {
|
|
|
65
83
|
includeInvalid?: boolean;
|
|
66
84
|
};
|
|
67
85
|
//#endregion
|
|
68
|
-
export { DiscoverExtractFn, DiscoverFetchFn, DiscoverFetchFnOptions, DiscoverFetchFnResponse, DiscoverInput, DiscoverInputObject, DiscoverMethodsConfig, DiscoverNormalizeUrlFn, DiscoverOnProgressFn, DiscoverOptions, DiscoverProgress, DiscoverResult, LinkSelector };
|
|
86
|
+
export { DiscoverExtractFn, DiscoverFetchFn, DiscoverFetchFnOptions, DiscoverFetchFnResponse, DiscoverInput, DiscoverInputObject, DiscoverMethod, DiscoverMethodsConfig, DiscoverNormalizeUrlFn, DiscoverOnProgressFn, DiscoverOptions, DiscoverProgress, DiscoverResult, DiscoverUriEntry, DiscoverUriHint, LinkSelector, UriEntry };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const require_utils = require("../../utils.cjs");
|
|
2
|
+
let feedsmith = require("feedsmith");
|
|
3
|
+
//#region src/common/uris/feed/index.ts
|
|
4
|
+
const discoverUrisFromFeed = (content, options) => {
|
|
5
|
+
try {
|
|
6
|
+
const result = (0, feedsmith.parseFeed)(content);
|
|
7
|
+
return require_utils.omitEmpty(options.extractUrls(result));
|
|
8
|
+
} catch {}
|
|
9
|
+
return [];
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.discoverUrisFromFeed = discoverUrisFromFeed;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { omitEmpty } from "../../utils.js";
|
|
2
|
+
import { parseFeed } from "feedsmith";
|
|
3
|
+
//#region src/common/uris/feed/index.ts
|
|
4
|
+
const discoverUrisFromFeed = (content, options) => {
|
|
5
|
+
try {
|
|
6
|
+
const result = parseFeed(content);
|
|
7
|
+
return omitEmpty(options.extractUrls(result));
|
|
8
|
+
} catch {}
|
|
9
|
+
return [];
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { discoverUrisFromFeed };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { parseFeed } from "feedsmith";
|
|
2
|
+
|
|
3
|
+
//#region src/common/uris/feed/types.d.ts
|
|
4
|
+
type FeedMethodData = ReturnType<typeof parseFeed>;
|
|
5
|
+
type FeedMethodOptions = {
|
|
6
|
+
extractUrls: (params: FeedMethodData) => Array<string>;
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { FeedMethodOptions };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { parseFeed } from "feedsmith";
|
|
2
|
+
|
|
3
|
+
//#region src/common/uris/feed/types.d.ts
|
|
4
|
+
type FeedMethodData = ReturnType<typeof parseFeed>;
|
|
5
|
+
type FeedMethodOptions = {
|
|
6
|
+
extractUrls: (params: FeedMethodData) => Array<string>;
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { FeedMethodOptions };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
const require_utils = require(
|
|
2
|
-
|
|
1
|
+
const require_utils = require("./utils.cjs");
|
|
3
2
|
//#region src/common/uris/guess/index.ts
|
|
4
3
|
const discoverUrisFromGuess = (options) => {
|
|
5
4
|
const { baseUrl, uris, additionalBaseUrls = [] } = options;
|
|
6
5
|
return require_utils.generateUrlCombinations([baseUrl, ...additionalBaseUrls], uris);
|
|
7
6
|
};
|
|
8
|
-
|
|
9
7
|
//#endregion
|
|
10
|
-
exports.discoverUrisFromGuess = discoverUrisFromGuess;
|
|
8
|
+
exports.discoverUrisFromGuess = discoverUrisFromGuess;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { GuessMethodOptions } from "./types.cjs";
|
|
2
|
+
import { UriEntry } from "../../types.cjs";
|
|
2
3
|
|
|
3
4
|
//#region src/common/uris/guess/index.d.ts
|
|
4
|
-
declare const discoverUrisFromGuess: (options: GuessMethodOptions) => Array<
|
|
5
|
+
declare const discoverUrisFromGuess: (options: GuessMethodOptions) => Array<UriEntry>;
|
|
5
6
|
//#endregion
|
|
6
7
|
export { discoverUrisFromGuess };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { GuessMethodOptions } from "./types.js";
|
|
2
|
+
import { UriEntry } from "../../types.js";
|
|
2
3
|
|
|
3
4
|
//#region src/common/uris/guess/index.d.ts
|
|
4
|
-
declare const discoverUrisFromGuess: (options: GuessMethodOptions) => Array<
|
|
5
|
+
declare const discoverUrisFromGuess: (options: GuessMethodOptions) => Array<UriEntry>;
|
|
5
6
|
//#endregion
|
|
6
7
|
export { discoverUrisFromGuess };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { generateUrlCombinations } from "./utils.js";
|
|
2
|
-
|
|
3
2
|
//#region src/common/uris/guess/index.ts
|
|
4
3
|
const discoverUrisFromGuess = (options) => {
|
|
5
4
|
const { baseUrl, uris, additionalBaseUrls = [] } = options;
|
|
6
5
|
return generateUrlCombinations([baseUrl, ...additionalBaseUrls], uris);
|
|
7
6
|
};
|
|
8
|
-
|
|
9
7
|
//#endregion
|
|
10
|
-
export { discoverUrisFromGuess };
|
|
8
|
+
export { discoverUrisFromGuess };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/common/uris/guess/utils.ts
|
|
3
2
|
const generateUrlCombinations = (baseUrls, uris) => {
|
|
4
3
|
return baseUrls.flatMap((base) => {
|
|
5
4
|
return uris.map((uri) => {
|
|
6
|
-
return new URL(uri, base).toString();
|
|
5
|
+
if (typeof uri === "string") return new URL(uri, base).toString();
|
|
6
|
+
return uri.map((alternative) => {
|
|
7
|
+
return new URL(alternative, base).toString();
|
|
8
|
+
});
|
|
7
9
|
});
|
|
8
10
|
});
|
|
9
11
|
};
|
|
@@ -31,8 +33,7 @@ const getSubdomainVariants = (baseUrl, prefixes) => {
|
|
|
31
33
|
return `${protocol}//${prefix === "" ? rootDomain : `${prefix}.${rootDomain}`}${port}`;
|
|
32
34
|
});
|
|
33
35
|
};
|
|
34
|
-
|
|
35
36
|
//#endregion
|
|
36
37
|
exports.generateUrlCombinations = generateUrlCombinations;
|
|
37
38
|
exports.getSubdomainVariants = getSubdomainVariants;
|
|
38
|
-
exports.getWwwCounterpart = getWwwCounterpart;
|
|
39
|
+
exports.getWwwCounterpart = getWwwCounterpart;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { UriEntry } from "../../types.cjs";
|
|
2
|
+
|
|
1
3
|
//#region src/common/uris/guess/utils.d.ts
|
|
2
|
-
declare const generateUrlCombinations: (baseUrls: Array<string>, uris: Array<
|
|
4
|
+
declare const generateUrlCombinations: (baseUrls: Array<string>, uris: Array<UriEntry>) => Array<UriEntry>;
|
|
3
5
|
declare const getWwwCounterpart: (baseUrl: string) => string;
|
|
4
6
|
declare const getSubdomainVariants: (baseUrl: string, prefixes: Array<string>) => Array<string>;
|
|
5
7
|
//#endregion
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { UriEntry } from "../../types.js";
|
|
2
|
+
|
|
1
3
|
//#region src/common/uris/guess/utils.d.ts
|
|
2
|
-
declare const generateUrlCombinations: (baseUrls: Array<string>, uris: Array<
|
|
4
|
+
declare const generateUrlCombinations: (baseUrls: Array<string>, uris: Array<UriEntry>) => Array<UriEntry>;
|
|
3
5
|
declare const getWwwCounterpart: (baseUrl: string) => string;
|
|
4
6
|
declare const getSubdomainVariants: (baseUrl: string, prefixes: Array<string>) => Array<string>;
|
|
5
7
|
//#endregion
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
const generateUrlCombinations = (baseUrls, uris) => {
|
|
3
3
|
return baseUrls.flatMap((base) => {
|
|
4
4
|
return uris.map((uri) => {
|
|
5
|
-
return new URL(uri, base).toString();
|
|
5
|
+
if (typeof uri === "string") return new URL(uri, base).toString();
|
|
6
|
+
return uri.map((alternative) => {
|
|
7
|
+
return new URL(alternative, base).toString();
|
|
8
|
+
});
|
|
6
9
|
});
|
|
7
10
|
});
|
|
8
11
|
};
|
|
@@ -30,6 +33,5 @@ const getSubdomainVariants = (baseUrl, prefixes) => {
|
|
|
30
33
|
return `${protocol}//${prefix === "" ? rootDomain : `${prefix}.${rootDomain}`}${port}`;
|
|
31
34
|
});
|
|
32
35
|
};
|
|
33
|
-
|
|
34
36
|
//#endregion
|
|
35
|
-
export { generateUrlCombinations, getSubdomainVariants, getWwwCounterpart };
|
|
37
|
+
export { generateUrlCombinations, getSubdomainVariants, getWwwCounterpart };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const require_utils = require(
|
|
2
|
-
|
|
1
|
+
const require_utils = require("../../utils.cjs");
|
|
3
2
|
//#region src/common/uris/headers/index.ts
|
|
4
3
|
const urlRegex = /<([^<>]+)>/;
|
|
5
4
|
const relRegex = /rel\s*=\s*["']?([^"';,]+)["']?/i;
|
|
@@ -22,6 +21,5 @@ const discoverUrisFromHeaders = (headers, options) => {
|
|
|
22
21
|
}
|
|
23
22
|
return Array.from(uris);
|
|
24
23
|
};
|
|
25
|
-
|
|
26
24
|
//#endregion
|
|
27
|
-
exports.discoverUrisFromHeaders = discoverUrisFromHeaders;
|
|
25
|
+
exports.discoverUrisFromHeaders = discoverUrisFromHeaders;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { matchesAnyOfLinkSelectors } from "../../utils.js";
|
|
2
|
-
|
|
3
2
|
//#region src/common/uris/headers/index.ts
|
|
4
3
|
const urlRegex = /<([^<>]+)>/;
|
|
5
4
|
const relRegex = /rel\s*=\s*["']?([^"';,]+)["']?/i;
|
|
@@ -22,6 +21,5 @@ const discoverUrisFromHeaders = (headers, options) => {
|
|
|
22
21
|
}
|
|
23
22
|
return Array.from(uris);
|
|
24
23
|
};
|
|
25
|
-
|
|
26
24
|
//#endregion
|
|
27
|
-
export { discoverUrisFromHeaders };
|
|
25
|
+
export { discoverUrisFromHeaders };
|