Skip to content

Commit cbda6c1

Browse files
authored
chore: remove invalid CDNs (#244)
1 parent a89296b commit cbda6c1

File tree

3 files changed

+0
-40
lines changed

3 files changed

+0
-40
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,6 @@ there is the following cdn to use, full detail see [cdn.ts](/packages/vite-plugi
333333

334334
- [jsdelivr](https://www.jsdelivr.com/)
335335
- [unpkg](https://unpkg.com/)
336-
- [bytecdntp](https://cdn.bytedance.com/)
337-
- [baomitu](https://cdn.baomitu.com/)
338336
- [cdnjs](https://cdnjs.com/libraries)
339337
- [zhimg](https://unpkg.zhimg.com/)
340338
- [npmmirror](https://registry.npmmirror.com/)

README_zh.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,6 @@ export default defineConfig({
333333

334334
- [jsdelivr](https://www.jsdelivr.com/)
335335
- [unpkg](https://unpkg.com/)
336-
- [bytecdntp](https://cdn.bytedance.com/)
337-
- [baomitu](https://cdn.baomitu.com/)
338336
- [cdnjs](https://cdnjs.com/libraries)
339337
- [zhimg](https://unpkg.zhimg.com/)
340338
- [npmmirror](https://registry.npmmirror.com/)

packages/vite-plugin-monkey/src/node/cdn.ts

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -68,24 +68,6 @@ export const unpkg = (
6868
];
6969
};
7070

71-
/**
72-
* `https://lf9-cdn-tos.bytecdntp.com/cdn/expire-10-y/${name}/${version}/${pathname}`
73-
* @param exportVarName cdn-exportVarName or resourceName
74-
* @see https://cdn.bytedance.com/
75-
*/
76-
export const bytecdntp = (
77-
exportVarName = '',
78-
pathname = '',
79-
): [string, ModuleToUrlFc] => {
80-
return [
81-
exportVarName,
82-
(version, name, _importName = '', resolveName = '') => {
83-
const p = pathname || resolveName;
84-
return `https://lf9-cdn-tos.bytecdntp.com/cdn/expire-10-y/${name}/${version}/${p}`;
85-
},
86-
];
87-
};
88-
8971
/**
9072
* `https://fastly.jsdelivr.net/npm/${name}@${version}/${pathname}`
9173
* @deprecated bootcdn will return virus-infected code. Please stop using it and switch to other sources
@@ -106,24 +88,6 @@ export const bootcdn = (
10688
];
10789
};
10890

109-
/**
110-
* `https://lib.baomitu.com/${name}/${version}/${pathname}`
111-
* @param exportVarName cdn-exportVarName or resourceName
112-
* @see https://cdn.baomitu.com/
113-
*/
114-
export const baomitu = (
115-
exportVarName = '',
116-
pathname = '',
117-
): [string, ModuleToUrlFc] => {
118-
return [
119-
exportVarName,
120-
(version, name, _importName = '', resolveName = '') => {
121-
const p = pathname || resolveName;
122-
return `https://lib.baomitu.com/${name}/${version}/${p}`;
123-
},
124-
];
125-
};
126-
12791
/**
12892
* `https://fastly.jsdelivr.net/npm/${name}@${version}/${pathname}`
12993
* @deprecated staticfile will return virus-infected code. Please stop using it and switch to other sources

0 commit comments

Comments
 (0)