@balena/event-log
Advanced tools
Comparing version 5.1.0 to 5.1.1-alias-members-events-2bb1e9b80a15ddad3f082d8a9a529889bd2d4fd6
@@ -111,2 +111,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
var ALIASSED_EVENT_NAMESPACES = { | ||
invite: 'applicationInvite', | ||
members: 'applicationMember', | ||
}; | ||
var DEFAULT_HOOKS = { | ||
@@ -238,2 +242,6 @@ beforeCreate: function (_type, _jsonData, _applicationId, _deviceId, callback) { | ||
}); | ||
var aliasedNamespace = ALIASSED_EVENT_NAMESPACES[base]; | ||
if (aliasedNamespace) { | ||
eventLog[aliasedNamespace] = eventLog[base]; | ||
} | ||
}); | ||
@@ -240,0 +248,0 @@ return eventLog; |
@@ -7,2 +7,7 @@ # Change Log | ||
## 5.1.1 - 2020-12-29 | ||
* Deprecate invite events in favor of applicationInvite alias [Thodoris Greasidis] | ||
* Deprecate members events in favor of applicationMember alias [Thodoris Greasidis] | ||
## 5.1.0 - 2020-12-09 | ||
@@ -9,0 +14,0 @@ |
{ | ||
"name": "@balena/event-log", | ||
"version": "5.1.0", | ||
"version": "5.1.1-alias-members-events-2bb1e9b80a15ddad3f082d8a9a529889bd2d4fd6", | ||
"description": "Balena events logging util", | ||
@@ -5,0 +5,0 @@ "main": "build/balena-event-log.js", |
@@ -111,2 +111,4 @@ // tslint:disable-next-line:no-namespace | ||
}; | ||
applicationMember: IHaveCreateEditDelete; | ||
applicationInvite: Invite; | ||
applicationTag: IHaveCreateEditDelete & { | ||
@@ -176,2 +178,3 @@ set: TrackFunction; | ||
}; | ||
/** @deprecated Use applicationMember */ | ||
members: IHaveCreateEditDelete; | ||
@@ -193,2 +196,3 @@ billing: { | ||
}; | ||
/** @deprecated Use applicationInvite */ | ||
invite: Invite; | ||
@@ -195,0 +199,0 @@ } |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
38176
584
1