@odata2ts/http-client-jquery 0.9.0 → 0.9.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/CHANGELOG.md +10 -0
- package/lib/AjaxRequestConfig.js +10 -5
- package/lib/AjaxRequestConfig.js.map +1 -1
- package/lib/JQueryClient.js +16 -12
- package/lib/JQueryClient.js.map +1 -1
- package/lib/JQueryClientError.js +5 -1
- package/lib/JQueryClientError.js.map +1 -1
- package/lib/index.js +7 -2
- package/lib/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
## [0.9.2](https://github.com/odata2ts/http-client/compare/@odata2ts/http-client-jquery@0.9.1...@odata2ts/http-client-jquery@0.9.2) (2024-08-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @odata2ts/http-client-jquery
|
|
9
|
+
|
|
10
|
+
## [0.9.1](https://github.com/odata2ts/http-client/compare/@odata2ts/http-client-jquery@0.9.0...@odata2ts/http-client-jquery@0.9.1) (2024-08-14)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* add ".js" suffix for all relative imports ([#20](https://github.com/odata2ts/http-client/issues/20)) ([961c910](https://github.com/odata2ts/http-client/commit/961c91002c8b1e9a7a6256cccd6b6d0ec9c142cd))
|
|
15
|
+
|
|
6
16
|
# [0.9.0](https://github.com/odata2ts/http-client/compare/@odata2ts/http-client-jquery@0.8.2...@odata2ts/http-client-jquery@0.9.0) (2024-08-13)
|
|
7
17
|
|
|
8
18
|
### Code Refactoring
|
package/lib/AjaxRequestConfig.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mergeAjaxConfig = exports.getDefaultConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
2
5
|
const DEFAULT_CONFIG = {
|
|
3
6
|
// we never want caching
|
|
4
7
|
cache: false,
|
|
5
8
|
// we always want JSON
|
|
6
9
|
// dataType: "json",
|
|
7
10
|
};
|
|
8
|
-
|
|
11
|
+
function getDefaultConfig(config) {
|
|
9
12
|
return mergeAjaxConfig(DEFAULT_CONFIG, config);
|
|
10
13
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
+
exports.getDefaultConfig = getDefaultConfig;
|
|
15
|
+
function mergeAjaxConfig(config, toMerge) {
|
|
16
|
+
const _a = config || {}, { headers } = _a, passThrough = tslib_1.__rest(_a, ["headers"]);
|
|
17
|
+
const _b = toMerge || {}, { headers: headers2 } = _b, passThrough2 = tslib_1.__rest(_b, ["headers"]);
|
|
14
18
|
return Object.assign(Object.assign(Object.assign({}, passThrough), passThrough2), { headers: Object.assign(Object.assign({}, headers), headers2) });
|
|
15
19
|
}
|
|
20
|
+
exports.mergeAjaxConfig = mergeAjaxConfig;
|
|
16
21
|
//# sourceMappingURL=AjaxRequestConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AjaxRequestConfig.js","sourceRoot":"","sources":["../src/AjaxRequestConfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AjaxRequestConfig.js","sourceRoot":"","sources":["../src/AjaxRequestConfig.ts"],"names":[],"mappings":";;;;AAAA,MAAM,cAAc,GAAwB;IAC1C,wBAAwB;IACxB,KAAK,EAAE,KAAK;IACZ,sBAAsB;IACtB,oBAAoB;CACrB,CAAC;AAeF,SAAgB,gBAAgB,CAAC,MAA0B;IACzD,OAAO,eAAe,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AACjD,CAAC;AAFD,4CAEC;AAED,SAAgB,eAAe,CAAC,MAA4B,EAAE,OAA6B;IACzF,MAAM,KAA8B,MAAM,IAAI,EAAE,EAA1C,EAAE,OAAO,OAAiC,EAA5B,WAAW,sBAAzB,WAA2B,CAAe,CAAC;IACjD,MAAM,KAAyC,OAAO,IAAI,EAAE,EAAtD,EAAE,OAAO,EAAE,QAAQ,OAAmC,EAA9B,YAAY,sBAApC,WAAsC,CAAgB,CAAC;IAC7D,qDACK,WAAW,GACX,YAAY,KACf,OAAO,kCACF,OAAO,GACP,QAAQ,KAEb;AACJ,CAAC;AAXD,0CAWC","sourcesContent":["const DEFAULT_CONFIG: JQuery.AjaxSettings = {\n // we never want caching\n cache: false,\n // we always want JSON\n // dataType: \"json\",\n};\n\n/**\n * Available config options for end user when making a given request.\n */\nexport interface AjaxRequestConfig\n extends Pick<JQuery.AjaxSettings, \"complete\" | \"beforeSend\" | \"headers\" | \"statusCode\" | \"timeout\"> {\n /**\n * Add query params.\n */\n params?: Record<string, string | number | boolean | Array<string | number | boolean>>;\n}\n\nexport interface InternalRequestConfig extends JQuery.AjaxSettings, Pick<AjaxRequestConfig, \"params\"> {}\n\nexport function getDefaultConfig(config?: AjaxRequestConfig): InternalRequestConfig {\n return mergeAjaxConfig(DEFAULT_CONFIG, config);\n}\n\nexport function mergeAjaxConfig(config?: JQuery.AjaxSettings, toMerge?: JQuery.AjaxSettings): InternalRequestConfig {\n const { headers, ...passThrough } = config || {};\n const { headers: headers2, ...passThrough2 } = toMerge || {};\n return {\n ...passThrough,\n ...passThrough2,\n headers: {\n ...headers,\n ...headers2,\n },\n };\n}\n"]}
|
package/lib/JQueryClient.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/// <reference path="../../../node_modules/@types/jquery/JQueryStatic.d.ts" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.JQueryClient = exports.DEFAULT_ERROR_MESSAGE = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const http_client_base_1 = require("@odata2ts/http-client-base");
|
|
7
|
+
const AjaxRequestConfig_1 = require("./AjaxRequestConfig");
|
|
8
|
+
const JQueryClientError_1 = require("./JQueryClientError");
|
|
9
|
+
exports.DEFAULT_ERROR_MESSAGE = "No error message!";
|
|
10
|
+
class JQueryClient extends http_client_base_1.BaseHttpClient {
|
|
8
11
|
constructor(jquery, config, clientOptions) {
|
|
9
12
|
super(clientOptions);
|
|
10
13
|
this.client = jquery;
|
|
11
|
-
this.config = getDefaultConfig(config);
|
|
14
|
+
this.config = (0, AjaxRequestConfig_1.getDefaultConfig)(config);
|
|
12
15
|
}
|
|
13
16
|
mapHeaders(jqXhr) {
|
|
14
17
|
return jqXhr
|
|
@@ -26,9 +29,9 @@ export class JQueryClient extends BaseHttpClient {
|
|
|
26
29
|
}, {});
|
|
27
30
|
}
|
|
28
31
|
executeRequest(method, url, data, requestConfig, internalConfig = {}) {
|
|
29
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
const withInternalConfig = mergeAjaxConfig({ headers: internalConfig.headers }, requestConfig);
|
|
31
|
-
const _a = mergeAjaxConfig(this.config, withInternalConfig), { params } = _a, mergedConfig = __rest(_a, ["params"]);
|
|
32
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
const withInternalConfig = (0, AjaxRequestConfig_1.mergeAjaxConfig)({ headers: internalConfig.headers }, requestConfig);
|
|
34
|
+
const _a = (0, AjaxRequestConfig_1.mergeAjaxConfig)(this.config, withInternalConfig), { params } = _a, mergedConfig = tslib_1.__rest(_a, ["params"]);
|
|
32
35
|
mergedConfig.method = method;
|
|
33
36
|
mergedConfig.data = JSON.stringify(data);
|
|
34
37
|
mergedConfig.url = url;
|
|
@@ -55,13 +58,14 @@ export class JQueryClient extends BaseHttpClient {
|
|
|
55
58
|
});
|
|
56
59
|
}, error: (jqXHR, textStatus, thrownError) => {
|
|
57
60
|
const responseMessage = this.retrieveErrorMessage(jqXHR === null || jqXHR === void 0 ? void 0 : jqXHR.responseJSON);
|
|
58
|
-
const failMsg = responseMessage || thrownError || DEFAULT_ERROR_MESSAGE;
|
|
61
|
+
const failMsg = responseMessage || thrownError || exports.DEFAULT_ERROR_MESSAGE;
|
|
59
62
|
const errorMessage = responseMessage ? "OData server responded with error: " + responseMessage : failMsg;
|
|
60
63
|
const responseHeaders = this.mapHeaders(jqXHR);
|
|
61
|
-
reject(new JQueryClientError(errorMessage, jqXHR.status, responseHeaders, new Error(failMsg), jqXHR));
|
|
64
|
+
reject(new JQueryClientError_1.JQueryClientError(errorMessage, jqXHR.status, responseHeaders, new Error(failMsg), jqXHR));
|
|
62
65
|
} }));
|
|
63
66
|
});
|
|
64
67
|
});
|
|
65
68
|
}
|
|
66
69
|
}
|
|
70
|
+
exports.JQueryClient = JQueryClient;
|
|
67
71
|
//# sourceMappingURL=JQueryClient.js.map
|
package/lib/JQueryClient.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JQueryClient.js","sourceRoot":"","sources":["../src/JQueryClient.ts"],"names":[],"mappings":"AAAA,8EAA8E
|
|
1
|
+
{"version":3,"file":"JQueryClient.js","sourceRoot":"","sources":["../src/JQueryClient.ts"],"names":[],"mappings":";AAAA,8EAA8E;;;;AAG9E,iEAKoC;AACpC,2DAA2F;AAC3F,2DAAwD;AAI3C,QAAA,qBAAqB,GAAG,mBAAmB,CAAC;AAIzD,MAAa,YAAa,SAAQ,iCAAiC;IAIjE,YAAY,MAAoB,EAAE,MAA0B,EAAE,aAA6B;QACzF,KAAK,CAAC,aAAa,CAAC,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,IAAA,oCAAgB,EAAC,MAAM,CAAC,CAAC;IACzC,CAAC;IAES,UAAU,CAAC,KAAY;QAC/B,OAAO,KAAK;aACT,qBAAqB,EAAE;aACvB,IAAI,EA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AC,CAAC;QACL,CAAC;KAAA;CACF;AA1ED,oCA0EC","sourcesContent":["/// <reference path=\"../../../node_modules/@types/jquery/JQueryStatic.d.ts\" />\r\n\r\nimport { HttpResponseModel, ODataHttpClient } from \"@odata2ts/http-client-api\";\r\nimport {\r\n BaseHttpClient,\r\n BaseHttpClientOptions,\r\n HttpMethods,\r\n InternalHttpClientConfig,\r\n} from \"@odata2ts/http-client-base\";\r\nimport { AjaxRequestConfig, getDefaultConfig, mergeAjaxConfig } from \"./AjaxRequestConfig\";\r\nimport { JQueryClientError } from \"./JQueryClientError\";\r\n\r\nimport jqXHR = JQuery.jqXHR;\r\n\r\nexport const DEFAULT_ERROR_MESSAGE = \"No error message!\";\r\n\r\nexport interface ClientOptions extends BaseHttpClientOptions {}\r\n\r\nexport class JQueryClient extends BaseHttpClient<AjaxRequestConfig> implements ODataHttpClient<AjaxRequestConfig> {\r\n private readonly client: JQueryStatic;\r\n private readonly config: JQuery.AjaxSettings;\r\n\r\n constructor(jquery: JQueryStatic, config?: AjaxRequestConfig, clientOptions?: ClientOptions) {\r\n super(clientOptions);\r\n this.client = jquery;\r\n this.config = getDefaultConfig(config);\r\n }\r\n\r\n protected mapHeaders(jqXhr: jqXHR): Record<string, string> {\r\n return jqXhr\r\n .getAllResponseHeaders()\r\n .trim()\r\n .split(/[\\r\\n]+/)\r\n .reduce((collector: Record<string, string>, line: string) => {\r\n const parts = line.split(\": \");\r\n const header = parts.shift();\r\n const value = parts.join(\": \");\r\n\r\n if (header) {\r\n collector[header.toLowerCase()] = value;\r\n }\r\n return collector;\r\n }, {});\r\n }\r\n\r\n protected async executeRequest<ResponseModel>(\r\n method: HttpMethods,\r\n url: string,\r\n data: any,\r\n requestConfig?: JQuery.AjaxSettings,\r\n internalConfig: InternalHttpClientConfig = {},\r\n ): Promise<HttpResponseModel<ResponseModel>> {\r\n const withInternalConfig = mergeAjaxConfig({ headers: internalConfig.headers }, requestConfig);\r\n const { params, ...mergedConfig } = mergeAjaxConfig(this.config, withInternalConfig);\r\n mergedConfig.method = method;\r\n mergedConfig.data = JSON.stringify(data);\r\n mergedConfig.url = url;\r\n if (params && Object.values(params).length) {\r\n mergedConfig.url +=\r\n (url.match(/\\?/) ? \"&\" : \"?\") +\r\n // @ts-ignore\r\n new URLSearchParams(params).toString();\r\n }\r\n\r\n if (internalConfig.dataType === \"blob\") {\r\n mergedConfig.xhrFields = { responseType: \"blob\" };\r\n } else if (internalConfig.dataType === \"stream\") {\r\n throw new Error(\"Streaming is not supported by the JqueryClient!\");\r\n }\r\n\r\n // the actual request\r\n return new Promise((resolve, reject) => {\r\n this.client.ajax({\r\n ...mergedConfig,\r\n success: (response: any, textStatus: string, jqXHR: JQuery.jqXHR) => {\r\n resolve({\r\n status: jqXHR.status,\r\n statusText: jqXHR.statusText,\r\n headers: this.mapHeaders(jqXHR),\r\n data: response,\r\n });\r\n },\r\n error: (jqXHR: JQuery.jqXHR, textStatus: string, thrownError: string) => {\r\n const responseMessage = this.retrieveErrorMessage(jqXHR?.responseJSON);\r\n const failMsg = responseMessage || thrownError || DEFAULT_ERROR_MESSAGE;\r\n const errorMessage = responseMessage ? \"OData server responded with error: \" + responseMessage : failMsg;\r\n const responseHeaders = this.mapHeaders(jqXHR);\r\n reject(new JQueryClientError(errorMessage, jqXHR.status, responseHeaders, new Error(failMsg), jqXHR));\r\n },\r\n });\r\n });\r\n }\r\n}\r\n"]}
|
package/lib/JQueryClientError.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/// <reference path="../../../node_modules/@types/jquery/misc.d.ts" />
|
|
2
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.JQueryClientError = void 0;
|
|
5
|
+
class JQueryClientError extends Error {
|
|
3
6
|
constructor(msg, status, headers, cause, jqXHR) {
|
|
4
7
|
// @ts-ignore: fetch requires lib "dom" or "webworker", but then the "cause" property becomes unknown to TS
|
|
5
8
|
super(msg, { cause });
|
|
@@ -10,4 +13,5 @@ export class JQueryClientError extends Error {
|
|
|
10
13
|
this.name = this.constructor.name;
|
|
11
14
|
}
|
|
12
15
|
}
|
|
16
|
+
exports.JQueryClientError = JQueryClientError;
|
|
13
17
|
//# sourceMappingURL=JQueryClientError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JQueryClientError.js","sourceRoot":"","sources":["../src/JQueryClientError.ts"],"names":[],"mappings":"AAAA,sEAAsE
|
|
1
|
+
{"version":3,"file":"JQueryClientError.js","sourceRoot":"","sources":["../src/JQueryClientError.ts"],"names":[],"mappings":";AAAA,sEAAsE;;;AAItE,MAAa,iBAAkB,SAAQ,KAAK;IAC1C,YACE,GAAW,EACK,MAA0B,EAC1B,OAA2C,EAC3C,KAAwB,EACxB,KAAmB;QAEnC,2GAA2G;QAC3G,KAAK,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QANN,WAAM,GAAN,MAAM,CAAoB;QAC1B,YAAO,GAAP,OAAO,CAAoC;QAC3C,UAAK,GAAL,KAAK,CAAmB;QACxB,UAAK,GAAL,KAAK,CAAc;QAInC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAZD,8CAYC","sourcesContent":["/// <reference path=\"../../../node_modules/@types/jquery/misc.d.ts\" />\n\nimport { ODataClientError } from \"@odata2ts/http-client-api\";\n\nexport class JQueryClientError extends Error implements ODataClientError {\n constructor(\n msg: string,\n public readonly status: number | undefined,\n public readonly headers: Record<string, string> | undefined,\n public readonly cause: Error | undefined,\n public readonly jqXHR: JQuery.jqXHR,\n ) {\n // @ts-ignore: fetch requires lib \"dom\" or \"webworker\", but then the \"cause\" property becomes unknown to TS\n super(msg, { cause });\n this.name = this.constructor.name;\n }\n}\n"]}
|
package/lib/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JQueryClientError = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./JQueryClient"), exports);
|
|
6
|
+
var JQueryClientError_1 = require("./JQueryClientError");
|
|
7
|
+
Object.defineProperty(exports, "JQueryClientError", { enumerable: true, get: function () { return JQueryClientError_1.JQueryClientError; } });
|
|
3
8
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AACA,yDAA+B;AAC/B,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA","sourcesContent":["export { AjaxRequestConfig } from \"./AjaxRequestConfig\";\r\nexport * from \"./JQueryClient\";\r\nexport { JQueryClientError } from \"./JQueryClientError\";\r\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odata2ts/http-client-jquery",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "JQuery based http client usable by odata2ts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"http client",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"repository": "git@github.com:odata2ts/http-client.git",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"author": "texttechne",
|
|
16
|
-
"type": "
|
|
16
|
+
"type": "commonjs",
|
|
17
17
|
"main": "./lib/index.js",
|
|
18
18
|
"types": "./lib/index.d.ts",
|
|
19
19
|
"files": [
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test": "vitest run test/**"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@odata2ts/http-client-base": "^0.5.
|
|
34
|
+
"@odata2ts/http-client-base": "^0.5.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/jquery": "^3.5.16",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "20d77b211d6c7a44e7f1d14e9b63be531bb30e87"
|
|
50
50
|
}
|