@ray-js/robot-data-stream 0.0.10-beta-3 → 0.0.10-beta-4

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.
@@ -404,7 +404,7 @@ export class SweeperP2p extends P2pApi {
404
404
  let [index, data] = _ref;
405
405
  return data;
406
406
  }).join('');
407
- if (this.firstPackageTime > 0) {
407
+ if (this.firstPackageTime > 0 && fileName.indexOf('map') !== -1) {
408
408
  const packageTime = Date.now() - this.firstPackageTime;
409
409
  log4js.info(`receive first full package, cost time: ${packageTime} ms, fileName: ${fileName}, data: ${hexValue}`);
410
410
  this.firstPackageTime = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/robot-data-stream",
3
- "version": "0.0.10-beta-3",
3
+ "version": "0.0.10-beta-4",
4
4
  "description": "扫地机P2P数据流标准化组件",
5
5
  "main": "lib/index",
6
6
  "files": [