@ray-js/ipc-player-integration 0.0.43-beta.1 → 0.0.43-beta.2

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.
@@ -9,16 +9,16 @@ export const useEc = devId => {
9
9
  dpCodes: [IPC_EC]
10
10
  });
11
11
  useEffect(() => {
12
- var _schema$property, _schema$property2;
12
+ var _schema$property;
13
13
  if (dpState[IPC_EC] === undefined) {
14
14
  setEc('');
15
15
  return;
16
16
  }
17
17
  const schema = schemaObj === null || schemaObj === void 0 ? void 0 : schemaObj[IPC_EC];
18
18
  const scale = (schema === null || schema === void 0 || (_schema$property = schema.property) === null || _schema$property === void 0 ? void 0 : _schema$property.scale) || 0;
19
- const unit = (schema === null || schema === void 0 || (_schema$property2 = schema.property) === null || _schema$property2 === void 0 ? void 0 : _schema$property2.unit) || 'μS/cm';
19
+ // const unit = schema?.property?.unit || 'μS/cm';
20
20
  const value = showMathPowValue(dpState[IPC_EC], scale);
21
- setEc(`${value}${unit}`);
21
+ setEc(`${value}`);
22
22
  }, [dpState, schemaObj]);
23
23
  return ec;
24
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ipc-player-integration",
3
- "version": "0.0.43-beta.1",
3
+ "version": "0.0.43-beta.2",
4
4
  "description": "IPC 融合播放器",
5
5
  "main": "lib/index",
6
6
  "files": [