stx-router 0.2.406 → 0.2.408

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/client.d.ts CHANGED
@@ -1,10 +1,15 @@
1
1
  /**
2
- * The router script as it ships: debug logging removed, then minified.
2
+ * The router script as it ships: debug logging removed, then minified with
3
+ * its local names mangled.
3
4
  *
4
5
  * Every page carries this, so the 32 `log()` call sites -- 2.3KB of the
5
6
  * delivered bytes, printing nothing unless `debug` is set -- are not part of
6
7
  * it. Stripping happens outside the try, as in generateSignalsRuntime: losing
7
8
  * minification makes the script bigger, losing the strip would ship the logs.
9
+ *
10
+ * Mangling is safe because everything lives in one IIFE and nothing reaches
11
+ * in by name: the outside sees window.stxRouter and the events. It takes
12
+ * about a quarter off; the dev build keeps the names for reading.
8
13
  */
9
14
  export declare function getRouterScript(): string;
10
15
  /**