@tarojs/service 3.4.6 → 3.4.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/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('@hapi/joi');
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.6",
3
+ "version": "3.4.9",
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
- "@hapi/joi": "17.1.1",
37
- "@tarojs/helper": "3.4.6",
38
- "@tarojs/shared": "3.4.6",
39
- "@tarojs/taro": "3.4.6",
40
- "fs-extra": "^8.0.1",
36
+ "@tarojs/helper": "3.4.9",
37
+ "@tarojs/shared": "3.4.9",
38
+ "@tarojs/taro": "3.4.9",
39
+ "fs-extra": "^8.1.0",
40
+ "joi": "^17.6.0",
41
41
  "lodash": "^4.17.21",
42
- "resolve": "^1.6.0",
42
+ "resolve": "^1.22.0",
43
43
  "tapable": "^1.1.3",
44
44
  "webpack-merge": "^4.2.2"
45
45
  },
46
- "gitHead": "c12d65079a197af709bfeec2498588291160dfb3"
46
+ "gitHead": "6461e41999b9e2b26a7ec30b8979fa8b6e94198d"
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('@hapi/joi')
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
@@ -1,6 +1,6 @@
1
1
  import helper from '@tarojs/helper'
2
2
  import { IProjectConfig } from '@tarojs/taro/types/compile'
3
- import joi from '@hapi/joi'
3
+ import joi from 'joi'
4
4
 
5
5
  import { IPlugin, IPaths, IHook, ICommand, IPlatform } from '../src/utils/types'
6
6