Skip to content

Commit

Permalink
0.0.50; turn off sri
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Dec 6, 2023
1 parent 32aec0e commit debb232
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@observablehq/cli",
"license": "UNLICENSED",
"version": "0.0.49",
"version": "0.0.50",
"type": "module",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
Expand Down
2 changes: 1 addition & 1 deletion src/javascript/imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ async function fetchModulePreloads(href: string): Promise<Set<string> | undefine
}
}
}
integrityCache.set(href, `sha384-${createHash("sha384").update(body).digest("base64")}`);
// TODO integrityCache.set(href, `sha384-${createHash("sha384").update(body).digest("base64")}`);
return imports;
})();
promise.catch(() => preloadCache.delete(href)); // try again on error
Expand Down
2 changes: 1 addition & 1 deletion test/output/build/imports/foo/foo.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<link rel="modulepreload" href="../_observablehq/client.js">
<link rel="modulepreload" href="../_observablehq/runtime.js">
<link rel="modulepreload" href="../_observablehq/stdlib.js">
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/d3@7.8.5/+esm" integrity="sha384-OLBgp1GsljhM2TJ+sbHjaiH9txEUvgdDTAzHv2P24donTt6/529l+9Ua0vFImLlb">
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/d3@7.8.5/+esm">
<script type="module">

import {define} from "../_observablehq/client.js";
Expand Down

0 comments on commit debb232

Please sign in to comment.