diff --git a/CHANGELOG.md b/CHANGELOG.md index 59b82e9..8ab3dfc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.4.5 (1 Apr 2023) + +* fix: some console error + ## 1.4.4 (20 Dec 2022) * fix: select element on mobile diff --git a/package.json b/package.json index c486ddd..7814ba2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chobitsu", - "version": "1.4.4", + "version": "1.4.5", "description": "Chrome devtools protocol JavaScript implementation", "main": "dist/chobitsu.js", "exports": { diff --git a/src/domains/CacheStorage.ts b/src/domains/CacheStorage.ts new file mode 100644 index 0000000..a4b9b3b --- /dev/null +++ b/src/domains/CacheStorage.ts @@ -0,0 +1,5 @@ +export function requestCacheNames() { + return { + caches: [], + } +} diff --git a/src/index.ts b/src/index.ts index 25c04d3..4622edd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,6 +13,7 @@ import * as Overlay from './domains/Overlay' import * as DOMDebugger from './domains/DOMDebugger' import * as Debugger from './domains/Debugger' import * as Storage from './domains/Storage' +import * as CacheStorage from './domains/CacheStorage' const chobitsu = new Chobitsu() chobitsu.register('Network', { @@ -40,6 +41,7 @@ chobitsu.register('Runtime', { }) chobitsu.register('DOM', { ...DOM, + pushNodeByPathToFrontend: noop, getNodeId: DOM.getDOMNodeId, getNode: DOM.getDOMNode, markUndoableState: noop, @@ -60,6 +62,7 @@ chobitsu.register('Debugger', { }) chobitsu.register('Overlay', { ...Overlay, + setPausedInDebuggerMessage: noop, highlightFrame: noop, setShowGridOverlays: noop, setShowFlexOverlays: noop, @@ -105,10 +108,12 @@ chobitsu.register('Database', { enable: noop, }) chobitsu.register('CacheStorage', { - requestCacheNames: noop, + ...CacheStorage, }) chobitsu.register('Storage', { ...Storage, + untrackCacheStorageForOrigin: noop, + untrackIndexedDBForOrigin: noop, trackCacheStorageForOrigin: noop, trackIndexedDBForOrigin: noop, })