@tarojs/taro-h5 3.5.7-alpha.0 → 3.5.7-alpha.10
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/taroApis.d.ts
CHANGED
|
@@ -262,7 +262,7 @@ declare const makePhoneCall: typeof Taro.makePhoneCall;
|
|
|
262
262
|
// 扫码
|
|
263
263
|
declare const scanCode: (options?: Partial<{
|
|
264
264
|
needResult: number;
|
|
265
|
-
}
|
|
265
|
+
}>, ...args: any[]) => Promise<any>;
|
|
266
266
|
// 屏幕
|
|
267
267
|
declare const setVisualEffectOnCapture: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
268
268
|
declare const setScreenBrightness: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -311,12 +311,12 @@ declare const startLocationUpdateBackground: (option?: {}, ...args: any[]) => Pr
|
|
|
311
311
|
declare const startLocationUpdate: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
312
312
|
declare const openLocation: (options?: Partial<{
|
|
313
313
|
scale: number;
|
|
314
|
-
}
|
|
314
|
+
}>, ...args: any[]) => Promise<any>;
|
|
315
315
|
declare const onLocationChangeError: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
316
316
|
declare const onLocationChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
317
317
|
declare const offLocationChangeError: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
318
318
|
declare const offLocationChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
319
|
-
declare const getLocation: (options?: Partial<Taro.getLocation.Option
|
|
319
|
+
declare const getLocation: (options?: Partial<Taro.getLocation.Option>, ...args: any[]) => Promise<Taro.getLocation.SuccessCallbackResult>;
|
|
320
320
|
declare const choosePoi: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
321
321
|
declare const getFuzzyLocation: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
322
322
|
/**
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare function inlineStyle(style: any): string;
|
|
|
19
19
|
export declare function setTransform(el: any, val: any): void;
|
|
20
20
|
export declare function serializeParams(params: any): string;
|
|
21
21
|
export declare function temporarilyNotSupport(name?: string): (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
22
|
-
export declare function weixinCorpSupport(name:
|
|
22
|
+
export declare function weixinCorpSupport(name: string): (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
23
23
|
export declare function permanentlyNotSupport(name?: string): (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
24
24
|
interface IProcessOpenApi<TOptions = Record<string, unknown>, TResult extends TaroGeneral.CallbackResult = any> {
|
|
25
25
|
name: string;
|
|
@@ -28,7 +28,7 @@ interface IProcessOpenApi<TOptions = Record<string, unknown>, TResult extends Ta
|
|
|
28
28
|
formatOptions?: (opts: TOptions) => TOptions;
|
|
29
29
|
formatResult?: (res: TResult) => TResult;
|
|
30
30
|
}
|
|
31
|
-
export declare function processOpenApi<TOptions = Record<string, unknown>, TResult extends TaroGeneral.CallbackResult = any>({ name, defaultOptions, standardMethod, formatOptions, formatResult }: IProcessOpenApi<TOptions, TResult>): (options?: Partial<TOptions
|
|
31
|
+
export declare function processOpenApi<TOptions = Record<string, unknown>, TResult extends TaroGeneral.CallbackResult = any>({ name, defaultOptions, standardMethod, formatOptions, formatResult }: IProcessOpenApi<TOptions, TResult>): (options?: Partial<TOptions>, ...args: any[]) => Promise<TResult>;
|
|
32
32
|
export * from './animation';
|
|
33
33
|
export * from './lodash';
|
|
34
34
|
export * from './valid';
|
package/dist/utils/index.js
CHANGED
|
@@ -132,7 +132,7 @@ export function permanentlyNotSupport(name = '') {
|
|
|
132
132
|
}
|
|
133
133
|
export function processOpenApi({ name, defaultOptions, standardMethod, formatOptions = options => options, formatResult = res => res }) {
|
|
134
134
|
const notSupported = weixinCorpSupport(name);
|
|
135
|
-
return (options = {}) => {
|
|
135
|
+
return (options = {}, ...args) => {
|
|
136
136
|
var _a;
|
|
137
137
|
// @ts-ignore
|
|
138
138
|
const targetApi = (_a = window === null || window === void 0 ? void 0 : window.wx) === null || _a === void 0 ? void 0 : _a[name];
|
|
@@ -158,7 +158,7 @@ export function processOpenApi({ name, defaultOptions, standardMethod, formatOpt
|
|
|
158
158
|
return standardMethod(opts);
|
|
159
159
|
}
|
|
160
160
|
else {
|
|
161
|
-
return notSupported();
|
|
161
|
+
return notSupported(options, ...args);
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/taro-h5",
|
|
3
|
-
"version": "3.5.7-alpha.
|
|
3
|
+
"version": "3.5.7-alpha.10",
|
|
4
4
|
"description": "Taro h5 framework",
|
|
5
5
|
"browser": "dist/index.esm.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"author": "O2Team",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@tarojs/api": "3.5.7-alpha.
|
|
27
|
-
"@tarojs/router": "3.5.7-alpha.
|
|
28
|
-
"@tarojs/runtime": "3.5.7-alpha.
|
|
26
|
+
"@tarojs/api": "3.5.7-alpha.10",
|
|
27
|
+
"@tarojs/router": "3.5.7-alpha.10",
|
|
28
|
+
"@tarojs/runtime": "3.5.7-alpha.10",
|
|
29
29
|
"base64-js": "^1.3.0",
|
|
30
30
|
"jsonp-retry": "^1.0.3",
|
|
31
31
|
"query-string": "^7.1.1",
|