Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
umaar committed Nov 9, 2023
1 parent d344178 commit c24cebb
Show file tree
Hide file tree
Showing 5 changed files with 1,302 additions and 1,185 deletions.
8 changes: 8 additions & 0 deletions demos/devtools-storage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Clear all web storage</title>
<link rel="stylesheet" href="https://unpkg.com/mvp.css" />
<script type="importmap">
{
"imports": {
"idb-keyval": "https://cdn.jsdelivr.net/npm/idb-keyval@6/+esm",
"js-cookie": "https://cdn.jsdelivr.net/npm/js-cookie@3/+esm"
}
}
</script>
<script type="module" src="main.js" defer></script>
</head>
<body>
Expand Down
6 changes: 3 additions & 3 deletions demos/devtools-storage/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

// Don't edit any code in this file

import { get, set, keys } from "https://cdn.jsdelivr.net/npm/idb-keyval@6/+esm";
import cookies from "https://cdn.jsdelivr.net/npm/js-cookie@3.0.1/+esm";
import { set, keys } from "idb-keyval";
import cookies from "js-cookie";

let CACHE_KEY_INDEX;
let CACHE_KEY = `codelab`;
Expand Down Expand Up @@ -75,7 +75,7 @@ function handlePopulateButton() {
function checkLocalStorage() {
const localStorageKeysWithoutCacheKeyIndex = Object.keys(
localStorage
).filter((item) => item !== CACHE_KEY_INDEX_KEY);
).filter(item => item !== CACHE_KEY_INDEX_KEY);
const length = localStorageKeysWithoutCacheKeyIndex.length;
document.querySelector("#localStorage").textContent = `${length} items`;
}
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import express from "express";
import cors from "cors";
import serveIndex from "serve-index";

const app = express();
const port = 3000;

Expand Down
Loading

0 comments on commit c24cebb

Please sign in to comment.