@tarojs/runtime 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/bom/raf.d.ts +1 -1
- package/dist/bom/window.d.ts +2 -2
- package/dist/index.cjs.d.ts +3 -3
- package/dist/runtime.esm.d.ts +3 -3
- package/package.json +3 -3
package/dist/bom/raf.d.ts
CHANGED
package/dist/bom/window.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { TaroHistory } from "./history.js";
|
|
|
3
3
|
import { TaroLocation } from "./location.js";
|
|
4
4
|
declare class TaroWindow extends Events {
|
|
5
5
|
navigator: Navigator;
|
|
6
|
-
requestAnimationFrame: typeof requestAnimationFrame;
|
|
6
|
+
requestAnimationFrame: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timeout);
|
|
7
7
|
cancelAnimationFrame: typeof cancelAnimationFrame;
|
|
8
8
|
getComputedStyle: import("./getComputedStyle.js").TGetComputedStyle;
|
|
9
9
|
Date: DateConstructor;
|
|
@@ -15,7 +15,7 @@ declare class TaroWindow extends Events {
|
|
|
15
15
|
get document(): import("../dom/document.js").TaroDocument;
|
|
16
16
|
addEventListener(event: string, callback: (arg: any) => void): void;
|
|
17
17
|
removeEventListener(event: string, callback: (arg: any) => void): void;
|
|
18
|
-
setTimeout(...args: Parameters<typeof setTimeout>):
|
|
18
|
+
setTimeout(...args: Parameters<typeof setTimeout>): NodeJS.Timeout;
|
|
19
19
|
clearTimeout(...args: Parameters<typeof clearTimeout>): void;
|
|
20
20
|
}
|
|
21
21
|
declare const window: TaroWindow;
|
package/dist/index.cjs.d.ts
CHANGED
|
@@ -420,7 +420,7 @@ declare const nav: typeof window.navigator;
|
|
|
420
420
|
declare let now: () => number;
|
|
421
421
|
// https://gist.github.com/paulirish/1579671
|
|
422
422
|
// https://gist.github.com/jalbam/5fe05443270fa6d8136238ec72accbc0
|
|
423
|
-
declare const _raf: typeof requestAnimationFrame;
|
|
423
|
+
declare const _raf: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timeout);
|
|
424
424
|
declare const _caf: typeof cancelAnimationFrame;
|
|
425
425
|
declare class TaroURL {
|
|
426
426
|
#private;
|
|
@@ -478,7 +478,7 @@ declare function parseUrl(url?: string): {
|
|
|
478
478
|
declare const URLSearchParams: any;
|
|
479
479
|
declare class TaroWindow extends Events {
|
|
480
480
|
navigator: Navigator;
|
|
481
|
-
requestAnimationFrame: typeof requestAnimationFrame;
|
|
481
|
+
requestAnimationFrame: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timeout);
|
|
482
482
|
cancelAnimationFrame: typeof cancelAnimationFrame;
|
|
483
483
|
getComputedStyle: TGetComputedStyle;
|
|
484
484
|
Date: DateConstructor;
|
|
@@ -490,7 +490,7 @@ declare class TaroWindow extends Events {
|
|
|
490
490
|
get document(): TaroDocument;
|
|
491
491
|
addEventListener(event: string, callback: (arg: any) => void): void;
|
|
492
492
|
removeEventListener(event: string, callback: (arg: any) => void): void;
|
|
493
|
-
setTimeout(...args: Parameters<typeof setTimeout>):
|
|
493
|
+
setTimeout(...args: Parameters<typeof setTimeout>): NodeJS.Timeout;
|
|
494
494
|
clearTimeout(...args: Parameters<typeof clearTimeout>): void;
|
|
495
495
|
}
|
|
496
496
|
declare const window: TaroWindow;
|
package/dist/runtime.esm.d.ts
CHANGED
|
@@ -420,7 +420,7 @@ declare const nav: typeof window.navigator;
|
|
|
420
420
|
declare let now: () => number;
|
|
421
421
|
// https://gist.github.com/paulirish/1579671
|
|
422
422
|
// https://gist.github.com/jalbam/5fe05443270fa6d8136238ec72accbc0
|
|
423
|
-
declare const _raf: typeof requestAnimationFrame;
|
|
423
|
+
declare const _raf: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timeout);
|
|
424
424
|
declare const _caf: typeof cancelAnimationFrame;
|
|
425
425
|
declare class TaroURL {
|
|
426
426
|
#private;
|
|
@@ -478,7 +478,7 @@ declare function parseUrl(url?: string): {
|
|
|
478
478
|
declare const URLSearchParams: any;
|
|
479
479
|
declare class TaroWindow extends Events {
|
|
480
480
|
navigator: Navigator;
|
|
481
|
-
requestAnimationFrame: typeof requestAnimationFrame;
|
|
481
|
+
requestAnimationFrame: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timeout);
|
|
482
482
|
cancelAnimationFrame: typeof cancelAnimationFrame;
|
|
483
483
|
getComputedStyle: TGetComputedStyle;
|
|
484
484
|
Date: DateConstructor;
|
|
@@ -490,7 +490,7 @@ declare class TaroWindow extends Events {
|
|
|
490
490
|
get document(): TaroDocument;
|
|
491
491
|
addEventListener(event: string, callback: (arg: any) => void): void;
|
|
492
492
|
removeEventListener(event: string, callback: (arg: any) => void): void;
|
|
493
|
-
setTimeout(...args: Parameters<typeof setTimeout>):
|
|
493
|
+
setTimeout(...args: Parameters<typeof setTimeout>): NodeJS.Timeout;
|
|
494
494
|
clearTimeout(...args: Parameters<typeof clearTimeout>): void;
|
|
495
495
|
}
|
|
496
496
|
declare const window: TaroWindow;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/runtime",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.26",
|
|
4
4
|
"description": "taro runtime for mini apps.",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/runtime.esm.js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"rollup-plugin-ts": "^3.0.2",
|
|
36
36
|
"ts-jest": "^29.0.5",
|
|
37
37
|
"typescript": "^4.7.4",
|
|
38
|
-
"@tarojs/shared": "3.6.
|
|
38
|
+
"@tarojs/shared": "3.6.26"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@tarojs/shared": "~3.6.
|
|
41
|
+
"@tarojs/shared": "~3.6.26"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"prebuild": "pnpm run clean",
|