what-devtools 0.13.4 → 0.13.5
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/package.json +2 -2
- package/src/index.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "what-devtools",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.5",
|
|
4
4
|
"description": "Dev tools for What Framework — signal inspector, component tree, effect graph",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"inspector"
|
|
27
27
|
],
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"what-core": "^0.13.
|
|
29
|
+
"what-core": "^0.13.5"
|
|
30
30
|
},
|
|
31
31
|
"author": "ZVN DEV (https://zvndev.com)",
|
|
32
32
|
"license": "MIT",
|
package/src/index.js
CHANGED
|
@@ -22,6 +22,7 @@ let componentId = 0;
|
|
|
22
22
|
// what-core's installSignalReadGuardrail, captured when the core module is
|
|
23
23
|
// wired up in installDevTools(). Dev-only: warns when a signal is coerced
|
|
24
24
|
// to a string/number without being called (e.g. `Total: ${count}`).
|
|
25
|
+
/** @type {((sig: any, name: string) => void) | null} */
|
|
25
26
|
let coreSignalReadGuardrail = null;
|
|
26
27
|
|
|
27
28
|
// Registries
|
|
@@ -465,7 +466,7 @@ export function getErrors(opts = {}) {
|
|
|
465
466
|
* Install devtools. Call once at app startup.
|
|
466
467
|
* Wires into what-core's __DEV__ hooks and exposes `window.__WHAT_DEVTOOLS__`.
|
|
467
468
|
*
|
|
468
|
-
* @param {
|
|
469
|
+
* @param {any} [core] - Optional what-core module. If not provided, attempts dynamic import.
|
|
469
470
|
*/
|
|
470
471
|
export function installDevTools(core) {
|
|
471
472
|
if (installed) return;
|