Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 732 Bytes

process-backend-notification-request.md

File metadata and controls

19 lines (11 loc) · 732 Bytes

processBackendNotificationRequest

Out of all applicable notifications as returned by backend. Resolves one that applies mostly to user at given moment.

Logic depends purely on history of previously shown notifications.

const processBackendNotificationRequest = require('@serverless/utils/process-backend-notification-request');

const notification = processBackendNotificationRequest(notifiations);

if (notification) printNotifiation(notifications);

Notifications mode

Notifications presentation mode can be tweaked depending on given environment needs.

Check Telemetry and notifications documentation for details