@serenity-js/rest 2.33.9 → 2.33.10
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
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.33.10](https://github.com/serenity-js/serenity-js/compare/v2.33.9...v2.33.10) (2022-07-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **rest:** updated Axios to 0.27.2 ([a5925c0](https://github.com/serenity-js/serenity-js/commit/a5925c0e5658d57fa10430245f4c6d9fd5a55a4e)), closes [axios/axios#4124](https://github.com/axios/axios/issues/4124) [#1223](https://github.com/serenity-js/serenity-js/issues/1223)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.33.9](https://github.com/serenity-js/serenity-js/compare/v2.33.8...v2.33.9) (2022-06-02)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @serenity-js/rest
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ability, UsesAbilities } from '@serenity-js/core';
|
|
2
|
-
import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
+
import { AxiosDefaults, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
3
3
|
/**
|
|
4
4
|
* @desc
|
|
5
5
|
* An {@link @serenity-js/core/lib/screenplay~Ability} that enables the {@link Actor} to call a HTTP API.
|
|
@@ -107,7 +107,7 @@ export declare class CallAnApi implements Ability {
|
|
|
107
107
|
*
|
|
108
108
|
* @see {@link AxiosRequestConfig}
|
|
109
109
|
*/
|
|
110
|
-
modifyConfig(fn: (original:
|
|
110
|
+
modifyConfig(fn: (original: AxiosDefaults<any>) => any): void;
|
|
111
111
|
/**
|
|
112
112
|
* @desc
|
|
113
113
|
* Sends a HTTP request to a specified url.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallAnApi.js","sourceRoot":"","sources":["../../../src/screenplay/abilities/CallAnApi.ts"],"names":[],"mappings":";;;AAAA,4CAAiH;AACjH,
|
|
1
|
+
{"version":3,"file":"CallAnApi.js","sourceRoot":"","sources":["../../../src/screenplay/abilities/CallAnApi.ts"],"names":[],"mappings":";;;AAAA,4CAAiH;AACjH,iCAAyH;AACzH,MAAM,WAAW,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC,CAAM,yDAAyD;AACzH,MAAM,aAAa,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC,CAAE,yDAAyD;AAEzH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAa,SAAS;IAuDlB;;;;;OAKG;IACH,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IACzD,CAAC;IAzDD;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,CAAC,OAAe;QACrB,OAAO,IAAI,SAAS,CAAC,eAAK,CAAC,MAAM,CAAC;YAC9B,OAAO;YACP,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,EAAE,MAAM,EAAE,kCAAkC,EAAE;SAC1D,CAAC,CAAC,CAAC;IACR,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,KAAK,CAAC,aAA4B;QACrC,OAAO,IAAI,SAAS,CAAC,aAAa,CAAC,CAAC;IACxC,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,CAAC,KAAoB;QAC1B,OAAO,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC;IAWD;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAyC;QAClD,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC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I,2BAAoB,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC,CAAG,4BAA4B;gBACpG;oBACI,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,QAAQ,CAAC;oBAEnC,OAAO,KAAK,CAAC,QAAQ,CAAC;aAC7B;QACL,CAAC,CACJ,CAAC;IACV,CAAC;CACJ;AA/JD,8BA+JC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenity-js/rest",
|
|
3
|
-
"version": "2.33.
|
|
3
|
+
"version": "2.33.10",
|
|
4
4
|
"description": "Test REST APIs with Serenity/JS",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jan Molak",
|
|
@@ -47,16 +47,16 @@
|
|
|
47
47
|
"npm": "^6 || ^7 || ^8"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@serenity-js/core": "2.33.
|
|
51
|
-
"axios": "^0.
|
|
50
|
+
"@serenity-js/core": "2.33.10",
|
|
51
|
+
"axios": "^0.27.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@documentation/esdoc-template": "2.0.0",
|
|
55
55
|
"@integration/testing-tools": "2.0.0",
|
|
56
|
-
"@serenity-js/assertions": "2.33.
|
|
56
|
+
"@serenity-js/assertions": "2.33.10",
|
|
57
57
|
"@types/chai": "^4.3.1",
|
|
58
58
|
"@types/mocha": "^9.1.1",
|
|
59
|
-
"axios-mock-adapter": "^1.
|
|
59
|
+
"axios-mock-adapter": "^1.21.1",
|
|
60
60
|
"mocha": "^10.0.0",
|
|
61
61
|
"ts-node": "^10.7.0",
|
|
62
62
|
"typescript": "^4.6.4"
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"cache": true,
|
|
84
84
|
"all": true
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "1738976d672677c938eae5c1edbf527d1eacad21"
|
|
87
87
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ability, ConfigurationError, LogicError, TestCompromisedError, UsesAbilities } from '@serenity-js/core';
|
|
2
|
-
import axios, { AxiosError, AxiosInstance, AxiosPromise, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
+
import axios, { AxiosDefaults, AxiosError, AxiosInstance, AxiosPromise, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
3
3
|
const mergeConfig = require('axios/lib/core/mergeConfig'); // eslint-disable-line @typescript-eslint/no-var-requires
|
|
4
4
|
const buildFullPath = require('axios/lib/core/buildFullPath'); // eslint-disable-line @typescript-eslint/no-var-requires
|
|
5
5
|
|
|
@@ -126,7 +126,7 @@ export class CallAnApi implements Ability {
|
|
|
126
126
|
*
|
|
127
127
|
* @see {@link AxiosRequestConfig}
|
|
128
128
|
*/
|
|
129
|
-
modifyConfig(fn: (original:
|
|
129
|
+
modifyConfig(fn: (original: AxiosDefaults<any>) => any): void {
|
|
130
130
|
fn(this.axiosInstance.defaults);
|
|
131
131
|
}
|
|
132
132
|
|