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
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
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,

View File

@ -38,6 +38,7 @@
<p>Added</p>
<ul>
<li>videojs-seek-buttons v3.0.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/1140">#1140</a>)</li>
<li>Special case latest gsap and cdnjs.cloudflare.com (<a href="https://codeberg.org/nobody/LocalCDN/issues/1148">#1148</a>)</li>
</ul>
<p>Improved</p>
<ul>