dce-reactkit 3.9.0 → 3.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,7 @@
3
3
  * dce-reactkit [for server only]
4
4
  * @author Gabe Abrams
5
5
  * @param opts object containing all arguments
6
+ * @param opts.host - the host of the other server
6
7
  * @param opts.path - the path of the other server's endpoint
7
8
  * @param [opts.method=GET] - the method of the endpoint
8
9
  * @param [opts.params] - query/body parameters to include
@@ -10,6 +11,7 @@
10
11
  * @returns response from server
11
12
  */
12
13
  declare const visitEndpointOnAnotherServer: (opts: {
14
+ host: string;
13
15
  path: string;
14
16
  method?: "GET" | "POST" | "DELETE" | "PUT" | undefined;
15
17
  params?: {
package/dist/esm/index.js CHANGED
@@ -16067,6 +16067,7 @@ const sendServerToServerRequest = (opts) => __awaiter(void 0, void 0, void 0, fu
16067
16067
  * dce-reactkit [for server only]
16068
16068
  * @author Gabe Abrams
16069
16069
  * @param opts object containing all arguments
16070
+ * @param opts.host - the host of the other server
16070
16071
  * @param opts.path - the path of the other server's endpoint
16071
16072
  * @param [opts.method=GET] - the method of the endpoint
16072
16073
  * @param [opts.params] - query/body parameters to include
@@ -16097,6 +16098,7 @@ const visitEndpointOnAnotherServer = (opts) => __awaiter(void 0, void 0, void 0,
16097
16098
  }
16098
16099
  // Send the request
16099
16100
  const response = yield sendServerToServerRequest({
16101
+ host: opts.host,
16100
16102
  path: opts.path,
16101
16103
  method: (_a = opts.method) !== null && _a !== void 0 ? _a : 'GET',
16102
16104
  params,