unpkg.com/cdn.jsdelivr.net -> aos@next (#1272)

This commit is contained in:
nobody 2022-12-28 07:24:59 +01:00
parent d720699b91
commit f29490b654
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
3 changed files with 20 additions and 1 deletions

View File

@ -273,6 +273,21 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
'path': `resources/webcomponentsjs/${lastVersion}/webcomponents-loader.min.jsm`,
'bundle': ''
};
} else if (CompleteURL.startsWith('unpkg.com/aos@next/dist/aos.')) {
let file;
lastVersion = targets.setLastVersion('/aos/latest');
if (channelPath.endsWith('js')) {
file = 'aos.jsm';
} else {
file = 'aos.css';
}
return {
'source': channelHost,
'versionDelivered': lastVersion,
'versionRequested': 'next',
'path': `resources/aos/${lastVersion}/${file}`,
'bundle': ''
};
}
return {
'result': false,

View File

@ -131,7 +131,7 @@ targets.setLastVersion = function (type, version) {
if (type.startsWith('/autocomplete.js/1.')) return '1.5.4';
if (type.startsWith('/angular-material/1.') || type.startsWith('/angular-material/0.')) return '1.2.5';
if (type.startsWith('/angular-translate/2.')) return '2.19.0';
if (type.startsWith('/aos/2.')) return '2.3.4';
if (type.startsWith('/aos/2.') || type.startsWith('/aos/latest')) return '2.3.4';
if (type.startsWith('/appboy-web-sdk/3.')) return '3.5.1';
if (type.startsWith('/asciinema-player/2.')) return '2.6.1';
if (type.startsWith('/axios/0.')) return '0.27.2';

View File

@ -53,6 +53,10 @@
<li>HTML filter active by default (<a href="https://codeberg.org/nobody/LocalCDN/issues/1249">#1249</a>)</li>
<li>Bootstrap: Redirect alpha and beta versions to the stable version (<a href="https://codeberg.org/nobody/LocalCDN/issues/1265">#1265</a>)</li>
</ul>
<p>Mapping</p>
<ul>
<li>unpkg.com/cdn.jsdelivr.net -> aos@next (<a href="https://codeberg.org/nobody/LocalCDN/issues/1272">#1272</a>)</li>
</ul>
</div>
<div id="generator-section">
<div class="topic-label">