Skip to content

Commit c5044d1

Browse files
committed
refactor: establish Storage folder feature
1 parent 3d3c9d3 commit c5044d1

15 files changed

Lines changed: 9 additions & 22 deletions

rescript.json

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"WebAPI.SVG",
3333
"Canvas"
3434
],
35+
"WebAPI.Storage": ["WebAPI.Fetch", "Storage"],
3536
"WebAPI.File": ["WebAPI.Event", "File"],
3637
"WebAPI.URL": ["WebAPI.DOM", "URL"],
3738
"WebAPI.Fetch": ["WebAPI.Event", "WebAPI.File", "WebAPI.URL", "Fetch"],
@@ -362,15 +363,20 @@
362363
]
363364
},
364365
{
365-
"dir": "src/IndexedDB",
366+
"dir": "src/storage",
366367
"subdirs": true,
367-
"feature": "WebAPI.IndexedDB",
368+
"feature": "Storage",
368369
"public": [
370+
"Cache",
371+
"CacheStorage",
369372
"IDBDatabase",
370373
"IDBFactory",
371374
"IDBIndex",
372375
"IDBObjectStore",
373-
"IDBTransaction"
376+
"IDBTransaction",
377+
"Storage",
378+
"StorageEvent",
379+
"StorageManager"
374380
]
375381
},
376382
{
@@ -440,7 +446,6 @@
440446
"subdirs": true,
441447
"feature": "WebAPI.ServiceWorker",
442448
"public": [
443-
"Cache",
444449
"Clients",
445450
"NavigationPreloadManager",
446451
"ServiceWorker",
@@ -449,14 +454,6 @@
449454
"ServiceWorkerScope"
450455
]
451456
},
452-
{
453-
"dir": "src/Storage",
454-
"subdirs": true,
455-
"feature": "WebAPI.Storage",
456-
"public": [
457-
"StorageManager"
458-
]
459-
},
460457
{
461458
"dir": "src/ui-events",
462459
"subdirs": true,
@@ -550,21 +547,11 @@
550547
"SubtleCrypto"
551548
]
552549
},
553-
{
554-
"dir": "src/WebStorage",
555-
"subdirs": true,
556-
"feature": "WebAPI.WebStorage",
557-
"public": [
558-
"Storage",
559-
"StorageEvent"
560-
]
561-
},
562550
{
563551
"dir": "src/WebWorkers",
564552
"subdirs": true,
565553
"feature": "WebAPI.WebWorkers",
566554
"public": [
567-
"CacheStorage",
568555
"SharedWorker",
569556
"SharedWorkerScope",
570557
"Worker"

0 commit comments

Comments
 (0)