npm-groovy-lint
Advanced tools
Comparing version 14.0.1-beta202312161504.0 to 14.0.1
@@ -32,5 +32,13 @@ const Amplitude = require("amplitude"); | ||
events.push(...(await buildFileStatsEvents(linterEvent, data))); | ||
const amplitudeProm = amplitudeClient.track(events); | ||
debug("Analytics sent: " + eventType + " " + JSON.stringify(events)); | ||
return amplitudeProm; | ||
return (async resolve => { | ||
// Failing to send analytics isn't fatal. | ||
try { | ||
await amplitudeClient.track(events); | ||
debug(`Analytics sent type: ${eventType} ${JSON.stringify(events)}`); | ||
} catch (err) { | ||
debug(`Analytics send failed type: ${eventType} ${JSON.stringify(events)} ${err}`); | ||
} finally { | ||
resolve(); | ||
} | ||
})(); | ||
} | ||
@@ -37,0 +45,0 @@ |
{ | ||
"name": "npm-groovy-lint", | ||
"version": "14.0.1-beta202312161504.0", | ||
"version": "14.0.1", | ||
"description": "Lint, format and auto-fix your Groovy / Jenkinsfile / Gradle files", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
18198174
7494
0