@aller/blink
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -43,4 +43,11 @@ 'use strict'; | ||
return Object.keys(state.articlePreview).map(function (articleId) { | ||
return prepareArticleImpressionEvent(state, articleId, time); | ||
try { | ||
return prepareArticleImpressionEvent(state, articleId, time); | ||
} catch (err) { | ||
console.warn('prepareArticleImpressionEvent failed, ', state, articleId, time); | ||
return { error: true }; | ||
} | ||
}).filter(function (event) { | ||
return !event.error; | ||
}); | ||
} |
{ | ||
"name": "@aller/blink", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A library for tracking user behaviour.", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
Sorry, the diff of this file is too big to display
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
464837
24
12595
1