dreaction-react-native 1.8.2 → 1.8.4

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.
@@ -4,5 +4,6 @@ export default function OverlayCreator(): () => {
4
4
  * Fires when any Reactotron message arrives.
5
5
  */
6
6
  onCommand: (command: import("dreaction-protocol").Command) => void;
7
+ onDisconnect(): void;
7
8
  };
8
9
  //# sourceMappingURL=overlay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/plugins/overlay.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,mEAAS,CAAC;AAE9B,MAAM,CAAC,OAAO,UAAU,cAAc;IAGhC;;OAEG;;EAWR"}
1
+ {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/plugins/overlay.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,mEAAS,CAAC;AAE9B,MAAM,CAAC,OAAO,UAAU,cAAc;IAGhC;;OAEG;;;EAcR"}
@@ -20,6 +20,9 @@ function OverlayCreator() {
20
20
  // relay this payload on to the emitter
21
21
  exports.emitter.emit('overlay', command.payload);
22
22
  },
23
+ onDisconnect() {
24
+ exports.emitter.emit('overlay', { uri: '' });
25
+ },
23
26
  };
24
27
  };
25
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dreaction-react-native",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "private": false,
5
5
  "description": "DReaction client for React Native applications with draggable debug ball and powerful debugging tools",
6
6
  "main": "lib/index.js",
@@ -32,8 +32,8 @@
32
32
  "homepage": "https://github.com/moonrailgun/dreaction#readme",
33
33
  "dependencies": {
34
34
  "mitt": "^3.0.1",
35
- "dreaction-client-core": "1.2.2",
36
- "dreaction-protocol": "1.0.9"
35
+ "dreaction-client-core": "1.3.0",
36
+ "dreaction-protocol": "1.0.10"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@react-native-async-storage/async-storage": "^2.1.0",
@@ -17,6 +17,9 @@ export default function OverlayCreator() {
17
17
  // relay this payload on to the emitter
18
18
  emitter.emit('overlay', command.payload);
19
19
  },
20
+ onDisconnect() {
21
+ emitter.emit('overlay', { uri: '' });
22
+ },
20
23
  } satisfies Plugin<DReactionCore>;
21
24
  };
22
25
  }