@heycar/heycars-map 0.9.23-alpha3 → 0.9.23-alpha4
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.cjs +20 -5
- package/dist/index.js +20 -5
- package/dist/src/utils/QueryWxSignatureStatus.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -19,7 +19,7 @@ if (typeof GeolocationPositionError === "undefined") {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
const name = "@heycar/heycars-map";
|
|
22
|
-
const version = "0.9.23-
|
|
22
|
+
const version = "0.9.23-alpha4";
|
|
23
23
|
const type = "module";
|
|
24
24
|
const bin = {
|
|
25
25
|
checkVersion: "./bin/checkVersion.js"
|
|
@@ -4470,10 +4470,22 @@ class QueryWxSignatureStatus {
|
|
|
4470
4470
|
}, this.timeout);
|
|
4471
4471
|
}));
|
|
4472
4472
|
__publicField(this, "timoutStatusPromise", Promise.resolve("TIMEOUT"));
|
|
4473
|
+
__publicField(this, "readyStatusPromise", Promise.resolve("READY"));
|
|
4473
4474
|
this.timeout = timeout;
|
|
4474
4475
|
}
|
|
4475
4476
|
get statusPromise() {
|
|
4476
|
-
|
|
4477
|
+
switch (this.status) {
|
|
4478
|
+
case "PENDING":
|
|
4479
|
+
return this.pendingStatusPromise;
|
|
4480
|
+
case "TIMEOUT":
|
|
4481
|
+
return this.timoutStatusPromise;
|
|
4482
|
+
case "READY":
|
|
4483
|
+
return this.readyStatusPromise;
|
|
4484
|
+
case "FAIL":
|
|
4485
|
+
return Promise.reject(this.error);
|
|
4486
|
+
default:
|
|
4487
|
+
throw new Error("MyError: QueryWxSignatureStatus.statusPromise Never !");
|
|
4488
|
+
}
|
|
4477
4489
|
}
|
|
4478
4490
|
}
|
|
4479
4491
|
function createCustomGeolocationPositionError(message, code) {
|
|
@@ -8446,8 +8458,9 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
8446
8458
|
centerSource.source = "api";
|
|
8447
8459
|
updatePlace(point);
|
|
8448
8460
|
};
|
|
8449
|
-
const setCenterPlaceByUserSpecified = async (input) => {
|
|
8450
|
-
|
|
8461
|
+
const setCenterPlaceByUserSpecified = async (input, context2) => {
|
|
8462
|
+
var _a2;
|
|
8463
|
+
centerSource.source = (_a2 = context2 == null ? void 0 : context2.source) != null ? _a2 : "api";
|
|
8451
8464
|
const place = toPlaceType(input);
|
|
8452
8465
|
Object.assign(centerPlace, place);
|
|
8453
8466
|
updateRecommendPlaceOnlyInZone(place);
|
|
@@ -8516,7 +8529,9 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
8516
8529
|
centerSource.source = "geo";
|
|
8517
8530
|
emit("loadDefaultGeoLocation", value);
|
|
8518
8531
|
if (inputPlace) {
|
|
8519
|
-
await setCenterPlaceByUserSpecified(inputPlace
|
|
8532
|
+
await setCenterPlaceByUserSpecified(inputPlace, {
|
|
8533
|
+
source: "geo"
|
|
8534
|
+
});
|
|
8520
8535
|
} else {
|
|
8521
8536
|
updatePlace(value.position);
|
|
8522
8537
|
}
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ if (typeof GeolocationPositionError === "undefined") {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
const name = "@heycar/heycars-map";
|
|
20
|
-
const version = "0.9.23-
|
|
20
|
+
const version = "0.9.23-alpha4";
|
|
21
21
|
const type = "module";
|
|
22
22
|
const bin = {
|
|
23
23
|
checkVersion: "./bin/checkVersion.js"
|
|
@@ -4468,10 +4468,22 @@ class QueryWxSignatureStatus {
|
|
|
4468
4468
|
}, this.timeout);
|
|
4469
4469
|
}));
|
|
4470
4470
|
__publicField(this, "timoutStatusPromise", Promise.resolve("TIMEOUT"));
|
|
4471
|
+
__publicField(this, "readyStatusPromise", Promise.resolve("READY"));
|
|
4471
4472
|
this.timeout = timeout;
|
|
4472
4473
|
}
|
|
4473
4474
|
get statusPromise() {
|
|
4474
|
-
|
|
4475
|
+
switch (this.status) {
|
|
4476
|
+
case "PENDING":
|
|
4477
|
+
return this.pendingStatusPromise;
|
|
4478
|
+
case "TIMEOUT":
|
|
4479
|
+
return this.timoutStatusPromise;
|
|
4480
|
+
case "READY":
|
|
4481
|
+
return this.readyStatusPromise;
|
|
4482
|
+
case "FAIL":
|
|
4483
|
+
return Promise.reject(this.error);
|
|
4484
|
+
default:
|
|
4485
|
+
throw new Error("MyError: QueryWxSignatureStatus.statusPromise Never !");
|
|
4486
|
+
}
|
|
4475
4487
|
}
|
|
4476
4488
|
}
|
|
4477
4489
|
function createCustomGeolocationPositionError(message, code) {
|
|
@@ -8444,8 +8456,9 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
8444
8456
|
centerSource.source = "api";
|
|
8445
8457
|
updatePlace(point);
|
|
8446
8458
|
};
|
|
8447
|
-
const setCenterPlaceByUserSpecified = async (input) => {
|
|
8448
|
-
|
|
8459
|
+
const setCenterPlaceByUserSpecified = async (input, context2) => {
|
|
8460
|
+
var _a2;
|
|
8461
|
+
centerSource.source = (_a2 = context2 == null ? void 0 : context2.source) != null ? _a2 : "api";
|
|
8449
8462
|
const place = toPlaceType(input);
|
|
8450
8463
|
Object.assign(centerPlace, place);
|
|
8451
8464
|
updateRecommendPlaceOnlyInZone(place);
|
|
@@ -8514,7 +8527,9 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
8514
8527
|
centerSource.source = "geo";
|
|
8515
8528
|
emit("loadDefaultGeoLocation", value);
|
|
8516
8529
|
if (inputPlace) {
|
|
8517
|
-
await setCenterPlaceByUserSpecified(inputPlace
|
|
8530
|
+
await setCenterPlaceByUserSpecified(inputPlace, {
|
|
8531
|
+
source: "geo"
|
|
8532
|
+
});
|
|
8518
8533
|
} else {
|
|
8519
8534
|
updatePlace(value.position);
|
|
8520
8535
|
}
|