@tarojs/service 3.4.6 → 3.4.7
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/Kernel.js +1 -1
- package/package.json +8 -8
- package/src/Kernel.ts +1 -1
- package/types/index.d.ts +1 -1
package/dist/Kernel.js
CHANGED
|
@@ -115,7 +115,7 @@ class Kernel extends events_1.EventEmitter {
|
|
|
115
115
|
if (typeof pluginCtx.optsSchema !== 'function') {
|
|
116
116
|
return;
|
|
117
117
|
}
|
|
118
|
-
const joi = require('
|
|
118
|
+
const joi = require('joi');
|
|
119
119
|
const schema = pluginCtx.optsSchema(joi);
|
|
120
120
|
if (!joi.isSchema(schema)) {
|
|
121
121
|
throw new Error(`插件${pluginCtx.id}中设置参数检查 schema 有误,请检查!`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/service",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.7",
|
|
4
4
|
"description": "Taro Service",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/NervJS/taro#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@
|
|
37
|
-
"@tarojs/
|
|
38
|
-
"@tarojs/
|
|
39
|
-
"
|
|
40
|
-
"
|
|
36
|
+
"@tarojs/helper": "3.4.7",
|
|
37
|
+
"@tarojs/shared": "3.4.7",
|
|
38
|
+
"@tarojs/taro": "3.4.7",
|
|
39
|
+
"fs-extra": "^8.1.0",
|
|
40
|
+
"joi": "^17.6.0",
|
|
41
41
|
"lodash": "^4.17.21",
|
|
42
|
-
"resolve": "^1.
|
|
42
|
+
"resolve": "^1.22.0",
|
|
43
43
|
"tapable": "^1.1.3",
|
|
44
44
|
"webpack-merge": "^4.2.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "bb62ad5d4f099940c8c4d6dfcba9b743bc3d2acf"
|
|
47
47
|
}
|
package/src/Kernel.ts
CHANGED
|
@@ -160,7 +160,7 @@ export default class Kernel extends EventEmitter {
|
|
|
160
160
|
if (typeof pluginCtx.optsSchema !== 'function') {
|
|
161
161
|
return
|
|
162
162
|
}
|
|
163
|
-
const joi = require('
|
|
163
|
+
const joi = require('joi')
|
|
164
164
|
const schema = pluginCtx.optsSchema(joi)
|
|
165
165
|
if (!joi.isSchema(schema)) {
|
|
166
166
|
throw new Error(`插件${pluginCtx.id}中设置参数检查 schema 有误,请检查!`)
|
package/types/index.d.ts
CHANGED