@ray-js/robot-data-stream 0.0.10-beta-18 → 0.0.10-beta-19

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.
@@ -50,7 +50,6 @@ export const useSpotClean = devId => {
50
50
  yMops = new Array(num).fill(-1),
51
51
  sweepMopModes = new Array(num).fill('only_sweep')
52
52
  } = message;
53
- const names = new Array(num).fill('');
54
53
  if (suctions && !isArray(suctions)) {
55
54
  return Promise.reject(new Error('suctions is illegal'));
56
55
  }
@@ -66,10 +65,7 @@ export const useSpotClean = devId => {
66
65
  if (sweepMopModes && !isArray(sweepMopModes)) {
67
66
  return Promise.reject(new Error('sweepMopModes is illegal'));
68
67
  }
69
- if (names && !isArray(names)) {
70
- return Promise.reject(new Error('names is illegal'));
71
- }
72
- if (num !== suctions.length || num !== cisterns.length || num !== cleanCounts.length || num !== yMops.length || num !== sweepMopModes.length || num !== names.length) {
68
+ if (num !== suctions.length || num !== cisterns.length || num !== cleanCounts.length || num !== yMops.length || num !== sweepMopModes.length) {
73
69
  return Promise.reject(new Error('The length of the parameters is inconsistent'));
74
70
  }
75
71
  const params = createSetCommonParams({
@@ -82,8 +78,7 @@ export const useSpotClean = devId => {
82
78
  cisterns,
83
79
  cleanCounts,
84
80
  yMops,
85
- sweepMopModes,
86
- names
81
+ sweepMopModes
87
82
  }
88
83
  });
89
84
  ty.device.sendMqttMessage(params);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/robot-data-stream",
3
- "version": "0.0.10-beta-18",
3
+ "version": "0.0.10-beta-19",
4
4
  "description": "扫地机P2P数据流标准化组件",
5
5
  "main": "lib/index",
6
6
  "files": [