diff --git a/package-lock.json b/package-lock.json index 9259240c0..2e16e0cb9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -486,9 +486,9 @@ "dev": true }, "@splitsoftware/splitio-commons": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@splitsoftware/splitio-commons/-/splitio-commons-1.6.0.tgz", - "integrity": "sha512-Y6BIOsk9mLnZC1EMweWaikLRtjoAnwnmuW89vfBO3P5wpe2AkC0CCR+Sk6mf67Fa60+vclCrF7o8XpePIbltsw==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@splitsoftware/splitio-commons/-/splitio-commons-1.6.1.tgz", + "integrity": "sha512-lijSMpX5a7HiphPnzr7fKlicGSd5TeBWX5URLPWfL87SPlO+8iF7S7PNFPg8GMu+44CdRrp4REHPJo97ht6ePQ==", "requires": { "tslib": "^2.3.1" } diff --git a/package.json b/package.json index 600a54167..fbe315e14 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "node": ">=6" }, "dependencies": { - "@splitsoftware/splitio-commons": "1.6.0", + "@splitsoftware/splitio-commons": "1.6.1", "@types/google.analytics": "0.0.40", "@types/ioredis": "^4.28.0", "ioredis": "^4.28.0", diff --git a/src/__tests__/gaIntegration/gaTestUtils.js b/src/__tests__/gaIntegration/gaTestUtils.js index 90b0a9aed..dd8ba5ac0 100644 --- a/src/__tests__/gaIntegration/gaTestUtils.js +++ b/src/__tests__/gaIntegration/gaTestUtils.js @@ -2,7 +2,7 @@ export const DEFAULT_TRACKER = 't0'; const HIT_FIELDS = ['hitType', 'nonInteraction']; const EVENT_FIELDS = ['eventCategory', 'eventAction', 'eventLabel', 'eventValue']; -const FIELDS = [...HIT_FIELDS, ...EVENT_FIELDS]; +const FIELDS = [...HIT_FIELDS, ...EVENT_FIELDS]; // List of hit fields to spy, which are the ones set by the default SplitToGa mapper. let hits = {}; @@ -10,8 +10,7 @@ let hits = {}; * Spy ga hits per tracker. * * @param {string[]} trackerNames names of the trackers to spy. If not provided, it spies the default tracker. i.e., `gaSpy()` is equivalent to `gaSpy(['t0'])`. - * @param {string[]} fieldNames names of the hit fields to spy. If not provided, it spies hit and event related fields. i.e., 'hitType', 'nonInteraction', - * 'eventCategory', 'eventAction', 'eventLabel', and 'eventValue', which are the ones set by default SplitToGa mapper. + * @param {boolean} resetSpy true to reset the list of captured hits. * * @see {@link https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference} */