@tarojs/runtime 3.5.7-alpha.9 → 3.5.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/runtime",
3
- "version": "3.5.7-alpha.9",
3
+ "version": "3.5.8",
4
4
  "description": "taro runtime for mini apps.",
5
5
  "main": "dist/runtime.esm.js",
6
6
  "module": "dist/runtime.esm.js",
@@ -18,11 +18,8 @@
18
18
  "access": "public"
19
19
  },
20
20
  "dependencies": {
21
- "@tarojs/shared": "3.5.7-alpha.9",
22
- "lodash-es": "4.17.21"
23
- },
24
- "devDependencies": {
25
- "tslib": "^2.4.0"
21
+ "lodash-es": "4.17.21",
22
+ "@tarojs/shared": "3.5.8"
26
23
  },
27
24
  "scripts": {
28
25
  "build": "rimraf ./dist && tsc -emitDeclarationOnly && rollup -c",
@@ -1,14 +0,0 @@
1
- export declare class URLSearchParams {
2
- #private;
3
- constructor(query: any);
4
- append(name: string, value: string): void;
5
- delete(name: string): void;
6
- get(name: string): any;
7
- getAll(name: string): any;
8
- has(name: string): boolean;
9
- keys(): string[];
10
- set(name: string, value: string): void;
11
- forEach(callback: any, thisArg: any): void;
12
- toJSON(): {};
13
- toString(): string;
14
- }
@@ -1,29 +0,0 @@
1
- import { Events } from '../emitter/emitter';
2
- import { RuntimeCache } from '../utils/cache';
3
- import type * as LocationType from './location';
4
- export interface HistoryState {
5
- state: Record<string, any> | null;
6
- title: string;
7
- url: string;
8
- }
9
- declare type Options = {
10
- window: any;
11
- };
12
- declare type HistoryContext = {
13
- location: LocationType.Location;
14
- stack: HistoryState[];
15
- cur: number;
16
- };
17
- export declare class History extends Events {
18
- #private;
19
- constructor(location: LocationType.Location, options: Options);
20
- get length(): number;
21
- get state(): HistoryState;
22
- go(delta: number): void;
23
- back(): void;
24
- forward(): void;
25
- pushState(state: any, title: string, url: string): void;
26
- replaceState(state: any, title: string, url: string): void;
27
- get cache(): RuntimeCache<HistoryContext>;
28
- }
29
- export {};
@@ -1,36 +0,0 @@
1
- import { Events } from '../emitter/emitter';
2
- import { RuntimeCache } from '../utils/cache';
3
- declare type Options = {
4
- window: any;
5
- };
6
- declare type LocationContext = {
7
- lastHref: string;
8
- };
9
- export declare class Location extends Events {
10
- #private;
11
- constructor(options: Options);
12
- get protocol(): string;
13
- set protocol(val: string);
14
- get host(): string;
15
- set host(val: string);
16
- get hostname(): string;
17
- set hostname(val: string);
18
- get port(): string;
19
- set port(val: string);
20
- get pathname(): string;
21
- set pathname(val: string);
22
- get search(): string;
23
- set search(val: string);
24
- get hash(): string;
25
- set hash(val: string);
26
- get href(): string;
27
- set href(val: string);
28
- get origin(): string;
29
- set origin(val: string);
30
- assign(): void;
31
- reload(): void;
32
- replace(val: string): void;
33
- toString(): string;
34
- get cache(): RuntimeCache<LocationContext>;
35
- }
36
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * 一个小型缓存池,用于在切换页面时,存储一些上下文信息
3
- */
4
- export declare class RuntimeCache<T> {
5
- name: string;
6
- cache: Map<string, T>;
7
- constructor(name: string);
8
- has(identifier: string): boolean;
9
- set(identifier: string, ctx: T): void;
10
- get(identifier: string): T | undefined;
11
- delete(identifier: string): void;
12
- }