urlpurify 1.4.0 → 1.4.1

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.
Files changed (268) hide show
  1. package/dist/clean.d.mts +6 -0
  2. package/dist/{clean.js → clean.mjs} +2 -2
  3. package/dist/defaults.d.mts +8 -0
  4. package/dist/defaults.mjs +76 -0
  5. package/dist/index.d.mts +88 -0
  6. package/dist/index.mjs +87 -0
  7. package/dist/node_modules/trousse/dist/{urls.js → urls.mjs} +3 -3
  8. package/dist/tracking/literals.d.mts +3 -0
  9. package/dist/tracking/patterns.d.mts +3 -0
  10. package/dist/types.d.mts +9 -0
  11. package/dist/unwraps/aceml.d.mts +4 -0
  12. package/dist/unwraps/{aceml.js → aceml.mjs} +1 -1
  13. package/dist/unwraps/adjust.d.mts +4 -0
  14. package/dist/unwraps/amazonAffiliate.d.mts +4 -0
  15. package/dist/unwraps/ampCache.d.mts +4 -0
  16. package/dist/unwraps/{ampCache.js → ampCache.mjs} +1 -1
  17. package/dist/unwraps/anonymTo.d.mts +4 -0
  18. package/dist/unwraps/awin.d.mts +4 -0
  19. package/dist/unwraps/{awin.js → awin.mjs} +1 -1
  20. package/dist/unwraps/bing.d.mts +4 -0
  21. package/dist/unwraps/{bing.js → bing.mjs} +1 -1
  22. package/dist/unwraps/bsky.d.mts +4 -0
  23. package/dist/unwraps/{bsky.js → bsky.mjs} +1 -1
  24. package/dist/unwraps/cjNetwork.d.mts +4 -0
  25. package/dist/unwraps/{cjNetwork.js → cjNetwork.mjs} +1 -1
  26. package/dist/unwraps/csdn.d.mts +4 -0
  27. package/dist/unwraps/{csdn.js → csdn.mjs} +1 -1
  28. package/dist/unwraps/deviantartOutgoing.d.mts +4 -0
  29. package/dist/unwraps/digidip.d.mts +4 -0
  30. package/dist/unwraps/{digidip.js → digidip.mjs} +1 -1
  31. package/dist/unwraps/disqus.d.mts +4 -0
  32. package/dist/unwraps/{disqus.js → disqus.mjs} +1 -1
  33. package/dist/unwraps/douban.d.mts +4 -0
  34. package/dist/unwraps/{douban.js → douban.mjs} +1 -1
  35. package/dist/unwraps/duckduckgo.d.mts +4 -0
  36. package/dist/unwraps/{duckduckgo.js → duckduckgo.mjs} +1 -1
  37. package/dist/unwraps/ebayRover.d.mts +4 -0
  38. package/dist/unwraps/{ebayRover.js → ebayRover.mjs} +1 -1
  39. package/dist/unwraps/effiliation.d.mts +4 -0
  40. package/dist/unwraps/{effiliation.js → effiliation.mjs} +1 -1
  41. package/dist/unwraps/embedly.d.mts +4 -0
  42. package/dist/unwraps/{embedly.js → embedly.mjs} +1 -1
  43. package/dist/unwraps/facebook.d.mts +4 -0
  44. package/dist/unwraps/{facebook.js → facebook.mjs} +1 -1
  45. package/dist/unwraps/feedsportal.d.mts +4 -0
  46. package/dist/unwraps/firebaseDynamicLinks.d.mts +4 -0
  47. package/dist/unwraps/{firebaseDynamicLinks.js → firebaseDynamicLinks.mjs} +1 -1
  48. package/dist/unwraps/flipboard.d.mts +4 -0
  49. package/dist/unwraps/{flipboard.js → flipboard.mjs} +1 -1
  50. package/dist/unwraps/gateSc.d.mts +4 -0
  51. package/dist/unwraps/{gateSc.js → gateSc.mjs} +1 -1
  52. package/dist/unwraps/georiot.d.mts +4 -0
  53. package/dist/unwraps/{georiot.js → georiot.mjs} +1 -1
  54. package/dist/unwraps/gitee.d.mts +4 -0
  55. package/dist/unwraps/{gitee.js → gitee.mjs} +1 -1
  56. package/dist/unwraps/google.d.mts +4 -0
  57. package/dist/unwraps/{google.js → google.mjs} +1 -1
  58. package/dist/unwraps/googleAmpViewer.d.mts +4 -0
  59. package/dist/unwraps/googleNews.d.mts +4 -0
  60. package/dist/unwraps/{googleNews.js → googleNews.mjs} +1 -1
  61. package/dist/unwraps/googleNewsModern.d.mts +4 -0
  62. package/dist/unwraps/{googleNewsModern.js → googleNewsModern.mjs} +4 -3
  63. package/dist/unwraps/googleScholar.d.mts +4 -0
  64. package/dist/unwraps/{googleScholar.js → googleScholar.mjs} +1 -1
  65. package/dist/unwraps/googleTranslate.d.mts +4 -0
  66. package/dist/unwraps/{googleTranslate.js → googleTranslate.mjs} +1 -1
  67. package/dist/unwraps/hashnode.d.mts +4 -0
  68. package/dist/unwraps/{hashnode.js → hashnode.mjs} +1 -1
  69. package/dist/unwraps/hrefLi.d.mts +4 -0
  70. package/dist/unwraps/icptrack.d.mts +4 -0
  71. package/dist/unwraps/{icptrack.js → icptrack.mjs} +1 -1
  72. package/dist/unwraps/idealoPartner.d.mts +4 -0
  73. package/dist/unwraps/{idealoPartner.js → idealoPartner.mjs} +1 -1
  74. package/dist/unwraps/instagram.d.mts +4 -0
  75. package/dist/unwraps/{instagram.js → instagram.mjs} +1 -1
  76. package/dist/unwraps/jianshuGo.d.mts +4 -0
  77. package/dist/unwraps/{jianshuGo.js → jianshuGo.mjs} +1 -1
  78. package/dist/unwraps/juejin.d.mts +4 -0
  79. package/dist/unwraps/{juejin.js → juejin.mjs} +1 -1
  80. package/dist/unwraps/leverAnalytics.d.mts +4 -0
  81. package/dist/unwraps/{leverAnalytics.js → leverAnalytics.mjs} +1 -1
  82. package/dist/unwraps/linksynergy.d.mts +4 -0
  83. package/dist/unwraps/{linksynergy.js → linksynergy.mjs} +1 -1
  84. package/dist/unwraps/mailchimp.d.mts +4 -0
  85. package/dist/unwraps/{mailchimp.js → mailchimp.mjs} +1 -1
  86. package/dist/unwraps/mailpanion.d.mts +4 -0
  87. package/dist/unwraps/{mailpanion.js → mailpanion.mjs} +1 -1
  88. package/dist/unwraps/mailpgn.d.mts +4 -0
  89. package/dist/unwraps/{mailpgn.js → mailpgn.mjs} +1 -1
  90. package/dist/unwraps/mailtrack.d.mts +4 -0
  91. package/dist/unwraps/{mailtrack.js → mailtrack.mjs} +1 -1
  92. package/dist/unwraps/medium.d.mts +4 -0
  93. package/dist/unwraps/{medium.js → medium.mjs} +1 -1
  94. package/dist/unwraps/mimecast.d.mts +4 -0
  95. package/dist/unwraps/mozillaOutgoing.d.mts +4 -0
  96. package/dist/unwraps/{mozillaOutgoing.js → mozillaOutgoing.mjs} +1 -1
  97. package/dist/unwraps/narrativ.d.mts +4 -0
  98. package/dist/unwraps/{narrativ.js → narrativ.mjs} +1 -1
  99. package/dist/unwraps/naverOutgoing.d.mts +4 -0
  100. package/dist/unwraps/{naverOutgoing.js → naverOutgoing.mjs} +1 -1
  101. package/dist/unwraps/nicoMs.d.mts +4 -0
  102. package/dist/unwraps/outlookSafelinks.d.mts +4 -0
  103. package/dist/unwraps/{outlookSafelinks.js → outlookSafelinks.mjs} +1 -1
  104. package/dist/unwraps/partnerAds.d.mts +4 -0
  105. package/dist/unwraps/{partnerAds.js → partnerAds.mjs} +1 -1
  106. package/dist/unwraps/pocket.d.mts +4 -0
  107. package/dist/unwraps/{pocket.js → pocket.mjs} +1 -1
  108. package/dist/unwraps/postmark.d.mts +4 -0
  109. package/dist/unwraps/proofpointV1.d.mts +4 -0
  110. package/dist/unwraps/{proofpointV1.js → proofpointV1.mjs} +1 -1
  111. package/dist/unwraps/proofpointV2.d.mts +4 -0
  112. package/dist/unwraps/{proofpointV2.js → proofpointV2.mjs} +1 -1
  113. package/dist/unwraps/proofpointV3.d.mts +4 -0
  114. package/dist/unwraps/{proofpointV3.js → proofpointV3.mjs} +2 -2
  115. package/dist/unwraps/pxf.d.mts +4 -0
  116. package/dist/unwraps/{pxf.js → pxf.mjs} +1 -1
  117. package/dist/unwraps/recruitics.d.mts +4 -0
  118. package/dist/unwraps/{recruitics.js → recruitics.mjs} +1 -1
  119. package/dist/unwraps/redditOut.d.mts +4 -0
  120. package/dist/unwraps/{redditOut.js → redditOut.mjs} +1 -1
  121. package/dist/unwraps/redirectingat.d.mts +4 -0
  122. package/dist/unwraps/{redirectingat.js → redirectingat.mjs} +1 -1
  123. package/dist/unwraps/segmentfault.d.mts +4 -0
  124. package/dist/unwraps/{segmentfault.js → segmentfault.mjs} +1 -1
  125. package/dist/unwraps/shareasale.d.mts +4 -0
  126. package/dist/unwraps/{shareasale.js → shareasale.mjs} +1 -1
  127. package/dist/unwraps/sjv.d.mts +4 -0
  128. package/dist/unwraps/{sjv.js → sjv.mjs} +1 -1
  129. package/dist/unwraps/skimlinks.d.mts +4 -0
  130. package/dist/unwraps/{skimlinks.js → skimlinks.mjs} +1 -1
  131. package/dist/unwraps/slack.d.mts +4 -0
  132. package/dist/unwraps/{slack.js → slack.mjs} +1 -1
  133. package/dist/unwraps/smartredirect.d.mts +4 -0
  134. package/dist/unwraps/{smartredirect.js → smartredirect.mjs} +1 -1
  135. package/dist/unwraps/sspai.d.mts +4 -0
  136. package/dist/unwraps/{sspai.js → sspai.mjs} +1 -1
  137. package/dist/unwraps/steamLinkfilter.d.mts +4 -0
  138. package/dist/unwraps/{steamLinkfilter.js → steamLinkfilter.mjs} +1 -1
  139. package/dist/unwraps/telegramIv.d.mts +4 -0
  140. package/dist/unwraps/{telegramIv.js → telegramIv.mjs} +1 -1
  141. package/dist/unwraps/threads.d.mts +4 -0
  142. package/dist/unwraps/{threads.js → threads.mjs} +1 -1
  143. package/dist/unwraps/tradedoubler.d.mts +4 -0
  144. package/dist/unwraps/{tradedoubler.js → tradedoubler.mjs} +1 -1
  145. package/dist/unwraps/tumblr.d.mts +4 -0
  146. package/dist/unwraps/{tumblr.js → tumblr.mjs} +1 -1
  147. package/dist/unwraps/valuecommerce.d.mts +4 -0
  148. package/dist/unwraps/{valuecommerce.js → valuecommerce.mjs} +1 -1
  149. package/dist/unwraps/viglink.d.mts +4 -0
  150. package/dist/unwraps/{viglink.js → viglink.mjs} +1 -1
  151. package/dist/unwraps/vkAway.d.mts +4 -0
  152. package/dist/unwraps/{vkAway.js → vkAway.mjs} +1 -1
  153. package/dist/unwraps/webArchive.d.mts +4 -0
  154. package/dist/unwraps/yahooSearch.d.mts +4 -0
  155. package/dist/unwraps/yandexTurbo.d.mts +4 -0
  156. package/dist/unwraps/youtube.d.mts +4 -0
  157. package/dist/unwraps/{youtube.js → youtube.mjs} +1 -1
  158. package/dist/unwraps/zhihu.d.mts +4 -0
  159. package/dist/unwraps/{zhihu.js → zhihu.mjs} +1 -1
  160. package/dist/utils.d.mts +9 -0
  161. package/package.json +11 -8
  162. package/dist/clean.d.ts +0 -8
  163. package/dist/defaults.d.ts +0 -9
  164. package/dist/defaults.js +0 -76
  165. package/dist/index.d.ts +0 -88
  166. package/dist/index.js +0 -87
  167. package/dist/tracking/literals.d.ts +0 -4
  168. package/dist/tracking/patterns.d.ts +0 -4
  169. package/dist/types.d.ts +0 -10
  170. package/dist/unwraps/aceml.d.ts +0 -6
  171. package/dist/unwraps/adjust.d.ts +0 -6
  172. package/dist/unwraps/amazonAffiliate.d.ts +0 -6
  173. package/dist/unwraps/ampCache.d.ts +0 -6
  174. package/dist/unwraps/anonymTo.d.ts +0 -6
  175. package/dist/unwraps/awin.d.ts +0 -6
  176. package/dist/unwraps/bing.d.ts +0 -6
  177. package/dist/unwraps/bsky.d.ts +0 -6
  178. package/dist/unwraps/cjNetwork.d.ts +0 -6
  179. package/dist/unwraps/csdn.d.ts +0 -6
  180. package/dist/unwraps/deviantartOutgoing.d.ts +0 -6
  181. package/dist/unwraps/digidip.d.ts +0 -6
  182. package/dist/unwraps/disqus.d.ts +0 -6
  183. package/dist/unwraps/douban.d.ts +0 -6
  184. package/dist/unwraps/duckduckgo.d.ts +0 -6
  185. package/dist/unwraps/ebayRover.d.ts +0 -6
  186. package/dist/unwraps/effiliation.d.ts +0 -6
  187. package/dist/unwraps/embedly.d.ts +0 -6
  188. package/dist/unwraps/facebook.d.ts +0 -6
  189. package/dist/unwraps/feedsportal.d.ts +0 -6
  190. package/dist/unwraps/firebaseDynamicLinks.d.ts +0 -6
  191. package/dist/unwraps/flipboard.d.ts +0 -6
  192. package/dist/unwraps/gateSc.d.ts +0 -6
  193. package/dist/unwraps/georiot.d.ts +0 -6
  194. package/dist/unwraps/gitee.d.ts +0 -6
  195. package/dist/unwraps/google.d.ts +0 -6
  196. package/dist/unwraps/googleAmpViewer.d.ts +0 -6
  197. package/dist/unwraps/googleNews.d.ts +0 -6
  198. package/dist/unwraps/googleNewsModern.d.ts +0 -6
  199. package/dist/unwraps/googleScholar.d.ts +0 -6
  200. package/dist/unwraps/googleTranslate.d.ts +0 -6
  201. package/dist/unwraps/hashnode.d.ts +0 -6
  202. package/dist/unwraps/hrefLi.d.ts +0 -6
  203. package/dist/unwraps/icptrack.d.ts +0 -6
  204. package/dist/unwraps/idealoPartner.d.ts +0 -6
  205. package/dist/unwraps/instagram.d.ts +0 -6
  206. package/dist/unwraps/jianshuGo.d.ts +0 -6
  207. package/dist/unwraps/juejin.d.ts +0 -6
  208. package/dist/unwraps/leverAnalytics.d.ts +0 -6
  209. package/dist/unwraps/linksynergy.d.ts +0 -6
  210. package/dist/unwraps/mailchimp.d.ts +0 -6
  211. package/dist/unwraps/mailpanion.d.ts +0 -6
  212. package/dist/unwraps/mailpgn.d.ts +0 -6
  213. package/dist/unwraps/mailtrack.d.ts +0 -6
  214. package/dist/unwraps/medium.d.ts +0 -6
  215. package/dist/unwraps/mimecast.d.ts +0 -6
  216. package/dist/unwraps/mozillaOutgoing.d.ts +0 -6
  217. package/dist/unwraps/narrativ.d.ts +0 -6
  218. package/dist/unwraps/naverOutgoing.d.ts +0 -6
  219. package/dist/unwraps/nicoMs.d.ts +0 -6
  220. package/dist/unwraps/outlookSafelinks.d.ts +0 -6
  221. package/dist/unwraps/partnerAds.d.ts +0 -6
  222. package/dist/unwraps/pocket.d.ts +0 -6
  223. package/dist/unwraps/postmark.d.ts +0 -6
  224. package/dist/unwraps/proofpointV1.d.ts +0 -6
  225. package/dist/unwraps/proofpointV2.d.ts +0 -6
  226. package/dist/unwraps/proofpointV3.d.ts +0 -6
  227. package/dist/unwraps/pxf.d.ts +0 -6
  228. package/dist/unwraps/recruitics.d.ts +0 -6
  229. package/dist/unwraps/redditOut.d.ts +0 -6
  230. package/dist/unwraps/redirectingat.d.ts +0 -6
  231. package/dist/unwraps/segmentfault.d.ts +0 -6
  232. package/dist/unwraps/shareasale.d.ts +0 -6
  233. package/dist/unwraps/sjv.d.ts +0 -6
  234. package/dist/unwraps/skimlinks.d.ts +0 -6
  235. package/dist/unwraps/slack.d.ts +0 -6
  236. package/dist/unwraps/smartredirect.d.ts +0 -6
  237. package/dist/unwraps/sspai.d.ts +0 -6
  238. package/dist/unwraps/steamLinkfilter.d.ts +0 -6
  239. package/dist/unwraps/telegramIv.d.ts +0 -6
  240. package/dist/unwraps/threads.d.ts +0 -6
  241. package/dist/unwraps/tradedoubler.d.ts +0 -6
  242. package/dist/unwraps/tumblr.d.ts +0 -6
  243. package/dist/unwraps/valuecommerce.d.ts +0 -6
  244. package/dist/unwraps/viglink.d.ts +0 -6
  245. package/dist/unwraps/vkAway.d.ts +0 -6
  246. package/dist/unwraps/webArchive.d.ts +0 -6
  247. package/dist/unwraps/yahooSearch.d.ts +0 -6
  248. package/dist/unwraps/yandexTurbo.d.ts +0 -6
  249. package/dist/unwraps/youtube.d.ts +0 -6
  250. package/dist/unwraps/zhihu.d.ts +0 -6
  251. package/dist/utils.d.ts +0 -11
  252. /package/dist/node_modules/trousse/dist/{matching.js → matching.mjs} +0 -0
  253. /package/dist/tracking/{literals.js → literals.mjs} +0 -0
  254. /package/dist/tracking/{patterns.js → patterns.mjs} +0 -0
  255. /package/dist/unwraps/{adjust.js → adjust.mjs} +0 -0
  256. /package/dist/unwraps/{amazonAffiliate.js → amazonAffiliate.mjs} +0 -0
  257. /package/dist/unwraps/{anonymTo.js → anonymTo.mjs} +0 -0
  258. /package/dist/unwraps/{deviantartOutgoing.js → deviantartOutgoing.mjs} +0 -0
  259. /package/dist/unwraps/{feedsportal.js → feedsportal.mjs} +0 -0
  260. /package/dist/unwraps/{googleAmpViewer.js → googleAmpViewer.mjs} +0 -0
  261. /package/dist/unwraps/{hrefLi.js → hrefLi.mjs} +0 -0
  262. /package/dist/unwraps/{mimecast.js → mimecast.mjs} +0 -0
  263. /package/dist/unwraps/{nicoMs.js → nicoMs.mjs} +0 -0
  264. /package/dist/unwraps/{postmark.js → postmark.mjs} +0 -0
  265. /package/dist/unwraps/{webArchive.js → webArchive.mjs} +0 -0
  266. /package/dist/unwraps/{yahooSearch.js → yahooSearch.mjs} +0 -0
  267. /package/dist/unwraps/{yandexTurbo.js → yandexTurbo.mjs} +0 -0
  268. /package/dist/{utils.js → utils.mjs} +0 -0
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/gitee.d.ts
3
+ export declare const unwrapGitee: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/gitee.ts
3
3
  const unwrapGitee = createParamExtractor({
4
4
  hosts: "gitee.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/google.d.ts
3
+ export declare const unwrapGoogle: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  const unwrapGoogle = createParamExtractor({
3
3
  hosts: /^(?:[a-z0-9-]+\.)*google\.(?:com|[a-z]{2,3}(?:\.[a-z]{2,3})?)$/,
4
4
  path: "/url",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/googleAmpViewer.d.ts
3
+ export declare const unwrapGoogleAmpViewer: UrlUnwrapper;
4
+ //#endregion
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/googleNews.d.ts
3
+ export declare const unwrapGoogleNews: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  const unwrapGoogleNews = createParamExtractor({
3
3
  hosts: /^news\.google\.(?:com|[a-z]{2,3}(?:\.[a-z]{2,3})?)$/,
4
4
  path: "/news/url",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/googleNewsModern.d.ts
3
+ export declare const unwrapGoogleNewsModern: UrlUnwrapper;
4
+ //#endregion
@@ -1,5 +1,5 @@
1
- import { isHostOf } from "../node_modules/trousse/dist/urls.js";
2
- import { decodeBase64Binary } from "../utils.js";
1
+ import { isHostOf } from "../node_modules/trousse/dist/urls.mjs";
2
+ import { decodeBase64Binary } from "../utils.mjs";
3
3
  //#region src/unwraps/googleNewsModern.ts
4
4
  const articleIdRegex = /^\/(?:rss\/)?articles\/([\w-]+)/;
5
5
  const base64UrlMinusRegex = /-/g;
@@ -9,7 +9,8 @@ const unwrapGoogleNewsModern = (url) => {
9
9
  if (!isHostOf(url, "news.google.com")) return;
10
10
  const match = url.pathname.match(articleIdRegex);
11
11
  if (!match) return;
12
- return (decodeBase64Binary(match[1].replace(base64UrlMinusRegex, "+").replace(base64UrlUnderscoreRegex, "/"))?.match(protobufFramingRegex))?.[1];
12
+ const padded = match[1].replace(base64UrlMinusRegex, "+").replace(base64UrlUnderscoreRegex, "/");
13
+ return (decodeBase64Binary(padded)?.match(protobufFramingRegex))?.[1];
13
14
  };
14
15
  //#endregion
15
16
  export { unwrapGoogleNewsModern };
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/googleScholar.d.ts
3
+ export declare const unwrapGoogleScholar: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  const unwrapGoogleScholar = createParamExtractor({
3
3
  hosts: /^scholar\.google\.(?:com|[a-z]{2,3}(?:\.[a-z]{2,3})?)$/,
4
4
  path: "/scholar_url",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/googleTranslate.d.ts
3
+ export declare const unwrapGoogleTranslate: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  const unwrapGoogleTranslate = createParamExtractor({
3
3
  hosts: /^translate\.google\.(?:com|[a-z]{2,3}(?:\.[a-z]{2,3})?)$/,
4
4
  path: "/translate",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/hashnode.d.ts
3
+ export declare const unwrapHashnode: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/hashnode.ts
3
3
  const unwrapHashnode = createParamExtractor({
4
4
  hosts: "hashnode.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/hrefLi.d.ts
3
+ export declare const unwrapHrefLi: UrlUnwrapper;
4
+ //#endregion
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/icptrack.d.ts
3
+ export declare const unwrapIcptrack: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/icptrack.ts
3
3
  const unwrapIcptrack = createParamExtractor({
4
4
  hosts: "click.icptrack.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/idealoPartner.d.ts
3
+ export declare const unwrapIdealoPartner: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/idealoPartner.ts
3
3
  const unwrapIdealoPartner = createParamExtractor({
4
4
  hosts: /\.idealo-partner\.com$/,
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/instagram.d.ts
3
+ export declare const unwrapInstagramShim: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/instagram.ts
3
3
  const unwrapInstagramShim = createParamExtractor({
4
4
  hosts: ["l.instagram.com", "lm.instagram.com"],
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/jianshuGo.d.ts
3
+ export declare const unwrapJianshuGo: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/jianshuGo.ts
3
3
  const unwrapJianshuGo = createParamExtractor({
4
4
  hosts: "links.jianshu.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/juejin.d.ts
3
+ export declare const unwrapJuejin: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/juejin.ts
3
3
  const unwrapJuejin = createParamExtractor({
4
4
  hosts: "link.juejin.cn",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/leverAnalytics.d.ts
3
+ export declare const unwrapLeverAnalytics: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/leverAnalytics.ts
3
3
  const unwrapLeverAnalytics = createParamExtractor({
4
4
  hosts: "t.lever-analytics.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/linksynergy.d.ts
3
+ export declare const unwrapLinksynergy: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/linksynergy.ts
3
3
  const unwrapLinksynergy = createParamExtractor({
4
4
  hosts: "click.linksynergy.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/mailchimp.d.ts
3
+ export declare const unwrapMailchimp: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/mailchimp.ts
3
3
  const unwrapMailchimp = createParamExtractor({
4
4
  hosts: /\.mailchimp\.com$/,
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/mailpanion.d.ts
3
+ export declare const unwrapMailpanion: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/mailpanion.ts
3
3
  const unwrapMailpanion = createParamExtractor({
4
4
  hosts: "mailpanion.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/mailpgn.d.ts
3
+ export declare const unwrapMailpgn: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/mailpgn.ts
3
3
  const unwrapMailpgn = createParamExtractor({
4
4
  hosts: "t.mailpgn.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/mailtrack.d.ts
3
+ export declare const unwrapMailtrack: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/mailtrack.ts
3
3
  const unwrapMailtrack = createParamExtractor({
4
4
  hosts: "mailtrack.io",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/medium.d.ts
3
+ export declare const unwrapMedium: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/medium.ts
3
3
  const unwrapMedium = createParamExtractor({
4
4
  hosts: "medium.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/mimecast.d.ts
3
+ export declare const unwrapMimecast: UrlUnwrapper;
4
+ //#endregion
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/mozillaOutgoing.d.ts
3
+ export declare const unwrapMozillaOutgoing: UrlUnwrapper;
4
+ //#endregion
@@ -1,6 +1,6 @@
1
1
  //#region src/unwraps/mozillaOutgoing.ts
2
2
  const pathRegex = /^\/v1\/[0-9a-f]{64}\/(.+)$/;
3
- const mozillaOutgoingHosts = new Set(["outgoing.prod.mozaws.net", "prod.outgoing.prod.webservices.mozgcp.net"]);
3
+ const mozillaOutgoingHosts = /* @__PURE__ */ new Set(["outgoing.prod.mozaws.net", "prod.outgoing.prod.webservices.mozgcp.net"]);
4
4
  const unwrapMozillaOutgoing = (url) => {
5
5
  if (!mozillaOutgoingHosts.has(url.hostname)) return;
6
6
  const match = url.pathname.match(pathRegex);
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/narrativ.d.ts
3
+ export declare const unwrapNarrativ: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/narrativ.ts
3
3
  const unwrapNarrativ = createParamExtractor({
4
4
  hosts: ["narrativ.com", "api.narrativ.com"],
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/naverOutgoing.d.ts
3
+ export declare const unwrapNaverOutgoing: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/naverOutgoing.ts
3
3
  const unwrapNaverOutgoing = createParamExtractor({
4
4
  hosts: "cc.loginfra.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/nicoMs.d.ts
3
+ export declare const unwrapNicoMs: UrlUnwrapper;
4
+ //#endregion
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/outlookSafelinks.d.ts
3
+ export declare const unwrapOutlookSafelinks: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/outlookSafelinks.ts
3
3
  const unwrapOutlookSafelinks = createParamExtractor({
4
4
  hosts: /\.safelinks\.protection\.outlook\.com$/,
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/partnerAds.d.ts
3
+ export declare const unwrapPartnerAds: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/partnerAds.ts
3
3
  const unwrapPartnerAds = createParamExtractor({
4
4
  hosts: /\.partner-ads\.com$/,
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/pocket.d.ts
3
+ export declare const unwrapPocket: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/pocket.ts
3
3
  const unwrapPocket = createParamExtractor({
4
4
  hosts: "getpocket.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/postmark.d.ts
3
+ export declare const unwrapPostmark: UrlUnwrapper;
4
+ //#endregion
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/proofpointV1.d.ts
3
+ export declare const unwrapProofpointV1: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/proofpointV1.ts
3
3
  const baseExtractor = createParamExtractor({
4
4
  hosts: "urldefense.proofpoint.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/proofpointV2.d.ts
3
+ export declare const unwrapProofpointV2: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/proofpointV2.ts
3
3
  const baseExtractor = createParamExtractor({
4
4
  hosts: "urldefense.proofpoint.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/proofpointV3.d.ts
3
+ export declare const unwrapProofpointV3: UrlUnwrapper;
4
+ //#endregion
@@ -1,7 +1,7 @@
1
- import { decodeBase64Url, getUtf8ByteLength } from "../utils.js";
1
+ import { decodeBase64Url, getUtf8ByteLength } from "../utils.mjs";
2
2
  //#region src/unwraps/proofpointV3.ts
3
3
  const v3PathRegex = /^\/v3\/__(.+)__;([^!]*)!/;
4
- const v3HostSet = new Set([
4
+ const v3HostSet = /* @__PURE__ */ new Set([
5
5
  "urldefense.com",
6
6
  "urldefense.proofpoint.com",
7
7
  "urldefense.us"
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/pxf.d.ts
3
+ export declare const unwrapPxf: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/pxf.ts
3
3
  const unwrapPxf = createParamExtractor({
4
4
  hosts: /\.pxf\.io$/,
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/recruitics.d.ts
3
+ export declare const unwrapRecruitics: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/recruitics.ts
3
3
  const unwrapRecruitics = createParamExtractor({
4
4
  hosts: "jsv3.recruitics.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/redditOut.d.ts
3
+ export declare const unwrapRedditOut: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/redditOut.ts
3
3
  const unwrapRedditOut = createParamExtractor({
4
4
  hosts: "out.reddit.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/redirectingat.d.ts
3
+ export declare const unwrapRedirectingat: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/redirectingat.ts
3
3
  const unwrapRedirectingat = createParamExtractor({
4
4
  hosts: "redirectingat.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/segmentfault.d.ts
3
+ export declare const unwrapSegmentfault: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor, decodeBase64 } from "../utils.js";
1
+ import { createParamExtractor, decodeBase64 } from "../utils.mjs";
2
2
  //#region src/unwraps/segmentfault.ts
3
3
  const baseExtractor = createParamExtractor({
4
4
  hosts: "link.segmentfault.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/shareasale.d.ts
3
+ export declare const unwrapShareasale: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/shareasale.ts
3
3
  const unwrapShareasale = createParamExtractor({
4
4
  hosts: "shareasale.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/sjv.d.ts
3
+ export declare const unwrapSjv: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/sjv.ts
3
3
  const unwrapSjv = createParamExtractor({
4
4
  hosts: /\.sjv\.io$/,
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/skimlinks.d.ts
3
+ export declare const unwrapSkimlinks: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/skimlinks.ts
3
3
  const unwrapSkimlinks = createParamExtractor({
4
4
  hosts: "go.skimresources.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/slack.d.ts
3
+ export declare const unwrapSlack: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/slack.ts
3
3
  const unwrapSlack = createParamExtractor({
4
4
  hosts: "slack-redir.net",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/smartredirect.d.ts
3
+ export declare const unwrapSmartredirect: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/smartredirect.ts
3
3
  const unwrapSmartredirect = createParamExtractor({
4
4
  hosts: "smartredirect.de",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/sspai.d.ts
3
+ export declare const unwrapSspai: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/sspai.ts
3
3
  const unwrapSspai = createParamExtractor({
4
4
  hosts: "sspai.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/steamLinkfilter.d.ts
3
+ export declare const unwrapSteamLinkfilter: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/steamLinkfilter.ts
3
3
  const unwrapSteamLinkfilter = createParamExtractor({
4
4
  hosts: "steamcommunity.com",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/telegramIv.d.ts
3
+ export declare const unwrapTelegramIv: UrlUnwrapper;
4
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { createParamExtractor } from "../utils.js";
1
+ import { createParamExtractor } from "../utils.mjs";
2
2
  //#region src/unwraps/telegramIv.ts
3
3
  const unwrapTelegramIv = createParamExtractor({
4
4
  hosts: "t.me",
@@ -0,0 +1,4 @@
1
+ import { UrlUnwrapper } from "../types.mjs";
2
+ //#region src/unwraps/threads.d.ts
3
+ export declare const unwrapThreadsShim: UrlUnwrapper;
4
+ //#endregion