mirror of
https://github.com/web-infra-dev/midscene.git
synced 2025-12-27 06:59:10 +00:00
fix: compatible with node 20 (#581)
* fix: compatible with node 20(https://github.com/yume-chan/async/pull/44) * fix: compatible with node 18 due ipv6
This commit is contained in:
parent
b76211bd5d
commit
1d49e981d0
@ -55,5 +55,10 @@
|
||||
"pretty-quick": "3.1.3",
|
||||
"semver": "7.3.7",
|
||||
"simple-git-hooks": "^2.11.1"
|
||||
},
|
||||
"pnpm": {
|
||||
"patchedDependencies": {
|
||||
"@yume-chan/async": "patches/@yume-chan__async.patch"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -124,7 +124,7 @@ export default class ScrcpyServer {
|
||||
debugPage('initialize adb client');
|
||||
this.adbClient = new AdbServerClient(
|
||||
new AdbServerNodeTcpConnector({
|
||||
host: 'localhost',
|
||||
host: '127.0.0.1',
|
||||
port: 5037,
|
||||
}),
|
||||
);
|
||||
|
||||
12
patches/@yume-chan__async.patch
Normal file
12
patches/@yume-chan__async.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git a/package.json b/package.json
|
||||
index daf363655c97bf0cb2af5581cb9653c962f9bdb3..0c85add312b214425c9b2571e3ac4b2cae8aab9b 100644
|
||||
--- a/package.json
|
||||
+++ b/package.json
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "@yume-chan/async",
|
||||
"version": "4.1.1",
|
||||
+ "type": "module",
|
||||
"description": "Utils for async programming.",
|
||||
"keywords": [
|
||||
"async",
|
||||
25
pnpm-lock.yaml
generated
25
pnpm-lock.yaml
generated
@ -4,6 +4,11 @@ settings:
|
||||
autoInstallPeers: true
|
||||
excludeLinksFromLockfile: false
|
||||
|
||||
patchedDependencies:
|
||||
'@yume-chan/async':
|
||||
hash: k2a2rtwps5wqh7srfsu4dpx6ry
|
||||
path: patches/@yume-chan__async.patch
|
||||
|
||||
importers:
|
||||
|
||||
.:
|
||||
@ -16550,7 +16555,7 @@ snapshots:
|
||||
'@yume-chan/adb-scrcpy@1.1.0':
|
||||
dependencies:
|
||||
'@yume-chan/adb': 1.1.0
|
||||
'@yume-chan/async': 4.1.1
|
||||
'@yume-chan/async': 4.1.1(patch_hash=k2a2rtwps5wqh7srfsu4dpx6ry)
|
||||
'@yume-chan/event': 1.0.0
|
||||
'@yume-chan/scrcpy': 1.1.0
|
||||
'@yume-chan/stream-extra': 1.0.0
|
||||
@ -16559,23 +16564,23 @@ snapshots:
|
||||
'@yume-chan/adb-server-node-tcp@1.1.0':
|
||||
dependencies:
|
||||
'@yume-chan/adb': 1.1.0
|
||||
'@yume-chan/async': 4.1.1
|
||||
'@yume-chan/async': 4.1.1(patch_hash=k2a2rtwps5wqh7srfsu4dpx6ry)
|
||||
'@yume-chan/stream-extra': 1.0.0
|
||||
'@yume-chan/struct': 1.0.0
|
||||
|
||||
'@yume-chan/adb@1.1.0':
|
||||
dependencies:
|
||||
'@yume-chan/async': 4.1.1
|
||||
'@yume-chan/async': 4.1.1(patch_hash=k2a2rtwps5wqh7srfsu4dpx6ry)
|
||||
'@yume-chan/event': 1.0.0
|
||||
'@yume-chan/no-data-view': 1.0.0
|
||||
'@yume-chan/stream-extra': 1.0.0
|
||||
'@yume-chan/struct': 1.0.0
|
||||
|
||||
'@yume-chan/async@4.1.1': {}
|
||||
'@yume-chan/async@4.1.1(patch_hash=k2a2rtwps5wqh7srfsu4dpx6ry)': {}
|
||||
|
||||
'@yume-chan/event@1.0.0':
|
||||
dependencies:
|
||||
'@yume-chan/async': 4.1.1
|
||||
'@yume-chan/async': 4.1.1(patch_hash=k2a2rtwps5wqh7srfsu4dpx6ry)
|
||||
|
||||
'@yume-chan/fetch-scrcpy-server@1.0.0':
|
||||
dependencies:
|
||||
@ -16585,7 +16590,7 @@ snapshots:
|
||||
|
||||
'@yume-chan/scrcpy-decoder-tinyh264@1.1.0':
|
||||
dependencies:
|
||||
'@yume-chan/async': 4.1.1
|
||||
'@yume-chan/async': 4.1.1(patch_hash=k2a2rtwps5wqh7srfsu4dpx6ry)
|
||||
'@yume-chan/event': 1.0.0
|
||||
'@yume-chan/scrcpy': 1.1.0
|
||||
'@yume-chan/stream-extra': 1.0.0
|
||||
@ -16595,7 +16600,7 @@ snapshots:
|
||||
|
||||
'@yume-chan/scrcpy-decoder-webcodecs@1.1.0':
|
||||
dependencies:
|
||||
'@yume-chan/async': 4.1.1
|
||||
'@yume-chan/async': 4.1.1(patch_hash=k2a2rtwps5wqh7srfsu4dpx6ry)
|
||||
'@yume-chan/event': 1.0.0
|
||||
'@yume-chan/no-data-view': 1.0.0
|
||||
'@yume-chan/scrcpy': 1.1.0
|
||||
@ -16604,19 +16609,19 @@ snapshots:
|
||||
|
||||
'@yume-chan/scrcpy@1.1.0':
|
||||
dependencies:
|
||||
'@yume-chan/async': 4.1.1
|
||||
'@yume-chan/async': 4.1.1(patch_hash=k2a2rtwps5wqh7srfsu4dpx6ry)
|
||||
'@yume-chan/no-data-view': 1.0.0
|
||||
'@yume-chan/stream-extra': 1.0.0
|
||||
'@yume-chan/struct': 1.0.0
|
||||
|
||||
'@yume-chan/stream-extra@1.0.0':
|
||||
dependencies:
|
||||
'@yume-chan/async': 4.1.1
|
||||
'@yume-chan/async': 4.1.1(patch_hash=k2a2rtwps5wqh7srfsu4dpx6ry)
|
||||
'@yume-chan/struct': 1.0.0
|
||||
|
||||
'@yume-chan/struct@1.0.0':
|
||||
dependencies:
|
||||
'@yume-chan/async': 4.1.1
|
||||
'@yume-chan/async': 4.1.1(patch_hash=k2a2rtwps5wqh7srfsu4dpx6ry)
|
||||
'@yume-chan/no-data-view': 1.0.0
|
||||
|
||||
'@zkochan/js-yaml@0.0.7':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user