Skip to content

Commit

Permalink
release: v1.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Apr 1, 2023
1 parent 6156d2b commit 6f4b500
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
5 changes: 5 additions & 0 deletions src/domains/CacheStorage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export function requestCacheNames() {
return {
caches: [],
}
}
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down Expand Up @@ -40,6 +41,7 @@ chobitsu.register('Runtime', {
})
chobitsu.register('DOM', {
...DOM,
pushNodeByPathToFrontend: noop,
getNodeId: DOM.getDOMNodeId,
getNode: DOM.getDOMNode,
markUndoableState: noop,
Expand All @@ -60,6 +62,7 @@ chobitsu.register('Debugger', {
})
chobitsu.register('Overlay', {
...Overlay,
setPausedInDebuggerMessage: noop,
highlightFrame: noop,
setShowGridOverlays: noop,
setShowFlexOverlays: noop,
Expand Down Expand Up @@ -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,
})
Expand Down

0 comments on commit 6f4b500

Please sign in to comment.