From 8b078c612465a5778caaf657fedba60c9a40ecdf Mon Sep 17 00:00:00 2001 From: "qikang.yuan" Date: Tue, 26 Dec 2023 16:15:37 +0800 Subject: [PATCH] update mini sdk and doc --- package.json | 2 +- .../InjectSDK/components/IntegrationWithPlatform.tsx | 1 + yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c084a853..95e160ad 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ }, "devDependencies": { "@babel/eslint-parser": "^7.19.1", - "@huolala-tech/page-spy": "^1.5.0-beta.3", + "@huolala-tech/page-spy": "^1.5.0-beta.4", "@mdx-js/rollup": "^2.3.0", "@types/lodash-es": "^4.17.7", "@types/mdx": "^2.0.4", diff --git a/src/components/InjectSDK/components/IntegrationWithPlatform.tsx b/src/components/InjectSDK/components/IntegrationWithPlatform.tsx index f7e6ce24..43438f94 100644 --- a/src/components/InjectSDK/components/IntegrationWithPlatform.tsx +++ b/src/components/InjectSDK/components/IntegrationWithPlatform.tsx @@ -58,6 +58,7 @@ export const IntegrationWithPlatform = ({ platform, onCloseModal }: Props) => { }, { title: t('inject.miniprogram.request-host'), + code: `https://${window.location.host}\nwss://${window.location.host}`, }, { title: ( diff --git a/yarn.lock b/yarn.lock index b5f80923..7ff7751d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -753,10 +753,10 @@ "@huolala-tech/page-spy-api-win32-arm" "1.2.2" "@huolala-tech/page-spy-api-win32-arm64" "1.2.2" -"@huolala-tech/page-spy@^1.5.0-beta.3": - version "1.5.0-beta.3" - resolved "https://registry.npmjs.org/@huolala-tech/page-spy/-/page-spy-1.5.0-beta.3.tgz#bc7f144b191566f27a3f3c5be3ebe4140b1b5b08" - integrity sha512-zkN2EJC1QZIn6Z9oV+p+SaA7cmWGtZs5i9vSv4bkS/EBS2km4KmZvm5lYfdMT7FNyqeRlNnUKXRlV49WsEnfWw== +"@huolala-tech/page-spy@^1.5.0-beta.4": + version "1.5.0-beta.4" + resolved "https://registry.npmjs.org/@huolala-tech/page-spy/-/page-spy-1.5.0-beta.4.tgz#201bf42c1f5cc18eefdb267de0045b3cabec37c2" + integrity sha512-upmNePPnoRe38Oa1WykFC4aC0dfQHMhsNnUZpzEBc+mm2gNHXciEuuWwvmaMGqgsUCba7qnlhj7Fn/IKm5Szpw== dependencies: "@babel/runtime" "^7.13.0" copy-to-clipboard "^3.3.1"