@kelvininc/web-client-sdk 7.21.0 → 8.15.0
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/dist/cjs/adapters/http/http-adapter.helper.js +7 -17
- package/dist/cjs/adapters/http/http-adapter.helper.js.map +1 -1
- package/dist/cjs/adapters/http/http-adapter.js +10 -7
- package/dist/cjs/adapters/http/http-adapter.js.map +1 -1
- package/dist/cjs/adapters/http/index.js +15 -2
- package/dist/cjs/adapters/http/index.js.map +1 -1
- package/dist/cjs/adapters/storage-adapter.js.map +1 -1
- package/dist/cjs/classes/index.js +15 -2
- package/dist/cjs/classes/index.js.map +1 -1
- package/dist/cjs/classes/request-abort-controller.js +1 -2
- package/dist/cjs/classes/request-abort-controller.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +17 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/kelvin-web-sdk.js +5 -1
- package/dist/cjs/kelvin-web-sdk.js.map +1 -1
- package/dist/cjs/models.js +15 -2
- package/dist/cjs/models.js.map +1 -1
- package/dist/esm/adapters/http/http-adapter.helper.js +5 -17
- package/dist/esm/adapters/http/http-adapter.helper.js.map +1 -1
- package/dist/esm/adapters/http/http-adapter.js +10 -7
- package/dist/esm/adapters/http/http-adapter.js.map +1 -1
- package/dist/esm/adapters/storage-adapter.js.map +1 -1
- package/dist/esm/classes/request-abort-controller.js +1 -2
- package/dist/esm/classes/request-abort-controller.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/kelvin-web-sdk.js +6 -2
- package/dist/esm/kelvin-web-sdk.js.map +1 -1
- package/package.json +20 -15
- package/CHANGELOG.md +0 -535
|
@@ -1,29 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.buildAxiosRequestConfig = exports.handleError = exports.handleRequest = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
7
|
const js_client_sdk_1 = require("@kelvininc/js-client-sdk");
|
|
8
|
+
const qs_1 = __importDefault(require("qs"));
|
|
6
9
|
const config_1 = require("./config");
|
|
7
|
-
const qs_1 = tslib_1.__importDefault(require("qs"));
|
|
8
10
|
const handleRequest = (response, config) => {
|
|
9
11
|
const { data, status, statusText, headers } = response;
|
|
10
12
|
const isChunked = config.mediaType === js_client_sdk_1.EKvHttpMediaType.jsonStream;
|
|
11
|
-
let bodyParsed = data;
|
|
12
13
|
/**
|
|
13
14
|
* typeof bodyParsed == 'string' fixes a bug when the stream
|
|
14
15
|
* comes with only one array the axios framework parses it automatically
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
-
try {
|
|
18
|
-
bodyParsed = bodyParsed
|
|
19
|
-
? JSON.parse(data.replace(/\]\n\[/g, ','))
|
|
20
|
-
: [];
|
|
21
|
-
}
|
|
22
|
-
catch (error) {
|
|
23
|
-
console.error('Error during parsing chunk data', error);
|
|
24
|
-
bodyParsed = [];
|
|
25
|
-
}
|
|
26
|
-
}
|
|
17
|
+
const bodyParsed = isChunked && typeof data === 'string' ? (0, js_client_sdk_1.parseChunkedBody)(data) : data;
|
|
27
18
|
return {
|
|
28
19
|
type: js_client_sdk_1.EKvHttpResponseType.Response,
|
|
29
20
|
body: bodyParsed,
|
|
@@ -36,10 +27,9 @@ const handleRequest = (response, config) => {
|
|
|
36
27
|
};
|
|
37
28
|
exports.handleRequest = handleRequest;
|
|
38
29
|
const handleError = (err, config) => {
|
|
39
|
-
var _a;
|
|
40
30
|
const status = err.code === config_1.AXIOS_ABORT_ERROR_CODE
|
|
41
|
-
? js_client_sdk_1.EKvHttpStatusCode.
|
|
42
|
-
:
|
|
31
|
+
? js_client_sdk_1.EKvHttpStatusCode.RequestClosed
|
|
32
|
+
: err.response?.status;
|
|
43
33
|
return {
|
|
44
34
|
status,
|
|
45
35
|
config,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-adapter.helper.js","sourceRoot":"","sources":["../../../../src/adapters/http/http-adapter.helper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"http-adapter.helper.js","sourceRoot":"","sources":["../../../../src/adapters/http/http-adapter.helper.ts"],"names":[],"mappings":";;;;;;AAAA,4DAOkC;AAOlC,4CAAoB;AAEpB,qCAAkD;AAG3C,MAAM,aAAa,GAAG,CAC5B,QAAuB,EACvB,MAAyB,EACP,EAAE;IACpB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAC;IACvD,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,KAAK,gCAAgB,CAAC,UAAU,CAAC;IAEnE;;;OAGG;IACH,MAAM,UAAU,GACf,SAAS,IAAI,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAA,gCAAgB,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAEvE,OAAO;QACN,IAAI,EAAE,mCAAmB,CAAC,QAAQ;QAClC,IAAI,EAAE,UAAU;QAChB,MAAM;QACN,UAAU;QACV,OAAO;QACP,MAAM;QACN,YAAY,EAAE,QAAQ;KACtB,CAAC;AACH,CAAC,CAAC;AAvBW,QAAA,aAAa,iBAuBxB;AAEK,MAAM,WAAW,GAAG,CAC1B,GAAwC,EACxC,MAAyB,EACP,EAAE;IACpB,MAAM,MAAM,GACX,GAAG,CAAC,IAAI,KAAK,+BAAsB;QAClC,CAAC,CAAC,iCAAiB,CAAC,aAAa;QACjC,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC;IAEzB,OAAO;QACN,MAAM;QACN,MAAM;QACN,IAAI,EAAE,mCAAmB,CAAC,QAAQ;QAClC,UAAU,EAAE,GAAG,CAAC,OAAO;QACvB,YAAY,EAAE,GAAG,CAAC,QAAQ;KAC1B,CAAC;AACH,CAAC,CAAC;AAhBW,QAAA,WAAW,eAgBtB;AAEK,MAAM,uBAAuB,GAAG,CACtC,OAA0B,EAC1B,UAA2B,EACN,EAAE;IACvB,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAClE,MAAM,YAAY,GAAG,IAAA,+BAAe,EAAC,SAAS,CAAC,CAAC;IAEhD,IAAI,IAAI,YAAY,QAAQ,EAAE,CAAC;QAC9B,OAAO,CAAC,cAAc,CAAC,GAAG,qBAAqB,CAAC;IACjD,CAAC;IAED,OAAO;QACN,MAAM;QACN,GAAG;QACH,OAAO;QACP,IAAI;QACJ,YAAY;QACZ,MAAM;QACN,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,gBAAgB,EAAE;YACjB,SAAS,EAAE,CAAC,iBAA0C,EAAE,EAAE,CACzD,YAAE,CAAC,SAAS,CAAC,iBAAiB,EAAE;gBAC/B,WAAW,EAAE,OAAO;aACpB,CAAC;YACH,OAAO,EAAE,IAAI;SACb;KACD,CAAC;AACH,CAAC,CAAC;AA3BW,QAAA,uBAAuB,2BA2BlC","sourcesContent":["import {\n\tEKvHttpMediaType,\n\tEKvHttpResponseType,\n\tEKvHttpStatusCode,\n\tgetResponseType,\n\tIKvHttpResponse,\n\tparseChunkedBody\n} from '@kelvininc/js-client-sdk';\nimport {\n\tAxiosError,\n\tAxiosRequestConfig,\n\tAxiosResponse,\n\tCanceledError\n} from 'axios';\nimport qs from 'qs';\n\nimport { AXIOS_ABORT_ERROR_CODE } from './config';\nimport { IKvWebHttpRequest } from './types';\n\nexport const handleRequest = (\n\tresponse: AxiosResponse,\n\tconfig: IKvWebHttpRequest\n): IKvHttpResponse => {\n\tconst { data, status, statusText, headers } = response;\n\tconst isChunked = config.mediaType === EKvHttpMediaType.jsonStream;\n\n\t/**\n\t * typeof bodyParsed == 'string' fixes a bug when the stream\n\t * comes with only one array the axios framework parses it automatically\n\t */\n\tconst bodyParsed =\n\t\tisChunked && typeof data === 'string' ? parseChunkedBody(data) : data;\n\n\treturn {\n\t\ttype: EKvHttpResponseType.Response,\n\t\tbody: bodyParsed,\n\t\tstatus,\n\t\tstatusText,\n\t\theaders,\n\t\tconfig,\n\t\thttpResponse: response\n\t};\n};\n\nexport const handleError = (\n\terr: AxiosError | CanceledError<unknown>,\n\tconfig: IKvWebHttpRequest\n): IKvHttpResponse => {\n\tconst status =\n\t\terr.code === AXIOS_ABORT_ERROR_CODE\n\t\t\t? EKvHttpStatusCode.RequestClosed\n\t\t\t: err.response?.status;\n\n\treturn {\n\t\tstatus,\n\t\tconfig,\n\t\ttype: EKvHttpResponseType.Response,\n\t\tstatusText: err.message,\n\t\thttpResponse: err.response\n\t};\n};\n\nexport const buildAxiosRequestConfig = (\n\trequest: IKvWebHttpRequest,\n\tcontroller: AbortController\n): AxiosRequestConfig => {\n\tconst { method, url, data, headers, params, mediaType } = request;\n\tconst responseType = getResponseType(mediaType);\n\n\tif (data instanceof FormData) {\n\t\theaders['Content-Type'] = 'multipart/form-data';\n\t}\n\n\treturn {\n\t\tmethod,\n\t\turl,\n\t\theaders,\n\t\tdata,\n\t\tresponseType,\n\t\tparams,\n\t\tsignal: controller.signal,\n\t\tparamsSerializer: {\n\t\t\tserialize: (paramsToSerialize: Record<string, unknown>) =>\n\t\t\t\tqs.stringify(paramsToSerialize, {\n\t\t\t\t\tarrayFormat: 'comma'\n\t\t\t\t}),\n\t\t\tindexes: null\n\t\t}\n\t};\n};\n"]}
|
|
@@ -10,26 +10,29 @@ class HttpAdapter {
|
|
|
10
10
|
this.httpClient = httpClient;
|
|
11
11
|
}
|
|
12
12
|
request(requestPayload) {
|
|
13
|
-
var _a, _b, _c;
|
|
14
13
|
const requestInstance$ = new rxjs_1.Subject();
|
|
15
14
|
const controller = new AbortController();
|
|
16
15
|
let axiosRequestConfig = (0, http_adapter_helper_1.buildAxiosRequestConfig)(requestPayload, controller);
|
|
17
|
-
if (
|
|
18
|
-
axiosRequestConfig =
|
|
16
|
+
if (requestPayload.options?.reportProgress) {
|
|
17
|
+
axiosRequestConfig = {
|
|
18
|
+
...axiosRequestConfig,
|
|
19
|
+
onDownloadProgress: (progress) => {
|
|
19
20
|
requestInstance$.next({
|
|
20
21
|
type: js_client_sdk_1.EKvHttpResponseType.DownloadProgress,
|
|
21
22
|
httpResponse: progress,
|
|
22
23
|
config: requestPayload
|
|
23
24
|
});
|
|
24
|
-
},
|
|
25
|
+
},
|
|
26
|
+
onUploadProgress: (progress) => {
|
|
25
27
|
requestInstance$.next({
|
|
26
28
|
type: js_client_sdk_1.EKvHttpResponseType.UploadProgress,
|
|
27
29
|
httpResponse: progress,
|
|
28
30
|
config: requestPayload
|
|
29
31
|
});
|
|
30
|
-
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
31
34
|
}
|
|
32
|
-
|
|
35
|
+
requestPayload.options?.requestController?.setAbortController(controller);
|
|
33
36
|
this.httpClient
|
|
34
37
|
.request(axiosRequestConfig)
|
|
35
38
|
.then((response) => {
|
|
@@ -45,7 +48,7 @@ class HttpAdapter {
|
|
|
45
48
|
* request completes abort the axios request.
|
|
46
49
|
*/
|
|
47
50
|
if (!requestInstance$.isStopped) {
|
|
48
|
-
controller.abort(js_client_sdk_1.EKvHttpStatusCode.
|
|
51
|
+
controller.abort(js_client_sdk_1.EKvHttpStatusCode.RequestClosed);
|
|
49
52
|
}
|
|
50
53
|
}));
|
|
51
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-adapter.js","sourceRoot":"","sources":["../../../../src/adapters/http/http-adapter.ts"],"names":[],"mappings":";;;AAAA,4DAKkC;AAElC,+BAA2C;AAC3C,8CAA0C;AAE1C,+DAI+B;
|
|
1
|
+
{"version":3,"file":"http-adapter.js","sourceRoot":"","sources":["../../../../src/adapters/http/http-adapter.ts"],"names":[],"mappings":";;;AAAA,4DAKkC;AAElC,+BAA2C;AAC3C,8CAA0C;AAE1C,+DAI+B;AAG/B,MAAa,WAAW;IACvB,YAAoB,UAAyB;QAAzB,eAAU,GAAV,UAAU,CAAe;IAAG,CAAC;IAEjD,OAAO,CAAC,cAAiC;QACxC,MAAM,gBAAgB,GAAG,IAAI,cAAO,EAAmB,CAAC;QACxD,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;QACzC,IAAI,kBAAkB,GAAuB,IAAA,6CAAuB,EACnE,cAAc,EACd,UAAU,CACV,CAAC;QAEF,IAAI,cAAc,CAAC,OAAO,EAAE,cAAc,EAAE,CAAC;YAC5C,kBAAkB,GAAG;gBACpB,GAAG,kBAAkB;gBACrB,kBAAkB,EAAE,CAAC,QAAQ,EAAE,EAAE;oBAChC,gBAAgB,CAAC,IAAI,CAAC;wBACrB,IAAI,EAAE,mCAAmB,CAAC,gBAAgB;wBAC1C,YAAY,EAAE,QAAQ;wBACtB,MAAM,EAAE,cAAc;qBACtB,CAAC,CAAC;gBACJ,CAAC;gBACD,gBAAgB,EAAE,CAAC,QAAQ,EAAE,EAAE;oBAC9B,gBAAgB,CAAC,IAAI,CAAC;wBACrB,IAAI,EAAE,mCAAmB,CAAC,cAAc;wBACxC,YAAY,EAAE,QAAQ;wBACtB,MAAM,EAAE,cAAc;qBACtB,CAAC,CAAC;gBACJ,CAAC;aACD,CAAC;QACH,CAAC;QAED,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,CAC5D,UAAU,CACV,CAAC;QAEF,IAAI,CAAC,UAAU;aACb,OAAO,CAAC,kBAAkB,CAAC;aAC3B,IAAI,CAAC,CAAC,QAAuB,EAAE,EAAE;YACjC,gBAAgB,CAAC,IAAI,CAAC,IAAA,mCAAa,EAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC;YAC/D,gBAAgB,CAAC,QAAQ,EAAE,CAAC;QAC7B,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;YAChB,gBAAgB,CAAC,KAAK,CAAC,IAAA,iCAAW,EAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;QAEJ,OAAO,gBAAgB,CAAC,IAAI,CAC3B,IAAA,oBAAQ,EAAC,GAAG,EAAE;YACb;;;eAGG;YACH,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC;gBACjC,UAAU,CAAC,KAAK,CAAC,iCAAiB,CAAC,aAAa,CAAC,CAAC;YACnD,CAAC;QACF,CAAC,CAAC,CACF,CAAC;IACH,CAAC;CACD;AAzDD,kCAyDC","sourcesContent":["import {\n\tEKvHttpResponseType,\n\tEKvHttpStatusCode,\n\tIKvHttpAdapter,\n\tIKvHttpResponse\n} from '@kelvininc/js-client-sdk';\nimport { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';\nimport { Observable, Subject } from 'rxjs';\nimport { finalize } from 'rxjs/operators';\n\nimport {\n\tbuildAxiosRequestConfig,\n\thandleError,\n\thandleRequest\n} from './http-adapter.helper';\nimport { IKvWebHttpRequest } from './types';\n\nexport class HttpAdapter implements IKvHttpAdapter {\n\tconstructor(private httpClient: AxiosInstance) {}\n\n\trequest(requestPayload: IKvWebHttpRequest): Observable<IKvHttpResponse> {\n\t\tconst requestInstance$ = new Subject<IKvHttpResponse>();\n\t\tconst controller = new AbortController();\n\t\tlet axiosRequestConfig: AxiosRequestConfig = buildAxiosRequestConfig(\n\t\t\trequestPayload,\n\t\t\tcontroller\n\t\t);\n\n\t\tif (requestPayload.options?.reportProgress) {\n\t\t\taxiosRequestConfig = {\n\t\t\t\t...axiosRequestConfig,\n\t\t\t\tonDownloadProgress: (progress) => {\n\t\t\t\t\trequestInstance$.next({\n\t\t\t\t\t\ttype: EKvHttpResponseType.DownloadProgress,\n\t\t\t\t\t\thttpResponse: progress,\n\t\t\t\t\t\tconfig: requestPayload\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t\tonUploadProgress: (progress) => {\n\t\t\t\t\trequestInstance$.next({\n\t\t\t\t\t\ttype: EKvHttpResponseType.UploadProgress,\n\t\t\t\t\t\thttpResponse: progress,\n\t\t\t\t\t\tconfig: requestPayload\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\n\t\trequestPayload.options?.requestController?.setAbortController(\n\t\t\tcontroller\n\t\t);\n\n\t\tthis.httpClient\n\t\t\t.request(axiosRequestConfig)\n\t\t\t.then((response: AxiosResponse) => {\n\t\t\t\trequestInstance$.next(handleRequest(response, requestPayload));\n\t\t\t\trequestInstance$.complete();\n\t\t\t})\n\t\t\t.catch((error) => {\n\t\t\t\trequestInstance$.error(handleError(error, requestPayload));\n\t\t\t});\n\n\t\treturn requestInstance$.pipe(\n\t\t\tfinalize(() => {\n\t\t\t\t/**\n\t\t\t\t * When the subscription is closed by the client before\n\t\t\t\t * request completes abort the axios request.\n\t\t\t\t */\n\t\t\t\tif (!requestInstance$.isStopped) {\n\t\t\t\t\tcontroller.abort(EKvHttpStatusCode.RequestClosed);\n\t\t\t\t}\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
tslib_1.__exportStar(require("./types"), exports);
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
5
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/adapters/http/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/adapters/http/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB","sourcesContent":["export * from './types';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-adapter.js","sourceRoot":"","sources":["../../../src/adapters/storage-adapter.ts"],"names":[],"mappings":";;;AAEA,MAAa,cAAc;IAG1B;QACC,0BAA0B;QAC1B,IAAI,CAAC,YAAY,EAAE;
|
|
1
|
+
{"version":3,"file":"storage-adapter.js","sourceRoot":"","sources":["../../../src/adapters/storage-adapter.ts"],"names":[],"mappings":";;;AAEA,MAAa,cAAc;IAG1B;QACC,0BAA0B;QAC1B,IAAI,CAAC,YAAY,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;QACnE,CAAC;QAED,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IAClC,CAAC;IAED,GAAG,CAAI,GAAW;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;IACnD,CAAC;IAED,GAAG,CAAI,GAAW,EAAE,KAAQ;QAC3B,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IACvD,CAAC;IAED,MAAM,CAAC,GAAW;QACjB,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;IAED,KAAK;QACJ,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;IAC3B,CAAC;CACD;AA3BD,wCA2BC","sourcesContent":["import { IKvStorageAdapter } from '@kelvininc/js-client-sdk';\n\nexport class StorageAdapter implements IKvStorageAdapter {\n\tprivate localStorage: any;\n\n\tconstructor() {\n\t\t/* istanbul ignore next */\n\t\tif (!localStorage) {\n\t\t\tthrow new Error('Current browser does not support Local Storage');\n\t\t}\n\n\t\tthis.localStorage = localStorage;\n\t}\n\n\tget<T>(key: string): T {\n\t\treturn JSON.parse(this.localStorage.getItem(key));\n\t}\n\n\tset<T>(key: string, value: T): void {\n\t\tthis.localStorage.setItem(key, JSON.stringify(value));\n\t}\n\n\tremove(key: string): void {\n\t\tthis.localStorage.removeItem(key);\n\t}\n\n\tclear(): void {\n\t\tthis.localStorage.clear();\n\t}\n}\n"]}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
tslib_1.__exportStar(require("./request-abort-controller"), exports);
|
|
17
|
+
__exportStar(require("./request-abort-controller"), exports);
|
|
5
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/classes/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/classes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C","sourcesContent":["export * from './request-abort-controller';\n"]}
|
|
@@ -14,8 +14,7 @@ class KvRequestAbortController {
|
|
|
14
14
|
this.abortController = controller;
|
|
15
15
|
}
|
|
16
16
|
cancel() {
|
|
17
|
-
|
|
18
|
-
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort(js_client_sdk_1.EKvHttpStatusCode.CLI_CLOSED_REQUEST);
|
|
17
|
+
this.abortController?.abort(js_client_sdk_1.EKvHttpStatusCode.RequestClosed);
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
20
|
exports.KvRequestAbortController = KvRequestAbortController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-abort-controller.js","sourceRoot":"","sources":["../../../src/classes/request-abort-controller.ts"],"names":[],"mappings":";;;AAAA,4DAA6D;AAC7D,+BAAkC;AAElC,MAAa,wBAAwB;IAIpC;QACC,IAAI,CAAC,SAAS,GAAG,IAAA,SAAI,GAAE,CAAC;IACzB,CAAC;IAED,KAAK;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC;IACvB,CAAC;IAED,kBAAkB,CAAC,UAA2B;QAC7C,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC;IACnC,CAAC;IAED,MAAM
|
|
1
|
+
{"version":3,"file":"request-abort-controller.js","sourceRoot":"","sources":["../../../src/classes/request-abort-controller.ts"],"names":[],"mappings":";;;AAAA,4DAA6D;AAC7D,+BAAkC;AAElC,MAAa,wBAAwB;IAIpC;QACC,IAAI,CAAC,SAAS,GAAG,IAAA,SAAI,GAAE,CAAC;IACzB,CAAC;IAED,KAAK;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC;IACvB,CAAC;IAED,kBAAkB,CAAC,UAA2B;QAC7C,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC;IACnC,CAAC;IAED,MAAM;QACL,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,iCAAiB,CAAC,aAAa,CAAC,CAAC;IAC9D,CAAC;CACD;AAnBD,4DAmBC","sourcesContent":["import { EKvHttpStatusCode } from '@kelvininc/js-client-sdk';\nimport { v4 as uuid } from 'uuid';\n\nexport class KvRequestAbortController {\n\tprivate requestId: string;\n\tprivate abortController: AbortController;\n\n\tconstructor() {\n\t\tthis.requestId = uuid();\n\t}\n\n\tgetId() {\n\t\treturn this.requestId;\n\t}\n\n\tsetAbortController(controller: AbortController) {\n\t\tthis.abortController = controller;\n\t}\n\n\tcancel() {\n\t\tthis.abortController?.abort(EKvHttpStatusCode.RequestClosed);\n\t}\n}\n"]}
|
package/dist/cjs/index.d.ts
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
17
|
const kelvin_web_sdk_1 = require("./kelvin-web-sdk");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
18
|
+
__exportStar(require("./adapters/http"), exports);
|
|
19
|
+
__exportStar(require("./classes"), exports);
|
|
20
|
+
__exportStar(require("@kelvininc/js-client-sdk"), exports);
|
|
8
21
|
exports.default = kelvin_web_sdk_1.KelvinSDK;
|
|
9
22
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAA6C;AAC7C,kDAAgC;AAChC,4CAA0B;AAC1B,2DAAyC;AACzC,kBAAe,0BAAS,CAAC","sourcesContent":["import { KelvinSDK } from './kelvin-web-sdk';\nexport * from './adapters/http';\nexport * from './classes';\nexport * from '@kelvininc/js-client-sdk';\nexport default KelvinSDK;\n"]}
|
|
@@ -6,7 +6,11 @@ const http_adapter_1 = require("./adapters/http/http-adapter");
|
|
|
6
6
|
const storage_adapter_1 = require("./adapters/storage-adapter");
|
|
7
7
|
class KelvinSDK {
|
|
8
8
|
static initialize(configuration, httpClient) {
|
|
9
|
-
(0, js_client_sdk_1.init)(
|
|
9
|
+
(0, js_client_sdk_1.init)({
|
|
10
|
+
...configuration,
|
|
11
|
+
httpAdapter: new http_adapter_1.HttpAdapter(httpClient),
|
|
12
|
+
storageAdapter: new storage_adapter_1.StorageAdapter()
|
|
13
|
+
});
|
|
10
14
|
}
|
|
11
15
|
/**
|
|
12
16
|
* Change the session parameters without an initialization
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kelvin-web-sdk.js","sourceRoot":"","sources":["../../src/kelvin-web-sdk.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"kelvin-web-sdk.js","sourceRoot":"","sources":["../../src/kelvin-web-sdk.ts"],"names":[],"mappings":";;;AAAA,4DAI8C;AAG9C,+DAA2D;AAC3D,gEAA4D;AAE5D,MAAa,SAAS;IACrB,MAAM,CAAC,UAAU,CAChB,aAAmC,EACnC,UAAyB;QAEzB,IAAA,oBAAc,EAAC;YACd,GAAG,aAAa;YAChB,WAAW,EAAE,IAAI,0BAAW,CAAC,UAAU,CAAC;YACxC,cAAc,EAAE,IAAI,gCAAc,EAAE;SACpC,CAAC,CAAC;IACJ,CAAC;IAED;;;OAGG;IAEH,MAAM,CAAC,uBAAuB,CAAC,aAA6B;QAC3D,IAAA,0BAAU,EAAC,aAAa,CAAC,CAAC;IAC3B,CAAC;CACD;AApBD,8BAoBC","sourcesContent":["import {\n\tIKvEnvironmentConfig,\n\tinit as initKelvinCore,\n\tISessionConfig,\n\tsetSession } from '@kelvininc/js-client-sdk';\nimport { AxiosInstance } from 'axios';\n\nimport { HttpAdapter } from './adapters/http/http-adapter';\nimport { StorageAdapter } from './adapters/storage-adapter';\n\nexport class KelvinSDK {\n\tstatic initialize(\n\t\tconfiguration: IKvEnvironmentConfig,\n\t\thttpClient: AxiosInstance\n\t) {\n\t\tinitKelvinCore({\n\t\t\t...configuration,\n\t\t\thttpAdapter: new HttpAdapter(httpClient),\n\t\t\tstorageAdapter: new StorageAdapter()\n\t\t});\n\t}\n\n\t/**\n\t * Change the session parameters without an initialization\n\t * @param sessionConfig session configuration data\n\t */\n\n\tstatic setSessionConfiguration(sessionConfig: ISessionConfig) {\n\t\tsetSession(sessionConfig);\n\t}\n}\n"]}
|
package/dist/cjs/models.js
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
tslib_1.__exportStar(require("@kelvininc/js-client-sdk/models"), exports);
|
|
17
|
+
__exportStar(require("@kelvininc/js-client-sdk/models"), exports);
|
|
5
18
|
//# sourceMappingURL=models.js.map
|
package/dist/cjs/models.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD","sourcesContent":["export * from '@kelvininc/js-client-sdk/models';\n"]}
|
|
@@ -1,25 +1,14 @@
|
|
|
1
|
-
import { EKvHttpMediaType, EKvHttpResponseType, EKvHttpStatusCode, getResponseType } from '@kelvininc/js-client-sdk';
|
|
2
|
-
import { AXIOS_ABORT_ERROR_CODE } from './config';
|
|
1
|
+
import { EKvHttpMediaType, EKvHttpResponseType, EKvHttpStatusCode, getResponseType, parseChunkedBody } from '@kelvininc/js-client-sdk';
|
|
3
2
|
import qs from 'qs';
|
|
3
|
+
import { AXIOS_ABORT_ERROR_CODE } from './config';
|
|
4
4
|
export const handleRequest = (response, config) => {
|
|
5
5
|
const { data, status, statusText, headers } = response;
|
|
6
6
|
const isChunked = config.mediaType === EKvHttpMediaType.jsonStream;
|
|
7
|
-
let bodyParsed = data;
|
|
8
7
|
/**
|
|
9
8
|
* typeof bodyParsed == 'string' fixes a bug when the stream
|
|
10
9
|
* comes with only one array the axios framework parses it automatically
|
|
11
10
|
*/
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
bodyParsed = bodyParsed
|
|
15
|
-
? JSON.parse(data.replace(/\]\n\[/g, ','))
|
|
16
|
-
: [];
|
|
17
|
-
}
|
|
18
|
-
catch (error) {
|
|
19
|
-
console.error('Error during parsing chunk data', error);
|
|
20
|
-
bodyParsed = [];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
11
|
+
const bodyParsed = isChunked && typeof data === 'string' ? parseChunkedBody(data) : data;
|
|
23
12
|
return {
|
|
24
13
|
type: EKvHttpResponseType.Response,
|
|
25
14
|
body: bodyParsed,
|
|
@@ -31,10 +20,9 @@ export const handleRequest = (response, config) => {
|
|
|
31
20
|
};
|
|
32
21
|
};
|
|
33
22
|
export const handleError = (err, config) => {
|
|
34
|
-
var _a;
|
|
35
23
|
const status = err.code === AXIOS_ABORT_ERROR_CODE
|
|
36
|
-
? EKvHttpStatusCode.
|
|
37
|
-
:
|
|
24
|
+
? EKvHttpStatusCode.RequestClosed
|
|
25
|
+
: err.response?.status;
|
|
38
26
|
return {
|
|
39
27
|
status,
|
|
40
28
|
config,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-adapter.helper.js","sourceRoot":"","sources":["../../../../src/adapters/http/http-adapter.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EAEf,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"http-adapter.helper.js","sourceRoot":"","sources":["../../../../src/adapters/http/http-adapter.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EAEf,gBAAgB,EAChB,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGlD,MAAM,CAAC,MAAM,aAAa,GAAG,CAC5B,QAAuB,EACvB,MAAyB,EACP,EAAE;IACpB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAC;IACvD,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,KAAK,gBAAgB,CAAC,UAAU,CAAC;IAEnE;;;OAGG;IACH,MAAM,UAAU,GACf,SAAS,IAAI,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAEvE,OAAO;QACN,IAAI,EAAE,mBAAmB,CAAC,QAAQ;QAClC,IAAI,EAAE,UAAU;QAChB,MAAM;QACN,UAAU;QACV,OAAO;QACP,MAAM;QACN,YAAY,EAAE,QAAQ;KACtB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAC1B,GAAwC,EACxC,MAAyB,EACP,EAAE;IACpB,MAAM,MAAM,GACX,GAAG,CAAC,IAAI,KAAK,sBAAsB;QAClC,CAAC,CAAC,iBAAiB,CAAC,aAAa;QACjC,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC;IAEzB,OAAO;QACN,MAAM;QACN,MAAM;QACN,IAAI,EAAE,mBAAmB,CAAC,QAAQ;QAClC,UAAU,EAAE,GAAG,CAAC,OAAO;QACvB,YAAY,EAAE,GAAG,CAAC,QAAQ;KAC1B,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACtC,OAA0B,EAC1B,UAA2B,EACN,EAAE;IACvB,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAClE,MAAM,YAAY,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC;IAEhD,IAAI,IAAI,YAAY,QAAQ,EAAE,CAAC;QAC9B,OAAO,CAAC,cAAc,CAAC,GAAG,qBAAqB,CAAC;IACjD,CAAC;IAED,OAAO;QACN,MAAM;QACN,GAAG;QACH,OAAO;QACP,IAAI;QACJ,YAAY;QACZ,MAAM;QACN,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,gBAAgB,EAAE;YACjB,SAAS,EAAE,CAAC,iBAA0C,EAAE,EAAE,CACzD,EAAE,CAAC,SAAS,CAAC,iBAAiB,EAAE;gBAC/B,WAAW,EAAE,OAAO;aACpB,CAAC;YACH,OAAO,EAAE,IAAI;SACb;KACD,CAAC;AACH,CAAC,CAAC","sourcesContent":["import {\n\tEKvHttpMediaType,\n\tEKvHttpResponseType,\n\tEKvHttpStatusCode,\n\tgetResponseType,\n\tIKvHttpResponse,\n\tparseChunkedBody\n} from '@kelvininc/js-client-sdk';\nimport {\n\tAxiosError,\n\tAxiosRequestConfig,\n\tAxiosResponse,\n\tCanceledError\n} from 'axios';\nimport qs from 'qs';\n\nimport { AXIOS_ABORT_ERROR_CODE } from './config';\nimport { IKvWebHttpRequest } from './types';\n\nexport const handleRequest = (\n\tresponse: AxiosResponse,\n\tconfig: IKvWebHttpRequest\n): IKvHttpResponse => {\n\tconst { data, status, statusText, headers } = response;\n\tconst isChunked = config.mediaType === EKvHttpMediaType.jsonStream;\n\n\t/**\n\t * typeof bodyParsed == 'string' fixes a bug when the stream\n\t * comes with only one array the axios framework parses it automatically\n\t */\n\tconst bodyParsed =\n\t\tisChunked && typeof data === 'string' ? parseChunkedBody(data) : data;\n\n\treturn {\n\t\ttype: EKvHttpResponseType.Response,\n\t\tbody: bodyParsed,\n\t\tstatus,\n\t\tstatusText,\n\t\theaders,\n\t\tconfig,\n\t\thttpResponse: response\n\t};\n};\n\nexport const handleError = (\n\terr: AxiosError | CanceledError<unknown>,\n\tconfig: IKvWebHttpRequest\n): IKvHttpResponse => {\n\tconst status =\n\t\terr.code === AXIOS_ABORT_ERROR_CODE\n\t\t\t? EKvHttpStatusCode.RequestClosed\n\t\t\t: err.response?.status;\n\n\treturn {\n\t\tstatus,\n\t\tconfig,\n\t\ttype: EKvHttpResponseType.Response,\n\t\tstatusText: err.message,\n\t\thttpResponse: err.response\n\t};\n};\n\nexport const buildAxiosRequestConfig = (\n\trequest: IKvWebHttpRequest,\n\tcontroller: AbortController\n): AxiosRequestConfig => {\n\tconst { method, url, data, headers, params, mediaType } = request;\n\tconst responseType = getResponseType(mediaType);\n\n\tif (data instanceof FormData) {\n\t\theaders['Content-Type'] = 'multipart/form-data';\n\t}\n\n\treturn {\n\t\tmethod,\n\t\turl,\n\t\theaders,\n\t\tdata,\n\t\tresponseType,\n\t\tparams,\n\t\tsignal: controller.signal,\n\t\tparamsSerializer: {\n\t\t\tserialize: (paramsToSerialize: Record<string, unknown>) =>\n\t\t\t\tqs.stringify(paramsToSerialize, {\n\t\t\t\t\tarrayFormat: 'comma'\n\t\t\t\t}),\n\t\t\tindexes: null\n\t\t}\n\t};\n};\n"]}
|
|
@@ -7,26 +7,29 @@ export class HttpAdapter {
|
|
|
7
7
|
this.httpClient = httpClient;
|
|
8
8
|
}
|
|
9
9
|
request(requestPayload) {
|
|
10
|
-
var _a, _b, _c;
|
|
11
10
|
const requestInstance$ = new Subject();
|
|
12
11
|
const controller = new AbortController();
|
|
13
12
|
let axiosRequestConfig = buildAxiosRequestConfig(requestPayload, controller);
|
|
14
|
-
if (
|
|
15
|
-
axiosRequestConfig =
|
|
13
|
+
if (requestPayload.options?.reportProgress) {
|
|
14
|
+
axiosRequestConfig = {
|
|
15
|
+
...axiosRequestConfig,
|
|
16
|
+
onDownloadProgress: (progress) => {
|
|
16
17
|
requestInstance$.next({
|
|
17
18
|
type: EKvHttpResponseType.DownloadProgress,
|
|
18
19
|
httpResponse: progress,
|
|
19
20
|
config: requestPayload
|
|
20
21
|
});
|
|
21
|
-
},
|
|
22
|
+
},
|
|
23
|
+
onUploadProgress: (progress) => {
|
|
22
24
|
requestInstance$.next({
|
|
23
25
|
type: EKvHttpResponseType.UploadProgress,
|
|
24
26
|
httpResponse: progress,
|
|
25
27
|
config: requestPayload
|
|
26
28
|
});
|
|
27
|
-
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
28
31
|
}
|
|
29
|
-
|
|
32
|
+
requestPayload.options?.requestController?.setAbortController(controller);
|
|
30
33
|
this.httpClient
|
|
31
34
|
.request(axiosRequestConfig)
|
|
32
35
|
.then((response) => {
|
|
@@ -42,7 +45,7 @@ export class HttpAdapter {
|
|
|
42
45
|
* request completes abort the axios request.
|
|
43
46
|
*/
|
|
44
47
|
if (!requestInstance$.isStopped) {
|
|
45
|
-
controller.abort(EKvHttpStatusCode.
|
|
48
|
+
controller.abort(EKvHttpStatusCode.RequestClosed);
|
|
46
49
|
}
|
|
47
50
|
}));
|
|
48
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-adapter.js","sourceRoot":"","sources":["../../../../src/adapters/http/http-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,mBAAmB,EACnB,iBAAiB,EAGjB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAc,OAAO,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EACN,uBAAuB,EACvB,WAAW,EACX,aAAa,EACb,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"http-adapter.js","sourceRoot":"","sources":["../../../../src/adapters/http/http-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,mBAAmB,EACnB,iBAAiB,EAGjB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAc,OAAO,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EACN,uBAAuB,EACvB,WAAW,EACX,aAAa,EACb,MAAM,uBAAuB,CAAC;AAG/B,MAAM,OAAO,WAAW;IACvB,YAAoB,UAAyB;QAAzB,eAAU,GAAV,UAAU,CAAe;IAAG,CAAC;IAEjD,OAAO,CAAC,cAAiC;QACxC,MAAM,gBAAgB,GAAG,IAAI,OAAO,EAAmB,CAAC;QACxD,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;QACzC,IAAI,kBAAkB,GAAuB,uBAAuB,CACnE,cAAc,EACd,UAAU,CACV,CAAC;QAEF,IAAI,cAAc,CAAC,OAAO,EAAE,cAAc,EAAE,CAAC;YAC5C,kBAAkB,GAAG;gBACpB,GAAG,kBAAkB;gBACrB,kBAAkB,EAAE,CAAC,QAAQ,EAAE,EAAE;oBAChC,gBAAgB,CAAC,IAAI,CAAC;wBACrB,IAAI,EAAE,mBAAmB,CAAC,gBAAgB;wBAC1C,YAAY,EAAE,QAAQ;wBACtB,MAAM,EAAE,cAAc;qBACtB,CAAC,CAAC;gBACJ,CAAC;gBACD,gBAAgB,EAAE,CAAC,QAAQ,EAAE,EAAE;oBAC9B,gBAAgB,CAAC,IAAI,CAAC;wBACrB,IAAI,EAAE,mBAAmB,CAAC,cAAc;wBACxC,YAAY,EAAE,QAAQ;wBACtB,MAAM,EAAE,cAAc;qBACtB,CAAC,CAAC;gBACJ,CAAC;aACD,CAAC;QACH,CAAC;QAED,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,CAC5D,UAAU,CACV,CAAC;QAEF,IAAI,CAAC,UAAU;aACb,OAAO,CAAC,kBAAkB,CAAC;aAC3B,IAAI,CAAC,CAAC,QAAuB,EAAE,EAAE;YACjC,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC;YAC/D,gBAAgB,CAAC,QAAQ,EAAE,CAAC;QAC7B,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;YAChB,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;QAEJ,OAAO,gBAAgB,CAAC,IAAI,CAC3B,QAAQ,CAAC,GAAG,EAAE;YACb;;;eAGG;YACH,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC;gBACjC,UAAU,CAAC,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;YACnD,CAAC;QACF,CAAC,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["import {\n\tEKvHttpResponseType,\n\tEKvHttpStatusCode,\n\tIKvHttpAdapter,\n\tIKvHttpResponse\n} from '@kelvininc/js-client-sdk';\nimport { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';\nimport { Observable, Subject } from 'rxjs';\nimport { finalize } from 'rxjs/operators';\n\nimport {\n\tbuildAxiosRequestConfig,\n\thandleError,\n\thandleRequest\n} from './http-adapter.helper';\nimport { IKvWebHttpRequest } from './types';\n\nexport class HttpAdapter implements IKvHttpAdapter {\n\tconstructor(private httpClient: AxiosInstance) {}\n\n\trequest(requestPayload: IKvWebHttpRequest): Observable<IKvHttpResponse> {\n\t\tconst requestInstance$ = new Subject<IKvHttpResponse>();\n\t\tconst controller = new AbortController();\n\t\tlet axiosRequestConfig: AxiosRequestConfig = buildAxiosRequestConfig(\n\t\t\trequestPayload,\n\t\t\tcontroller\n\t\t);\n\n\t\tif (requestPayload.options?.reportProgress) {\n\t\t\taxiosRequestConfig = {\n\t\t\t\t...axiosRequestConfig,\n\t\t\t\tonDownloadProgress: (progress) => {\n\t\t\t\t\trequestInstance$.next({\n\t\t\t\t\t\ttype: EKvHttpResponseType.DownloadProgress,\n\t\t\t\t\t\thttpResponse: progress,\n\t\t\t\t\t\tconfig: requestPayload\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t\tonUploadProgress: (progress) => {\n\t\t\t\t\trequestInstance$.next({\n\t\t\t\t\t\ttype: EKvHttpResponseType.UploadProgress,\n\t\t\t\t\t\thttpResponse: progress,\n\t\t\t\t\t\tconfig: requestPayload\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\n\t\trequestPayload.options?.requestController?.setAbortController(\n\t\t\tcontroller\n\t\t);\n\n\t\tthis.httpClient\n\t\t\t.request(axiosRequestConfig)\n\t\t\t.then((response: AxiosResponse) => {\n\t\t\t\trequestInstance$.next(handleRequest(response, requestPayload));\n\t\t\t\trequestInstance$.complete();\n\t\t\t})\n\t\t\t.catch((error) => {\n\t\t\t\trequestInstance$.error(handleError(error, requestPayload));\n\t\t\t});\n\n\t\treturn requestInstance$.pipe(\n\t\t\tfinalize(() => {\n\t\t\t\t/**\n\t\t\t\t * When the subscription is closed by the client before\n\t\t\t\t * request completes abort the axios request.\n\t\t\t\t */\n\t\t\t\tif (!requestInstance$.isStopped) {\n\t\t\t\t\tcontroller.abort(EKvHttpStatusCode.RequestClosed);\n\t\t\t\t}\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-adapter.js","sourceRoot":"","sources":["../../../src/adapters/storage-adapter.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,cAAc;IAG1B;QACC,0BAA0B;QAC1B,IAAI,CAAC,YAAY,EAAE;
|
|
1
|
+
{"version":3,"file":"storage-adapter.js","sourceRoot":"","sources":["../../../src/adapters/storage-adapter.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,cAAc;IAG1B;QACC,0BAA0B;QAC1B,IAAI,CAAC,YAAY,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;QACnE,CAAC;QAED,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IAClC,CAAC;IAED,GAAG,CAAI,GAAW;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;IACnD,CAAC;IAED,GAAG,CAAI,GAAW,EAAE,KAAQ;QAC3B,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IACvD,CAAC;IAED,MAAM,CAAC,GAAW;QACjB,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;IAED,KAAK;QACJ,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;IAC3B,CAAC;CACD","sourcesContent":["import { IKvStorageAdapter } from '@kelvininc/js-client-sdk';\n\nexport class StorageAdapter implements IKvStorageAdapter {\n\tprivate localStorage: any;\n\n\tconstructor() {\n\t\t/* istanbul ignore next */\n\t\tif (!localStorage) {\n\t\t\tthrow new Error('Current browser does not support Local Storage');\n\t\t}\n\n\t\tthis.localStorage = localStorage;\n\t}\n\n\tget<T>(key: string): T {\n\t\treturn JSON.parse(this.localStorage.getItem(key));\n\t}\n\n\tset<T>(key: string, value: T): void {\n\t\tthis.localStorage.setItem(key, JSON.stringify(value));\n\t}\n\n\tremove(key: string): void {\n\t\tthis.localStorage.removeItem(key);\n\t}\n\n\tclear(): void {\n\t\tthis.localStorage.clear();\n\t}\n}\n"]}
|
|
@@ -11,8 +11,7 @@ export class KvRequestAbortController {
|
|
|
11
11
|
this.abortController = controller;
|
|
12
12
|
}
|
|
13
13
|
cancel() {
|
|
14
|
-
|
|
15
|
-
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort(EKvHttpStatusCode.CLI_CLOSED_REQUEST);
|
|
14
|
+
this.abortController?.abort(EKvHttpStatusCode.RequestClosed);
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
17
|
//# sourceMappingURL=request-abort-controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-abort-controller.js","sourceRoot":"","sources":["../../../src/classes/request-abort-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,OAAO,wBAAwB;IAIpC;QACC,IAAI,CAAC,SAAS,GAAG,IAAI,EAAE,CAAC;IACzB,CAAC;IAED,KAAK;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC;IACvB,CAAC;IAED,kBAAkB,CAAC,UAA2B;QAC7C,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC;IACnC,CAAC;IAED,MAAM
|
|
1
|
+
{"version":3,"file":"request-abort-controller.js","sourceRoot":"","sources":["../../../src/classes/request-abort-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,OAAO,wBAAwB;IAIpC;QACC,IAAI,CAAC,SAAS,GAAG,IAAI,EAAE,CAAC;IACzB,CAAC;IAED,KAAK;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC;IACvB,CAAC;IAED,kBAAkB,CAAC,UAA2B;QAC7C,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC;IACnC,CAAC;IAED,MAAM;QACL,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;IAC9D,CAAC;CACD","sourcesContent":["import { EKvHttpStatusCode } from '@kelvininc/js-client-sdk';\nimport { v4 as uuid } from 'uuid';\n\nexport class KvRequestAbortController {\n\tprivate requestId: string;\n\tprivate abortController: AbortController;\n\n\tconstructor() {\n\t\tthis.requestId = uuid();\n\t}\n\n\tgetId() {\n\t\treturn this.requestId;\n\t}\n\n\tsetAbortController(controller: AbortController) {\n\t\tthis.abortController = controller;\n\t}\n\n\tcancel() {\n\t\tthis.abortController?.abort(EKvHttpStatusCode.RequestClosed);\n\t}\n}\n"]}
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC;AACzC,eAAe,SAAS,CAAC","sourcesContent":["import { KelvinSDK } from './kelvin-web-sdk';\nexport * from './adapters/http';\nexport * from './classes';\nexport * from '@kelvininc/js-client-sdk';\nexport default KelvinSDK;\n"]}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { init as initKelvinCore, setSession } from '@kelvininc/js-client-sdk';
|
|
2
2
|
import { HttpAdapter } from './adapters/http/http-adapter';
|
|
3
3
|
import { StorageAdapter } from './adapters/storage-adapter';
|
|
4
4
|
export class KelvinSDK {
|
|
5
5
|
static initialize(configuration, httpClient) {
|
|
6
|
-
initKelvinCore(
|
|
6
|
+
initKelvinCore({
|
|
7
|
+
...configuration,
|
|
8
|
+
httpAdapter: new HttpAdapter(httpClient),
|
|
9
|
+
storageAdapter: new StorageAdapter()
|
|
10
|
+
});
|
|
7
11
|
}
|
|
8
12
|
/**
|
|
9
13
|
* Change the session parameters without an initialization
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kelvin-web-sdk.js","sourceRoot":"","sources":["../../src/kelvin-web-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"kelvin-web-sdk.js","sourceRoot":"","sources":["../../src/kelvin-web-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,IAAI,IAAI,cAAc,EAEtB,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAG9C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,MAAM,OAAO,SAAS;IACrB,MAAM,CAAC,UAAU,CAChB,aAAmC,EACnC,UAAyB;QAEzB,cAAc,CAAC;YACd,GAAG,aAAa;YAChB,WAAW,EAAE,IAAI,WAAW,CAAC,UAAU,CAAC;YACxC,cAAc,EAAE,IAAI,cAAc,EAAE;SACpC,CAAC,CAAC;IACJ,CAAC;IAED;;;OAGG;IAEH,MAAM,CAAC,uBAAuB,CAAC,aAA6B;QAC3D,UAAU,CAAC,aAAa,CAAC,CAAC;IAC3B,CAAC;CACD","sourcesContent":["import {\n\tIKvEnvironmentConfig,\n\tinit as initKelvinCore,\n\tISessionConfig,\n\tsetSession } from '@kelvininc/js-client-sdk';\nimport { AxiosInstance } from 'axios';\n\nimport { HttpAdapter } from './adapters/http/http-adapter';\nimport { StorageAdapter } from './adapters/storage-adapter';\n\nexport class KelvinSDK {\n\tstatic initialize(\n\t\tconfiguration: IKvEnvironmentConfig,\n\t\thttpClient: AxiosInstance\n\t) {\n\t\tinitKelvinCore({\n\t\t\t...configuration,\n\t\t\thttpAdapter: new HttpAdapter(httpClient),\n\t\t\tstorageAdapter: new StorageAdapter()\n\t\t});\n\t}\n\n\t/**\n\t * Change the session parameters without an initialization\n\t * @param sessionConfig session configuration data\n\t */\n\n\tstatic setSessionConfiguration(sessionConfig: ISessionConfig) {\n\t\tsetSession(sessionConfig);\n\t}\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kelvininc/web-client-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.15.0",
|
|
4
4
|
"description": "Kelvin SDK Client for modern frontend Javascript frameworks, like Vue or React",
|
|
5
5
|
"homepage": "https://docs.kelvininc.com",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
"email": "support@kelvininc.com",
|
|
19
19
|
"url": "https://support.kelvininc.com"
|
|
20
20
|
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://github.com/kelvininc/core-sdk-javascript"
|
|
24
|
+
},
|
|
21
25
|
"main": "dist/cjs/index.js",
|
|
22
26
|
"module": "dist/esm/index.js",
|
|
23
27
|
"exports": {
|
|
@@ -38,34 +42,35 @@
|
|
|
38
42
|
"scripts": {
|
|
39
43
|
"clean": "rm -f -r node_modules dist",
|
|
40
44
|
"build:webpack": "rm -rf dist && webpack",
|
|
41
|
-
"lint
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"build
|
|
45
|
+
"lint": "eslint src tests",
|
|
46
|
+
"lint:fix": "eslint src tests --fix",
|
|
47
|
+
"format-files": "eslint src tests --fix",
|
|
48
|
+
"build": "tsc -p tsconfig.build.json && tsc -p tsconfig-cjs.json",
|
|
49
|
+
"build:watch": "tsc -p tsconfig.build.json --watch",
|
|
45
50
|
"test": "jest -c jest.config.js --no-cache",
|
|
46
51
|
"test:watch": "jest -c jest.config.js --watch",
|
|
47
52
|
"test:coverage": "jest -c jest.config.js --coverage"
|
|
48
53
|
},
|
|
49
54
|
"dependencies": {
|
|
50
|
-
"@kelvininc/js-client-sdk": "
|
|
55
|
+
"@kelvininc/js-client-sdk": "workspace:*",
|
|
51
56
|
"qs": "6.10.3",
|
|
52
57
|
"uuid": "9.0.0"
|
|
53
58
|
},
|
|
54
59
|
"devDependencies": {
|
|
55
|
-
"@types/
|
|
56
|
-
"@types/
|
|
60
|
+
"@types/jest": "^29.5.0",
|
|
61
|
+
"@types/node": "^22.9.0",
|
|
57
62
|
"axios": "~1.2.2",
|
|
58
|
-
"jest": "^29.
|
|
59
|
-
"jest-environment-jsdom": "^29.
|
|
63
|
+
"jest": "^29.7.0",
|
|
64
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
60
65
|
"rxjs": "~6.6.7",
|
|
61
|
-
"ts-jest": "29.0
|
|
62
|
-
"
|
|
63
|
-
"tslint-defocus": "^2.0.6",
|
|
64
|
-
"typescript": "^4.6.4"
|
|
66
|
+
"ts-jest": "^29.2.0",
|
|
67
|
+
"typescript": "^5.9.3"
|
|
65
68
|
},
|
|
66
69
|
"peerDependencies": {
|
|
67
70
|
"axios": ">=1.0.0",
|
|
68
71
|
"rxjs": "~6.6.7"
|
|
69
72
|
},
|
|
70
|
-
"
|
|
73
|
+
"publishConfig": {
|
|
74
|
+
"access": "public"
|
|
75
|
+
}
|
|
71
76
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,535 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
# [7.21.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.20.0...v7.21.0) (2023-09-26)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Features
|
|
10
|
-
|
|
11
|
-
* **model-exports:** export kelvin models in separate path [KMAPS-1195] ([ce04514](https://bitbucket.org/kelvininc/kelvinjs/commits/ce0451483f46bddd52067808ef4e82d5c7811822))
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
# [7.20.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.19.1...v7.20.0) (2023-09-01)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
### Features
|
|
21
|
-
|
|
22
|
-
* **kelvin-node-sdk:** adds support to native fetch [KMAPS-1193] ([42ab78d](https://bitbucket.org/kelvininc/kelvinjs/commits/42ab78d7ed9cda127fce0f9990c14026502f62d2))
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
## [7.19.1](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.19.0...v7.19.1) (2023-08-01)
|
|
29
|
-
|
|
30
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
# [7.19.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.18.0...v7.19.0) (2023-07-21)
|
|
37
|
-
|
|
38
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
# [7.18.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.17.0...v7.18.0) (2023-07-04)
|
|
45
|
-
|
|
46
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
# [7.17.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.16.0...v7.17.0) (2023-05-17)
|
|
53
|
-
|
|
54
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
# [7.16.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.15.2...v7.16.0) (2023-04-04)
|
|
61
|
-
|
|
62
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
## [7.15.2](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.15.1...v7.15.2) (2023-03-14)
|
|
69
|
-
|
|
70
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
## [7.15.1](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.15.0...v7.15.1) (2023-03-06)
|
|
77
|
-
|
|
78
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
# [7.15.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.14.1...v7.15.0) (2023-02-13)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
### Features
|
|
88
|
-
|
|
89
|
-
* **kelvin-web-sdk:** add controls to abort request manually or when stream closes [KMAPS-752] ([31f2cda](https://bitbucket.org/kelvininc/kelvinjs/commits/31f2cdac88d9a4097a89c7d85df17668375a71b4))
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
## [7.14.1](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.14.0...v7.14.1) (2023-01-25)
|
|
96
|
-
|
|
97
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
# [7.14.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.13.2...v7.14.0) (2023-01-09)
|
|
104
|
-
|
|
105
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
## [7.13.2](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.13.1...v7.13.2) (2022-11-24)
|
|
112
|
-
|
|
113
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
## [7.13.1](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.13.0...v7.13.1) (2022-11-23)
|
|
120
|
-
|
|
121
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
# [7.13.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.12.0...v7.13.0) (2022-11-18)
|
|
128
|
-
|
|
129
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
# [7.12.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.11.0...v7.12.0) (2022-11-09)
|
|
136
|
-
|
|
137
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
# [7.11.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.10.1...v7.11.0) (2022-10-10)
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
### Features
|
|
147
|
-
|
|
148
|
-
* add support to application/zip request in angular and web adapter ([e22b002](https://bitbucket.org/kelvininc/kelvinjs/commits/e22b0022556080ea57b041acdb08f17f1e3e6dcd))
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
## [7.10.1](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.10.0...v7.10.1) (2022-10-06)
|
|
155
|
-
|
|
156
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
# [7.10.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.9.1...v7.10.0) (2022-10-06)
|
|
163
|
-
|
|
164
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
## [7.9.1](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.9.0...v7.9.1) (2022-09-01)
|
|
171
|
-
|
|
172
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
# [7.9.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.8.1...v7.9.0) (2022-08-19)
|
|
179
|
-
|
|
180
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
## [7.8.1](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.8.0...v7.8.1) (2022-07-25)
|
|
187
|
-
|
|
188
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
# [7.8.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.7.0...v7.8.0) (2022-07-06)
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
### Bug Fixes
|
|
198
|
-
|
|
199
|
-
* **kelvin-js-sdk:** rollback content type header support ([6714394](https://bitbucket.org/kelvininc/kelvinjs/commits/6714394a21cd946bd8489f3a362e4acbe9c42b9b))
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
### Features
|
|
203
|
-
|
|
204
|
-
* **kelvin-web-sdk:** fix version due to [#434](https://bitbucket.org/kelvininc/kelvinjs/issues/434) issue ([aef2b89](https://bitbucket.org/kelvininc/kelvinjs/commits/aef2b89a56fc576efd90ba5d50f7954733d45c61))
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
# [7.7.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.6.0...v7.7.0) (2022-05-26)
|
|
211
|
-
|
|
212
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
# [7.6.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.5.0...v7.6.0) (2022-05-20)
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
### Features
|
|
222
|
-
|
|
223
|
-
* add thread services, update asset service with templates and visualization models ([a9b6a07](https://bitbucket.org/kelvininc/kelvinjs/commits/a9b6a076a69cc50c206ecfe05034c77b3f459d01))
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
# [7.5.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.4.1...v7.5.0) (2022-05-06)
|
|
230
|
-
|
|
231
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
## [7.4.1](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.4.0...v7.4.1) (2022-05-05)
|
|
238
|
-
|
|
239
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
# [7.4.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.3.0...v7.4.0) (2022-04-27)
|
|
246
|
-
|
|
247
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
# [7.3.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.2.0...v7.3.0) (2022-04-12)
|
|
254
|
-
|
|
255
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
# [7.2.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.1.0...v7.2.0) (2022-04-12)
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
### Bug Fixes
|
|
265
|
-
|
|
266
|
-
* **kelvin-web-sdk:** change default params serializer to use lists ([b13cf9f](https://bitbucket.org/kelvininc/kelvinjs/commits/b13cf9f8318862e289f71f5d6c12f45314237b16))
|
|
267
|
-
* **kelvin-web-sdk:** fix status error access ([f7e2fcb](https://bitbucket.org/kelvininc/kelvinjs/commits/f7e2fcb6157f036b23f9a85015bd91c6e0cb6064))
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
# [7.1.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.0.1...v7.1.0) (2022-02-15)
|
|
274
|
-
|
|
275
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
## [7.0.1](https://bitbucket.org/kelvininc/kelvinjs/compare/v7.0.0...v7.0.1) (2022-02-10)
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
### Bug Fixes
|
|
285
|
-
|
|
286
|
-
* **http-adapter:** solving issue for data stream responses [SA-598] ([785cea1](https://bitbucket.org/kelvininc/kelvinjs/commits/785cea1ca95b19030b0ced5dd27d62441161d243))
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
# [7.0.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v6.2.0...v7.0.0) (2022-02-01)
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
* feat(angular-sdk-client)!: migrate to angular 11 with new configurations [SA-539] ([9c5af3d](https://bitbucket.org/kelvininc/kelvinjs/commits/9c5af3da34f3ef0362309dee98ffb7b6a2fe3731))
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
### BREAKING CHANGES
|
|
299
|
-
|
|
300
|
-
* drop support to angular 10 & rxjs 6.5.x
|
|
301
|
-
|
|
302
|
-
- add support to angular 11
|
|
303
|
-
- add support to rxjs 6.6.7
|
|
304
|
-
- Update angular sample to 11
|
|
305
|
-
- Remove loglevel from js-client-sdk
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
# [6.2.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v6.1.0...v6.2.0) (2022-01-28)
|
|
312
|
-
|
|
313
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
# [6.1.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v6.0.0...v6.1.0) (2022-01-26)
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
### Features
|
|
323
|
-
|
|
324
|
-
* **kelvin-web-sdk:** add a method to set the session configuration ([d8c43a5](https://bitbucket.org/kelvininc/kelvinjs/commits/d8c43a5d1001bc502585c18b882912829574abab))
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
# [6.0.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v5.9.0...v6.0.0) (2022-01-21)
|
|
331
|
-
|
|
332
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
# [5.9.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v5.8.0...v5.9.0) (2022-01-07)
|
|
339
|
-
|
|
340
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
# [5.8.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v5.7.0...v5.8.0) (2021-12-22)
|
|
347
|
-
|
|
348
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
# [5.7.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v5.6.1...v5.7.0) (2021-12-16)
|
|
355
|
-
|
|
356
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
## [5.6.1](https://bitbucket.org/kelvininc/kelvinjs/compare/v5.6.0...v5.6.1) (2021-12-10)
|
|
363
|
-
|
|
364
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
# [5.6.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v5.5.0...v5.6.0) (2021-12-06)
|
|
371
|
-
|
|
372
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
# [5.5.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v5.4.0...v5.5.0) (2021-11-24)
|
|
379
|
-
|
|
380
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
# [5.4.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v5.3.0...v5.4.0) (2021-10-08)
|
|
387
|
-
|
|
388
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
# [5.3.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v5.2.0...v5.3.0) (2021-08-27)
|
|
395
|
-
|
|
396
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
# [5.2.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v5.1.0...v5.2.0) (2021-08-12)
|
|
403
|
-
|
|
404
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
# [5.1.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v5.0.0...v5.1.0) (2021-07-28)
|
|
411
|
-
|
|
412
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
# [5.0.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v4.0.0...v5.0.0) (2021-06-30)
|
|
419
|
-
|
|
420
|
-
**Note:** Version bump only for package @kelvininc/web-client-sdk
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
# [4.0.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v3.2.0...v4.0.0) (2021-05-24)
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
* feat!: change organization name from kelvin to kelvininc ([d68fe3d](https://bitbucket.org/kelvininc/kelvinjs/commits/d68fe3d2f8bdbb907601b5cb777ab6c69506683f))
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
### Features
|
|
433
|
-
|
|
434
|
-
* add kelvin sdk license to all packages [SA-202] ([a820994](https://bitbucket.org/kelvininc/kelvinjs/commits/a82099471fe820d89a05edefec6afd50103a48d0))
|
|
435
|
-
* change KelvinWebSDK class name to KelvinSDK and update vue sample ([5697c69](https://bitbucket.org/kelvininc/kelvinjs/commits/5697c69fde29a1183f74ceea590018a59783049c))
|
|
436
|
-
* update readme of packages ([e1c4bbf](https://bitbucket.org/kelvininc/kelvinjs/commits/e1c4bbf9a83203663d762bb4484c2b58b43d607c))
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
### BREAKING CHANGES
|
|
440
|
-
|
|
441
|
-
* Changing kelvin organization name due transiction to npmjs public releases
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
# [3.2.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v3.1.0...v3.2.0) (2021-04-06)
|
|
448
|
-
|
|
449
|
-
**Note:** Version bump only for package @kelvin/web-client-sdk
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
# [3.1.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v3.0.1...v3.1.0) (2021-03-16)
|
|
456
|
-
|
|
457
|
-
**Note:** Version bump only for package @kelvin/web-client-sdk
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
# [3.0.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v2.2.2...v3.0.0) (2021-03-08)
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
### Features
|
|
467
|
-
|
|
468
|
-
* changing vue library to support more javascript frameworks ([74b9275](https://bitbucket.org/kelvininc/kelvinjs/commits/74b9275945f88193b132db1207486261a9c39a5e))
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
## [2.2.2](https://bitbucket.org/kelvininc/kelvinjs/compare/v2.2.1...v2.2.2) (2021-02-02)
|
|
475
|
-
|
|
476
|
-
**Note:** Version bump only for package kelvin-vue-sdk
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
## [2.2.1](https://bitbucket.org/kelvininc/kelvinjs/compare/v2.2.0...v2.2.1) (2021-01-28)
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
### Bug Fixes
|
|
486
|
-
|
|
487
|
-
* **http-adapter:** fixing paginator requests [S3-903] ([0afe601](https://bitbucket.org/kelvininc/kelvinjs/commits/0afe6012f3b1867ec130c3a5b678659a0949c4b4))
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
# [2.2.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v2.1.1...v2.2.0) (2021-01-25)
|
|
494
|
-
|
|
495
|
-
**Note:** Version bump only for package kelvin-vue-sdk
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
## [2.1.1](https://bitbucket.org/kelvininc/kelvinjs/compare/v2.1.0...v2.1.1) (2021-01-21)
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
### Bug Fixes
|
|
505
|
-
|
|
506
|
-
* **http-adapter:** fixing support to requests of text/csv content type [S4-638] ([6c79a0e](https://bitbucket.org/kelvininc/kelvinjs/commits/6c79a0ea2ed8207fc6367fdb09dbfd0e6b0cca39))
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
# [2.1.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v2.0.0...v2.1.0) (2021-01-19)
|
|
513
|
-
|
|
514
|
-
**Note:** Version bump only for package kelvin-vue-sdk
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
# [2.0.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v1.0.0...v2.0.0) (2020-12-17)
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
* refactor!: new api metods ([f54b662](https://bitbucket.org/kelvininc/kelvinjs/commits/f54b662e4c2e48837d2a4ec7bc8ce6fa5f4c9cd3))
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
### Bug Fixes
|
|
527
|
-
|
|
528
|
-
* change stream parser ([2287915](https://bitbucket.org/kelvininc/kelvinjs/commits/2287915809f8ae5ba6b29f8a22785d6c23756ce3))
|
|
529
|
-
* fix publish upload in kelvin-angular-sdk ([85c62a7](https://bitbucket.org/kelvininc/kelvinjs/commits/85c62a78533100aa0d822f51290147d14b99b976))
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
### BREAKING CHANGES
|
|
533
|
-
|
|
534
|
-
* Major refactor on the storage API
|
|
535
|
-
Overal changes on the service methods
|