@cocreate/notification 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/CoCreate.config.js +1 -2
- package/docs/index.html +1 -1
- package/package.json +1 -1
- package/src/server.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [1.2.3](https://github.com/CoCreate-app/CoCreate-notification/compare/v1.2.2...v1.2.3) (2023-11-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* meta name typo ([302ccb4](https://github.com/CoCreate-app/CoCreate-notification/commit/302ccb4f1e928e1eee1775a1359d9bbbbedd6df7))
|
|
7
|
+
* update host ([f031818](https://github.com/CoCreate-app/CoCreate-notification/commit/f031818031eeedd1f34d648b2b7a45d7fda1e5e5))
|
|
8
|
+
* updated timestamp to ISO format with UTC timezone ([f5c72fc](https://github.com/CoCreate-app/CoCreate-notification/commit/f5c72fc7f1cebc6382ab11e10e90b4b50d7c25e7))
|
|
9
|
+
* updated timestamp to ISO format with UTC timezone ([d997a36](https://github.com/CoCreate-app/CoCreate-notification/commit/d997a3630bf02cc60a5fe9f5f8dc6a184419992f))
|
|
10
|
+
|
|
1
11
|
## [1.2.2](https://github.com/CoCreate-app/CoCreate-notification/compare/v1.2.1...v1.2.2) (2023-11-03)
|
|
2
12
|
|
|
3
13
|
|
package/CoCreate.config.js
CHANGED
package/docs/index.html
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
sizes="32x32"
|
|
12
12
|
href="https://cocreate.app/images/favicon.ico" />
|
|
13
13
|
<meta
|
|
14
|
-
|
|
14
|
+
name="description"
|
|
15
15
|
content="A JavaScript component target,update & remove values in element's notification from an input,select or js api.Configurable using class, style or any custom attribute" />
|
|
16
16
|
<meta name="robots" content="index,follow" />
|
|
17
17
|
<meta
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/notification",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Simple HTML5 & JavaScript component add, update & remove values in element's notification from input, select or js api. Easily configured using HTML5 notification and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cocreate",
|
package/src/server.js
CHANGED
|
@@ -128,7 +128,7 @@ class CoCreateNotification {
|
|
|
128
128
|
if (!subscription || !subscription.privateKey)
|
|
129
129
|
return
|
|
130
130
|
|
|
131
|
-
const cutoffDate = new Date();
|
|
131
|
+
const cutoffDate = new Date(new Date().toISOString());
|
|
132
132
|
cutoffDate.setDate(cutoffDate.getDate() - 90);
|
|
133
133
|
|
|
134
134
|
// Compare the modification time with the cutoff date
|
|
@@ -138,7 +138,7 @@ class CoCreateNotification {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
if (data.payload && !data.payload.timestamp)
|
|
141
|
-
data.payload.timestamp = Date.
|
|
141
|
+
data.payload.timestamp = new Date().toISOString()
|
|
142
142
|
|
|
143
143
|
// let payload = data.payload
|
|
144
144
|
// delete payload.privateKey
|
|
@@ -262,7 +262,7 @@ const payloadExample = {
|
|
|
262
262
|
{ action: 'action-1', title: 'Action 1' },
|
|
263
263
|
{ action: 'action-2', title: 'Action 2' },
|
|
264
264
|
],
|
|
265
|
-
timestamp: Date.
|
|
265
|
+
timestamp: new Date().toISOString(), // A timestamp for the notification
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
|