@knocklabs/client
Advanced tools
Comparing version 0.8.12 to 0.8.13
@@ -880,7 +880,19 @@ "use strict"; | ||
var itemsToUpdate = normalizedItems.filter(function (item) { | ||
if (type === "seen") return item.seen_at === null; | ||
if (type === "unseen") return item.seen_at !== null; | ||
if (type === "read") return item.read_at === null; | ||
if (type === "unread") return item.read_at !== null; | ||
return true; | ||
switch (type) { | ||
case "seen": | ||
return item.seen_at === null; | ||
case "unseen": | ||
return item.seen_at !== null; | ||
case "read": | ||
case "interacted": | ||
return item.read_at === null; | ||
case "unread": | ||
return item.read_at !== null; | ||
default: | ||
return true; | ||
} | ||
}); // Tnis is a hack to determine the direction of whether we're | ||
@@ -887,0 +899,0 @@ // adding or removing from the badge count |
@@ -607,7 +607,19 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator"; | ||
var itemsToUpdate = normalizedItems.filter(item => { | ||
if (type === "seen") return item.seen_at === null; | ||
if (type === "unseen") return item.seen_at !== null; | ||
if (type === "read") return item.read_at === null; | ||
if (type === "unread") return item.read_at !== null; | ||
return true; | ||
switch (type) { | ||
case "seen": | ||
return item.seen_at === null; | ||
case "unseen": | ||
return item.seen_at !== null; | ||
case "read": | ||
case "interacted": | ||
return item.read_at === null; | ||
case "unread": | ||
return item.read_at !== null; | ||
default: | ||
return true; | ||
} | ||
}); // Tnis is a hack to determine the direction of whether we're | ||
@@ -614,0 +626,0 @@ // adding or removing from the badge count |
{ | ||
"name": "@knocklabs/client", | ||
"version": "0.8.12", | ||
"version": "0.8.13", | ||
"description": "The clientside library for interacting with Knock", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/knocklabs/knock-client-js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
281039
3030