Skip to content

Commit 6f4b500

Browse files
committed
release: v1.4.5
1 parent 6156d2b commit 6f4b500

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.4.5 (1 Apr 2023)
2+
3+
* fix: some console error
4+
15
## 1.4.4 (20 Dec 2022)
26

37
* fix: select element on mobile

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chobitsu",
3-
"version": "1.4.4",
3+
"version": "1.4.5",
44
"description": "Chrome devtools protocol JavaScript implementation",
55
"main": "dist/chobitsu.js",
66
"exports": {

src/domains/CacheStorage.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export function requestCacheNames() {
2+
return {
3+
caches: [],
4+
}
5+
}

src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import * as Overlay from './domains/Overlay'
1313
import * as DOMDebugger from './domains/DOMDebugger'
1414
import * as Debugger from './domains/Debugger'
1515
import * as Storage from './domains/Storage'
16+
import * as CacheStorage from './domains/CacheStorage'
1617

1718
const chobitsu = new Chobitsu()
1819
chobitsu.register('Network', {
@@ -40,6 +41,7 @@ chobitsu.register('Runtime', {
4041
})
4142
chobitsu.register('DOM', {
4243
...DOM,
44+
pushNodeByPathToFrontend: noop,
4345
getNodeId: DOM.getDOMNodeId,
4446
getNode: DOM.getDOMNode,
4547
markUndoableState: noop,
@@ -60,6 +62,7 @@ chobitsu.register('Debugger', {
6062
})
6163
chobitsu.register('Overlay', {
6264
...Overlay,
65+
setPausedInDebuggerMessage: noop,
6366
highlightFrame: noop,
6467
setShowGridOverlays: noop,
6568
setShowFlexOverlays: noop,
@@ -105,10 +108,12 @@ chobitsu.register('Database', {
105108
enable: noop,
106109
})
107110
chobitsu.register('CacheStorage', {
108-
requestCacheNames: noop,
111+
...CacheStorage,
109112
})
110113
chobitsu.register('Storage', {
111114
...Storage,
115+
untrackCacheStorageForOrigin: noop,
116+
untrackIndexedDBForOrigin: noop,
112117
trackCacheStorageForOrigin: noop,
113118
trackIndexedDBForOrigin: noop,
114119
})

0 commit comments

Comments
 (0)