@ray-js/robot-data-stream 0.0.12-beta-4 → 0.0.12-beta-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.
@@ -3,7 +3,7 @@ import "core-js/modules/esnext.iterator.for-each.js";
3
3
  import "core-js/modules/esnext.iterator.map.js";
4
4
  /* eslint-disable no-shadow */
5
5
  import Base64 from 'base64-js';
6
- import { join, map, padStart } from 'lodash-es';
6
+ import { join, map, padStart, once } from 'lodash-es';
7
7
  import { trace } from '../trace';
8
8
  import { logger } from '../utils';
9
9
  import P2pApi from './p2pApi';
@@ -2,7 +2,7 @@ import { useContext } from 'react';
2
2
  import { createSetCommonParams } from './createCommonOptions';
3
3
  import { SingletonContext } from './mqttProvider';
4
4
  import { normalResolve } from './promise';
5
- import { hexToUTF8 } from '@ray-js/robot-protocol';
5
+ import { hexToUriDecodedString } from '@ray-js/robot-protocol';
6
6
  var DevInfoEnum = /*#__PURE__*/function (DevInfoEnum) {
7
7
  DevInfoEnum["query"] = "devInfoQry";
8
8
  return DevInfoEnum;
@@ -29,7 +29,7 @@ export const useDevInfo = devId => {
29
29
  }
30
30
  const dpDevInfo = devices.common.model.props.device_info;
31
31
  return Promise.resolve({
32
- info: hexToUTF8(dpDevInfo)
32
+ info: hexToUriDecodedString(dpDevInfo)
33
33
  });
34
34
  }
35
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/robot-data-stream",
3
- "version": "0.0.12-beta-4",
3
+ "version": "0.0.12-beta-6",
4
4
  "description": "扫地机P2P数据流标准化组件",
5
5
  "main": "lib/index",
6
6
  "files": [
@@ -50,7 +50,7 @@
50
50
  "@ray-js/cli": "^1.5.20",
51
51
  "@ray-js/log4js": "^0.0.4",
52
52
  "@ray-js/ray": "^1.5.0",
53
- "@ray-js/robot-protocol": "^0.10.0",
53
+ "@ray-js/robot-protocol": "^0.10.8",
54
54
  "core-js": "^3.19.1",
55
55
  "eslint-config-tuya-panel": "^0.4.2",
56
56
  "husky": "^1.2.0",