diff --git a/lib/devtools-inspector.js b/lib/devtools-inspector.js
index c7d3540..f588f66 100644
--- a/lib/devtools-inspector.js
+++ b/lib/devtools-inspector.js
@@ -62,8 +62,8 @@ customElements.define('devtools-inspector', class extends HTMLElement {
import inspector from 'inspector'
import { Inspector } from 'pear-inspect'
const pearInspector = await new Inspector({ inspector }).enable()
- const { publicKey } = await pearInspector.enable()
- console.log('Pear Inspector key:', publicKey.toString('hex'))
+ const { inspectorKey } = await pearInspector.enable()
+ console.log('Pear Inspector key:', inspectorKey.toString('hex'))
Running your program and the Pear Inspector key will be logged
@@ -97,16 +97,16 @@ customElements.define('devtools-inspector', class extends HTMLElement {
this.addKeyFormElem.addEventListener('submit', e => {
e.preventDefault()
- const publicKey = this.addKeyInputElem.value
- if (publicKey.length !== 64) {
+ const inspectorKey = this.addKeyInputElem.value
+ if (inspectorKey.length !== 64) {
this.addKeyErrorElem.textContent = 'Key needs to be 64 characters long'
return
}
const sessionId = generateUuid()
- const inspectorSession = new Session({ publicKey: b4a.from(publicKey, 'hex') })
+ const inspectorSession = new Session({ inspectorKey: b4a.from(inspectorKey, 'hex') })
const app = {
- publicKey,
+ inspectorKey,
title: '',
url: '',
inspectorSession
diff --git a/package.json b/package.json
index 6b07294..c4d4ed0 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,8 @@
}
},
"dependencies": {
- "@holepunchto/pear-inspect": "^2.0.0",
+ "@holepunchto/pear-inspect": "^3.0.0",
+ "b4a": "^1.6.4",
"bare-path": "^2.1.0",
"redhat-overpass-font": "^1.0.0",
"ws": "^8.16.0"