@intuitionrobotics/thunderstorm 0.41.76 → 0.42.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.
@@ -1,5 +1,6 @@
1
1
  import { Module } from "@intuitionrobotics/ts-common";
2
2
  import { DeriveBodyType, DeriveQueryType, DeriveResponseType, DeriveUrlType, QueryParams } from "../../../shared/types";
3
+ import { AxiosResponse } from "axios";
3
4
  export declare type RemoteServerConfig = {
4
5
  secretHeaderName: string;
5
6
  proxyHeaderName: string;
@@ -11,9 +12,9 @@ export declare class RemoteProxyCaller<Config extends RemoteServerConfig> extend
11
12
  protected init(): void;
12
13
  protected executeGetRequest: <Binder extends import("../../../shared/types").ApiTypeBinder<U, R, void, P, any>, U extends string = DeriveUrlType<Binder>, R = DeriveResponseType<Binder>, P extends QueryParams = DeriveQueryType<Binder>>(url: U, _params: P, _headers?: {
13
14
  [key: string]: string;
14
- } | undefined) => Promise<R>;
15
+ } | undefined) => Promise<AxiosResponse<R, any>>;
15
16
  protected executePostRequest: <Binder extends import("../../../shared/types").ApiTypeBinder<U, B, R, {}, any>, U extends string = DeriveUrlType<Binder>, R = DeriveResponseType<Binder>, B = DeriveBodyType<Binder>>(url: U, body: B, _headers?: {
16
17
  [key: string]: string;
17
- } | undefined) => Promise<R>;
18
+ } | undefined) => Promise<AxiosResponse<R, any>>;
18
19
  private executeRequest;
19
20
  }
@@ -45,37 +45,38 @@ class RemoteProxyCaller extends ts_common_1.Module {
45
45
  urlParams = `?${params.join("&")}`;
46
46
  const proxyRequest = {
47
47
  headers: Object.assign(Object.assign({}, _headers), { [this.config.secretHeaderName]: this.config.secret, [this.config.proxyHeaderName]: this.config.proxyId }),
48
- uri: `${this.config.url}${url}${urlParams}`,
48
+ url: `${this.config.url}${url}${urlParams}`,
49
49
  method: 'GET',
50
- json: true
50
+ responseType: 'json'
51
51
  };
52
52
  return yield this.executeRequest(proxyRequest);
53
53
  });
54
54
  this.executePostRequest = (url, body, _headers) => __awaiter(this, void 0, void 0, function* () {
55
55
  const proxyRequest = {
56
56
  headers: Object.assign(Object.assign({}, _headers), { 'Content-Type': 'application/json', [this.config.secretHeaderName]: this.config.secret, [this.config.proxyHeaderName]: this.config.proxyId }),
57
- json: true,
58
- uri: `${this.config.url}${url}`,
59
- body: body,
57
+ responseType: "json",
58
+ url: `${this.config.url}${url}`,
59
+ data: body,
60
60
  method: 'POST'
61
61
  };
62
62
  return this.executeRequest(proxyRequest);
63
63
  });
64
64
  this.executeRequest = (proxyRequest) => __awaiter(this, void 0, void 0, function* () {
65
- const response = yield promisify_request_1.promisifyRequest(proxyRequest, false);
65
+ const response = yield promisify_request_1.promisifyRequest(proxyRequest);
66
66
  if (proxyRequest.headers)
67
67
  delete proxyRequest.headers[this.config.secretHeaderName];
68
- if (response.statusCode !== 200) {
69
- let errorResponse;
70
- errorResponse = response.body;
68
+ const statusCode = response.status;
69
+ // TODO: need to handle 1XX and 3XX
70
+ if (statusCode < 200 || statusCode >= 300) {
71
+ const errorResponse = response.data;
71
72
  if (!errorResponse)
72
73
  throw new exceptions_1.ApiException(500, `Extraneous error ${ts_common_1.__stringify(response)}, Proxy Request: ${ts_common_1.__stringify(proxyRequest, true)}`);
73
- const e = new exceptions_1.ApiException(response.statusCode, `Redirect proxy error: ${errorResponse.debugMessage} \n Proxy Request: ${ts_common_1.__stringify(proxyRequest, true)}`);
74
+ const e = new exceptions_1.ApiException(response.status, `Redirect proxy error: ${errorResponse.debugMessage} \n Proxy Request: ${ts_common_1.__stringify(proxyRequest, true)}`);
74
75
  if (errorResponse.error)
75
76
  e.setErrorBody(errorResponse.error);
76
77
  throw e;
77
78
  }
78
- return response.toJSON().body;
79
+ return response;
79
80
  });
80
81
  }
81
82
  init() {
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteProxyCaller.js","sourceRoot":"","sources":["../../../../src/main/app-backend/modules/proxy/RemoteProxyCaller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;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AC;QAE7F,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB;YAChC,IAAI,CAAC,MAAM,CAAC,gBAAgB,GAAG,UAAU,CAAC;QAE3C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe;YAC/B,IAAI,CAAC,MAAM,CAAC,eAAe,GAAG,SAAS,CAAC;IAC1C,CAAC;CAiED;AAtFD,8CAsFC"}
@@ -1,3 +1,2 @@
1
- import { Response } from "request";
2
- import { RequestOptions } from "../../backend";
3
- export declare function promisifyRequest(request: RequestOptions, throwException?: boolean): Promise<Response>;
1
+ import { AxiosRequestConfig, AxiosResponse } from "axios";
2
+ export declare function promisifyRequest(_request: AxiosRequestConfig): Promise<AxiosResponse>;
@@ -30,20 +30,31 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
30
30
  };
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
32
  exports.promisifyRequest = void 0;
33
- const _request = require("request");
34
33
  const exceptions_1 = require("../exceptions");
35
34
  const ts_common_1 = require("@intuitionrobotics/ts-common");
36
- function promisifyRequest(request, throwException = true) {
35
+ const axios_1 = require("axios");
36
+ function promisifyRequest(_request) {
37
37
  return __awaiter(this, void 0, void 0, function* () {
38
- return new Promise((resolve, rejected) => {
39
- _request(request, (error, response) => {
40
- if (error)
41
- return rejected(new exceptions_1.ApiException(503, `Error: ${error}\n Request: ${ts_common_1.__stringify(request, true)}`));
42
- if (throwException && response.statusCode !== 200)
43
- return rejected(new exceptions_1.ApiException(response.statusCode, `Redirect proxy message, ${ts_common_1.__stringify(response.body)} \n${ts_common_1.__stringify(request, true)}`));
44
- resolve(response);
45
- });
46
- });
38
+ try {
39
+ return yield axios_1.default.request(_request);
40
+ }
41
+ catch (error) {
42
+ const resp = error.response;
43
+ if (resp) {
44
+ // The request was made and the server responded with a status code
45
+ // that falls out of the range of 2xx
46
+ return resp;
47
+ }
48
+ // if (error.request)
49
+ // The request was made but no response was received
50
+ // `error.request` is an instance of XMLHttpRequest in the browser and an instance of
51
+ // http.ClientRequest in node.js
52
+ throw new exceptions_1.ApiException(503, `Error: ${ts_common_1.__stringify(error)}\n Request: ${ts_common_1.__stringify(_request, true)}`);
53
+ // Something happened in setting up the request that triggered an Error
54
+ // console.log('Error', error.message);
55
+ //
56
+ // console.log(error.config);
57
+ }
47
58
  });
48
59
  }
49
60
  exports.promisifyRequest = promisifyRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"promisify-request.js","sourceRoot":"","sources":["../../../src/main/app-backend/utils/promisify-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;AAEH,oCAAoC;AAEpC,8CAA2C;AAC3C,4DAAyD;AAGzD,SAAsB,gBAAgB,CAAC,OAAuB,EAAE,iBAA0B,IAAI;;QAC7F,OAAO,IAAI,OAAO,CAAW,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE;YAClD,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,QAAkB,EAAE,EAAE;gBAC/C,IAAI,KAAK;oBACR,OAAO,QAAQ,CAAC,IAAI,yBAAY,CAAC,GAAG,EAAE,UAAU,KAAK,eAAe,uBAAW,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;gBAEpG,IAAI,cAAc,IAAI,QAAQ,CAAC,UAAU,KAAK,GAAG;oBAChD,OAAO,QAAQ,CAAC,IAAI,yBAAY,CAAC,QAAQ,CAAC,UAAU,EAAE,2BAA2B,uBAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,uBAAW,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;gBAEjJ,OAAO,CAAC,QAAQ,CAAC,CAAC;YACnB,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC;CAAA;AAZD,4CAYC"}
1
+ {"version":3,"file":"promisify-request.js","sourceRoot":"","sources":["../../../src/main/app-backend/utils/promisify-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;AAGH,8CAA2C;AAC3C,4DAAyD;AACzD,iCAGe;AAEf,SAAsB,gBAAgB,CAAC,QAA4B;;QAClE,IAAI;YACH,OAAO,MAAM,eAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;SACrC;QAAC,OAAO,KAAK,EAAE;YACf,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC;YAC5B,IAAI,IAAI,EAAE;gBACT,mEAAmE;gBACnE,qCAAqC;gBACrC,OAAO,IAAI,CAAC;aACZ;YAED,qBAAqB;YACrB,oDAAoD;YACpD,qFAAqF;YACrF,gCAAgC;YAEhC,MAAM,IAAI,yBAAY,CAAC,GAAG,EAAE,UAAU,uBAAW,CAAC,KAAK,CAAC,eAAe,uBAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,CAAA;YAErG,uEAAuE;YACvE,uCAAuC;YACvC,EAAE;YACF,6BAA6B;SAC7B;IACF,CAAC;CAAA;AAvBD,4CAuBC"}
@@ -1,21 +0,0 @@
1
- /// <reference types="node" />
2
- import { StringMap } from "@intuitionrobotics/ts-common";
3
- export declare const createFormData: (filename: string, buffer: Buffer) => {
4
- file: {
5
- value: Buffer;
6
- options: {
7
- filename: string;
8
- };
9
- };
10
- };
11
- export declare class HttpClient {
12
- private defaultHeaders;
13
- private readonly baseUrl;
14
- constructor(baseUrl: string);
15
- setDefaultHeaders(defaultHeaders: Headers): void;
16
- form(path: string, buffer: Buffer, headers?: Headers): Promise<any>;
17
- get(path: string, _params?: StringMap, headers?: Headers): Promise<any>;
18
- post(path: string, body: any, headers?: Headers): Promise<any>;
19
- put(path: string, body: any, headers?: Headers): Promise<any>;
20
- private executeRequest;
21
- }
@@ -1,108 +1,125 @@
1
1
  "use strict";
2
- /*
3
- * Thunderstorm is a full web app framework!
4
- *
5
- * Typescript & Express backend infrastructure that natively runs on firebase function
6
- * Typescript & React frontend infrastructure
7
- *
8
- * Copyright (C) 2020 Intuition Robotics
9
- *
10
- * Licensed under the Apache License, Version 2.0 (the "License");
11
- * you may not use this file except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * http://www.apache.org/licenses/LICENSE-2.0
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" BASIS,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
23
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
24
- return new (P || (P = Promise))(function (resolve, reject) {
25
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
26
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
27
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
28
- step((generator = generator.apply(thisArg, _arguments || [])).next());
29
- });
30
- };
31
- Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.HttpClient = exports.createFormData = void 0;
33
- const ts_common_1 = require("@intuitionrobotics/ts-common");
34
- const __1 = require("../../..");
35
- const backend_1 = require("../../../backend");
36
- const createFormData = (filename, buffer) => ({ file: { value: buffer, options: { filename } } });
37
- exports.createFormData = createFormData;
38
- class HttpClient {
39
- constructor(baseUrl) {
40
- this.executeRequest = (body) => __awaiter(this, void 0, void 0, function* () {
41
- const response = yield backend_1.promisifyRequest(body, false);
42
- const statusCode = response.statusCode;
43
- if (statusCode >= 200 && statusCode < 300)
44
- return response.toJSON().body;
45
- const errorResponse = response.body;
46
- if (!errorResponse)
47
- throw new backend_1.ApiException(statusCode, `Http request failed without error message: ${ts_common_1.__stringify(body, true)}`);
48
- throw new backend_1.ApiException(statusCode, `Http request failed: ${errorResponse} \n For Request: ${ts_common_1.__stringify(body, true)}`);
49
- });
50
- this.baseUrl = baseUrl;
51
- }
52
- setDefaultHeaders(defaultHeaders) {
53
- this.defaultHeaders = defaultHeaders;
54
- }
55
- form(path, buffer, headers) {
56
- const request = {
57
- headers: Object.assign(Object.assign({}, this.defaultHeaders), { headers }),
58
- uri: `${this.baseUrl}${path}`,
59
- formData: exports.createFormData('logs.zip', buffer),
60
- method: __1.HttpMethod.POST,
61
- };
62
- return this.executeRequest(request);
63
- }
64
- get(path, _params, headers) {
65
- let url = `${this.baseUrl}${path}`;
66
- let nextOperator = "?";
67
- if (url.indexOf("?") !== -1)
68
- nextOperator = "&";
69
- if (_params)
70
- url = Object.keys(_params).reduce((fullUrl, paramKey) => {
71
- const param = _params[paramKey];
72
- if (!param)
73
- return url;
74
- const temp = `${fullUrl}${nextOperator}${paramKey}=${encodeURIComponent(param)}`;
75
- nextOperator = "&";
76
- return temp;
77
- }, url);
78
- const request = {
79
- headers: Object.assign(Object.assign({}, this.defaultHeaders), { headers }),
80
- uri: `${url}`,
81
- method: __1.HttpMethod.GET,
82
- json: true
83
- };
84
- return this.executeRequest(request);
85
- }
86
- post(path, body, headers) {
87
- const request = {
88
- headers: Object.assign(Object.assign({}, this.defaultHeaders), { headers }),
89
- uri: `${this.baseUrl}${path}`,
90
- body,
91
- method: __1.HttpMethod.POST,
92
- json: true
93
- };
94
- return this.executeRequest(request);
95
- }
96
- put(path, body, headers) {
97
- const request = {
98
- headers: Object.assign(Object.assign({}, this.defaultHeaders), { headers }),
99
- uri: `${this.baseUrl}${path}`,
100
- body,
101
- method: __1.HttpMethod.PUT,
102
- json: true
103
- };
104
- return this.executeRequest(request);
105
- }
106
- }
107
- exports.HttpClient = HttpClient;
2
+ // /*
3
+ // * Thunderstorm is a full web app framework!
4
+ // *
5
+ // * Typescript & Express backend infrastructure that natively runs on firebase function
6
+ // * Typescript & React frontend infrastructure
7
+ // *
8
+ // * Copyright (C) 2020 Intuition Robotics
9
+ // *
10
+ // * Licensed under the Apache License, Version 2.0 (the "License");
11
+ // * you may not use this file except in compliance with the License.
12
+ // * You may obtain a copy of the License at
13
+ // *
14
+ // * http://www.apache.org/licenses/LICENSE-2.0
15
+ // *
16
+ // * Unless required by applicable law or agreed to in writing, software
17
+ // * distributed under the License is distributed on an "AS IS" BASIS,
18
+ // * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ // * See the License for the specific language governing permissions and
20
+ // * limitations under the License.
21
+ // */
22
+ //
23
+ // import {
24
+ // __stringify,
25
+ // StringMap
26
+ // } from "@intuitionrobotics/ts-common";
27
+ // import {
28
+ // ErrorResponse,
29
+ // HttpMethod
30
+ // } from "../../..";
31
+ // import {
32
+ // ApiException,
33
+ // promisifyRequest,
34
+ // RequestOptions
35
+ // } from "../../../backend";
36
+ //
37
+ // export const createFormData = (filename: string, buffer: Buffer) => ({file: {value: buffer, options: {filename}}});
38
+ //
39
+ // export class HttpClient {
40
+ //
41
+ // private defaultHeaders!: Headers;
42
+ // private readonly baseUrl: string;
43
+ //
44
+ // constructor(baseUrl: string) {
45
+ // this.baseUrl = baseUrl;
46
+ // }
47
+ //
48
+ // setDefaultHeaders(defaultHeaders: Headers) {
49
+ // this.defaultHeaders = defaultHeaders
50
+ // }
51
+ //
52
+ // form(path: string, buffer: Buffer, headers?: Headers) {
53
+ // const request: RequestOptions = {
54
+ // headers: {...this.defaultHeaders, headers},
55
+ // uri: `${this.baseUrl}${path}`,
56
+ // formData: createFormData('logs.zip', buffer),
57
+ // method: HttpMethod.POST,
58
+ // };
59
+ // return this.executeRequest(request);
60
+ // }
61
+ //
62
+ // get(path: string, _params?: StringMap, headers?: Headers) {
63
+ // let url = `${this.baseUrl}${path}`;
64
+ //
65
+ // let nextOperator = "?";
66
+ // if (url.indexOf("?") !== -1)
67
+ // nextOperator = "&";
68
+ //
69
+ // if (_params)
70
+ // url = Object.keys(_params).reduce((fullUrl: string, paramKey: string) => {
71
+ // const param: string | undefined = _params[paramKey];
72
+ // if (!param)
73
+ // return url;
74
+ //
75
+ // const temp = `${fullUrl}${nextOperator}${paramKey}=${encodeURIComponent(param)}`;
76
+ // nextOperator = "&";
77
+ // return temp;
78
+ // }, url);
79
+ //
80
+ // const request: RequestOptions = {
81
+ // headers: {...this.defaultHeaders, headers},
82
+ // uri: `${url}`,
83
+ // method: HttpMethod.GET,
84
+ // json: true
85
+ // };
86
+ // return this.executeRequest(request);
87
+ // }
88
+ //
89
+ // post(path: string, body: any, headers?: Headers) {
90
+ // const request: RequestOptions = {
91
+ // headers: {...this.defaultHeaders, ...headers},
92
+ // uri: `${this.baseUrl}${path}`,
93
+ // body,
94
+ // method: HttpMethod.POST,
95
+ // json: true
96
+ // };
97
+ // return this.executeRequest(request);
98
+ //
99
+ // }
100
+ //
101
+ // put(path: string, body: any, headers?: Headers) {
102
+ // const request: RequestOptions = {
103
+ // headers: {...this.defaultHeaders, headers},
104
+ // uri: `${this.baseUrl}${path}`,
105
+ // body,
106
+ // method: HttpMethod.PUT,
107
+ // json: true
108
+ // };
109
+ // return this.executeRequest(request);
110
+ // }
111
+ //
112
+ // private executeRequest = async (body: RequestOptions) => {
113
+ // const response = await promisifyRequest(body);
114
+ // const statusCode = response.status;
115
+ // if (statusCode >= 200 && statusCode < 300)
116
+ // return response.data;
117
+ //
118
+ // const errorResponse: ErrorResponse<any> = response.data;
119
+ // if (!errorResponse)
120
+ // throw new ApiException(statusCode, `Http request failed without error message: ${__stringify(body, true)}`);
121
+ //
122
+ // throw new ApiException<any>(statusCode, `Http request failed: ${errorResponse} \n For Request: ${__stringify(body, true)}`);
123
+ // };
124
+ // }
108
125
  //# sourceMappingURL=HttpClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HttpClient.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/http/HttpClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;AAEH,4DAGsC;AACtC,gCAGkB;AAClB,8CAI0B;AAEnB,MAAM,cAAc,GAAG,CAAC,QAAgB,EAAE,MAAc,EAA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,EAAE,cAAU,CAAC,IAAI;YACvB,IAAI,EAAE,IAAI;SACV,CAAC;QACF,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAErC,CAAC;IAED,GAAG,CAAC,IAAY,EAAE,IAAS,EAAE,OAAiB;QAC7C,MAAM,OAAO,GAAmB;YAC/B,OAAO,kCAAM,IAAI,CAAC,cAAc,KAAE,OAAO,GAAC;YAC1C,GAAG,EAAE,GAAG,IAAI,CAAC,OAAO,GAAG,IAAI,EAAE;YAC7B,IAAI;YACJ,MAAM,EAAE,cAAU,CAAC,GAAG;YACtB,IAAI,EAAE,IAAI;SACV,CAAC;QACF,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;CAcD;AArFD,gCAqFC"}
1
+ {"version":3,"file":"HttpClient.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/http/HttpClient.ts"],"names":[],"mappings":";AAAA,KAAK;AACL,+CAA+C;AAC/C,KAAK;AACL,yFAAyF;AACzF,gDAAgD;AAChD,KAAK;AACL,2CAA2C;AAC3C,KAAK;AACL,qEAAqE;AACrE,sEAAsE;AACtE,6CAA6C;AAC7C,KAAK;AACL,oDAAoD;AACpD,KAAK;AACL,yEAAyE;AACzE,uEAAuE;AACvE,8EAA8E;AAC9E,yEAAyE;AACzE,oCAAoC;AACpC,MAAM;AACN,EAAE;AACF,WAAW;AACX,gBAAgB;AAChB,aAAa;AACb,yCAAyC;AACzC,WAAW;AACX,kBAAkB;AAClB,cAAc;AACd,qBAAqB;AACrB,WAAW;AACX,iBAAiB;AACjB,qBAAqB;AACrB,kBAAkB;AAClB,6BAA6B;AAC7B,EAAE;AACF,sHAAsH;AACtH,EAAE;AACF,4BAA4B;AAC5B,EAAE;AACF,qCAAqC;AACrC,qCAAqC;AACrC,EAAE;AACF,kCAAkC;AAClC,4BAA4B;AAC5B,KAAK;AACL,EAAE;AACF,gDAAgD;AAChD,yCAAyC;AACzC,KAAK;AACL,EAAE;AACF,2DAA2D;AAC3D,sCAAsC;AACtC,iDAAiD;AACjD,oCAAoC;AACpC,mDAAmD;AACnD,8BAA8B;AAC9B,OAAO;AACP,yCAAyC;AACzC,KAAK;AACL,EAAE;AACF,+DAA+D;AAC/D,wCAAwC;AACxC,EAAE;AACF,4BAA4B;AAC5B,iCAAiC;AACjC,yBAAyB;AACzB,EAAE;AACF,iBAAiB;AACjB,gFAAgF;AAChF,2DAA2D;AAC3D,kBAAkB;AAClB,mBAAmB;AACnB,EAAE;AACF,wFAAwF;AACxF,0BAA0B;AAC1B,mBAAmB;AACnB,cAAc;AACd,EAAE;AACF,sCAAsC;AACtC,iDAAiD;AACjD,oBAAoB;AACpB,6BAA6B;AAC7B,gBAAgB;AAChB,OAAO;AACP,yCAAyC;AACzC,KAAK;AACL,EAAE;AACF,sDAAsD;AACtD,sCAAsC;AACtC,oDAAoD;AACpD,oCAAoC;AACpC,WAAW;AACX,8BAA8B;AAC9B,gBAAgB;AAChB,OAAO;AACP,yCAAyC;AACzC,EAAE;AACF,KAAK;AACL,EAAE;AACF,qDAAqD;AACrD,sCAAsC;AACtC,iDAAiD;AACjD,oCAAoC;AACpC,WAAW;AACX,6BAA6B;AAC7B,gBAAgB;AAChB,OAAO;AACP,yCAAyC;AACzC,KAAK;AACL,EAAE;AACF,8DAA8D;AAC9D,mDAAmD;AACnD,wCAAwC;AACxC,+CAA+C;AAC/C,2BAA2B;AAC3B,EAAE;AACF,6DAA6D;AAC7D,wBAAwB;AACxB,kHAAkH;AAClH,EAAE;AACF,iIAAiI;AACjI,MAAM;AACN,IAAI"}
package/backend.d.ts CHANGED
@@ -15,4 +15,3 @@ export * from "./app-backend/utils/LogClient_File";
15
15
  export * from "./app-backend/utils/file";
16
16
  export * from "./app-backend/exceptions";
17
17
  export * from "./app-backend/core/Storm";
18
- export * from "./app-frontend/types/request";
package/backend.js CHANGED
@@ -47,5 +47,4 @@ __exportStar(require("./app-backend/utils/LogClient_File"), exports);
47
47
  __exportStar(require("./app-backend/utils/file"), exports);
48
48
  __exportStar(require("./app-backend/exceptions"), exports);
49
49
  __exportStar(require("./app-backend/core/Storm"), exports);
50
- __exportStar(require("./app-frontend/types/request"), exports);
51
50
  //# sourceMappingURL=backend.js.map
package/backend.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"backend.js","sourceRoot":"","sources":["../src/main/backend.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;AAEH,gFAA8D;AAC9D,0EAAwD;AACxD,yEAAuD;AACvD,iFAA+D;AAC/D,6EAA2D;AAC3D,0EAAwD;AACxD,0EAAwD;AACxD,6EAA2D;AAC3D,mEAAiD;AACjD,qEAAmD;AACnD,wEAAsD;AACtD,oEAAkD;AAClD,4DAA0C;AAC1C,qEAAmD;AACnD,2DAAyC;AACzC,2DAAyC;AACzC,2DAAyC;AACzC,+DAA6C"}
1
+ {"version":3,"file":"backend.js","sourceRoot":"","sources":["../src/main/backend.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;AAEH,gFAA8D;AAC9D,0EAAwD;AACxD,yEAAuD;AACvD,iFAA+D;AAC/D,6EAA2D;AAC3D,0EAAwD;AACxD,0EAAwD;AACxD,6EAA2D;AAC3D,mEAAiD;AACjD,qEAAmD;AACnD,wEAAsD;AACtD,oEAAkD;AAClD,4DAA0C;AAC1C,qEAAmD;AACnD,2DAAyC;AACzC,2DAAyC;AACzC,2DAAyC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuitionrobotics/thunderstorm",
3
- "version": "0.41.76",
3
+ "version": "0.42.2",
4
4
  "description": "Thunderstorm",
5
5
  "keywords": [
6
6
  "IR",
@@ -27,11 +27,11 @@
27
27
  "build": "tsc"
28
28
  },
29
29
  "dependencies": {
30
- "@intuitionrobotics/firebase": "~0.41.0",
31
- "@intuitionrobotics/testelot": "~0.41.0",
32
- "@intuitionrobotics/ts-common": "~0.41.0",
30
+ "@intuitionrobotics/firebase": "~0.42.0",
31
+ "@intuitionrobotics/testelot": "~0.42.0",
32
+ "@intuitionrobotics/ts-common": "~0.42.0",
33
33
  "abort-controller": "^3.0.0",
34
- "axios": "^0.21.0",
34
+ "axios": "^0.27.2",
35
35
  "browserify-zlib": "^0.2.0",
36
36
  "buffer": "^6.0.3",
37
37
  "crypto-browserify": "^3.12.0",
@@ -45,7 +45,6 @@
45
45
  "react-router": "^5.1.2",
46
46
  "react-router-dom": "^5.1.2",
47
47
  "react-select": "^4.0.0",
48
- "request": "^2.88.0",
49
48
  "stream-browserify": "^3.0.0"
50
49
  },
51
50
  "devDependencies": {
@@ -60,7 +59,6 @@
60
59
  "@types/react-router": "^5.1.4",
61
60
  "@types/react-router-dom": "^5.1.3",
62
61
  "@types/react-select": "^4.0.0",
63
- "@types/request": "^2.48.1",
64
62
  "body-parser": "^1.19.0",
65
63
  "compression": "^1.7.4",
66
64
  "csstype": "^3.0.0",
@@ -1,2 +0,0 @@
1
- import { CoreOptions, UriOptions } from "request";
2
- export declare type RequestOptions = CoreOptions & UriOptions;
@@ -1,23 +0,0 @@
1
- "use strict";
2
- /*
3
- * Thunderstorm is a full web app framework!
4
- *
5
- * Typescript & Express backend infrastructure that natively runs on firebase function
6
- * Typescript & React frontend infrastructure
7
- *
8
- * Copyright (C) 2020 Intuition Robotics
9
- *
10
- * Licensed under the Apache License, Version 2.0 (the "License");
11
- * you may not use this file except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * http://www.apache.org/licenses/LICENSE-2.0
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" BASIS,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- //# sourceMappingURL=request.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/main/app-frontend/types/request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG"}