appium-webdriveragent 4.10.21 → 4.10.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [4.10.22](https://github.com/appium/WebDriverAgent/compare/v4.10.21...v4.10.22) (2023-01-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Pull defaultAdditionalRequestParameters dynamically ([#658](https://github.com/appium/WebDriverAgent/issues/658)) ([d7c397b](https://github.com/appium/WebDriverAgent/commit/d7c397b0260a71568edd6d99ecf7b39ca3503083))
|
|
7
|
+
|
|
1
8
|
## [4.10.21](https://github.com/appium/WebDriverAgent/compare/v4.10.20...v4.10.21) (2023-01-26)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
|
@@ -33,7 +33,10 @@ If you are having some issues please checkout [wiki](https://github.com/facebook
|
|
|
33
33
|
If you want to help us out, you are more than welcome to. However please make sure you have followed the guidelines in [CONTRIBUTING](CONTRIBUTING.md).
|
|
34
34
|
|
|
35
35
|
## Creating Bundles
|
|
36
|
-
|
|
36
|
+
|
|
37
|
+
`npm run bundle`
|
|
38
|
+
|
|
39
|
+
Then, you will find `WebDriverAgentRunner-Runner-Sim-<version>.zip` file in the current directory.
|
|
37
40
|
|
|
38
41
|
## License
|
|
39
42
|
|
|
@@ -45,26 +45,18 @@ static id swizzledDefaultParameters(id self, SEL _cmd)
|
|
|
45
45
|
{
|
|
46
46
|
static dispatch_once_t onceToken;
|
|
47
47
|
dispatch_once(&onceToken, ^{
|
|
48
|
-
|
|
49
|
-
[params addEntriesFromDictionary:defaultAdditionalRequestParameters];
|
|
50
|
-
defaultRequestParameters = params.copy;
|
|
48
|
+
defaultRequestParameters = original_defaultParameters(self, _cmd);
|
|
51
49
|
});
|
|
52
|
-
if (nil == defaultRequestParameters) {
|
|
53
|
-
return original_defaultParameters(self, _cmd);
|
|
54
|
-
}
|
|
55
50
|
NSMutableDictionary *result = [NSMutableDictionary dictionaryWithDictionary:defaultRequestParameters];
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
51
|
+
[result addEntriesFromDictionary:defaultAdditionalRequestParameters ?: @{}];
|
|
52
|
+
[result addEntriesFromDictionary:customRequestParameters ?: @{}];
|
|
59
53
|
return result.copy;
|
|
60
54
|
}
|
|
61
55
|
|
|
62
56
|
static id swizzledSnapshotParameters(id self, SEL _cmd)
|
|
63
57
|
{
|
|
64
58
|
NSDictionary *result = original_snapshotParameters(self, _cmd);
|
|
65
|
-
|
|
66
|
-
defaultAdditionalRequestParameters = result;
|
|
67
|
-
}
|
|
59
|
+
defaultAdditionalRequestParameters = result;
|
|
68
60
|
return result;
|
|
69
61
|
}
|
|
70
62
|
|