@decaf-ts/for-http 0.3.12 → 0.3.14
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/README.md +1 -1
- package/dist/for-http.cjs +1 -1
- package/dist/for-http.cjs.map +1 -1
- package/dist/for-http.js +1 -1
- package/dist/for-http.js.map +1 -1
- package/lib/ResponseParser.cjs +37 -0
- package/lib/ResponseParser.d.ts +14 -0
- package/lib/ResponseParser.js.map +1 -0
- package/lib/RestRepository.cjs +36 -2
- package/lib/RestRepository.d.ts +6 -0
- package/lib/RestRepository.js.map +1 -1
- package/lib/adapter.cjs +9 -1
- package/lib/adapter.d.ts +3 -2
- package/lib/adapter.js.map +1 -1
- package/lib/axios/axios.cjs +53 -4
- package/lib/axios/axios.d.ts +4 -0
- package/lib/axios/axios.js.map +1 -1
- package/lib/esm/ResponseParser.d.ts +14 -0
- package/lib/esm/ResponseParser.js +32 -0
- package/lib/esm/ResponseParser.js.map +1 -0
- package/lib/esm/RestRepository.d.ts +6 -0
- package/lib/esm/RestRepository.js +37 -3
- package/lib/esm/RestRepository.js.map +1 -1
- package/lib/esm/adapter.d.ts +3 -2
- package/lib/esm/adapter.js +10 -2
- package/lib/esm/adapter.js.map +1 -1
- package/lib/esm/axios/axios.d.ts +4 -0
- package/lib/esm/axios/axios.js +53 -4
- package/lib/esm/axios/axios.js.map +1 -1
- package/lib/esm/index.d.ts +2 -1
- package/lib/esm/index.js +2 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/types.d.ts +2 -0
- package/lib/index.cjs +2 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js.map +1 -1
- package/lib/types.d.ts +2 -0
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -29,6 +29,7 @@ __exportStar(require("./axios/index.cjs"), exports);
|
|
|
29
29
|
__exportStar(require("./adapter.cjs"), exports);
|
|
30
30
|
__exportStar(require("./HttpPaginator.cjs"), exports);
|
|
31
31
|
__exportStar(require("./HttpStatement.cjs"), exports);
|
|
32
|
+
__exportStar(require("./ResponseParser.cjs"), exports);
|
|
32
33
|
__exportStar(require("./RestRepository.cjs"), exports);
|
|
33
34
|
__exportStar(require("./RestService.cjs"), exports);
|
|
34
35
|
__exportStar(require("./types.cjs"), exports);
|
|
@@ -37,7 +38,7 @@ __exportStar(require("./types.cjs"), exports);
|
|
|
37
38
|
* @summary Version identifier for the module
|
|
38
39
|
* @const VERSION
|
|
39
40
|
*/
|
|
40
|
-
exports.VERSION = "0.3.
|
|
41
|
+
exports.VERSION = "0.3.13";
|
|
41
42
|
exports.PACKAGE_NAME = "@decaf-ts/for-http";
|
|
42
43
|
decoration_1.Metadata.registerLibrary(exports.PACKAGE_NAME, exports.VERSION);
|
|
43
44
|
//# sourceMappingURL=index.js.map
|
package/lib/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from "./axios";
|
|
|
11
11
|
export * from "./adapter";
|
|
12
12
|
export * from "./HttpPaginator";
|
|
13
13
|
export * from "./HttpStatement";
|
|
14
|
+
export * from "./ResponseParser";
|
|
14
15
|
export * from "./RestRepository";
|
|
15
16
|
export * from "./RestService";
|
|
16
17
|
export * from "./types";
|
|
@@ -19,5 +20,5 @@ export * from "./types";
|
|
|
19
20
|
* @summary Version identifier for the module
|
|
20
21
|
* @const VERSION
|
|
21
22
|
*/
|
|
22
|
-
export declare const VERSION = "0.3.
|
|
23
|
+
export declare const VERSION = "0.3.13";
|
|
23
24
|
export declare const PACKAGE_NAME = "@decaf-ts/for-http";
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0BAAwB;AACxB,qDAAgD;AAEhD;;;;;;;GAOG;AACH,oDAAwB;AACxB,gDAA0B;AAC1B,sDAAgC;AAChC,sDAAgC;AAChC,uDAAiC;AACjC,oDAA8B;AAC9B,8CAAwB;AAExB;;;;GAIG;AACU,QAAA,OAAO,GAAG,aAAa,CAAC;AAExB,QAAA,YAAY,GAAG,aAAa,CAAC;AAE1C,qBAAQ,CAAC,eAAe,CAAC,oBAAY,EAAE,eAAO,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0BAAwB;AACxB,qDAAgD;AAEhD;;;;;;;GAOG;AACH,oDAAwB;AACxB,gDAA0B;AAC1B,sDAAgC;AAChC,sDAAgC;AAChC,uDAAiC;AACjC,uDAAiC;AACjC,oDAA8B;AAC9B,8CAAwB;AAExB;;;;GAIG;AACU,QAAA,OAAO,GAAG,aAAa,CAAC;AAExB,QAAA,YAAY,GAAG,aAAa,CAAC;AAE1C,qBAAQ,CAAC,eAAe,CAAC,oBAAY,EAAE,eAAO,CAAC,CAAC"}
|
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AdapterFlags } from "@decaf-ts/core";
|
|
2
|
+
import { ResponseParser } from "./ResponseParser";
|
|
2
3
|
/**
|
|
3
4
|
* @description HTTP configuration type
|
|
4
5
|
* @summary Configuration type for HTTP connections specifying protocol and host
|
|
@@ -10,6 +11,7 @@ import { AdapterFlags } from "@decaf-ts/core";
|
|
|
10
11
|
export type HttpConfig = {
|
|
11
12
|
protocol: "http" | "https";
|
|
12
13
|
host: string;
|
|
14
|
+
responseParser?: ResponseParser;
|
|
13
15
|
};
|
|
14
16
|
/**
|
|
15
17
|
* @description HTTP flags interface
|