@cliqz/autoconsent
Advanced tools
Comparing version 0.6.0 to 0.6.1
{ | ||
"name": "@cliqz/autoconsent", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/autoconsent.cjs.js", |
@@ -38,10 +38,13 @@ #!/usr/bin/env node | ||
consentOMaticSkip.forEach(name => delete comRules[name]); | ||
const extraRules = fs.readdirSync(consentOMaticDir); | ||
await Promise.all( | ||
extraRules.map(async file => { | ||
const rule = await readFileJSON(path.join(consentOMaticDir, file)); | ||
// rule name is file name with JSON extension removed | ||
comRules[file.substring(0, file.length - 5)] = rule; | ||
}) | ||
); | ||
try { | ||
const extraRules = fs.readdirSync(consentOMaticDir); | ||
await Promise.all( | ||
extraRules.map(async file => { | ||
const rule = await readFileJSON(path.join(consentOMaticDir, file)); | ||
// rule name is file name with JSON extension removed | ||
comRules[file.substring(0, file.length - 5)] = rule; | ||
}) | ||
); | ||
} catch(e) { | ||
} | ||
rules.consentomatic = comRules; | ||
@@ -48,0 +51,0 @@ })(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
566655
62
16122
2