@cpzxrobot/sdk 1.2.69 → 1.2.70

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.
Files changed (2) hide show
  1. package/device_filter.ts +2 -3
  2. package/package.json +1 -1
package/device_filter.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Cpzxrobot, type DataQueryArgs } from ".";
2
- import type { AxiosResponse } from "axios";
3
2
  import { FieldDatas, SensorDatas } from "./sensor_datas";
4
3
 
5
4
  export abstract class DeviceFilter<T extends { id: number }> {
@@ -153,7 +152,7 @@ export abstract class DeviceFilter<T extends { id: number }> {
153
152
  }
154
153
  );
155
154
  if (args.type == "raw") {
156
- return p1.then((res: AxiosResponse) => {
155
+ return p1.then((res: any) => {
157
156
  var string = res.data.data as string;
158
157
  string = string.replace(/\r/g, "");
159
158
  var arr = string.split("\n");
@@ -205,7 +204,7 @@ export abstract class DeviceFilter<T extends { id: number }> {
205
204
  return this.wrapData(id, args, p1);
206
205
  }
207
206
  })
208
- .then((res: AxiosResponse) => {
207
+ .then((res: any) => {
209
208
  if (args.type == "raw") {
210
209
  return res;
211
210
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.2.69",
3
+ "version": "1.2.70",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {