+
{JSON.stringify(session, null, 2)}
+
{JSON.stringify(request, null, 2)}
+
{JSON.stringify(env, null, 2)}
+
+ );
+};
+export default PrintEnv;
diff --git a/src/lib/helpers/debug.ts b/src/lib/helpers/debug.ts
new file mode 100644
index 0000000..a75398d
--- /dev/null
+++ b/src/lib/helpers/debug.ts
@@ -0,0 +1,30 @@
+/* eslint-disable @typescript-eslint/no-unsafe-return */
+/* eslint-disable @typescript-eslint/no-unsafe-member-access */
+/* eslint-disable @typescript-eslint/no-unsafe-call */
+export function syntaxHighlight(json) {
+ if (typeof json != "string") {
+ json = JSON.stringify(json, undefined, 2);
+ }
+ json = json
+ .replace(/&/g, "&")
+ .replace(//g, ">");
+ return json.replace(
+ /("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,
+ function (match) {
+ var cls = "number";
+ if (/^"/.test(match)) {
+ if (/:$/.test(match)) {
+ cls = "key";
+ } else {
+ cls = "string";
+ }
+ } else if (/true|false/.test(match)) {
+ cls = "boolean";
+ } else if (/null/.test(match)) {
+ cls = "null";
+ }
+ return '