Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@balena/event-log

Package Overview
Dependencies
Maintainers
4
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@balena/event-log - npm Package Compare versions

Comparing version 4.1.0 to 5.0.0-object-context-arg-d52b7f6f2ef762356e90f4560a551b6c15d08bef

typings/balena-event-log.d.ts

19

build/balena-event-log.js

@@ -166,7 +166,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

},
create: function (type, jsonData, applicationId, deviceId, callback) {
create: function (type, jsonData, context, callback) {
var _this = this;
if (!context) {
context = {};
}
function runBeforeHook() {
return new Promise(function (resolve, reject) {
hooks.beforeCreate.call(_this, type, jsonData, applicationId, deviceId, (err, result) => {
hooks.beforeCreate.call(_this, type, jsonData, context, (err, result) => {
if (err) {

@@ -185,3 +188,3 @@ return reject(err);

return new Promise(function (resolve) {
resolve(hooks.afterCreate.call(_this, err, type, jsonData, applicationId, deviceId));
resolve(hooks.afterCreate.call(_this, err, type, jsonData, context));
}).catch(function (err2) {

@@ -198,7 +201,3 @@ if (debug) {

type,
{
applicationId: applicationId,
deviceId: deviceId,
jsonData: jsonData,
},
Object.assign(Object.assign({}, context), { jsonData: jsonData }),
]);

@@ -231,4 +230,4 @@ })

events.forEach(function (event) {
obj[event] = function (jsonData, applicationId, deviceId) {
return eventLog.create(startCase(base + ' ' + event), jsonData, applicationId, deviceId);
obj[event] = function (jsonData, context) {
return eventLog.create(startCase(base + ' ' + event), jsonData, context);
};

@@ -235,0 +234,0 @@ });

@@ -7,2 +7,8 @@ # Change Log

## 5.0.0 - 2020-12-04
* Limit the published files [Thodoris Greasidis]
* Include typings [Thodoris Greasidis]
* Use a context object instead of tail id arguments [Thodoris Greasidis]
## 4.1.0 - 2020-07-15

@@ -9,0 +15,0 @@

{
"name": "@balena/event-log",
"version": "4.1.0",
"version": "5.0.0-object-context-arg-d52b7f6f2ef762356e90f4560a551b6c15d08bef",
"description": "Balena events logging util",
"main": "build/balena-event-log.js",
"files": [
"build/",
"typings/"
],
"dependencies": {

@@ -7,0 +11,0 @@ "analytics-client": "^0.8.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc