From e0bc1444d915207468dc9a0ceda15c5073c83ef0 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Mon, 13 Feb 2023 19:22:23 +0800 Subject: [PATCH] chore: update @dcloudio/types to 3.3.1 --- package.json | 2 +- packages/uni-app/package.json | 2 +- packages/uni-h5/src/service/api/network/socket.ts | 4 +++- pnpm-lock.yaml | 8 ++++---- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 94204024a9..2af429d39b 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "devDependencies": { "@babel/core": "^7.17.10", "@babel/preset-env": "^7.16.11", - "@dcloudio/types": "3.3.0", + "@dcloudio/types": "3.3.1", "@dcloudio/uni-api": "3.0.0-alpha-3070120230210001", "@dcloudio/uni-app": "3.0.0-alpha-3070120230210001", "@jest/types": "^29.0.3", diff --git a/packages/uni-app/package.json b/packages/uni-app/package.json index a312a127ec..ec82570465 100644 --- a/packages/uni-app/package.json +++ b/packages/uni-app/package.json @@ -33,6 +33,6 @@ "@vue/shared": "3.2.47" }, "peerDependencies": { - "@dcloudio/types": "^3.3.0" + "@dcloudio/types": "^3.3.1" } } diff --git a/packages/uni-h5/src/service/api/network/socket.ts b/packages/uni-h5/src/service/api/network/socket.ts index 121a06bda2..e899ee5baa 100644 --- a/packages/uni-h5/src/service/api/network/socket.ts +++ b/packages/uni-h5/src/service/api/network/socket.ts @@ -184,7 +184,9 @@ function callSocketTask( resolve: Function, reject: Function ) { - const fn = socketTask[method] + const fn = socketTask[method] as + | typeof socketTask['send'] + | typeof socketTask['close'] if (isFunction(fn)) { fn.call( socketTask, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bfaf2a6965..9cc3c0053d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,7 +9,7 @@ importers: specifiers: '@babel/core': ^7.17.10 '@babel/preset-env': ^7.16.11 - '@dcloudio/types': 3.3.0 + '@dcloudio/types': 3.3.1 '@dcloudio/uni-api': 3.0.0-alpha-3070120230210001 '@dcloudio/uni-app': 3.0.0-alpha-3070120230210001 '@jest/types': ^29.0.3 @@ -61,7 +61,7 @@ importers: devDependencies: '@babel/core': 7.20.7 '@babel/preset-env': 7.20.2_@babel+core@7.20.7 - '@dcloudio/types': 3.3.0 + '@dcloudio/types': 3.3.1 '@dcloudio/uni-api': link:packages/uni-api '@dcloudio/uni-app': link:packages/uni-app '@jest/types': 29.3.1 @@ -3163,8 +3163,8 @@ packages: resolution: {integrity: sha512-mrCMwcINy1IFjU9VUqLeWBkj404yWs5paLDttBcA+eqUjanuUQbBcTVPqlrGgkyzLXDcV2oDDZRSNxNpXi4kMQ==} dev: true - /@dcloudio/types/3.3.0: - resolution: {integrity: sha512-9c82k7vAe7PZZOjtoJpgqqeMfezCLhOJcwEw/NcnXl6yAH7deya2MZnrdofkXaMb24v9nffHMOwusgo6+vcFgQ==} + /@dcloudio/types/3.3.1: + resolution: {integrity: sha512-/Wz/mEPuRUZMnMFujd5EtZQWKj41iYnMHYRhyuqqE+h6g5EGiJXqfuvYuLC1MfmNVVRTEjAl6Jk6sqLlyqJ1HA==} dev: true /@esbuild/android-arm/0.16.17: -- GitLab