@coorpacademy/player-services
Advanced tools
Comparing version 1.2.0 to 1.2.2
@@ -0,1 +1,3 @@ | ||
// eslint-disable-next-line import/prefer-default-export | ||
@@ -9,8 +11,13 @@ export const sendViewedMediaAnalytics = (resource, location) => { | ||
}); | ||
return window.dataLayer; | ||
}; | ||
// eslint-disable-next-line no-shadow | ||
// strict | ||
export const sendProgressionAnalytics = (currentProgression, engineConfig) => { | ||
if (!currentProgression.state) { | ||
return; | ||
} | ||
const state = currentProgression.state; | ||
/* istanbul ignore next */ | ||
window.dataLayer = window.dataLayer || []; | ||
@@ -28,4 +35,3 @@ | ||
} | ||
return window.dataLayer; | ||
}; | ||
//# sourceMappingURL=analytics.js.map |
'use strict'; | ||
exports.__esModule = true; | ||
// eslint-disable-next-line import/prefer-default-export | ||
@@ -12,8 +14,13 @@ const sendViewedMediaAnalytics = exports.sendViewedMediaAnalytics = (resource, location) => { | ||
}); | ||
return window.dataLayer; | ||
}; | ||
// eslint-disable-next-line no-shadow | ||
// strict | ||
const sendProgressionAnalytics = exports.sendProgressionAnalytics = (currentProgression, engineConfig) => { | ||
if (!currentProgression.state) { | ||
return; | ||
} | ||
const state = currentProgression.state; | ||
/* istanbul ignore next */ | ||
window.dataLayer = window.dataLayer || []; | ||
@@ -31,4 +38,3 @@ | ||
} | ||
return window.dataLayer; | ||
}; | ||
//# sourceMappingURL=analytics.js.map |
{ | ||
"name": "@coorpacademy/player-services", | ||
"version": "1.2.0", | ||
"version": "1.2.2", | ||
"description": "Implements reactions to redux actions from player-store", | ||
@@ -15,3 +15,3 @@ "main": "lib/index.js", | ||
"nyc": "cross-env NODE_ENV=test nyc npm run ava", | ||
"test": "npm run lint && npm run flow && npm run nyc", | ||
"test": "npm run lint && npm run flow && npm run flow -- stop && npm run nyc", | ||
"flow": "flow", | ||
@@ -47,7 +47,7 @@ "lint": "npm run eslint", | ||
"flow-bin": "^0.72.0", | ||
"nyc": "^11.1.0", | ||
"nyc": "^13.1.0", | ||
"rimraf": "^2.6.1" | ||
}, | ||
"dependencies": { | ||
"@coorpacademy/progression-engine": "9.2.2", | ||
"@coorpacademy/progression-engine": "9.2.5", | ||
"lodash": "^4.17.4" | ||
@@ -74,3 +74,3 @@ }, | ||
}, | ||
"gitHead": "834a77c1542f041d1121deaeab4739f09ba489f0" | ||
"gitHead": "4ec5dc2d397329114b1fdadf0166982ef7e5e987" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
99872
68
701
1
+ Added@coorpacademy/progression-engine@9.2.5(transitive)
- Removed@coorpacademy/progression-engine@9.2.2(transitive)