Skip to content

Commit

Permalink
Merge branch 'jonas/pjs-2053-peerjs-needs-content-security-policy-scr…
Browse files Browse the repository at this point in the history
…ipt-src-unsafe-eval' into rc
  • Loading branch information
jonasgloning committed Apr 27, 2024
2 parents 48bb36d + f1857fe commit 3b5e9e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/dataconnection/StreamConnection/Cbor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Peer } from "../../peer.js";
import { Decoder, Encoder } from "cbor-x";
import { Decoder, Encoder } from "cbor-x/index-no-eval";
import { StreamConnection } from "./StreamConnection.js";

const NullValue = Symbol.for(null);
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"skipLibCheck": true,
"isolatedModules": true,
"resolveJsonModule": true,
"lib": ["es2020", "dom"]
"lib": ["es2020", "dom"],
"paths": {
"cbor-x/index-no-eval": ["./node_modules/cbor-x"]
}
},
"exclude": ["node_modules", "dist", "e2e"]
}

0 comments on commit 3b5e9e8

Please sign in to comment.