@cpzxrobot/sdk 1.2.7 → 1.2.9

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 (3) hide show
  1. package/index.ts +2 -2
  2. package/package.json +1 -1
  3. package/types.d.ts +2 -2
package/index.ts CHANGED
@@ -482,8 +482,8 @@ export default function (
482
482
  devAuth: string;
483
483
  baseURL: string;
484
484
  appCode: string;
485
- selectedFarm: Factory;
486
- selectedUnit: Unit;
485
+ selectedFarm: Factory | null | undefined;
486
+ selectedUnit: Unit | null | undefined;
487
487
  } = {
488
488
  devAuth: "",
489
489
  appCode: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/types.d.ts CHANGED
@@ -357,8 +357,8 @@ declare module "@cpzxrobot/sdk" {
357
357
  devAuth: string;
358
358
  baseURL?: string;
359
359
  appCode: string;
360
- selectedFarm: Factory;
361
- selectedUnit: Unit;
360
+ selectedFarm: Factory | null | undefined;
361
+ selectedUnit: Unit | null | undefined;
362
362
  } = {
363
363
  devAuth: "",
364
364
  appCode: "",