@tarojs/taro-h5 3.6.25 → 3.6.26
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/api/location/locationChange.d.ts +2 -2
- package/dist/index.cjs.d.ts +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.d.ts +2 -2
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +7 -7
|
@@ -2,6 +2,6 @@ declare function onLocationChange(callback: Taro.onLocationChange.Callback): voi
|
|
|
2
2
|
declare function offLocationChange(callback: Taro.onLocationChange.Callback): void;
|
|
3
3
|
declare function onLocationChangeError(callback: Taro.onLocationChange.Callback): void;
|
|
4
4
|
declare function offLocationChangeError(callback: Taro.onLocationChange.Callback): void;
|
|
5
|
-
declare const stopLocationUpdate: (options?: Partial<import("taro
|
|
6
|
-
declare const startLocationUpdate: (options?: Partial<import("taro
|
|
5
|
+
declare const stopLocationUpdate: (options?: Partial<import("@tarojs/taro").stopLocationUpdate.Option>, ...args: any[]) => Promise<TaroGeneral.CallbackResult>;
|
|
6
|
+
declare const startLocationUpdate: (options?: Partial<import("@tarojs/taro").startLocationUpdate.Option>, ...args: any[]) => Promise<TaroGeneral.CallbackResult>;
|
|
7
7
|
export { onLocationChange, offLocationChange, onLocationChangeError, offLocationChangeError, stopLocationUpdate, startLocationUpdate };
|
package/dist/index.cjs.d.ts
CHANGED
|
@@ -363,8 +363,8 @@ declare function onLocationChange(callback: Taro.onLocationChange.Callback): voi
|
|
|
363
363
|
declare function offLocationChange(callback: Taro.onLocationChange.Callback): void;
|
|
364
364
|
declare function onLocationChangeError(callback: Taro.onLocationChange.Callback): void;
|
|
365
365
|
declare function offLocationChangeError(callback: Taro.onLocationChange.Callback): void;
|
|
366
|
-
declare const stopLocationUpdate: (options?: Partial<import("taro
|
|
367
|
-
declare const startLocationUpdate: (options?: Partial<import("taro
|
|
366
|
+
declare const stopLocationUpdate: (options?: Partial<import("@tarojs/taro").stopLocationUpdate.Option>, ...args: any[]) => Promise<TaroGeneral.CallbackResult>;
|
|
367
|
+
declare const startLocationUpdate: (options?: Partial<import("@tarojs/taro").startLocationUpdate.Option>, ...args: any[]) => Promise<TaroGeneral.CallbackResult>;
|
|
368
368
|
// 音频
|
|
369
369
|
declare const stopVoice: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
370
370
|
declare const setInnerAudioOption: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
package/dist/index.cjs.js
CHANGED
|
@@ -167,7 +167,7 @@ function findDOM(inst) {
|
|
|
167
167
|
}
|
|
168
168
|
const page = runtime.Current.page;
|
|
169
169
|
const path = page === null || page === void 0 ? void 0 : page.path;
|
|
170
|
-
const msg = '
|
|
170
|
+
const msg = '没有找到已经加载了的页面,请在页面加载完成后使用此 API。';
|
|
171
171
|
if (path == null) {
|
|
172
172
|
throw new Error(msg);
|
|
173
173
|
}
|