@applitools/nml-client 1.4.0 → 1.5.1
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 +17 -0
- package/dist/server/requests.js +4 -10
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.5.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/nml-client@1.5.0...js/nml-client@1.5.1) (2023-07-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* @applitools/req bumped from 1.3.3 to 1.4.0
|
|
9
|
+
#### Features
|
|
10
|
+
|
|
11
|
+
* support dns caching ([#1680](https://github.com/applitools/eyes.sdk.javascript1/issues/1680)) ([9bbff34](https://github.com/applitools/eyes.sdk.javascript1/commit/9bbff34f50c9d18758b55a6bcb45571ca1148180))
|
|
12
|
+
|
|
13
|
+
## [1.5.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/nml-client@1.4.0...js/nml-client@1.5.0) (2023-06-29)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* added a new mode for taking native app screenshots ([#1682](https://github.com/applitools/eyes.sdk.javascript1/issues/1682)) ([0ab7d96](https://github.com/applitools/eyes.sdk.javascript1/commit/0ab7d96164c89ec65b87654fb271d4404bbf70e5))
|
|
19
|
+
|
|
3
20
|
## [1.4.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/nml-client@1.3.59...js/nml-client@1.4.0) (2023-06-28)
|
|
4
21
|
|
|
5
22
|
|
package/dist/server/requests.js
CHANGED
|
@@ -37,21 +37,15 @@ function makeNMLRequests({ config, logger: defaultLogger, }) {
|
|
|
37
37
|
protocolVersion: '1.0',
|
|
38
38
|
name: 'TAKE_SCREENSHOT',
|
|
39
39
|
key: utils.general.guid(),
|
|
40
|
-
payload:
|
|
41
|
-
name: settings.name,
|
|
42
|
-
screenshotMode: settings.fully ? 'FULL_RESIZE' : 'VIEWPORT',
|
|
43
|
-
scrollRootElement: settings.scrollRootElement,
|
|
44
|
-
hideCaret: settings.hideCaret,
|
|
45
|
-
waitBeforeCapture: settings.waitBeforeCapture,
|
|
46
|
-
overlap: settings.overlap,
|
|
47
|
-
selectorsToFindRegionsFor: [],
|
|
48
|
-
},
|
|
40
|
+
payload: settings,
|
|
49
41
|
},
|
|
50
42
|
logger,
|
|
51
43
|
});
|
|
52
44
|
const result = await response.json();
|
|
53
45
|
brokerUrl = result.nextPath;
|
|
54
|
-
return
|
|
46
|
+
return {
|
|
47
|
+
image: result.payload.result.screenshotUrl,
|
|
48
|
+
};
|
|
55
49
|
}
|
|
56
50
|
async function takeSnapshots({ settings, logger = defaultLogger, }) {
|
|
57
51
|
const response = await req(brokerUrl, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/nml-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Client to integrate the SDKs to the Native Mobile Library (NML)",
|
|
5
5
|
"homepage": "https://applitools.com",
|
|
6
6
|
"bugs": {
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@applitools/logger": "2.0.5",
|
|
40
|
-
"@applitools/req": "1.
|
|
40
|
+
"@applitools/req": "1.4.0",
|
|
41
41
|
"@applitools/utils": "1.5.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@applitools/spec-driver-webdriverio": "^1.5.
|
|
44
|
+
"@applitools/spec-driver-webdriverio": "^1.5.6",
|
|
45
45
|
"@applitools/test-server": "^1.2.2",
|
|
46
46
|
"@applitools/test-utils": "^1.5.17",
|
|
47
47
|
"@types/node": "^12.20.55",
|