Skip to content

Commit 09d7b92

Browse files
authored
use sri safe url (#29)
1 parent 70fd683 commit 09d7b92

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/tests.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ import {
33
assertStrictEquals,
44
} from "https://deno.land/[email protected]/assert/mod.ts";
55

6-
import * as cheerio from "https://cdn.jsdelivr.net/npm/cheerio/+esm";
6+
import * as cheerio from "https://esm.sh/[email protected]/dist/browser/index.js?bundle=false";
77

8-
import cspParser from "https://cdn.jsdelivr.net/npm/[email protected]/script/mod.js/+esm";
8+
import parseContentSecurityPolicy from "https://esm.sh/[email protected]/script/mod.js";
99
import { assertEquals } from "https://deno.land/[email protected]/assert/assert_equals.ts";
1010
import { assert } from "https://deno.land/[email protected]/assert/assert.ts";
1111
import { assertArrayIncludes } from "https://deno.land/[email protected]/assert/assert_array_includes.ts";
1212

1313
import type { Params } from "../src/csp.ts";
14-
const parseContentSecurityPolicy = cspParser.default;
1514
export default async function (
1615
csp: (originalResponse: Response, params?: Params) => Response,
1716
) {

0 commit comments

Comments
 (0)