@cpzxrobot/sdk 1.2.59 → 1.2.60
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/dist/index.js +3 -3
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -577,7 +577,7 @@ function default_1(args = {
|
|
|
577
577
|
},
|
|
578
578
|
verbose: false,
|
|
579
579
|
}) {
|
|
580
|
-
var _a;
|
|
580
|
+
var _a, _b;
|
|
581
581
|
// @ts-ignore
|
|
582
582
|
var instance = window.single_cpzxrobot_instance;
|
|
583
583
|
if (!instance) {
|
|
@@ -585,9 +585,9 @@ function default_1(args = {
|
|
|
585
585
|
// @ts-ignore
|
|
586
586
|
window.single_cpzxrobot_instance = instance;
|
|
587
587
|
instance.setAuth(args.devAuth, {
|
|
588
|
-
baseURL: args.baseURL,
|
|
588
|
+
baseURL: (_a = args.baseURL) !== null && _a !== void 0 ? _a : "",
|
|
589
589
|
verbose: args.verbose,
|
|
590
|
-
disableFactorySelector: (
|
|
590
|
+
disableFactorySelector: (_b = args.disableFactorySelector) !== null && _b !== void 0 ? _b : false,
|
|
591
591
|
});
|
|
592
592
|
if (args.selectedFarm) {
|
|
593
593
|
instance.user.selectedFarm = args.selectedFarm;
|
package/index.ts
CHANGED
|
@@ -625,7 +625,7 @@ export default function (
|
|
|
625
625
|
// @ts-ignore
|
|
626
626
|
window.single_cpzxrobot_instance = instance;
|
|
627
627
|
instance.setAuth(args.devAuth, {
|
|
628
|
-
baseURL: args.baseURL,
|
|
628
|
+
baseURL: args.baseURL ?? "",
|
|
629
629
|
verbose: args.verbose,
|
|
630
630
|
disableFactorySelector: args.disableFactorySelector ?? false,
|
|
631
631
|
});
|