ywana-core8 0.0.839 → 0.0.840

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.839",
3
+ "version": "0.0.840",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -82,6 +82,11 @@ export const TaskContextProvider = (props) => {
82
82
  setListeners(next)
83
83
  }
84
84
 
85
+ function addListeners(newListeners) {
86
+ const next = { ...listeners, ...newListeners }
87
+ setListeners(next)
88
+ }
89
+
85
90
  function removeListener(taskID) {
86
91
  const next = { ...listeners }
87
92
  delete next[taskID]
@@ -96,6 +101,7 @@ export const TaskContextProvider = (props) => {
96
101
  removeTask,
97
102
  listeners,
98
103
  addListener,
104
+ addListeners,
99
105
  removeListener
100
106
  };
101
107