1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Special case latest gsap and cdnjs.cloudflare.com (#1148)

This commit is contained in:
nobody
2022-09-30 06:22:42 +02:00
parent 9de63c9434
commit a2d6582f93
2 changed files with 12 additions and 0 deletions

View File

@@ -245,6 +245,17 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
'path': `resources/createjs/${lastVersion}/createjs.min.jsm`,
'bundle': ''
};
} else if (CompleteURL.startsWith('cdnjs.cloudflare.com/ajax/libs/gsap/latest/')) {
if (channelPath.endsWith('js')) {
channelPath += 'm';
}
lastVersion = '1.20.5';
return {
'source': channelHost,
'versionDelivered': lastVersion,
'path': `resources/gsap/${lastVersion}/${helpers.extractFilenameFromPath(channelPath)}`,
'bundle': 'GSAP'
};
}
return {
'result': false,