@url-sanitize/brave 2.0.4 → 2.0.6

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/dist/adapter.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { SanitizerCatalog } from '@url-sanitize/core';
2
- import { BraveDebounceData, BraveMetadata } from './types.js';
3
-
4
- declare function braveToCatalog(data: BraveDebounceData, meta: BraveMetadata): SanitizerCatalog;
5
-
6
- export { braveToCatalog };
1
+ import { BraveDebounceData, BraveMetadata } from "./types.js";
2
+ import { SanitizerCatalog } from "@url-sanitize/core";
3
+ //#region src/adapter.d.ts
4
+ export declare function braveToCatalog(data: BraveDebounceData, meta: BraveMetadata): SanitizerCatalog;
5
+ //#endregion
package/dist/adapter.js CHANGED
@@ -1,6 +1,88 @@
1
- import {
2
- braveToCatalog
3
- } from "./chunk-GEHCLNTD.js";
4
- export {
5
- braveToCatalog
6
- };
1
+ //#region src/adapter.ts
2
+ function braveToCatalog(data, meta) {
3
+ const rules = [];
4
+ let index = 0;
5
+ for (const upstreamRule of data) {
6
+ const exceptions = upstreamRule.exclude.map(matchPatternToRegex);
7
+ for (const include of upstreamRule.include) {
8
+ const base = {
9
+ kind: "unwrap-redirect",
10
+ source: "brave",
11
+ provider: `brave-debounce-${index}`,
12
+ urlPattern: matchPatternToRegex(include),
13
+ exceptions,
14
+ pattern: upstreamRule.param,
15
+ captureGroup: 1
16
+ };
17
+ if (upstreamRule.prepend_scheme) base.prependScheme = upstreamRule.prepend_scheme;
18
+ if (upstreamRule.action === "redirect" || upstreamRule.action === "base64,redirect") rules.push({
19
+ ...base,
20
+ pattern: `[?&]${escapeRegExp(upstreamRule.param)}=([^&]+)`,
21
+ captureGroup: 1,
22
+ targetEncoding: upstreamRule.action === "base64,redirect" ? "base64" : "percent"
23
+ });
24
+ else if (upstreamRule.action === "regex-path") {
25
+ const pathRule = {
26
+ ...base,
27
+ pattern: upstreamRule.param,
28
+ captureGroup: 1,
29
+ matchPart: "pathname"
30
+ };
31
+ if (upstreamRule.redirect_url_template) pathRule.targetTemplate = upstreamRule.redirect_url_template;
32
+ else {
33
+ const captureTemplate = captureGroupsTemplate(upstreamRule.param);
34
+ if (captureTemplate) pathRule.targetTemplate = captureTemplate;
35
+ }
36
+ rules.push(pathRule);
37
+ } else if (upstreamRule.action === "regex-path-template") {
38
+ const templateRule = {
39
+ ...base,
40
+ pattern: upstreamRule.param,
41
+ captureGroup: 1,
42
+ matchPart: "pathname"
43
+ };
44
+ if (upstreamRule.redirect_url_template) templateRule.targetTemplate = upstreamRule.redirect_url_template;
45
+ rules.push(templateRule);
46
+ } else throw new Error(`Unsupported Brave debounce action: ${upstreamRule.action}`);
47
+ index++;
48
+ }
49
+ }
50
+ return {
51
+ version: meta.version,
52
+ generatedAt: meta.fetchedAt,
53
+ sources: [{
54
+ name: "brave",
55
+ version: meta.version,
56
+ hash: meta.hash,
57
+ license: meta.license,
58
+ upstream: meta.upstream
59
+ }],
60
+ rules
61
+ };
62
+ }
63
+ function matchPatternToRegex(pattern) {
64
+ pattern = normalizedIncludePattern(pattern);
65
+ if (pattern.startsWith("*://")) return `^https?:\\/\\/${escapeRegExp(pattern.slice(4)).replace(/\\\*/g, ".*")}$`;
66
+ return `^${escapeRegExp(pattern).replace(/\\\*/g, ".*")}$`;
67
+ }
68
+ function normalizedIncludePattern(pattern) {
69
+ if (pattern === "*://www.tkqlhce.com/click-") return `${pattern}*`;
70
+ if (pattern === "*://t.lever-analytics.com/email-link?") return `${pattern}*`;
71
+ return pattern;
72
+ }
73
+ function captureGroupsTemplate(pattern) {
74
+ let count = 0;
75
+ for (let i = 0; i < pattern.length; i++) {
76
+ if (pattern[i] !== "(") continue;
77
+ if (i > 0 && pattern[i - 1] === "\\") continue;
78
+ if (pattern[i + 1] === "?") continue;
79
+ count++;
80
+ }
81
+ if (count <= 1) return void 0;
82
+ return Array.from({ length: count }, (_, index) => `$${index + 1}`).join("");
83
+ }
84
+ function escapeRegExp(value) {
85
+ return value.replace(/[|\\{}()[\]^$+?.*]/g, "\\$&");
86
+ }
87
+ //#endregion
88
+ export { braveToCatalog };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { SanitizerCatalog, Sanitizer } from '@url-sanitize/core';
2
- export { braveToCatalog } from './adapter.js';
3
- export { braveMetadata, braveRawData } from './raw.js';
4
- export { BraveDebounceData, BraveDebounceRule, BraveMetadata } from './types.js';
5
-
6
- declare const braveCatalog: SanitizerCatalog;
7
- declare const sanitize: Sanitizer;
8
-
9
- export { braveCatalog, sanitize };
1
+ import { BraveDebounceData, BraveDebounceRule, BraveMetadata } from "./types.js";
2
+ import { braveToCatalog } from "./adapter.js";
3
+ import { braveMetadata, braveRawData } from "./raw.js";
4
+ import { Sanitizer, SanitizerCatalog } from "@url-sanitize/core";
5
+ //#region src/index.d.ts
6
+ export declare const braveCatalog: SanitizerCatalog;
7
+ export declare const sanitize: Sanitizer;
8
+ //#endregion
9
+ export { type BraveDebounceData, type BraveDebounceRule, type BraveMetadata, braveMetadata, braveRawData, braveToCatalog };
package/dist/index.js CHANGED
@@ -1,19 +1,8 @@
1
- import {
2
- braveToCatalog
3
- } from "./chunk-GEHCLNTD.js";
4
- import {
5
- braveMetadata,
6
- braveRawData
7
- } from "./chunk-WEZHVFAQ.js";
8
-
9
- // src/index.ts
1
+ import { braveToCatalog } from "./adapter.js";
2
+ import { n as braveRawData, t as braveMetadata } from "./raw-CRKHjTaF.js";
10
3
  import { compileSanitizer } from "@url-sanitize/core";
11
- var braveCatalog = braveToCatalog(braveRawData, braveMetadata);
12
- var sanitize = compileSanitizer(braveCatalog);
13
- export {
14
- braveCatalog,
15
- braveMetadata,
16
- braveRawData,
17
- braveToCatalog,
18
- sanitize
19
- };
4
+ //#region src/index.ts
5
+ const braveCatalog = braveToCatalog(braveRawData, braveMetadata);
6
+ const sanitize = compileSanitizer(braveCatalog);
7
+ //#endregion
8
+ export { braveCatalog, braveMetadata, braveRawData, braveToCatalog, sanitize };
@@ -0,0 +1,470 @@
1
+ //#region data/data.json
2
+ var data_default = [
3
+ {
4
+ "include": [
5
+ "*://*.prsm1.com/r?*",
6
+ "*://lcmspubcontact.lc.ca.gov/PublicLCMS/LinkTracking.php?*",
7
+ "*://cc.zdnet.com/v1/otc/*",
8
+ "*://cc.cnet.com/v1/otc/*",
9
+ "*://cc.mashable.com/v1/*",
10
+ "*://howl.me/link/?*",
11
+ "*://www.pntrac.com/t/*",
12
+ "*://track.flexlinks.com/a.ashx?*",
13
+ "*://www.wordseed.com/go/*",
14
+ "*://visit.ws/visit/*",
15
+ "*://laylo.co/e/*",
16
+ "*://llo.to/e/*",
17
+ "*://g-o-media.digidip.net/visit?*",
18
+ "*://www.dpbolvw.net/click-*",
19
+ "*://www.tkqlhce.com/click-*",
20
+ "*://backerkit.com/ahoy/messages/*/click?*",
21
+ "*://www.sopasti.com/anime.php?*",
22
+ "*://flake.creditcable.info/*",
23
+ "*://www.forocoches.com/link.php?*",
24
+ "*://mcpedl.com/leaving/?*",
25
+ "*://track.effiliation.com/servlet/effi.redir*",
26
+ "*://go.skimresources.com/*",
27
+ "*://shop-links.co/link*",
28
+ "*://www.jdoqocy.com/click-*",
29
+ "*://www.kqzyfj.com/click-*",
30
+ "*://www.pjtra.com/t/*",
31
+ "*://*.narrativ.com/api/v0/client_redirect/*",
32
+ "*://c.pepperjamnetwork.com/click*",
33
+ "*://*.avantlink.com/click.php?*",
34
+ "*://*.pjatr.com/t/*",
35
+ "*://www.pntrs.com/t/*",
36
+ "*://*.nordstrom.com/Linkshare?*",
37
+ "*://pj.nutribullet.com/t/*",
38
+ "*://www.gopjn.com/t/*",
39
+ "*://pvn.mediamarkt.de/trck/eclick/*",
40
+ "*://pvn.saturn.de/trck/eclick/*",
41
+ "*://api.bam-x.com/api/v1/clickmate/*",
42
+ "*://go.redirectingat.com/*",
43
+ "*://x.chip.de/linktrack/button/*",
44
+ "*://*.mailchimp.com/mctx/clicks?*",
45
+ "*://*.tradedoubler.com/click?*",
46
+ "*://cc.techbargains.com/v1/otc/*",
47
+ "*://www.anrdoezrs.net/click-*"
48
+ ],
49
+ "exclude": [],
50
+ "action": "redirect",
51
+ "param": "url"
52
+ },
53
+ {
54
+ "include": ["*://t.cfjump.com/*"],
55
+ "exclude": [],
56
+ "action": "redirect",
57
+ "param": "Url"
58
+ },
59
+ {
60
+ "include": ["*://r.bttn.io/*"],
61
+ "exclude": [],
62
+ "action": "redirect",
63
+ "param": "btn_url"
64
+ },
65
+ {
66
+ "include": ["*://trk.pmsrv.co/v2/trk?*", "*://trk.pm-srv.co/v2/trk?*"],
67
+ "exclude": [],
68
+ "action": "redirect",
69
+ "param": "rurl"
70
+ },
71
+ {
72
+ "include": ["*://app.hive.co/email/elt/*"],
73
+ "exclude": [],
74
+ "action": "redirect",
75
+ "param": "next"
76
+ },
77
+ {
78
+ "include": ["*://redir.tradedoubler.com/*"],
79
+ "exclude": [],
80
+ "action": "redirect",
81
+ "param": "_td_deeplink"
82
+ },
83
+ {
84
+ "include": ["*://clicks.trx-hub.com/xid/*"],
85
+ "exclude": [],
86
+ "action": "redirect",
87
+ "param": "q"
88
+ },
89
+ {
90
+ "include": ["*://www.zenaps.com/rclick.php*"],
91
+ "exclude": [],
92
+ "action": "redirect",
93
+ "param": "pr"
94
+ },
95
+ {
96
+ "include": ["*://www.clixgalore.com/Lead.aspx*"],
97
+ "exclude": [],
98
+ "prepend_scheme": "http",
99
+ "action": "redirect",
100
+ "param": "AffDirectURL"
101
+ },
102
+ {
103
+ "include": ["*://www.clixgalore.com/Lead.aspx*"],
104
+ "exclude": [],
105
+ "prepend_scheme": "http",
106
+ "action": "redirect",
107
+ "param": "LP"
108
+ },
109
+ {
110
+ "include": [
111
+ "*://rd.bizrate.com/rd2?*",
112
+ "*://rd.connexity.net/rd?*",
113
+ "*://rd.bizrate.com/rd?*"
114
+ ],
115
+ "exclude": [],
116
+ "action": "redirect",
117
+ "param": "t"
118
+ },
119
+ {
120
+ "include": ["*://ad.atdmt.com/s/go;*"],
121
+ "exclude": [],
122
+ "action": "redirect",
123
+ "param": "h"
124
+ },
125
+ {
126
+ "include": ["*://*.demdex.net/*"],
127
+ "exclude": [],
128
+ "action": "redirect",
129
+ "param": "d_rd"
130
+ },
131
+ {
132
+ "include": ["*://www.awin1.com/cread.php?*"],
133
+ "exclude": [],
134
+ "action": "redirect",
135
+ "param": "ued"
136
+ },
137
+ {
138
+ "include": ["*://www.awin1.com/cread.php?*", "*://www.awin1.com/awclick.php?*"],
139
+ "exclude": [],
140
+ "action": "redirect",
141
+ "param": "p"
142
+ },
143
+ {
144
+ "include": ["*://search.app/?*", "*://*.getprice.com.au/prodhits.aspx?*"],
145
+ "exclude": [],
146
+ "action": "redirect",
147
+ "param": "link"
148
+ },
149
+ {
150
+ "include": [
151
+ "*://www.shareasale.com/r.cfm?*",
152
+ "*://shareasale.com/r.cfm?*",
153
+ "*://www.shareasale-analytics.com/r.cfm?*",
154
+ "*://shareasale-analytics.com/r.cfm?*"
155
+ ],
156
+ "exclude": [],
157
+ "prepend_scheme": "https",
158
+ "action": "redirect",
159
+ "param": "urllink"
160
+ },
161
+ {
162
+ "include": ["*://click.icptrack.com/icp/relay.php*"],
163
+ "exclude": [],
164
+ "action": "redirect",
165
+ "param": "destination"
166
+ },
167
+ {
168
+ "include": ["*://t.lever-analytics.com/email-link?*", "*://cat.criteo.com/beacon?*"],
169
+ "exclude": [],
170
+ "action": "redirect",
171
+ "param": "dest"
172
+ },
173
+ {
174
+ "include": [
175
+ "*://*.dttq.net/c/*",
176
+ "*://c212.net/c/link/?*",
177
+ "*://*.c9ftyd.net/c/*",
178
+ "*://*.iyhh.net/c/*",
179
+ "*://*.glg9ob.net/c/*",
180
+ "*://*.evyy.net/c/*",
181
+ "*://*.uikc.net/c/*",
182
+ "*://*.ztk5.net/*",
183
+ "*://*.rg35.net/*",
184
+ "*://sherlock.scribblelive.com/r?*",
185
+ "*://*.engage.squarespace-mail.com/r?*",
186
+ "*://engage.squarespace-mail.com/r?*",
187
+ "*://goto.target.com/c/*",
188
+ "*://goto.walmart.com/c/*",
189
+ "*://*.sjv.io/c/*",
190
+ "*://*.8ocm68.net/c/*",
191
+ "*://*.xovt.net/c/*",
192
+ "*://*.i114863.net/c/*",
193
+ "*://*.58dp.net/c/*",
194
+ "*://*.pxf.io/c/*",
195
+ "*://*.7tiv.net/c/*",
196
+ "*://*.5ad6.net/c/*",
197
+ "*://*.q77h.net/c/*",
198
+ "*://*.3uu8.net/c/*",
199
+ "*://*.uxsi.net/c/*",
200
+ "*://*.njih.net/c/*",
201
+ "*://*.pdy5.net/c/*",
202
+ "*://*.igs4ds.net/c/*",
203
+ "*://*.mvvx.net/c/*",
204
+ "*://*.xwrk.net/c/*",
205
+ "*://*.fziv.net/c/*",
206
+ "*://*.lvuv.net/c/*",
207
+ "*://*.xibx.net/c/*",
208
+ "*://*.attfm2.net/c/*",
209
+ "*://*.tkjf.net/c/*",
210
+ "*://deeplink-bh.datafeedfile.com/sl/*",
211
+ "*://deeplink-bh.datafeedfile.com/sl?*",
212
+ "*://*.a9yw.net/c/*",
213
+ "*://*.pfm4.net/c/*",
214
+ "*://*.i254217.net/c/*",
215
+ "*://*.i182465.net/c/*",
216
+ "*://*.vthnbx.net/c/*",
217
+ "*://*.ryvx.net/c/*",
218
+ "*://*.7eer.net/c/*",
219
+ "*://microsoft.msafflnk.net/c/*",
220
+ "*://*.i312864.net/c/*",
221
+ "*://*.tmfhgn.net/c/*",
222
+ "*://*.obak77.net/c/*",
223
+ "*://*.yvzx.net/c/*",
224
+ "*://goto.carters.com/c/*",
225
+ "*://*.ioym.net/c/*",
226
+ "*://*.ntaf.net/c/*",
227
+ "*://*.zlwlj8.net/c/*",
228
+ "*://*.uvwgb9.net/c/*",
229
+ "*://*.3anx.net/c/*",
230
+ "*://*.rrmo.net/c/*",
231
+ "*://*.i308314.net/c/*",
232
+ "*://*.uqhv.net/c/*",
233
+ "*://*.vzew.net/c/*",
234
+ "*://*.qflm.net/c/*",
235
+ "*://*.rfvk.net/c/*",
236
+ "*://redirect.viglink.com/*",
237
+ "*://*.am3t9s.net/*"
238
+ ],
239
+ "exclude": [],
240
+ "action": "redirect",
241
+ "param": "u"
242
+ },
243
+ {
244
+ "include": [
245
+ "*://ck.jp.ap.valuecommerce.com/servlet/referral?*",
246
+ "*://atrrd.valuecommerce.com/resolve/*",
247
+ "*://*.valuecommerce.ne.jp/cgi-bin/*"
248
+ ],
249
+ "exclude": [],
250
+ "action": "redirect",
251
+ "param": "vc_url"
252
+ },
253
+ {
254
+ "include": ["*://target.georiot.com/*"],
255
+ "exclude": [],
256
+ "action": "redirect",
257
+ "param": "GR_URL"
258
+ },
259
+ {
260
+ "include": ["*://click.linksynergy.com/deeplink*"],
261
+ "exclude": [],
262
+ "action": "redirect",
263
+ "param": "murl"
264
+ },
265
+ {
266
+ "include": ["*://*.ouo.today/*"],
267
+ "exclude": [],
268
+ "action": "base64,redirect",
269
+ "param": "cr"
270
+ },
271
+ {
272
+ "include": ["*://www.ojrq.net/p/*"],
273
+ "exclude": [],
274
+ "action": "redirect",
275
+ "param": "return"
276
+ },
277
+ {
278
+ "include": ["*://d.agkn.com/pixel/*"],
279
+ "exclude": [],
280
+ "action": "redirect",
281
+ "param": "l1"
282
+ },
283
+ {
284
+ "include": ["*://t.mailpgn.com/l/*"],
285
+ "exclude": [],
286
+ "action": "redirect",
287
+ "param": "fl"
288
+ },
289
+ {
290
+ "include": ["*://jsv3.recruitics.com/redirect?*"],
291
+ "exclude": [],
292
+ "action": "redirect",
293
+ "param": "rx_url"
294
+ },
295
+ {
296
+ "include": ["*://app.adjust.com/*"],
297
+ "exclude": [],
298
+ "action": "redirect",
299
+ "param": "redirect"
300
+ },
301
+ {
302
+ "include": ["*://pvn.mediamarkt.de/trck/eclick/*"],
303
+ "exclude": [],
304
+ "action": "base64,redirect",
305
+ "param": "url64fb"
306
+ },
307
+ {
308
+ "include": ["*://www.googleadservices.com/pagead/aclk?*"],
309
+ "exclude": [],
310
+ "action": "redirect",
311
+ "param": "adurl"
312
+ },
313
+ {
314
+ "include": [
315
+ "*://*.lt.acemlna.com/Prod/link-tracker?*",
316
+ "*://*.lt.acemlnb.com/Prod/link-tracker?*",
317
+ "*://*.lt.acemlnc.com/Prod/link-tracker?*",
318
+ "*://*.lt.acemlnd.com/Prod/link-tracker?*",
319
+ "*://*.lt.emlnk.com/Prod/link-tracker?*",
320
+ "*://*.lt.emlnk1.com/Prod/link-tracker?*",
321
+ "*://*.lt.emlnk2.com/Prod/link-tracker?*",
322
+ "*://*.lt.emlnk3.com/Prod/link-tracker?*",
323
+ "*://*.lt.emlnk4.com/Prod/link-tracker?*",
324
+ "*://*.lt.emlnk5.com/Prod/link-tracker?*",
325
+ "*://*.lt.emlnk6.com/Prod/link-tracker?*",
326
+ "*://*.lt.emlnk7.com/Prod/link-tracker?*",
327
+ "*://*.lt.emlnk8.com/Prod/link-tracker?*",
328
+ "*://*.lt.emlnk9.com/Prod/link-tracker?*",
329
+ "*://*.bluelena.io/Prod/link-tracker?*",
330
+ "*://*.golfbacksolutions.com/Prod/link-tracker?*",
331
+ "*://*.prospect2.com/Prod/link-tracker?*"
332
+ ],
333
+ "exclude": [],
334
+ "action": "base64,redirect",
335
+ "param": "redirectUrl"
336
+ },
337
+ {
338
+ "include": ["*://*.page.link/?*"],
339
+ "exclude": [],
340
+ "action": "redirect",
341
+ "param": "ofl"
342
+ },
343
+ {
344
+ "include": ["*://*.cdn.ampproject.org/c/s/*"],
345
+ "pref": "brave.de_amp.enabled",
346
+ "exclude": [],
347
+ "prepend_scheme": "https",
348
+ "action": "regex-path",
349
+ "param": "^/c/s/(.*)$"
350
+ },
351
+ {
352
+ "include": ["*://click.redditmail.com/*"],
353
+ "exclude": [],
354
+ "action": "regex-path",
355
+ "param": "^/CL0/([^/]+)/.*$"
356
+ },
357
+ {
358
+ "include": ["*://*.streak-link.com/*", "*://streaklinks.com/*"],
359
+ "exclude": [],
360
+ "action": "regex-path",
361
+ "param": "^/[^/]+/(.*)$"
362
+ },
363
+ {
364
+ "include": ["*://*.turbopages.org/*/s/*"],
365
+ "pref": "brave.de_amp.enabled",
366
+ "exclude": [],
367
+ "prepend_scheme": "https",
368
+ "action": "regex-path",
369
+ "param": "^/([^/]+)/s(/.*)$",
370
+ "redirect_url_template": "$1$2"
371
+ },
372
+ {
373
+ "include": [
374
+ "*://click.pstmrk.it/2s/*",
375
+ "*://click.pstmrk.it/2sm/*",
376
+ "*://click.pstmrk.it/2ts/*",
377
+ "*://click.pstmrk.it/3s/*",
378
+ "*://click.pstmrk.it/3ts/*"
379
+ ],
380
+ "exclude": [],
381
+ "prepend_scheme": "https",
382
+ "action": "regex-path",
383
+ "param": "^/[23]t?sm?/([^/]+)/.*$"
384
+ },
385
+ {
386
+ "include": [
387
+ "*://click.pstmrk.it/2/*",
388
+ "*://click.pstmrk.it/2m/*",
389
+ "*://click.pstmrk.it/3/*"
390
+ ],
391
+ "exclude": [],
392
+ "prepend_scheme": "http",
393
+ "action": "regex-path",
394
+ "param": "^/[23]m?/([^/]+)/.*$"
395
+ },
396
+ {
397
+ "include": ["*://*.awstrack.me/L0/*"],
398
+ "exclude": [],
399
+ "action": "regex-path",
400
+ "param": "^/L0/([^/]+)/.*$"
401
+ },
402
+ {
403
+ "include": ["*://shopping.yahoo.com/rdlw?*"],
404
+ "exclude": [],
405
+ "action": "redirect",
406
+ "param": "gcReferrer"
407
+ },
408
+ {
409
+ "include": ["*://www.google.com/amp/s/*"],
410
+ "pref": "brave.de_amp.enabled",
411
+ "exclude": [],
412
+ "prepend_scheme": "https",
413
+ "action": "regex-path",
414
+ "param": "^/amp/s/(.*)$"
415
+ },
416
+ {
417
+ "include": ["https://buy.geni.us/Proxy.ashx?*"],
418
+ "exclude": [],
419
+ "action": "redirect",
420
+ "param": "GR_URL"
421
+ },
422
+ {
423
+ "include": ["https://dev-pages.brave.software/navigation-tracking/error.html?*", "https://dev-pages.bravesoftware.com/navigation-tracking/error.html?*"],
424
+ "exclude": [],
425
+ "action": "redirect",
426
+ "param": "brave_testing"
427
+ },
428
+ {
429
+ "include": ["https://dev-pages.brave.software/navigation-tracking/error.html?*", "https://dev-pages.bravesoftware.com/navigation-tracking/error.html?*"],
430
+ "exclude": [],
431
+ "action": "base64,redirect",
432
+ "param": "brave_testing_base64"
433
+ },
434
+ {
435
+ "include": ["https://dev-pages.brave.software/navigation-tracking/regex-multiple-capture-groups/*", "https://dev-pages.bravesoftware.com/navigation-tracking/regex-multiple-capture-groups/*"],
436
+ "exclude": [],
437
+ "prepend_scheme": "https",
438
+ "action": "regex-path",
439
+ "param": "^/navigation-tracking/regex-multiple-capture-groups/(.*)/test/(.*);.html$"
440
+ },
441
+ {
442
+ "include": ["https://dev-pages.brave.software/navigation-tracking/*", "https://dev-pages.bravesoftware.com/navigation-tracking/*"],
443
+ "exclude": [],
444
+ "prepend_scheme": "https",
445
+ "action": "regex-path",
446
+ "param": "^/navigation-tracking/(.*);.html$"
447
+ },
448
+ {
449
+ "include": ["*://y2u.be/*"],
450
+ "exclude": [],
451
+ "action": "regex-path-template",
452
+ "param": "^/([^/]+)$",
453
+ "redirect_url_template": "https://www.youtube.com/watch?v=$1"
454
+ }
455
+ ];
456
+ //#endregion
457
+ //#region data/metadata.json
458
+ var metadata_default = {
459
+ version: "83f004bb4573",
460
+ hash: "83f004bb4573a5656465ed17d0e27bdfd983e44459725a5c956ac1710518a891",
461
+ fetchedAt: "2026-10-20T08:08:43.844Z",
462
+ upstream: "https://raw.githubusercontent.com/brave/adblock-lists/master/brave-lists/debounce.json",
463
+ license: "MPL-2.0"
464
+ };
465
+ //#endregion
466
+ //#region src/raw.ts
467
+ const braveRawData = data_default;
468
+ const braveMetadata = metadata_default;
469
+ //#endregion
470
+ export { braveRawData as n, braveMetadata as t };
package/dist/raw.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { BraveMetadata, BraveDebounceData } from './types.js';
2
-
3
- declare const braveRawData: BraveDebounceData;
4
- declare const braveMetadata: BraveMetadata;
5
-
6
- export { braveMetadata, braveRawData };
1
+ import { BraveDebounceData, BraveMetadata } from "./types.js";
2
+ //#region src/raw.d.ts
3
+ export declare const braveRawData: BraveDebounceData;
4
+ export declare const braveMetadata: BraveMetadata;
5
+ //#endregion
package/dist/raw.js CHANGED
@@ -1,8 +1 @@
1
- import {
2
- braveMetadata,
3
- braveRawData
4
- } from "./chunk-WEZHVFAQ.js";
5
- export {
6
- braveMetadata,
7
- braveRawData
8
- };
1
+ export { t as braveMetadata, n as braveRawData } from "./raw-CRKHjTaF.js";