@vaadin/vaadin-usage-statistics
Advanced tools
Comparing version 2.0.10 to 2.0.11
14
check.js
@@ -37,9 +37,11 @@ var fs = require('fs'); | ||
`); | ||
try { | ||
fs.copyFileSync('vaadin-usage-statistics-collect.js', 'vaadin-usage-statistics.js'); | ||
} catch (err) { | ||
console.log('Error while copying file!'); | ||
throw err; | ||
const stats = fs.readFileSync('vaadin-usage-statistics.js').toString(); | ||
if (stats.startsWith(`export * from './vaadin-usage-statistics-collect.js';`) === false) { | ||
try { | ||
fs.copyFileSync('vaadin-usage-statistics-collect.js', 'vaadin-usage-statistics.js'); | ||
} catch (err) { | ||
console.log('Error while copying file!'); | ||
throw err; | ||
} | ||
} | ||
} | ||
@@ -6,3 +6,3 @@ { | ||
"name": "@vaadin/vaadin-usage-statistics", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"directories": { | ||
@@ -9,0 +9,0 @@ "test": "test" |
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
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
32109
502