From 344cb4826eb45fd623ec2e2c4aae83c578d78d32 Mon Sep 17 00:00:00 2001 From: Chirag Singla Date: Mon, 30 May 2022 12:48:33 +0530 Subject: [PATCH] fix: update jsdelivr to unpkg as jsdelivr is blocked in some regions --- packages/core/src/components/providers/dash/dash.tsx | 2 +- packages/core/src/components/providers/hls/hls.tsx | 2 +- packages/core/src/components/ui/icon-library/IconRegistry.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/components/providers/dash/dash.tsx b/packages/core/src/components/providers/dash/dash.tsx index ffb264a9..df191f83 100644 --- a/packages/core/src/components/providers/dash/dash.tsx +++ b/packages/core/src/components/providers/dash/dash.tsx @@ -189,7 +189,7 @@ export class Dash implements MediaFileProvider { try { const url = this.libSrc || - `https://cdn.jsdelivr.net/npm/dashjs@${this.version}/dist/dash.all.min.js`; + `https://unpkg.com/dashjs@${this.version}/dist/dash.all.min.js`; const DashSDK = (await loadSDK(url, 'dashjs')) as any; diff --git a/packages/core/src/components/providers/hls/hls.tsx b/packages/core/src/components/providers/hls/hls.tsx index bd513629..ce625068 100644 --- a/packages/core/src/components/providers/hls/hls.tsx +++ b/packages/core/src/components/providers/hls/hls.tsx @@ -136,7 +136,7 @@ export class HLS implements MediaFileProvider { try { const url = this.libSrc || - `https://cdn.jsdelivr.net/npm/hls.js@${this.version}/dist/hls.min.js`; + `https://unpkg.com/hls.js@${this.version}/dist/hls.min.js`; const Hls = (await loadSDK(url, 'Hls')) as any; diff --git a/packages/core/src/components/ui/icon-library/IconRegistry.ts b/packages/core/src/components/ui/icon-library/IconRegistry.ts index 238a545d..b63ab3ea 100644 --- a/packages/core/src/components/ui/icon-library/IconRegistry.ts +++ b/packages/core/src/components/ui/icon-library/IconRegistry.ts @@ -12,7 +12,7 @@ export type IconLibraryResolver = (name: string) => string; export const ICONS_BASE_CDN_URL = process.env.NODE_ENV === 'development' ? '/icons' - : 'https://cdn.jsdelivr.net/npm/@vime/core@latest/icons'; + : 'https://unpkg.com/@vime/core@5.3.1/icons'; const registry = new Map( Object.entries({