dce-reactkit 3.6.26 → 3.6.27
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/index.js +93 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +93 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/helpers/genRouteHandler.ts +4 -3
package/package.json
CHANGED
|
@@ -14,6 +14,7 @@ import ParamType from '../types/ParamType';
|
|
|
14
14
|
import handleError from './handleError';
|
|
15
15
|
import handleSuccess from './handleSuccess';
|
|
16
16
|
import genErrorPage from '../html/genErrorPage';
|
|
17
|
+
import genInfoPage from '../html/genInfoPage';
|
|
17
18
|
import parseUserAgent from './parseUserAgent';
|
|
18
19
|
import getTimeInfoInET from './getTimeInfoInET';
|
|
19
20
|
|
|
@@ -407,7 +408,7 @@ const genRouteHandler = (
|
|
|
407
408
|
});
|
|
408
409
|
|
|
409
410
|
/*----------------------------------------*/
|
|
410
|
-
/*
|
|
411
|
+
/* ----- Require Course Consistency ----- */
|
|
411
412
|
/*----------------------------------------*/
|
|
412
413
|
|
|
413
414
|
// Make sure the user actually launched from the appropriate course
|
|
@@ -476,7 +477,7 @@ const genRouteHandler = (
|
|
|
476
477
|
}
|
|
477
478
|
|
|
478
479
|
/*----------------------------------------*/
|
|
479
|
-
/*
|
|
480
|
+
/* ------------- Log Handler ------------ */
|
|
480
481
|
/*----------------------------------------*/
|
|
481
482
|
|
|
482
483
|
// Create a log handler function
|
|
@@ -745,7 +746,7 @@ const genRouteHandler = (
|
|
|
745
746
|
body: string,
|
|
746
747
|
},
|
|
747
748
|
) => {
|
|
748
|
-
const html =
|
|
749
|
+
const html = genInfoPage(renderOpts);
|
|
749
750
|
send(html, 200);
|
|
750
751
|
};
|
|
751
752
|
|