npm-groovy-lint
Advanced tools
Comparing version 14.2.3 to 14.2.4
@@ -32,13 +32,18 @@ const Amplitude = require("amplitude"); | ||
events.push(...(await buildFileStatsEvents(linterEvent, data))); | ||
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(); | ||
} | ||
})(); | ||
try { | ||
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(); | ||
} | ||
})(); | ||
} catch (e) { | ||
debug(`Analytics send failed type: ${eventType} ${JSON.stringify(events)} ${e}`); | ||
return Promise.resolve(); | ||
} | ||
} | ||
@@ -45,0 +50,0 @@ |
{ | ||
"name": "npm-groovy-lint", | ||
"version": "14.2.3", | ||
"version": "14.2.4", | ||
"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
19334091
7519