@tarojs/service 3.3.8 → 3.3.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/package.json +5 -5
- package/types/index.d.ts +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/service",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.9",
|
|
4
4
|
"description": "Taro Service",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"homepage": "https://github.com/NervJS/taro#readme",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@hapi/joi": "17.1.1",
|
|
37
|
-
"@tarojs/helper": "3.3.
|
|
38
|
-
"@tarojs/shared": "3.3.
|
|
39
|
-
"@tarojs/taro": "3.3.
|
|
37
|
+
"@tarojs/helper": "3.3.9",
|
|
38
|
+
"@tarojs/shared": "3.3.9",
|
|
39
|
+
"@tarojs/taro": "3.3.9",
|
|
40
40
|
"fs-extra": "8.1.0",
|
|
41
41
|
"lodash": "4.17.21",
|
|
42
42
|
"resolve": "1.15.1",
|
|
43
43
|
"tapable": "1.1.3"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "dfea7ab7ac6f5abb8bb344595eadc0993d752eae"
|
|
46
46
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export declare interface IPluginContext {
|
|
|
40
40
|
/**
|
|
41
41
|
* 向 ctx 上挂载一个方法可供其他插件直接调用
|
|
42
42
|
*/
|
|
43
|
-
registerMethod: (arg: (string | { name: string, fn?: Function }), fn?: Function) => void
|
|
43
|
+
registerMethod: (arg: (string | { name: string, fn?: Function }), fn?: Function) => void
|
|
44
44
|
/**
|
|
45
45
|
* 注册一个自定义命令
|
|
46
46
|
*/
|
|
@@ -49,6 +49,10 @@ export declare interface IPluginContext {
|
|
|
49
49
|
* 注册一个自定义编译平台
|
|
50
50
|
*/
|
|
51
51
|
registerPlatform: (platform: IPlatform) => void
|
|
52
|
+
/**
|
|
53
|
+
* 触发注册的钩子(使用`ctx.register`方法注册的钩子),传入钩子名和钩子所需参数
|
|
54
|
+
*/
|
|
55
|
+
applyPlugins:(args: string | { name: string; initialVal?: any; opts?: any; })=> Promise<any>
|
|
52
56
|
/**
|
|
53
57
|
* 为插件添加入参校验
|
|
54
58
|
*/
|