artillery-plugin-slack 1.18.0 → 1.19.0-5ccaa8b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  const debug = require('debug')('plugin:slack');
2
- const got = require('got');
3
2
  const moment = require('moment');
4
3
 
5
4
  class SlackPlugin {
@@ -244,6 +243,7 @@ class SlackPlugin {
244
243
  }
245
244
 
246
245
  async sendReport(report, ensureChecks) {
246
+ const got = (await import('got')).default;
247
247
  const payload = this.assembleSlackPayload(report, ensureChecks);
248
248
  try {
249
249
  const res = await got.post(this.config.webhookUrl, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artillery-plugin-slack",
3
- "version": "1.18.0",
3
+ "version": "1.19.0-5ccaa8b",
4
4
  "description": "Send Artillery.io test notifications to Slack",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -13,6 +13,6 @@
13
13
  "license": "MPL-2.0",
14
14
  "dependencies": {
15
15
  "debug": "^4.4.3",
16
- "got": "^11.8.5"
16
+ "got": "^14.6.6"
17
17
  }
18
18
  }