@cpzxrobot/sdk 1.0.40 → 1.0.41

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/device_filter.ts CHANGED
@@ -313,6 +313,7 @@ export abstract class DeviceFilter<T extends { id: number }> {
313
313
  unit: options?.unit,
314
314
  data: options?.data,
315
315
  status: options?.status,
316
+ supplier: options?.supplier,
316
317
  },
317
318
  });
318
319
  })
@@ -253,6 +253,7 @@ class DeviceFilter {
253
253
  unit: options === null || options === void 0 ? void 0 : options.unit,
254
254
  data: options === null || options === void 0 ? void 0 : options.data,
255
255
  status: options === null || options === void 0 ? void 0 : options.status,
256
+ supplier: options === null || options === void 0 ? void 0 : options.supplier,
256
257
  },
257
258
  });
258
259
  })
package/dist/index.js CHANGED
@@ -249,6 +249,7 @@ class Cpzxrobot {
249
249
  return;
250
250
  }
251
251
  this.token = "Bearer " + res.data.token;
252
+ localStorage.setItem("token", this.token);
252
253
  this.resolveReady(this.axios);
253
254
  });
254
255
  return;
package/index.ts CHANGED
@@ -283,6 +283,7 @@ export class Cpzxrobot {
283
283
  return;
284
284
  }
285
285
  this.token = "Bearer " + res.data.token;
286
+ localStorage.setItem("token", this.token);
286
287
  this.resolveReady(this.axios);
287
288
  });
288
289
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {