studiokit-scaffolding-js 7.0.11-alpha.3 → 7.0.11-alpha.4

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.
@@ -198,7 +198,8 @@ exports.endpointMappings = {
198
198
  lockDownBrowserTest: {
199
199
  _config: {
200
200
  fetch: {
201
- path: '/api/ldb/test'
201
+ path: '/api/ldb/test',
202
+ credentials: 'include'
202
203
  }
203
204
  }
204
205
  }
@@ -92,12 +92,13 @@ function isContentTypeJson(contentType) {
92
92
  * @returns The response, parsed as JSON
93
93
  */
94
94
  function sendFetch(config) {
95
- var method, path, headers, isBodyJson, body, response_1, result, isResponseJson, _a, _b, errorData, error_2, sendFetchError;
95
+ var method, credentials, path, headers, isBodyJson, body, response_1, result, isResponseJson, _a, _b, errorData, error_2, sendFetchError;
96
96
  var _c, _d, _e, _f, _g, _h, _j;
97
97
  return __generator(this, function (_k) {
98
98
  switch (_k.label) {
99
99
  case 0:
100
100
  method = config.method || 'GET';
101
+ credentials = config.credentials || 'same-origin';
101
102
  _k.label = 1;
102
103
  case 1:
103
104
  _k.trys.push([1, 9, , 10]);
@@ -115,7 +116,8 @@ function sendFetch(config) {
115
116
  return [4 /*yield*/, effects_1.call(fetch, path, {
116
117
  method: method,
117
118
  headers: headers,
118
- body: body
119
+ body: body,
120
+ credentials: credentials
119
121
  })];
120
122
  case 2:
121
123
  response_1 = _k.sent();
@@ -10,4 +10,5 @@ export interface FetchConfig {
10
10
  body?: any;
11
11
  contentType?: string;
12
12
  queryParams?: Record<string, string | number | boolean>;
13
+ credentials?: RequestCredentials;
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "studiokit-scaffolding-js",
3
- "version": "7.0.11-alpha.3",
3
+ "version": "7.0.11-alpha.4",
4
4
  "description": "Common scaffolding for Studio apps at Purdue",
5
5
  "repository": "https://gitlab.com/purdue-informatics/studiokit/studiokit-scaffolding-js",
6
6
  "license": "MIT",