Skip to content

Commit 8cd32b5

Browse files
authored
support depot URLs (#30)
1 parent d37912f commit 8cd32b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/print.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class Package {
261261
if (resolved && resolved.startsWith('https')) {
262262
const parsedUrl = new URL(resolved);
263263
// prettier-ignore
264-
if (['registry.yarnpkg.com', 'registry.npmjs.org'].includes(parsedUrl.host)) {
264+
if (['registry.yarnpkg.com', 'registry.npmjs.org', 'depot.canva-internal.com'].includes(parsedUrl.host)) {
265265
src = {
266266
sha1: parsedUrl.hash.slice(1), // cut off the first ('#') character
267267
url: parsedUrl.origin + parsedUrl.pathname,

0 commit comments

Comments
 (0)