File tree Expand file tree Collapse file tree 7 files changed +15
-15
lines changed
Expand file tree Collapse file tree 7 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 99 "clean" : " rm -rf dist && rm -rf .buildcache"
1010 },
1111 "dependencies" : {
12- "@types/node" : " ^24.12.0 "
12+ "@types/node" : " ^24.12.2 "
1313 },
1414 "devDependencies" : {
1515 "@adguard/agtree" : " ^4.0.4" ,
1919 "@typescript-eslint/eslint-plugin" : " ^8.58.0" ,
2020 "@typescript-eslint/parser" : " ^8.58.0" ,
2121 "@typescriptprime/parsing" : " ^2.0.1" ,
22- "@typescriptprime/securereq" : " ^1.2.1 " ,
22+ "@typescriptprime/securereq" : " ^2.0.0 " ,
2323 "chokidar" : " ^5.0.0" ,
24- "esbuild" : " ^0.27.4 " ,
25- "eslint" : " ^10.1 .0" ,
24+ "esbuild" : " ^0.28.0 " ,
25+ "eslint" : " ^10.2 .0" ,
2626 "semver" : " ^7.7.4" ,
2727 "tldts" : " ^7.0.27" ,
2828 "tsx" : " ^4.21.0" ,
Original file line number Diff line number Diff line change 1- import { HTTPS2Request } from '@typescriptprime/securereq'
1+ import { SimpleSecureReq } from '@typescriptprime/securereq'
22import * as AGTree from '@adguard/agtree'
33import { AdShieldCDNDomains } from './keywords.js'
44
@@ -9,7 +9,7 @@ const AGBaseFilterListAdShieldKeys = {
99}
1010
1111export async function IndexAdShieldDomainsFromAG ( ) : Promise < Set < string > > {
12- const FiltersListContent = await HTTPS2Request ( new URL ( AGBaseFilterListSpecificURL ) , { ExpectedAs : 'String' } )
12+ const FiltersListContent = await SimpleSecureReq . Request ( new URL ( AGBaseFilterListSpecificURL ) , { ExpectedAs : 'String' } )
1313 const AGTreeFiltersList = AGTree . FilterListParser . parse ( FiltersListContent . Body )
1414 let StartingLine = - 1
1515 let EndingLine = - 1
Original file line number Diff line number Diff line change 1- import { HTTPS2Request } from '@typescriptprime/securereq'
1+ import { SimpleSecureReq } from '@typescriptprime/securereq'
22
33export const AdShieldCDNDomains : Set < string > = new Set ( [
44 'html-load.com' ,
@@ -7,7 +7,7 @@ export const AdShieldCDNDomains: Set<string> = new Set([
77] )
88
99export async function IsAdShieldCDNDomain ( Domain : string ) : Promise < boolean > {
10- const AdShieldCDNCheckResponse = await HTTPS2Request ( new URL ( `https://${ Domain } /` ) , { ExpectedAs : 'String' } ) . catch ( ( ) => false )
10+ const AdShieldCDNCheckResponse = await SimpleSecureReq . Request ( new URL ( `https://${ Domain } /` ) , { ExpectedAs : 'String' } ) . catch ( ( ) => false )
1111 return typeof AdShieldCDNCheckResponse !== 'boolean' && AdShieldCDNCheckResponse . StatusCode === 200 &&
1212 AdShieldCDNCheckResponse . Body . includes ( 'This domain is a part of the <a href="https://www.ad-shield.io/">Ad-Shield</a> (ad-shield.io) platform,' )
1313}
Original file line number Diff line number Diff line change 1- import { HTTPS2Request } from '@typescriptprime/securereq'
1+ import { SimpleSecureReq } from '@typescriptprime/securereq'
22import * as AGTree from '@adguard/agtree'
33import { AdShieldCDNDomains } from './keywords.js'
44
@@ -9,7 +9,7 @@ const UBOFilterListAdShieldKeys = {
99}
1010
1111export async function IndexAdShieldDomainsFromUBO ( ) : Promise < Set < string > > {
12- const FiltersListContent = await HTTPS2Request ( new URL ( UBOFilterListSpecificURL ) , { ExpectedAs : 'String' } )
12+ const FiltersListContent = await SimpleSecureReq . Request ( new URL ( UBOFilterListSpecificURL ) , { ExpectedAs : 'String' } )
1313 const AGTreeFiltersList = AGTree . FilterListParser . parse ( FiltersListContent . Body )
1414 let StartingLine = - 1
1515 let EndingLine = - 1
Original file line number Diff line number Diff line change 11import * as Zod from 'zod'
2- import { HTTPSRequest } from '@typescriptprime/securereq'
2+ import { SimpleSecureReq } from '@typescriptprime/securereq'
33
44
55const IABSellersJsonURL = 'https://info.ad-shield.io/sellers.json'
66
77export async function FetchIABSellersJsonData ( ) : Promise < string [ ] > {
8- const IABSellersJsonResponse = await HTTPSRequest ( new URL ( IABSellersJsonURL ) , { ExpectedAs : 'JSON' } )
8+ const IABSellersJsonResponse = await SimpleSecureReq . Request ( new URL ( IABSellersJsonURL ) , { ExpectedAs : 'JSON' } )
99 let IABSellersJsonData = IABSellersJsonResponse . Body as {
1010 // eslint-disable-next-line @typescript-eslint/naming-convention
1111 sellers : Array < {
Original file line number Diff line number Diff line change 3434 "devDependencies" : {
3535 "@typescript-eslint/eslint-plugin" : " ^8.58.0" ,
3636 "@typescript-eslint/parser" : " ^8.58.0" ,
37- "eslint" : " ^10.1 .0" ,
37+ "eslint" : " ^10.2 .0" ,
3838 "typescript-eslint" : " ^8.58.0"
3939 }
4040}
Original file line number Diff line number Diff line change 66 "lint" : " tsc --noEmit && eslint **/*.ts"
77 },
88 "devDependencies" : {
9- "@types/web" : " ^0.0.342 " ,
9+ "@types/web" : " ^0.0.345 " ,
1010 "@typescript-eslint/eslint-plugin" : " ^8.58.0" ,
1111 "@typescript-eslint/parser" : " ^8.58.0" ,
12- "eslint" : " ^10.1 .0" ,
12+ "eslint" : " ^10.2 .0" ,
1313 "typescript-eslint" : " ^8.58.0"
1414 },
1515 "dependencies" : {
You can’t perform that action at this time.
0 commit comments