@pristine-ts/common 0.0.389 → 0.0.391
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.
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Request = void 0;
|
|
4
4
|
class Request {
|
|
5
5
|
constructor(httpMethod, url, id) {
|
|
6
|
-
/**
|
|
7
|
-
* The headers of the request.
|
|
8
|
-
*/
|
|
9
|
-
this._headers = {};
|
|
10
6
|
/**
|
|
11
7
|
* The body of the request.
|
|
12
8
|
*/
|
|
13
9
|
this.body = {};
|
|
10
|
+
/**
|
|
11
|
+
* The headers of the request.
|
|
12
|
+
*/
|
|
13
|
+
this._headers = {};
|
|
14
14
|
this.httpMethod = httpMethod;
|
|
15
15
|
this.url = url;
|
|
16
16
|
this.id = id;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/models/request.ts"],"names":[],"mappings":";;;AAKA,MAAa,OAAO;
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/models/request.ts"],"names":[],"mappings":";;;AAKA,MAAa,OAAO;IAiClB,YAAY,UAA+B,EAAE,GAAW,EAAE,EAAU;QAbpE;;WAEG;QACH,SAAI,GAAQ,EAAE,CAAC;QAgBf;;WAEG;QACK,aAAQ,GAA8B,EAAE,CAAC;QAR/C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,CAAC;IAOD;;OAEG;IACH,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,UAAU,CAAC,OAAkC;QAClD,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE,CAAC;YAC3B,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,KAAK,EAAE,CAAC;gBAC3C,SAAS;YACX,CAAC;YAED,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAA;QACrC,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACI,SAAS,CAAC,IAAY,EAAE,KAAa;QAC1C,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAG,KAAK,CAAC;IAC3C,CAAC;IAED;;;;OAIG;IACI,SAAS,CAAC,IAAY;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IACzD,CAAC;IAED;;;;OAIG;IACI,SAAS,CAAC,IAAY;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AA7FD,0BA6FC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export class Request {
|
|
2
2
|
constructor(httpMethod, url, id) {
|
|
3
|
-
/**
|
|
4
|
-
* The headers of the request.
|
|
5
|
-
*/
|
|
6
|
-
this._headers = {};
|
|
7
3
|
/**
|
|
8
4
|
* The body of the request.
|
|
9
5
|
*/
|
|
10
6
|
this.body = {};
|
|
7
|
+
/**
|
|
8
|
+
* The headers of the request.
|
|
9
|
+
*/
|
|
10
|
+
this._headers = {};
|
|
11
11
|
this.httpMethod = httpMethod;
|
|
12
12
|
this.url = url;
|
|
13
13
|
this.id = id;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/models/request.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,OAAO;
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/models/request.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,OAAO;IAiClB,YAAY,UAA+B,EAAE,GAAW,EAAE,EAAU;QAbpE;;WAEG;QACH,SAAI,GAAQ,EAAE,CAAC;QAgBf;;WAEG;QACK,aAAQ,GAA8B,EAAE,CAAC;QAR/C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,CAAC;IAOD;;OAEG;IACH,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,UAAU,CAAC,OAAkC;QAClD,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE,CAAC;YAC3B,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,KAAK,EAAE,CAAC;gBAC3C,SAAS;YACX,CAAC;YAED,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAA;QACrC,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACI,SAAS,CAAC,IAAY,EAAE,KAAa;QAC1C,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAG,KAAK,CAAC;IAC3C,CAAC;IAED;;;;OAIG;IACI,SAAS,CAAC,IAAY;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IACzD,CAAC;IAED;;;;OAIG;IACI,SAAS,CAAC,IAAY;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF"}
|
|
@@ -7,6 +7,10 @@ export declare class Request {
|
|
|
7
7
|
* The id of the request to track it across services.
|
|
8
8
|
*/
|
|
9
9
|
id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The group id that this request is a part of.
|
|
12
|
+
*/
|
|
13
|
+
groupId?: string;
|
|
10
14
|
/**
|
|
11
15
|
* The http method of the request.
|
|
12
16
|
*/
|
|
@@ -15,10 +19,6 @@ export declare class Request {
|
|
|
15
19
|
* The url of the request.
|
|
16
20
|
*/
|
|
17
21
|
url: string;
|
|
18
|
-
/**
|
|
19
|
-
* The headers of the request.
|
|
20
|
-
*/
|
|
21
|
-
private _headers;
|
|
22
22
|
/**
|
|
23
23
|
* The body of the request.
|
|
24
24
|
*/
|
|
@@ -32,6 +32,10 @@ export declare class Request {
|
|
|
32
32
|
*/
|
|
33
33
|
host?: string;
|
|
34
34
|
constructor(httpMethod: HttpMethod | string, url: string, id: string);
|
|
35
|
+
/**
|
|
36
|
+
* The headers of the request.
|
|
37
|
+
*/
|
|
38
|
+
private _headers;
|
|
35
39
|
/**
|
|
36
40
|
* This method returns all the headers.
|
|
37
41
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristine-ts/common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.391",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "dist/lib/esm/common.module.js",
|
|
6
6
|
"main": "dist/lib/cjs/common.module.js",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"src/*.{js,ts}"
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "ee9fbf48d0fedf614d8a567157a18507aa1ae385"
|
|
62
62
|
}
|