Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@duckduckgo/privacy-grade

Package Overview
Dependencies
Maintainers
5
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@duckduckgo/privacy-grade - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

2

package.json
{
"name": "@duckduckgo/privacy-grade",
"version": "1.0.3",
"version": "1.1.0",
"description": "DuckDuckGo's privacy grade algorithm",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -91,6 +91,5 @@ (function () {

}
const cnameResolution = this.resolveCname(urlToCheck)
const fromCname = cnameResolution.fromCname
urlToCheck = cnameResolution.finalURL
let fromCname
// single object with all of our requeest and site data split and

@@ -111,6 +110,18 @@ // processed into the correct format for the tracker set/get functions.

// finds a tracker definition by iterating over the whole trackerList and finding the matching tracker.
const tracker = this.findTracker(requestData)
let tracker = this.findTracker(requestData)
if (!tracker) {
return null
// if request doesn't have any rules associated with it, we should check if it's a CNAMEed tracker
const cnameResolution = this.resolveCname(urlToCheck)
fromCname = cnameResolution.fromCname
urlToCheck = cnameResolution.finalURL
requestData.urlToCheck = urlToCheck
requestData.urlToCheckDomain = this.tldjs.parse(urlToCheck).domain
requestData.urlToCheckSplit = this.utils.extractHostFromURL(urlToCheck).split('.')
tracker = this.findTracker(requestData)
if (!tracker) {
return null
}
}

@@ -117,0 +128,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc