Last active
March 30, 2025 00:13
Revisions
-
wplit revised this gist
Mar 30, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ request: function (e, t) { // Possible solution, returns original request if no body request: function (e, t) { if (t && t.body) { const { body: n } = t; -
wplit revised this gist
Mar 30, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ /* current code, fails when fails when t.body is undefined */ request: function (e, t) { const { body: n } = t; // This fails when t.body is undefined r = JSON.parse(n); -
wplit revised this gist
Mar 30, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ request: function (e, t) { // Return original request if no body, would solve request: function (e, t) { if (t && t.body) { const { body: n } = t; -
wplit revised this gist
Mar 30, 2025 . 1 changed file with 13 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,18 @@ /* current code */ request: function (e, t) { const { body: n } = t; // This fails when t.body is undefined r = JSON.parse(n); return "bricks_render_element" === r?.action && r?.element && (m(r.element), E(r.element.id)), [e, t]; } // Return original request if no body request: function (e, t) { if (t && t.body) { const { body: n } = t; r = JSON.parse(n); return "bricks_render_element" === r?.action && r?.element && (m(r.element), E(r.element.id)), [e, t]; } return [e, t]; } -
wplit revised this gist
Mar 30, 2025 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ request: function (e, t) { const { body: n } = t; // This fails when t.body is undefined r = JSON.parse(n); -
wplit created this gist
Mar 30, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ request: function (e, t) { const { body: n } = t; // This fails when t.body is undefined r = JSON.parse(n); return "bricks_render_element" === r?.action && r?.element && (m(r.element), E(r.element.id)), [e, t]; }