@xuda.io/notification_module 1.1.42 → 1.1.44

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.
Files changed (2) hide show
  1. package/index.js +18 -10
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -683,16 +683,24 @@ exports.get_system_notifications = async function (req) {
683
683
  // // console.log(aa);
684
684
  // }, 2000);
685
685
 
686
- exports.notifications_validation_class = async function (params) {};
686
+ // class notifications_validation_class {
687
+ // constructor(name) {
688
+ // this.name = name;
689
+ // }
687
690
 
688
- class notifications_validation_class {
689
- constructor(name) {
690
- this.name = name;
691
- }
691
+ // new_version_available(params) {
692
+ // console.log(`Hello, my name is ${this.name}`);
693
+ // }
694
+ // }
692
695
 
693
- sayHello() {
694
- console.log(`Hello, my name is ${this.name}`);
695
- }
696
- }
696
+ // module.exports = notifications_validation_class;
697
+
698
+ exports.notifications_validation_fx = async function (method, params) {
699
+ const fx = {
700
+ new_version_available: function () {},
701
+ };
697
702
 
698
- module.exports = notifications_validation_class;
703
+ if (fx[method]) {
704
+ return await fx[method]();
705
+ }
706
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/notification_module",
3
- "version": "1.1.42",
3
+ "version": "1.1.44",
4
4
  "description": "Xuda Notification Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {