@adobe/alloy 2.19.0-beta.14 → 2.19.0-beta.16
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/libEs5/components/DecisioningEngine/createEvaluableRulesetPayload.js +2 -2
- package/libEs5/components/DecisioningEngine/createEventRegistry.js +3 -0
- package/libEs5/constants/libraryVersion.js +1 -1
- package/libEs6/components/DecisioningEngine/createEvaluableRulesetPayload.js +1 -1
- package/libEs6/components/DecisioningEngine/createEventRegistry.js +3 -0
- package/libEs6/constants/libraryVersion.js +1 -1
- package/package.json +2 -2
|
@@ -56,8 +56,8 @@ var _default = function _default(payload, eventRegistry, decisionHistory) {
|
|
|
56
56
|
var qualifyingItems = (0, _flattenArray.default)(items.map(function (item) {
|
|
57
57
|
return item.execute(context);
|
|
58
58
|
})).map(consequenceAdapter).map(function (item) {
|
|
59
|
-
var
|
|
60
|
-
qualifiedDate =
|
|
59
|
+
var _ref = decisionHistory.recordQualified(activityId) || {},
|
|
60
|
+
qualifiedDate = _ref.firstTimestamp;
|
|
61
61
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
62
62
|
data: _objectSpread(_objectSpread({}, item.data), {}, {
|
|
63
63
|
qualifiedDate: qualifiedDate,
|
|
@@ -56,6 +56,9 @@ var _default = function _default(_ref) {
|
|
|
56
56
|
setStorage(storage);
|
|
57
57
|
var addEvent = function addEvent(event, eventType, eventId, action) {
|
|
58
58
|
var _objectSpread2;
|
|
59
|
+
if (!eventType || !eventId) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
59
62
|
if (!events[eventType]) {
|
|
60
63
|
events[eventType] = {};
|
|
61
64
|
}
|
|
@@ -14,5 +14,5 @@ governing permissions and limitations under the License.
|
|
|
14
14
|
*/
|
|
15
15
|
// The __VERSION__ keyword will be replace at alloy build time with the package.json version.
|
|
16
16
|
// see babel-plugin-version
|
|
17
|
-
var _default = "2.19.0-beta.
|
|
17
|
+
var _default = "2.19.0-beta.16";
|
|
18
18
|
exports.default = _default;
|
|
@@ -54,7 +54,7 @@ export default ((payload, eventRegistry, decisionHistory) => {
|
|
|
54
54
|
const qualifyingItems = flattenArray(items.map(item => item.execute(context))).map(consequenceAdapter).map(item => {
|
|
55
55
|
const {
|
|
56
56
|
firstTimestamp: qualifiedDate
|
|
57
|
-
} = decisionHistory.recordQualified(activityId);
|
|
57
|
+
} = decisionHistory.recordQualified(activityId) || {};
|
|
58
58
|
return {
|
|
59
59
|
...item,
|
|
60
60
|
data: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/alloy",
|
|
3
|
-
"version": "2.19.0-beta.
|
|
3
|
+
"version": "2.19.0-beta.16",
|
|
4
4
|
"description": "Adobe Experience Platform Web SDK",
|
|
5
5
|
"main": "libEs5/index.js",
|
|
6
6
|
"module": "libEs6/index.js",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"uuid": "^3.3.2"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@adobe/alloy": "^2.19.0-beta.
|
|
73
|
+
"@adobe/alloy": "^2.19.0-beta.15",
|
|
74
74
|
"@babel/cli": "^7.12.8",
|
|
75
75
|
"@babel/core": "^7.2.2",
|
|
76
76
|
"@babel/plugin-proposal-object-rest-spread": "^7.3.2",
|