@skyramp/skyramp 1.3.0 → 1.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyramp/skyramp",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "module for leveraging skyramp cli functionality",
5
5
  "scripts": {
6
6
  "lint": "eslint 'src/**/*.js' 'src/**/*.ts' --fix",
@@ -11,6 +11,7 @@ interface ResponseV2Options {
11
11
  responseBody?: string;
12
12
  requestHeaders?: {[headerName: string]: string};
13
13
  requestBody?: string;
14
+ cookies?: {[cookieName: string]: string};
14
15
  duration?: string;
15
16
  }
16
17
 
@@ -14,6 +14,7 @@ class ResponseV2 {
14
14
  * @param {string} [options.response_body=''] - Body of the response
15
15
  * @param {Object} [options.request_headers={}] - Headers included in the request
16
16
  * @param {string} [options.request_body=''] - Body of the request
17
+ * @param {Object} [options.cookies={}] - Cookies included in the response
17
18
  * @param {string} [options.duration=''] - Duration of the request/response cycle
18
19
  */
19
20
  constructor(options = {}) {
@@ -24,6 +25,7 @@ class ResponseV2 {
24
25
  this.responseBody = options.response_body || '';
25
26
  this.requestHeaders = options.request_headers || {};
26
27
  this.requestBody = options.request_body || '';
28
+ this.cookies = options.cookies || {};
27
29
  this.duration = options.duration || '';
28
30
  this.error = options.error || '';
29
31
  this.description = options.description || '';
@@ -39,6 +41,7 @@ class ResponseV2 {
39
41
  responseBody: 'response_body',
40
42
  requestHeaders: 'request_headers',
41
43
  requestBody: 'request_body',
44
+ cookies: 'cookies',
42
45
  duration: 'duration',
43
46
  error: 'error',
44
47
  description: 'description'
@@ -74,6 +77,7 @@ class ResponseV2 {
74
77
  responseBody: 'response_body',
75
78
  requestHeaders: 'request_headers',
76
79
  requestBody: 'request_body',
80
+ cookies: 'cookies',
77
81
  duration: 'duration',
78
82
  error: 'error',
79
83
  description: 'description'