From 8c22079e667d6388afbc29311b6fd9a0e9581647 Mon Sep 17 00:00:00 2001
From: Dani Palou
Date: Wed, 23 Nov 2022 11:00:18 +0100
Subject: [PATCH 1/2] MOBILE-4081 notifications: Display time when clicking
push
---
src/addons/notifications/pages/notification/notification.html | 2 +-
src/addons/notifications/pages/notification/notification.ts | 1 +
src/addons/notifications/services/handlers/push-click.ts | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/addons/notifications/pages/notification/notification.html b/src/addons/notifications/pages/notification/notification.html
index 2814eeaa8..6c7f95dd6 100644
--- a/src/addons/notifications/pages/notification/notification.html
+++ b/src/addons/notifications/pages/notification/notification.html
@@ -36,7 +36,7 @@
- {{ timecreated | coreTimeAgo }} 0"> · {{
+ 0">{{ timecreated | coreTimeAgo }} 0"> · {{
userFromFullName }}
diff --git a/src/addons/notifications/pages/notification/notification.ts b/src/addons/notifications/pages/notification/notification.ts
index a53e5fa26..153c7f9c7 100644
--- a/src/addons/notifications/pages/notification/notification.ts
+++ b/src/addons/notifications/pages/notification/notification.ts
@@ -91,6 +91,7 @@ export class AddonNotificationsNotificationPage implements OnInit, OnDestroy {
this.userIdFrom = notification.userfromid ? Number(notification.userfromid) : -1;
this.profileImageUrlFrom = notification.senderImage;
this.userFromFullName = notification.userfromfullname;
+ this.timecreated = Number(notification.date ?? 0);
}
await this.loadActions(notification);
diff --git a/src/addons/notifications/services/handlers/push-click.ts b/src/addons/notifications/services/handlers/push-click.ts
index 3fc1c4d0d..ed65175a0 100644
--- a/src/addons/notifications/services/handlers/push-click.ts
+++ b/src/addons/notifications/services/handlers/push-click.ts
@@ -141,4 +141,5 @@ export type AddonNotificationsNotificationData = CorePushNotificationsNotificati
contexturl?: string; // URL related to the notification.
savedmessageid?: number; // Notification ID (optional).
id?: number; // Notification ID (optional).
+ date?: string; // Notification date (timestamp). E.g. "1669204700".
};
From bc83f62f0badef58b2d1630d679a61329b81f074 Mon Sep 17 00:00:00 2001
From: Dani Palou
Date: Wed, 23 Nov 2022 12:47:06 +0100
Subject: [PATCH 2/2] MOBILE-4081 npm: Freeze libraries
---
package-lock.json | 40 +--
package.json | 254 +++++++++---------
.../services/handlers/push-click.ts | 2 +-
3 files changed, 148 insertions(+), 148 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index fe71eaa44..6765e77e3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9542,7 +9542,7 @@
"emojis-list": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz",
- "integrity": "sha512-knHEZMgs8BB+MInokmNTg/OyPlAddghe1YBgNwJBc5zsJi/uyIcXoSDsL/W9ymOsBoBGdPIHXYJ9+qKFwRwDng==",
+ "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=",
"dev": true
},
"json5": {
@@ -10843,13 +10843,13 @@
"color-name": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
- "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==",
+ "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
"dev": true
},
"has-flag": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
- "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
+ "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
"dev": true
},
"supports-color": {
@@ -13353,7 +13353,7 @@
"concat-map": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
- "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
},
"concat-stream": {
"version": "1.6.2",
@@ -23475,7 +23475,7 @@
"normalize-url": {
"version": "1.9.1",
"resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-1.9.1.tgz",
- "integrity": "sha512-A48My/mtCklowHBlI8Fq2jFWK4tX4lJ5E6ytFsSOq1fzpvT0SQSgKhSg7lN5c2uYFOrUAOQp6zhhJnpp1eMloQ==",
+ "integrity": "sha1-LMDWazHqIwNkWENuNiDYWVTGbDw=",
"dev": true,
"requires": {
"object-assign": "^4.0.1",
@@ -23487,7 +23487,7 @@
"prepend-http": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz",
- "integrity": "sha512-PhmXi5XmoyKw1Un4E+opM2KcsJInDvKyuOumcjjw3waw86ZNjHwVUOOWLc4bCzLdcKNaWBH9e99sbWzDQsVaYg==",
+ "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=",
"dev": true
},
"schema-utils": {
@@ -24377,7 +24377,7 @@
"object-path": {
"version": "0.11.4",
"resolved": "https://registry.npmjs.org/object-path/-/object-path-0.11.4.tgz",
- "integrity": "sha512-ICbQN+aw/eAASDtaC7+SJXSAruz7fvvNjxMFfS3mTdvZaaiuuw81XXYu+9CSJeUVrS3YpRhTr862YGywMQUOWg==",
+ "integrity": "sha1-NwrnUvvzfePqcKhhwju6iRVpGUk=",
"dev": true
},
"object-visit": {
@@ -27284,7 +27284,7 @@
"properties-parser": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/properties-parser/-/properties-parser-0.3.1.tgz",
- "integrity": "sha512-AkSQxQAviJ89x4FIxOyHGfO3uund0gvYo7lfD0E+Gp7gFQKrTNgtoYQklu8EhrfHVZUzTwKGZx2r/KDSfnljcA==",
+ "integrity": "sha1-ExbpU5/7/ZOEXjabIRAiq9R4dxo=",
"requires": {
"string.prototype.codepointat": "^0.2.0"
}
@@ -28757,19 +28757,19 @@
"color-name": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
- "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==",
+ "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
"dev": true
},
"emojis-list": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz",
- "integrity": "sha512-knHEZMgs8BB+MInokmNTg/OyPlAddghe1YBgNwJBc5zsJi/uyIcXoSDsL/W9ymOsBoBGdPIHXYJ9+qKFwRwDng==",
+ "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=",
"dev": true
},
"has-flag": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
- "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
+ "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
"dev": true
},
"json5": {
@@ -33586,7 +33586,7 @@
"extend-shallow": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
- "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==",
+ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
"dev": true,
"requires": {
"is-extendable": "^0.1.0"
@@ -33626,7 +33626,7 @@
"fill-range": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz",
- "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==",
+ "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=",
"dev": true,
"requires": {
"extend-shallow": "^2.0.1",
@@ -33638,7 +33638,7 @@
"extend-shallow": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
- "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==",
+ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
"dev": true,
"requires": {
"is-extendable": "^0.1.0"
@@ -33660,7 +33660,7 @@
"is-number": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz",
- "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==",
+ "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=",
"dev": true,
"requires": {
"kind-of": "^3.0.2"
@@ -33669,7 +33669,7 @@
"kind-of": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
- "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==",
+ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
"dev": true,
"requires": {
"is-buffer": "^1.1.5"
@@ -33680,13 +33680,13 @@
"is-wsl": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz",
- "integrity": "sha512-gfygJYZ2gLTDlmbWMI0CE2MwnFzSN/2SZfkMlItC4K/JBlsWVDB0bO6XhqcY13YXE7iMcAJnzTCJjPiTeJJ0Mw==",
+ "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=",
"dev": true
},
"isobject": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
- "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==",
+ "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",
"dev": true
},
"json5": {
@@ -33731,7 +33731,7 @@
"memory-fs": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz",
- "integrity": "sha512-cda4JKCxReDXFXRqOHPQscuIYg1PvxbE2S2GP45rnwfEK+vZaXC8C1OFvdHIbgw0DLzowXGVoxLaAmlgRy14GQ==",
+ "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=",
"dev": true,
"requires": {
"errno": "^0.1.3",
@@ -33820,7 +33820,7 @@
"to-regex-range": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz",
- "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==",
+ "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=",
"dev": true,
"requires": {
"is-number": "^3.0.0",
diff --git a/package.json b/package.json
index ab3f77379..20145af83 100644
--- a/package.json
+++ b/package.json
@@ -40,148 +40,148 @@
"postinstall": "patch-package"
},
"dependencies": {
- "@angular/animations": "~10.0.14",
- "@angular/common": "~10.0.14",
- "@angular/core": "~10.0.14",
- "@angular/forms": "~10.0.14",
- "@angular/platform-browser": "~10.0.14",
- "@angular/platform-browser-dynamic": "~10.0.14",
- "@angular/router": "~10.0.14",
- "@ionic-native/badge": "^5.36.0",
- "@ionic-native/camera": "^5.36.0",
- "@ionic-native/chooser": "^5.36.0",
- "@ionic-native/clipboard": "^5.36.0",
- "@ionic-native/core": "^5.36.0",
- "@ionic-native/device": "^5.36.0",
- "@ionic-native/diagnostic": "^5.36.0",
- "@ionic-native/file": "^5.36.0",
- "@ionic-native/file-opener": "^5.36.0",
- "@ionic-native/file-transfer": "^5.36.0",
- "@ionic-native/geolocation": "^5.36.0",
- "@ionic-native/http": "^5.36.0",
- "@ionic-native/in-app-browser": "^5.36.0",
- "@ionic-native/ionic-webview": "^5.36.0",
- "@ionic-native/keyboard": "^5.36.0",
- "@ionic-native/local-notifications": "^5.36.0",
- "@ionic-native/media": "^5.36.0",
- "@ionic-native/media-capture": "^5.36.0",
- "@ionic-native/network": "^5.36.0",
- "@ionic-native/push": "^5.36.0",
- "@ionic-native/qr-scanner": "^5.36.0",
- "@ionic-native/splash-screen": "^5.36.0",
- "@ionic-native/sqlite": "^5.36.0",
- "@ionic-native/status-bar": "^5.36.0",
- "@ionic-native/web-intent": "^5.36.0",
- "@ionic-native/zip": "^5.36.0",
- "@ionic/angular": "^5.9.2",
- "@moodlehq/cordova-plugin-file-opener": "^3.0.5-moodle.1",
+ "@angular/animations": "10.0.14",
+ "@angular/common": "10.0.14",
+ "@angular/core": "10.0.14",
+ "@angular/forms": "10.0.14",
+ "@angular/platform-browser": "10.0.14",
+ "@angular/platform-browser-dynamic": "10.0.14",
+ "@angular/router": "10.0.14",
+ "@ionic-native/badge": "5.36.0",
+ "@ionic-native/camera": "5.36.0",
+ "@ionic-native/chooser": "5.36.0",
+ "@ionic-native/clipboard": "5.36.0",
+ "@ionic-native/core": "5.36.0",
+ "@ionic-native/device": "5.36.0",
+ "@ionic-native/diagnostic": "5.36.0",
+ "@ionic-native/file": "5.36.0",
+ "@ionic-native/file-opener": "5.36.0",
+ "@ionic-native/file-transfer": "5.36.0",
+ "@ionic-native/geolocation": "5.36.0",
+ "@ionic-native/http": "5.36.0",
+ "@ionic-native/in-app-browser": "5.36.0",
+ "@ionic-native/ionic-webview": "5.36.0",
+ "@ionic-native/keyboard": "5.36.0",
+ "@ionic-native/local-notifications": "5.36.0",
+ "@ionic-native/media": "5.36.0",
+ "@ionic-native/media-capture": "5.36.0",
+ "@ionic-native/network": "5.36.0",
+ "@ionic-native/push": "5.36.0",
+ "@ionic-native/qr-scanner": "5.36.0",
+ "@ionic-native/splash-screen": "5.36.0",
+ "@ionic-native/sqlite": "5.36.0",
+ "@ionic-native/status-bar": "5.36.0",
+ "@ionic-native/web-intent": "5.36.0",
+ "@ionic-native/zip": "5.36.0",
+ "@ionic/angular": "5.9.2",
+ "@moodlehq/cordova-plugin-file-opener": "3.0.5-moodle.1",
"@moodlehq/cordova-plugin-file-transfer": "1.7.1-moodle.5",
"@moodlehq/cordova-plugin-inappbrowser": "5.0.0-moodle.3",
- "@moodlehq/cordova-plugin-intent": "^2.2.0-moodle.1",
+ "@moodlehq/cordova-plugin-intent": "2.2.0-moodle.1",
"@moodlehq/cordova-plugin-ionic-webview": "5.0.0-moodle.1",
"@moodlehq/cordova-plugin-local-notification": "0.9.0-moodle.7",
"@moodlehq/cordova-plugin-qrscanner": "3.0.1-moodle.4",
"@moodlehq/cordova-plugin-zip": "3.1.0-moodle.1",
"@moodlehq/phonegap-plugin-push": "4.0.0-moodle.2",
- "@ngx-translate/core": "^13.0.0",
- "@ngx-translate/http-loader": "^6.0.0",
- "@types/chart.js": "^2.9.31",
+ "@ngx-translate/core": "13.0.0",
+ "@ngx-translate/http-loader": "6.0.0",
+ "@types/chart.js": "2.9.31",
"@types/cordova": "0.0.34",
- "@types/dom-mediacapture-record": "^1.0.7",
- "chart.js": "^2.9.4",
- "cordova": "^11.0.0",
- "cordova-android": "^10.1.1",
- "cordova-clipboard": "^1.3.0",
- "cordova-ios": "^6.2.0",
- "cordova-plugin-add-swift-support": "^2.0.2",
- "cordova-plugin-advanced-http": "^3.3.1",
- "cordova-plugin-badge": "^0.8.8",
- "cordova-plugin-camera": "^6.0.0",
- "cordova-plugin-chooser": "^1.3.2",
- "cordova-plugin-customurlscheme": "^5.0.2",
- "cordova-plugin-device": "^2.1.0",
+ "@types/dom-mediacapture-record": "1.0.7",
+ "chart.js": "2.9.4",
+ "cordova": "11.0.0",
+ "cordova-android": "10.1.1",
+ "cordova-clipboard": "1.3.0",
+ "cordova-ios": "6.2.0",
+ "cordova-plugin-add-swift-support": "2.0.2",
+ "cordova-plugin-advanced-http": "3.3.1",
+ "cordova-plugin-badge": "0.8.8",
+ "cordova-plugin-camera": "6.0.0",
+ "cordova-plugin-chooser": "1.3.2",
+ "cordova-plugin-customurlscheme": "5.0.2",
+ "cordova-plugin-device": "2.1.0",
"cordova-plugin-file": "6.0.2",
- "cordova-plugin-geolocation": "^4.1.0",
- "cordova-plugin-ionic-keyboard": "^2.2.0",
+ "cordova-plugin-geolocation": "4.1.0",
+ "cordova-plugin-ionic-keyboard": "2.2.0",
"cordova-plugin-media": "5.0.4",
"cordova-plugin-media-capture": "3.0.3",
- "cordova-plugin-network-information": "^3.0.0",
- "cordova-plugin-prevent-override": "^1.0.1",
- "cordova-plugin-splashscreen": "^6.0.0",
- "cordova-plugin-statusbar": "^3.0.0",
- "cordova-plugin-wkuserscript": "^1.0.1",
- "cordova-plugin-wkwebview-cookies": "^1.0.1",
- "cordova-sqlite-storage": "^6.0.0",
- "cordova.plugins.diagnostic": "^7.0.0",
- "core-js": "^3.9.1",
- "es6-promise-plugin": "^4.2.2",
- "hammerjs": "^2.0.8",
- "jszip": "^3.7.1",
+ "cordova-plugin-network-information": "3.0.0",
+ "cordova-plugin-prevent-override": "1.0.1",
+ "cordova-plugin-splashscreen": "6.0.0",
+ "cordova-plugin-statusbar": "3.0.0",
+ "cordova-plugin-wkuserscript": "1.0.1",
+ "cordova-plugin-wkwebview-cookies": "1.0.1",
+ "cordova-sqlite-storage": "6.0.0",
+ "cordova.plugins.diagnostic": "7.1.1",
+ "core-js": "3.9.1",
+ "es6-promise-plugin": "4.2.2",
+ "hammerjs": "2.0.8",
+ "jszip": "3.7.1",
"mathjax": "2.7.9",
- "moment": "^2.29.4",
- "moment-timezone": "^0.5.34",
- "nl.kingsquare.cordova.background-audio": "^1.0.1",
- "rxjs": "~6.5.5",
- "ts-md5": "^1.2.7",
- "tslib": "^2.3.1",
- "zone.js": "~0.10.3"
+ "moment": "2.29.4",
+ "moment-timezone": "0.5.38",
+ "nl.kingsquare.cordova.background-audio": "1.0.1",
+ "rxjs": "6.5.5",
+ "ts-md5": "1.2.7",
+ "tslib": "2.3.1",
+ "zone.js": "0.10.3"
},
"devDependencies": {
- "@angular-builders/custom-webpack": "^10.0.1",
- "@angular-devkit/architect": "^0.1202.7",
- "@angular-devkit/build-angular": "~0.1000.8",
- "@angular-eslint/builder": "^4.2.0",
- "@angular-eslint/eslint-plugin": "^4.2.0",
- "@angular-eslint/eslint-plugin-template": "^4.2.0",
- "@angular-eslint/schematics": "^4.2.0",
- "@angular-eslint/template-parser": "^4.2.0",
- "@angular/cli": "~10.0.8",
- "@angular/compiler": "~10.0.14",
- "@angular/compiler-cli": "~10.0.14",
- "@angular/language-service": "~10.0.14",
- "@ionic/angular-toolkit": "^2.3.3",
- "@ionic/cli": "^6.19.0",
- "@storybook/addon-controls": "~6.1",
- "@storybook/angular": "~6.1",
- "@types/faker": "^5.1.3",
- "@types/node": "^12.12.64",
- "@types/resize-observer-browser": "^0.1.5",
- "@types/webpack-env": "^1.16.0",
- "@typescript-eslint/eslint-plugin": "^4.22.0",
- "@typescript-eslint/parser": "^4.22.0",
- "check-es-compat": "^1.1.1",
- "compare-versions": "^4.1.3",
- "cordova-plugin-androidx-adapter": "^1.1.3",
- "cordova-plugin-screen-orientation": "^3.0.2",
- "cross-env": "^7.0.3",
- "eslint": "^7.25.0",
- "eslint-config-prettier": "^8.3.0",
- "eslint-plugin-header": "^3.1.1",
- "eslint-plugin-import": "^2.22.1",
- "eslint-plugin-jest": "^24.3.6",
- "eslint-plugin-jsdoc": "^32.3.3",
- "eslint-plugin-prefer-arrow": "^1.2.3",
- "eslint-plugin-promise": "^5.1.0",
- "faker": "^5.1.0",
- "fs-extra": "^9.1.0",
+ "@angular-builders/custom-webpack": "10.0.1",
+ "@angular-devkit/architect": "0.1202.7",
+ "@angular-devkit/build-angular": "0.1000.8",
+ "@angular-eslint/builder": "4.2.0",
+ "@angular-eslint/eslint-plugin": "4.2.0",
+ "@angular-eslint/eslint-plugin-template": "4.2.0",
+ "@angular-eslint/schematics": "4.2.0",
+ "@angular-eslint/template-parser": "4.2.0",
+ "@angular/cli": "10.0.8",
+ "@angular/compiler": "10.0.14",
+ "@angular/compiler-cli": "10.0.14",
+ "@angular/language-service": "10.0.14",
+ "@ionic/angular-toolkit": "2.3.3",
+ "@ionic/cli": "6.19.0",
+ "@storybook/addon-controls": "6.1.21",
+ "@storybook/angular": "6.1.21",
+ "@types/faker": "5.1.3",
+ "@types/node": "12.12.64",
+ "@types/resize-observer-browser": "0.1.5",
+ "@types/webpack-env": "1.16.0",
+ "@typescript-eslint/eslint-plugin": "4.22.0",
+ "@typescript-eslint/parser": "4.22.0",
+ "check-es-compat": "1.1.1",
+ "compare-versions": "4.1.4",
+ "cordova-plugin-androidx-adapter": "1.1.3",
+ "cordova-plugin-screen-orientation": "3.0.2",
+ "cross-env": "7.0.3",
+ "eslint": "7.25.0",
+ "eslint-config-prettier": "8.3.0",
+ "eslint-plugin-header": "3.1.1",
+ "eslint-plugin-import": "2.22.1",
+ "eslint-plugin-jest": "24.3.6",
+ "eslint-plugin-jsdoc": "32.3.3",
+ "eslint-plugin-prefer-arrow": "1.2.3",
+ "eslint-plugin-promise": "5.1.0",
+ "faker": "5.1.0",
+ "fs-extra": "9.1.0",
"gulp": "4.0.2",
- "gulp-clip-empty-files": "^0.1.2",
- "gulp-concat": "^2.6.1",
- "gulp-flatten": "^0.4.0",
- "gulp-htmlmin": "^5.0.1",
- "gulp-rename": "^2.0.0",
- "gulp-slash": "^1.1.3",
- "jest": "^26.5.2",
- "jest-preset-angular": "^8.3.1",
- "jest-raw-loader": "^1.0.1",
- "jsonc-parser": "^2.3.1",
- "minimatch": "^5.1.0",
- "native-run": "^1.4.0",
- "patch-package": "^6.4.7",
- "terser-webpack-plugin": "^4.2.3",
- "ts-jest": "^26.4.1",
- "ts-node": "~8.3.0",
- "typescript": "^3.9.9"
+ "gulp-clip-empty-files": "0.1.2",
+ "gulp-concat": "2.6.1",
+ "gulp-flatten": "0.4.0",
+ "gulp-htmlmin": "5.0.1",
+ "gulp-rename": "2.0.0",
+ "gulp-slash": "1.1.3",
+ "jest": "26.5.2",
+ "jest-preset-angular": "8.3.1",
+ "jest-raw-loader": "1.0.1",
+ "jsonc-parser": "2.3.1",
+ "minimatch": "5.1.0",
+ "native-run": "1.4.0",
+ "patch-package": "6.5.0",
+ "terser-webpack-plugin": "4.2.3",
+ "ts-jest": "26.4.1",
+ "ts-node": "8.3.0",
+ "typescript": "3.9.9"
},
"engines": {
"node": ">=14.15.0 <15"
diff --git a/src/addons/notifications/services/handlers/push-click.ts b/src/addons/notifications/services/handlers/push-click.ts
index ed65175a0..28e6de9b9 100644
--- a/src/addons/notifications/services/handlers/push-click.ts
+++ b/src/addons/notifications/services/handlers/push-click.ts
@@ -141,5 +141,5 @@ export type AddonNotificationsNotificationData = CorePushNotificationsNotificati
contexturl?: string; // URL related to the notification.
savedmessageid?: number; // Notification ID (optional).
id?: number; // Notification ID (optional).
- date?: string; // Notification date (timestamp). E.g. "1669204700".
+ date?: string | number; // Notification date (timestamp). E.g. "1669204700".
};