Mapping: vue v2.x & v3.x -> cdn.jsdelivr.net (#576)

This commit is contained in:
nobody 2021-07-19 05:53:14 +02:00
parent 5754b6d6bf
commit d070bc6484
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 11 additions and 0 deletions

View File

@ -201,6 +201,16 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
'path': `resources/materialize/1.0.0/${channelPath}`,
'bundle': 'Materialize'
};
} else if (/cdn\.jsdelivr\.net\/npm\/vue@(2|3)/.test(CompleteURL)) {
let version = CompleteURL.slice(-1);
lastVersion = targets.setLastVersion(`/vue/${version}.`);
return {
'source': channelHost,
'versionDelivered': lastVersion,
'versionRequested': lastVersion,
'path': `resources/vue/${lastVersion}/vue.min.jsm`,
'bundle': ''
};
} else {
return false;
}

View File

@ -72,6 +72,7 @@
<li>Updated: gsap v3.7.0 -> v3.7.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/575">#575</a>)</li>
<li>Updated: flv.js v1.5.0 -> v1.6.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/577">#577</a>)</li>
<li>Mapping: moment-with-locales -> cdnjs.cloudflare.com (<a href="https://codeberg.org/nobody/LocalCDN/issues/576">#576</a>)</li>
<li>Mapping: vue v2.x & v3.x -> cdn.jsdelivr.net (<a href="https://codeberg.org/nobody/LocalCDN/issues/576">#576</a>)</li>
<li><strong>Includes also the following changes, because the release of this version took a long time caused by a broken validation server of Mozilla (<a href="https://codeberg.org/nobody/LocalCDN/issues/490">More information</a>).</strong>
<ul>
<li>Ruleset generator for NoScript (<a href="https://codeberg.org/nobody/LocalCDN/issues/489">#489</a>)</li>