@aimeloic/monkey-tester 4.0.10 → 5.0.0
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/htmlTemplate.js +3 -3
- package/package.json +1 -1
package/htmlTemplate.js
CHANGED
|
@@ -11,7 +11,8 @@ function encodePayload(obj) {
|
|
|
11
11
|
|
|
12
12
|
// The reciprocal decode runs inside each HTML template (see _decode below).
|
|
13
13
|
// It is injected as a one-liner so every template is self-contained.
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
const _decode = `function _decode(b64){return JSON.parse(decodeURIComponent(escape(atob(b64.replace(/\s+/g,'')))));}`;
|
|
15
16
|
|
|
16
17
|
// ─── Runtime sandbox (injected into tester page) ─────────────────────────────
|
|
17
18
|
function runtimeClientSandbox() {
|
|
@@ -441,8 +442,7 @@ async function handleRegister() {
|
|
|
441
442
|
<script>
|
|
442
443
|
// ── Unicode-safe decode ──────────────────────────────────────────────────────
|
|
443
444
|
function _decode(b64) {
|
|
444
|
-
|
|
445
|
-
return JSON.parse(decodeURIComponent(escape(atob(b64.replace(/\s+/g, '')))));
|
|
445
|
+
return JSON.parse(decodeURIComponent(escape(atob(b64.replace(/\s+/g, '')))));
|
|
446
446
|
}
|
|
447
447
|
|
|
448
448
|
const ENDPOINTS = _decode(
|