snyk 1.755.0 → 1.756.0

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.
package/dist/cli/index.js CHANGED
@@ -27810,7 +27810,7 @@ exports.getStandardData = getStandardData;
27810
27810
  "use strict";
27811
27811
 
27812
27812
  Object.defineProperty(exports, "__esModule", ({ value: true }));
27813
- exports.add = exports.postAnalytics = exports.allowAnalytics = exports.addDataAndSend = void 0;
27813
+ exports.add = exports.allowAnalytics = exports.addDataAndSend = void 0;
27814
27814
  const createDebug = __webpack_require__(15158);
27815
27815
  const strip_ansi_1 = __webpack_require__(76003);
27816
27816
  const api_token_1 = __webpack_require__(95181);
@@ -27878,7 +27878,7 @@ async function postAnalytics(customData) {
27878
27878
  queryStringParams['org'] = analyticsData.org;
27879
27879
  }
27880
27880
  const queryString = Object.keys(queryStringParams).length > 0 ? queryStringParams : undefined;
27881
- return request_1.makeRequest({
27881
+ const res = await request_1.makeRequest({
27882
27882
  body: {
27883
27883
  data: analyticsData,
27884
27884
  },
@@ -27888,12 +27888,12 @@ async function postAnalytics(customData) {
27888
27888
  method: 'post',
27889
27889
  headers: headers,
27890
27890
  });
27891
+ return res;
27891
27892
  }
27892
27893
  catch (err) {
27893
27894
  debug('analytics', err); // this swallows the analytics error
27894
27895
  }
27895
27896
  }
27896
- exports.postAnalytics = postAnalytics;
27897
27897
  /**
27898
27898
  * Adds a key-value pair to the analytics data `metadata` field. This doesn't send the analytis, just stages it for
27899
27899
  * sending later (via the {@link addDataAndSend} function).