studiokit-scaffolding-js 7.0.11-alpha.2 → 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.
|
@@ -89,7 +89,7 @@ var LockDownBrowserCheck = function () {
|
|
|
89
89
|
react_1.default.createElement("dt", null, "Build Date"),
|
|
90
90
|
react_1.default.createElement("dd", null, buildDate))))),
|
|
91
91
|
react_1.default.createElement(ExitButton_1.LockDownBrowserExitButton, null))),
|
|
92
|
-
react_1.default.createElement("pre", null, testData))))));
|
|
92
|
+
testData && react_1.default.createElement("pre", null, JSON.stringify(testData, null, 2)))))));
|
|
93
93
|
};
|
|
94
94
|
exports.LockDownBrowserCheck = LockDownBrowserCheck;
|
|
95
95
|
// required for use in Routes / AsyncComponent
|
package/lib/endpointMappings.js
CHANGED
|
@@ -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();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "studiokit-scaffolding-js",
|
|
3
|
-
"version": "7.0.11-alpha.
|
|
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",
|