@mptool/all 0.11.0 → 0.12.0
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/index.d.mts +4 -6
- package/dist/index.d.ts +4 -6
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as cheerio_slim from 'cheerio/slim';
|
|
2
|
-
|
|
3
1
|
declare const writeClipboard: (data?: string) => Promise<void>;
|
|
4
2
|
|
|
5
3
|
/**
|
|
@@ -1118,7 +1116,7 @@ declare const take: <T = unknown>(key: string) => T | undefined;
|
|
|
1118
1116
|
* - 0: 永久有效
|
|
1119
1117
|
* - 数字:过期时间,毫秒
|
|
1120
1118
|
* - `'keep'`: 表示保持上一次缓存时间
|
|
1121
|
-
* - `'once'
|
|
1119
|
+
* - `'once'`: 仅本次启动有效
|
|
1122
1120
|
*/
|
|
1123
1121
|
declare const set: <T = unknown>(key: string, value: T, expire?: number | "keep" | "once") => void;
|
|
1124
1122
|
/**
|
|
@@ -1130,7 +1128,7 @@ declare const set: <T = unknown>(key: string, value: T, expire?: number | "keep"
|
|
|
1130
1128
|
* - 0: 永久有效
|
|
1131
1129
|
* - 数字:过期时间,毫秒
|
|
1132
1130
|
* - `'keep'`: 表示保持上一次缓存时间
|
|
1133
|
-
* - `'once'
|
|
1131
|
+
* - `'once'`: 仅本次启动有效
|
|
1134
1132
|
* @param [asyncCB] 异步回调方法,不填为同步
|
|
1135
1133
|
*/
|
|
1136
1134
|
declare const setAsync: <T = unknown>(key: string, value: T, expire?: number | "keep" | "once") => Promise<WechatMiniprogram.GeneralCallbackResult | void>;
|
|
@@ -1881,7 +1879,7 @@ declare class Element extends NodeWithChildren {
|
|
|
1881
1879
|
"x-attribsPrefix"?: Record<string, string>;
|
|
1882
1880
|
}
|
|
1883
1881
|
|
|
1884
|
-
declare const
|
|
1882
|
+
declare const getHTML: (content: string | AnyNode | AnyNode[]) => string;
|
|
1885
1883
|
declare const parseHTML: (content: string) => AnyNode[];
|
|
1886
1884
|
|
|
1887
1885
|
interface ElementNode {
|
|
@@ -1917,5 +1915,5 @@ declare const convertSVGToDataURI: (content: string) => string;
|
|
|
1917
1915
|
|
|
1918
1916
|
declare const getText: (content: string | AnyNode[]) => string;
|
|
1919
1917
|
|
|
1920
|
-
export {
|
|
1918
|
+
export { $App, $Component, $Config, $Page, ALLOWED_TAGS, Cookie, CookieStore, Emitter, Headers, MpError$1 as MpError, Queue, URLSearchParams, addContact, appState, check, checkAsync, compareVersion, confirm, convertSVGToDataURI, createRequest, decode as decodeBase64, dirname, download, userEmitter as emitter, encode as encodeBase64, env, exists, funcQueue, get, getAsync, getConfig, getCookieScopeDomain, getCurrentPage, getCurrentRoute, getDomain, getHTML, getRef, getRichTextNodes, getText, getUrlInfo, getWindowInfo, go, handleProperties, isDir, isFile, isFunction, lock, logger, ls, mkdir, normalizeDomain, once, openDocument, parseCookieHeader, parseHTML, parseUrl, put, query, reLaunch, readFile, readJSON, redirect, remove, removeAsync, removeRef, reportNetworkStatus, request, requestCookieStore, retry, rm, saveDocument, saveFile, saveOnlineFile, savePhoto, set, setAsync, setRef, showModal, showToast, storage, switchTab, take, type, unzip, updateApp, wrapFunction, writeClipboard, writeFile, writeJSON };
|
|
1921
1919
|
export type { AllowTag, AppConfigCommonOptions, AppConfigOptions, AppConstructor, AppInstance, AppOptions, ComponentConstructor, ComponentInstance, ComponentLifetimes, ComponentOptions, Config, ConvertedTag, CookieMap, CookieOptions, CookieStoreType, CookieType, DeprecatedTag, ElementNode, EmitterInstance, Env, EventHandlerList, EventHandlerMap, EventType, ExtendedAppMethods, ExtendedComponentMethods, ExtendedComponentProperty, ExtendedPageLifeCycles, ExtendedPageMethods, ExtendedPageProperties, ExtendsAppOptions, Handler, HeadersInit, InferFromType, InferPropType, InferPropTypes, MpErrorOptions$1 as MpErrorOptions, PageConstructor, PageInstance, PageOptions, PageQuery, PageState, PropItem, PropOption, PropType, Props, PropsOptions, RefMap, RequestBody, RequestFactory, RequestInitOptions, RequestOptions, RequestResponse, RequestType, RichTextNode, RouteCustomConfig, RoutePathConfig, SetCookieOptions, StorageData, Task, TextNode, TrivialComponentInstance, TrivialComponentOptions, TrivialPageInstance, TrivialPageOptions, UpdateInfo, UrlInfo, WildCardEventHandlerList, WildcardHandler };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as cheerio_slim from 'cheerio/slim';
|
|
2
|
-
|
|
3
1
|
declare const writeClipboard: (data?: string) => Promise<void>;
|
|
4
2
|
|
|
5
3
|
/**
|
|
@@ -1118,7 +1116,7 @@ declare const take: <T = unknown>(key: string) => T | undefined;
|
|
|
1118
1116
|
* - 0: 永久有效
|
|
1119
1117
|
* - 数字:过期时间,毫秒
|
|
1120
1118
|
* - `'keep'`: 表示保持上一次缓存时间
|
|
1121
|
-
* - `'once'
|
|
1119
|
+
* - `'once'`: 仅本次启动有效
|
|
1122
1120
|
*/
|
|
1123
1121
|
declare const set: <T = unknown>(key: string, value: T, expire?: number | "keep" | "once") => void;
|
|
1124
1122
|
/**
|
|
@@ -1130,7 +1128,7 @@ declare const set: <T = unknown>(key: string, value: T, expire?: number | "keep"
|
|
|
1130
1128
|
* - 0: 永久有效
|
|
1131
1129
|
* - 数字:过期时间,毫秒
|
|
1132
1130
|
* - `'keep'`: 表示保持上一次缓存时间
|
|
1133
|
-
* - `'once'
|
|
1131
|
+
* - `'once'`: 仅本次启动有效
|
|
1134
1132
|
* @param [asyncCB] 异步回调方法,不填为同步
|
|
1135
1133
|
*/
|
|
1136
1134
|
declare const setAsync: <T = unknown>(key: string, value: T, expire?: number | "keep" | "once") => Promise<WechatMiniprogram.GeneralCallbackResult | void>;
|
|
@@ -1881,7 +1879,7 @@ declare class Element extends NodeWithChildren {
|
|
|
1881
1879
|
"x-attribsPrefix"?: Record<string, string>;
|
|
1882
1880
|
}
|
|
1883
1881
|
|
|
1884
|
-
declare const
|
|
1882
|
+
declare const getHTML: (content: string | AnyNode | AnyNode[]) => string;
|
|
1885
1883
|
declare const parseHTML: (content: string) => AnyNode[];
|
|
1886
1884
|
|
|
1887
1885
|
interface ElementNode {
|
|
@@ -1917,5 +1915,5 @@ declare const convertSVGToDataURI: (content: string) => string;
|
|
|
1917
1915
|
|
|
1918
1916
|
declare const getText: (content: string | AnyNode[]) => string;
|
|
1919
1917
|
|
|
1920
|
-
export {
|
|
1918
|
+
export { $App, $Component, $Config, $Page, ALLOWED_TAGS, Cookie, CookieStore, Emitter, Headers, MpError$1 as MpError, Queue, URLSearchParams, addContact, appState, check, checkAsync, compareVersion, confirm, convertSVGToDataURI, createRequest, decode as decodeBase64, dirname, download, userEmitter as emitter, encode as encodeBase64, env, exists, funcQueue, get, getAsync, getConfig, getCookieScopeDomain, getCurrentPage, getCurrentRoute, getDomain, getHTML, getRef, getRichTextNodes, getText, getUrlInfo, getWindowInfo, go, handleProperties, isDir, isFile, isFunction, lock, logger, ls, mkdir, normalizeDomain, once, openDocument, parseCookieHeader, parseHTML, parseUrl, put, query, reLaunch, readFile, readJSON, redirect, remove, removeAsync, removeRef, reportNetworkStatus, request, requestCookieStore, retry, rm, saveDocument, saveFile, saveOnlineFile, savePhoto, set, setAsync, setRef, showModal, showToast, storage, switchTab, take, type, unzip, updateApp, wrapFunction, writeClipboard, writeFile, writeJSON };
|
|
1921
1919
|
export type { AllowTag, AppConfigCommonOptions, AppConfigOptions, AppConstructor, AppInstance, AppOptions, ComponentConstructor, ComponentInstance, ComponentLifetimes, ComponentOptions, Config, ConvertedTag, CookieMap, CookieOptions, CookieStoreType, CookieType, DeprecatedTag, ElementNode, EmitterInstance, Env, EventHandlerList, EventHandlerMap, EventType, ExtendedAppMethods, ExtendedComponentMethods, ExtendedComponentProperty, ExtendedPageLifeCycles, ExtendedPageMethods, ExtendedPageProperties, ExtendsAppOptions, Handler, HeadersInit, InferFromType, InferPropType, InferPropTypes, MpErrorOptions$1 as MpErrorOptions, PageConstructor, PageInstance, PageOptions, PageQuery, PageState, PropItem, PropOption, PropType, Props, PropsOptions, RefMap, RequestBody, RequestFactory, RequestInitOptions, RequestOptions, RequestResponse, RequestType, RichTextNode, RouteCustomConfig, RoutePathConfig, SetCookieOptions, StorageData, Task, TextNode, TrivialComponentInstance, TrivialComponentOptions, TrivialPageInstance, TrivialPageOptions, UpdateInfo, UrlInfo, WildCardEventHandlerList, WildcardHandler };
|