@hazeljs/inspector 0.7.8 → 0.8.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.
Files changed (2) hide show
  1. package/README.md +9 -11
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -50,14 +50,14 @@ Then run your app and open:
50
50
 
51
51
  ## Configuration
52
52
 
53
- | Option | Default | Description |
54
- |--------|---------|-------------|
55
- | `enableInspector` | `true` | Enable the inspector |
56
- | `inspectorBasePath` | `'/__hazel'` | Base path for all inspector endpoints |
57
- | `exposeUi` | `true` | Serve the DevTools UI at the base path |
58
- | `exposeJson` | `true` | Expose JSON endpoints |
59
- | `developmentOnly` | `true` | Disable in production (NODE_ENV=production) |
60
- | `maxSnapshotCacheAgeMs` | `5000` | Cache snapshot for 5 seconds |
53
+ | Option | Default | Description |
54
+ | ----------------------- | ------------ | ------------------------------------------- |
55
+ | `enableInspector` | `true` | Enable the inspector |
56
+ | `inspectorBasePath` | `'/__hazel'` | Base path for all inspector endpoints |
57
+ | `exposeUi` | `true` | Serve the DevTools UI at the base path |
58
+ | `exposeJson` | `true` | Expose JSON endpoints |
59
+ | `developmentOnly` | `true` | Disable in production (NODE_ENV=production) |
60
+ | `maxSnapshotCacheAgeMs` | `5000` | Cache snapshot for 5 seconds |
61
61
 
62
62
  ## Security
63
63
 
@@ -75,9 +75,7 @@ import { HazelInspectorRegistry, type HazelInspectorPlugin } from '@hazeljs/insp
75
75
  const myPlugin: HazelInspectorPlugin = {
76
76
  name: 'my-plugin',
77
77
  supports: (ctx) => true,
78
- inspect: async (ctx) => [
79
- { id: 'custom:1', kind: 'route', packageName: '@my/package', /* ... */ },
80
- ],
78
+ inspect: async (ctx) => [{ id: 'custom:1', kind: 'route', packageName: '@my/package' /* ... */ }],
81
79
  };
82
80
 
83
81
  // Register during bootstrap (e.g. in a provider that runs early)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hazeljs/inspector",
3
- "version": "0.7.8",
3
+ "version": "0.8.0",
4
4
  "description": "Framework-aware runtime inspector for HazelJS - metadata explorer and DevTools UI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -87,7 +87,7 @@
87
87
  }
88
88
  },
89
89
  "devDependencies": {
90
- "@hazeljs/core": "^0.7.8",
90
+ "@hazeljs/core": "^0.8.0",
91
91
  "@types/jest": "^29.5.14",
92
92
  "@types/node": "^20.19.39",
93
93
  "@typescript-eslint/eslint-plugin": "^8.58.0",
@@ -120,5 +120,5 @@
120
120
  "url": "https://github.com/hazeljs/hazel-js/issues"
121
121
  },
122
122
  "homepage": "https://hazeljs.ai",
123
- "gitHead": "906cacdc08d52c4616831b888748f1d1887edb80"
123
+ "gitHead": "e0ed98ca074dd4f7472816d3c32ef576900dcca6"
124
124
  }