@ray-js/robot-data-stream 0.0.1-beta-1 → 0.0.1

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/lib/api/p2pApi.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable prefer-promise-reject-errors */
2
2
  import { p2p } from '@ray-js/ray';
3
3
  import moment from 'moment';
4
- import { Logger } from '@/utils';
4
+ import { Logger } from '../utils';
5
5
  /**
6
6
  * P2P 工具类
7
7
  */
@@ -2,7 +2,7 @@
2
2
  import P2pApi from './p2pApi';
3
3
  import Base64 from 'base64-js';
4
4
  import { padStart } from 'lodash-es';
5
- import { Logger } from '@/utils';
5
+ import { Logger } from '../utils';
6
6
  /**
7
7
  * 基于P2p工具类的扫地机扩展实现
8
8
  */
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useEffect, useRef } from 'react';
2
2
  import mitt from 'mitt';
3
- import { SweeperP2pInstance } from '@/api';
3
+ import { SweeperP2pInstance } from './api';
4
4
  import { Logger } from './utils';
5
5
  const useP2PDataStream = (devId, onReceiveMapData, onReceivePathData) => {
6
6
  const isInit = useRef(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/robot-data-stream",
3
- "version": "0.0.1-beta-1",
3
+ "version": "0.0.1",
4
4
  "description": "扫地机P2P数据流标准化组件",
5
5
  "main": "lib/index",
6
6
  "files": [