提交 1737c796 编写于 作者: fxy060608's avatar fxy060608

build(deps): bump vite from 2.9.0 to 2.9.1

上级 dffa477a
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
"semver": "^7.3.5", "semver": "^7.3.5",
"ts-jest": "^27.0.3", "ts-jest": "^27.0.3",
"typescript": "4.6.3", "typescript": "4.6.3",
"vite": "^2.9.0", "vite": "^2.9.1",
"vue": "3.2.31", "vue": "3.2.31",
"vue-router": "^4.0.14", "vue-router": "^4.0.14",
"yorkie": "^2.0.0" "yorkie": "^2.0.0"
......
...@@ -21,6 +21,6 @@ ...@@ -21,6 +21,6 @@
"compression": "^1.7.4", "compression": "^1.7.4",
"cypress": "^7.3.0", "cypress": "^7.3.0",
"serve-static": "^1.14.1", "serve-static": "^1.14.1",
"vite": "^2.9.0" "vite": "^2.9.1"
} }
} }
因为 它太大了无法显示 source diff 。你可以改为 查看blob
...@@ -12920,7 +12920,7 @@ function setTabBarBadge$1(type, index, text) { ...@@ -12920,7 +12920,7 @@ function setTabBarBadge$1(type, index, text) {
/** /**
* 动态设置 tabBar 某一项的内容 * 动态设置 tabBar 某一项的内容
*/ */
function setTabBarItem$1(index, text, iconPath, selectedIconPath, visible) { function setTabBarItem$1(index, text, iconPath, selectedIconPath, visible, iconfont) {
const item = { const item = {
index, index,
}; };
...@@ -12933,6 +12933,9 @@ function setTabBarItem$1(index, text, iconPath, selectedIconPath, visible) { ...@@ -12933,6 +12933,9 @@ function setTabBarItem$1(index, text, iconPath, selectedIconPath, visible) {
if (selectedIconPath) { if (selectedIconPath) {
item.selectedIconPath = getRealPath(selectedIconPath); item.selectedIconPath = getRealPath(selectedIconPath);
} }
if (iconfont !== undefined) {
item.iconfont = iconfont;
}
if (visible !== undefined) { if (visible !== undefined) {
item.visible = config.list[index].visible = visible; item.visible = config.list[index].visible = visible;
delete item.index; delete item.index;
...@@ -15994,8 +15997,8 @@ const setTabBarBadge = defineAsyncApi(API_SET_TAB_BAR_BADGE, ({ index, text }, { ...@@ -15994,8 +15997,8 @@ const setTabBarBadge = defineAsyncApi(API_SET_TAB_BAR_BADGE, ({ index, text }, {
tabBarInstance.setTabBarBadge('text', index, text); tabBarInstance.setTabBarBadge('text', index, text);
resolve(); resolve();
}, SetTabBarBadgeProtocol, SetTabBarBadgeOptions); }, SetTabBarBadgeProtocol, SetTabBarBadgeOptions);
const setTabBarItem = defineAsyncApi(API_SET_TAB_BAR_ITEM, ({ index, text, iconPath, selectedIconPath, pagePath, visible }, { resolve, reject }) => { const setTabBarItem = defineAsyncApi(API_SET_TAB_BAR_ITEM, ({ index, text, iconPath, selectedIconPath, pagePath, visible, iconfont }, { resolve, reject }) => {
tabBarInstance.setTabBarItem(index, text, iconPath, selectedIconPath, visible); tabBarInstance.setTabBarItem(index, text, iconPath, selectedIconPath, visible, iconfont);
const route = pagePath && __uniRoutes.find(({ path }) => path === pagePath); const route = pagePath && __uniRoutes.find(({ path }) => path === pagePath);
if (route) { if (route) {
const meta = route.meta; const meta = route.meta;
......
...@@ -655,7 +655,8 @@ function normalizeLog(type, filename, args) { ...@@ -655,7 +655,8 @@ function normalizeLog(type, filename, args) {
} }
const msgs = args.map(function (v) { const msgs = args.map(function (v) {
const type = shared.toTypeString(v).toLowerCase(); const type = shared.toTypeString(v).toLowerCase();
if (type === '[object object]' || type === '[object array]') { if (['[object object]', '[object array]', '[object module]'].indexOf(type) !==
-1) {
try { try {
v = v =
'---BEGIN:JSON---' + '---BEGIN:JSON---' +
......
...@@ -651,7 +651,8 @@ function normalizeLog(type, filename, args) { ...@@ -651,7 +651,8 @@ function normalizeLog(type, filename, args) {
} }
const msgs = args.map(function (v) { const msgs = args.map(function (v) {
const type = toTypeString(v).toLowerCase(); const type = toTypeString(v).toLowerCase();
if (type === '[object object]' || type === '[object array]') { if (['[object object]', '[object array]', '[object module]'].indexOf(type) !==
-1) {
try { try {
v = v =
'---BEGIN:JSON---' + '---BEGIN:JSON---' +
......
...@@ -1233,9 +1233,9 @@ function main() { ...@@ -1233,9 +1233,9 @@ function main() {
{ {
console.log('uni统计开启,version:2'); console.log('uni统计开启,version:2');
} }
// if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// uni.report = function(type, options) {} uni.report = function(type, options) {};
// } else { } else {
// #ifdef VUE3 // #ifdef VUE3
uni.onCreateVueApp((app) => { uni.onCreateVueApp((app) => {
app.mixin(lifecycle); app.mixin(lifecycle);
...@@ -1261,7 +1261,7 @@ function main() { ...@@ -1261,7 +1261,7 @@ function main() {
stat.sendEvent(type, options); stat.sendEvent(type, options);
}; };
// #endif // #endif
// } }
} }
main(); main();
...@@ -1231,9 +1231,9 @@ function main() { ...@@ -1231,9 +1231,9 @@ function main() {
{ {
console.log('uni统计开启,version:2'); console.log('uni统计开启,version:2');
} }
// if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// uni.report = function(type, options) {} uni.report = function(type, options) {};
// } else { } else {
// #ifdef VUE3 // #ifdef VUE3
uni.onCreateVueApp((app) => { uni.onCreateVueApp((app) => {
app.mixin(lifecycle); app.mixin(lifecycle);
...@@ -1259,7 +1259,7 @@ function main() { ...@@ -1259,7 +1259,7 @@ function main() {
stat.sendEvent(type, options); stat.sendEvent(type, options);
}; };
// #endif // #endif
// } }
} }
main(); main();
...@@ -1248,9 +1248,9 @@ function main() { ...@@ -1248,9 +1248,9 @@ function main() {
{ {
console.log('uni统计开启,version:1'); console.log('uni统计开启,version:1');
} }
// if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// uni.report = function(type, options) {} uni.report = function(type, options) {};
// } else { } else {
// #ifdef VUE3 // #ifdef VUE3
uni.onCreateVueApp((app) => { uni.onCreateVueApp((app) => {
app.mixin(lifecycle); app.mixin(lifecycle);
...@@ -1276,7 +1276,7 @@ function main() { ...@@ -1276,7 +1276,7 @@ function main() {
stat.sendEvent(type, options); stat.sendEvent(type, options);
}; };
// #endif // #endif
// } }
} }
main(); main();
...@@ -1246,9 +1246,9 @@ function main() { ...@@ -1246,9 +1246,9 @@ function main() {
{ {
console.log('uni统计开启,version:1'); console.log('uni统计开启,version:1');
} }
// if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// uni.report = function(type, options) {} uni.report = function(type, options) {};
// } else { } else {
// #ifdef VUE3 // #ifdef VUE3
uni.onCreateVueApp((app) => { uni.onCreateVueApp((app) => {
app.mixin(lifecycle); app.mixin(lifecycle);
...@@ -1274,7 +1274,7 @@ function main() { ...@@ -1274,7 +1274,7 @@ function main() {
stat.sendEvent(type, options); stat.sendEvent(type, options);
}; };
// #endif // #endif
// } }
} }
main(); main();
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
"chokidar": "^3.5.3" "chokidar": "^3.5.3"
}, },
"peerDependencies": { "peerDependencies": {
"vite": "^2.9.0" "vite": "^2.9.1"
}, },
"uni-app": { "uni-app": {
"compilerVersion": "3.4.3" "compilerVersion": "3.4.3"
......
...@@ -5,7 +5,7 @@ importers: ...@@ -5,7 +5,7 @@ importers:
.: .:
specifiers: specifiers:
'@babel/preset-env': ^7.16.11 '@babel/preset-env': ^7.16.11
'@dcloudio/types': ^2.5.18 '@dcloudio/types': ^2.5.19
'@dcloudio/uni-api': 3.0.0-alpha-3040320220325006 '@dcloudio/uni-api': 3.0.0-alpha-3040320220325006
'@dcloudio/uni-app': 3.0.0-alpha-3040320220325006 '@dcloudio/uni-app': 3.0.0-alpha-3040320220325006
'@jest/types': ^27.0.2 '@jest/types': ^27.0.2
...@@ -47,13 +47,13 @@ importers: ...@@ -47,13 +47,13 @@ importers:
semver: ^7.3.5 semver: ^7.3.5
ts-jest: ^27.0.3 ts-jest: ^27.0.3
typescript: 4.6.3 typescript: 4.6.3
vite: ^2.9.0 vite: ^2.9.1
vue: 3.2.31 vue: 3.2.31
vue-router: ^4.0.14 vue-router: ^4.0.14
yorkie: ^2.0.0 yorkie: ^2.0.0
devDependencies: devDependencies:
'@babel/preset-env': 7.16.11 '@babel/preset-env': 7.16.11
'@dcloudio/types': 2.5.18 '@dcloudio/types': 2.5.19
'@dcloudio/uni-api': link:packages/uni-api '@dcloudio/uni-api': link:packages/uni-api
'@dcloudio/uni-app': link:packages/uni-app '@dcloudio/uni-app': link:packages/uni-app
'@jest/types': 27.4.2 '@jest/types': 27.4.2
...@@ -67,7 +67,7 @@ importers: ...@@ -67,7 +67,7 @@ importers:
'@rollup/plugin-strip': 2.1.0_rollup@2.60.2 '@rollup/plugin-strip': 2.1.0_rollup@2.60.2
'@types/jest': 26.0.24 '@types/jest': 26.0.24
'@typescript-eslint/parser': 5.14.0_eslint@7.32.0+typescript@4.6.3 '@typescript-eslint/parser': 5.14.0_eslint@7.32.0+typescript@4.6.3
'@vitejs/plugin-vue': 2.3.1_vite@2.9.0+vue@3.2.31 '@vitejs/plugin-vue': 2.3.1_vite@2.9.1+vue@3.2.31
'@vitejs/plugin-vue-jsx': 1.3.9 '@vitejs/plugin-vue-jsx': 1.3.9
'@vue/reactivity': 3.2.31 '@vue/reactivity': 3.2.31
'@vue/runtime-core': 3.2.31 '@vue/runtime-core': 3.2.31
...@@ -95,7 +95,7 @@ importers: ...@@ -95,7 +95,7 @@ importers:
semver: 7.3.5 semver: 7.3.5
ts-jest: 27.1.0_2528360f5083edd4f29e3d452ccadc0f ts-jest: 27.1.0_2528360f5083edd4f29e3d452ccadc0f
typescript: 4.6.3 typescript: 4.6.3
vite: 2.9.0 vite: 2.9.1
vue: 3.2.31 vue: 3.2.31
vue-router: 4.0.14_vue@3.2.31 vue-router: 4.0.14_vue@3.2.31
yorkie: 2.0.0 yorkie: 2.0.0
...@@ -109,7 +109,7 @@ importers: ...@@ -109,7 +109,7 @@ importers:
compression: ^1.7.4 compression: ^1.7.4
cypress: ^7.3.0 cypress: ^7.3.0
serve-static: ^1.14.1 serve-static: ^1.14.1
vite: ^2.9.0 vite: ^2.9.1
vue: 3.2.31 vue: 3.2.31
vue-router: ^4.0.14 vue-router: ^4.0.14
vuex: ^4.0.2 vuex: ^4.0.2
...@@ -125,7 +125,7 @@ importers: ...@@ -125,7 +125,7 @@ importers:
compression: 1.7.4 compression: 1.7.4
cypress: 7.7.0 cypress: 7.7.0
serve-static: 1.14.1 serve-static: 1.14.1
vite: 2.9.0 vite: 2.9.1
packages/size-check: packages/size-check:
specifiers: specifiers:
...@@ -221,7 +221,7 @@ importers: ...@@ -221,7 +221,7 @@ importers:
'@dcloudio/uni-nvue-styler': link:../uni-nvue-styler '@dcloudio/uni-nvue-styler': link:../uni-nvue-styler
'@dcloudio/uni-shared': link:../uni-shared '@dcloudio/uni-shared': link:../uni-shared
'@rollup/pluginutils': 4.2.0 '@rollup/pluginutils': 4.2.0
'@vitejs/plugin-vue': 2.3.1_vite@2.9.0+vue@3.2.31 '@vitejs/plugin-vue': 2.3.1_vite@2.9.1+vue@3.2.31
'@vue/compiler-dom': 3.2.31 '@vue/compiler-dom': 3.2.31
'@vue/compiler-sfc': 3.2.31 '@vue/compiler-sfc': 3.2.31
debug: 4.3.3 debug: 4.3.3
...@@ -750,8 +750,8 @@ importers: ...@@ -750,8 +750,8 @@ importers:
'@dcloudio/uni-cli-shared': link:../uni-cli-shared '@dcloudio/uni-cli-shared': link:../uni-cli-shared
'@dcloudio/uni-shared': link:../uni-shared '@dcloudio/uni-shared': link:../uni-shared
'@rollup/pluginutils': 4.2.0 '@rollup/pluginutils': 4.2.0
'@vitejs/plugin-legacy': 1.8.0_vite@2.9.0 '@vitejs/plugin-legacy': 1.8.0_vite@2.9.1
'@vitejs/plugin-vue': 2.3.1_vite@2.9.0+vue@3.2.31 '@vitejs/plugin-vue': 2.3.1_vite@2.9.1+vue@3.2.31
'@vitejs/plugin-vue-jsx': 1.3.9 '@vitejs/plugin-vue-jsx': 1.3.9
'@vue/compiler-core': 3.2.31 '@vue/compiler-core': 3.2.31
'@vue/compiler-dom': 3.2.31 '@vue/compiler-dom': 3.2.31
...@@ -2324,8 +2324,8 @@ packages: ...@@ -2324,8 +2324,8 @@ packages:
lodash.once: 4.1.1 lodash.once: 4.1.1
dev: true dev: true
/@dcloudio/types/2.5.18: /@dcloudio/types/2.5.19:
resolution: {integrity: sha512-1EMwZsi5j9KHI5wdLwZJmUyo5b8HnG60CRqsqW5kcd3cgSrKtgL3EKCYUjmJw+3gd9G/4NeEkSx5pT5l+4rNXg==} resolution: {integrity: sha512-wwUKwS9LD0tvHytNZde6Dm2w2JAlPZcbf+DkxW2aQOgYaC0kqblgHKRQP6N7/4yhuV04XxpfpKhSZYSPCazBjQ==}
dev: true dev: true
/@dcloudio/uni-cli-i18n/2.0.0-alpha-33020211130001: /@dcloudio/uni-cli-i18n/2.0.0-alpha-33020211130001:
...@@ -3177,7 +3177,7 @@ packages: ...@@ -3177,7 +3177,7 @@ packages:
eslint-visitor-keys: 3.1.0 eslint-visitor-keys: 3.1.0
dev: true dev: true
/@vitejs/plugin-legacy/1.8.0_vite@2.9.0: /@vitejs/plugin-legacy/1.8.0_vite@2.9.1:
resolution: {integrity: sha512-S3+uL1zp8GLUbmJAQk2wQbZLTyISKRFSMBwCFI3XQVRD3OZshqkiPyOKdRiSPlP9HoGz+q90kk+1qPm1tJRqCg==} resolution: {integrity: sha512-S3+uL1zp8GLUbmJAQk2wQbZLTyISKRFSMBwCFI3XQVRD3OZshqkiPyOKdRiSPlP9HoGz+q90kk+1qPm1tJRqCg==}
engines: {node: '>=12.0.0'} engines: {node: '>=12.0.0'}
peerDependencies: peerDependencies:
...@@ -3188,7 +3188,7 @@ packages: ...@@ -3188,7 +3188,7 @@ packages:
magic-string: 0.26.1 magic-string: 0.26.1
regenerator-runtime: 0.13.9 regenerator-runtime: 0.13.9
systemjs: 6.12.1 systemjs: 6.12.1
vite: 2.9.0 vite: 2.9.1
dev: false dev: false
/@vitejs/plugin-vue-jsx/1.3.9: /@vitejs/plugin-vue-jsx/1.3.9:
...@@ -3204,14 +3204,14 @@ packages: ...@@ -3204,14 +3204,14 @@ packages:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
/@vitejs/plugin-vue/2.3.1_vite@2.9.0+vue@3.2.31: /@vitejs/plugin-vue/2.3.1_vite@2.9.1+vue@3.2.31:
resolution: {integrity: sha512-YNzBt8+jt6bSwpt7LP890U1UcTOIZZxfpE5WOJ638PNxSEKOqAi0+FSKS0nVeukfdZ0Ai/H7AFd6k3hayfGZqQ==} resolution: {integrity: sha512-YNzBt8+jt6bSwpt7LP890U1UcTOIZZxfpE5WOJ638PNxSEKOqAi0+FSKS0nVeukfdZ0Ai/H7AFd6k3hayfGZqQ==}
engines: {node: '>=12.0.0'} engines: {node: '>=12.0.0'}
peerDependencies: peerDependencies:
vite: ^2.5.10 vite: ^2.5.10
vue: ^3.2.25 vue: ^3.2.25
dependencies: dependencies:
vite: 2.9.0 vite: 2.9.1
vue: 3.2.31 vue: 3.2.31
/@vue/babel-helper-vue-transform-on/1.0.2: /@vue/babel-helper-vue-transform-on/1.0.2:
...@@ -8658,8 +8658,8 @@ packages: ...@@ -8658,8 +8658,8 @@ packages:
extsprintf: 1.3.0 extsprintf: 1.3.0
dev: true dev: true
/vite/2.9.0: /vite/2.9.1:
resolution: {integrity: sha512-5NAnNqzPmZzJvrswZGeTS2JHrBGIzIWJA2hBTTMYuoBVEMh0xwE0b5yyIXFxf7F07hrK4ugX2LJ7q6t7iIbd4Q==} resolution: {integrity: sha512-vSlsSdOYGcYEJfkQ/NeLXgnRv5zZfpAsdztkIrs7AZHV8RCMZQkwjo4DS5BnrYTqoWqLoUe1Cah4aVO4oNNqCQ==}
engines: {node: '>=12.2.0'} engines: {node: '>=12.2.0'}
hasBin: true hasBin: true
peerDependencies: peerDependencies:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册