Skip to content

Commit

Permalink
fix: concurrent commands reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
dlenroc committed May 23, 2024
1 parent 3e47536 commit 6d72d8b
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 64 deletions.
153 changes: 92 additions & 61 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
"@tsconfig/node18": "^18.2.4",
"@tsconfig/strictest": "^2.0.5",
"@types/cssesc": "^3.0.2",
"tsx": "^4.8.1",
"tsx": "^4.11.0",
"typescript": "^5.4.5",
"webdriverio": "^8.36.1"
"webdriverio": "^8.37.0"
},
"peerDependencies": {
"appium": "^2.3.0"
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function extend(
target[name] = function (...args: any[]) {
if (idempotentMethods.has(value)) {
const cache = (this[idempotentCacheKey] ||= new Map<string, any>());
const cacheKey = hashObject(args);
const cacheKey = name + '-' + hashObject(args);
if (cache.has(cacheKey)) {
return cache.get(cacheKey);
}
Expand Down

0 comments on commit 6d72d8b

Please sign in to comment.