@tarojs/taro-h5 3.5.7-alpha.7 → 3.5.7-alpha.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.
- package/dist/api/device/scan.d.ts +1 -1
- package/dist/api/location/getLocation.d.ts +1 -1
- package/dist/api/location/index.d.ts +1 -1
- package/dist/index.cjs.d.ts +3 -3
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.d.ts +3 -3
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/taroApis.d.ts +3 -3
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/package.json +4 -4
package/dist/index.esm.d.ts
CHANGED
|
@@ -269,7 +269,7 @@ declare const makePhoneCall: typeof Taro.makePhoneCall;
|
|
|
269
269
|
// 扫码
|
|
270
270
|
declare const scanCode: (options?: Partial<{
|
|
271
271
|
needResult: number;
|
|
272
|
-
}
|
|
272
|
+
}>, ...args: any[]) => Promise<any>;
|
|
273
273
|
// 屏幕
|
|
274
274
|
declare const setVisualEffectOnCapture: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
275
275
|
declare const setScreenBrightness: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -318,12 +318,12 @@ declare const startLocationUpdateBackground: (option?: {}, ...args: any[]) => Pr
|
|
|
318
318
|
declare const startLocationUpdate: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
319
319
|
declare const openLocation: (options?: Partial<{
|
|
320
320
|
scale: number;
|
|
321
|
-
}
|
|
321
|
+
}>, ...args: any[]) => Promise<any>;
|
|
322
322
|
declare const onLocationChangeError: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
323
323
|
declare const onLocationChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
324
324
|
declare const offLocationChangeError: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
325
325
|
declare const offLocationChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
326
|
-
declare const getLocation: (options?: Partial<Taro.getLocation.Option
|
|
326
|
+
declare const getLocation: (options?: Partial<Taro.getLocation.Option>, ...args: any[]) => Promise<Taro.getLocation.SuccessCallbackResult>;
|
|
327
327
|
declare const choosePoi: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
328
328
|
declare const getFuzzyLocation: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
329
329
|
/**
|
package/dist/index.esm.js
CHANGED
|
@@ -273,7 +273,7 @@ function permanentlyNotSupport(name = '') {
|
|
|
273
273
|
}
|
|
274
274
|
function processOpenApi({ name, defaultOptions, standardMethod, formatOptions = options => options, formatResult = res => res }) {
|
|
275
275
|
const notSupported = weixinCorpSupport(name);
|
|
276
|
-
return (options = {}) => {
|
|
276
|
+
return (options = {}, ...args) => {
|
|
277
277
|
var _a;
|
|
278
278
|
// @ts-ignore
|
|
279
279
|
const targetApi = (_a = window === null || window === void 0 ? void 0 : window.wx) === null || _a === void 0 ? void 0 : _a[name];
|
|
@@ -299,7 +299,7 @@ function processOpenApi({ name, defaultOptions, standardMethod, formatOptions =
|
|
|
299
299
|
return standardMethod(opts);
|
|
300
300
|
}
|
|
301
301
|
else {
|
|
302
|
-
return notSupported();
|
|
302
|
+
return notSupported(options, ...args);
|
|
303
303
|
}
|
|
304
304
|
};
|
|
305
305
|
}
|