@4i/modal-manager 1.0.4 → 1.0.6

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,12 +1,11 @@
1
1
  {
2
2
  "name": "@4i/modal-manager",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
8
- "build": "npm run clean && tsc && babel src --out-dir lib && cp src/styles.css lib/",
9
- "clean": "rm -rf lib"
8
+ "build": "tsc"
10
9
  },
11
10
  "repository": {
12
11
  "type": "git",
@@ -14,7 +14,7 @@ class ModalManager extends Manager {
14
14
  create(name: string, data: { [key: string]: any }) {
15
15
  this.name = name;
16
16
  this.data = data;
17
- this.emitter.emit(constants.CHANGE);
17
+ this.emitter.emit(constants.CHANGE, this.name, this.data);
18
18
  }
19
19
 
20
20
  call(name: string, data: any = {}) {