@vention/machine-logic-ui-sdk 0.0.7 → 0.0.9

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/index.esm.js CHANGED
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import 'react-simple-keyboard/build/css/index.css';
3
3
  import { useState, useRef, useEffect } from 'react';
4
4
  import Keyboard from 'react-simple-keyboard';
5
- import * as mqtt from 'mqtt';
5
+ import mqtt from 'mqtt';
6
6
 
7
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vention/machine-logic-ui-sdk",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/VentionCo/machine-cloud.git"
@@ -12,7 +12,7 @@
12
12
  "license": "MIT",
13
13
  "dependencies": {
14
14
  "react-simple-keyboard": "3.7.124",
15
- "mqtt": "4.3.7"
15
+ "mqtt": "5.10.1"
16
16
  },
17
17
  "peerDependencies": {
18
18
  "react": "17.0.2"
@@ -1,7 +1,7 @@
1
1
  export interface Callback {
2
2
  (topic: string, message: string): void;
3
3
  }
4
- declare class MqttClient {
4
+ export declare class MqttClient {
5
5
  private mqttClient?;
6
6
  private subscriptions;
7
7
  constructor(url: string, connectCallback?: () => void);
@@ -10,4 +10,3 @@ declare class MqttClient {
10
10
  unsubscribe(topic: string, regex: RegExp, cb: Callback): void;
11
11
  publish(topic: string, message: string, retain?: boolean): void;
12
12
  }
13
- export { MqttClient };