moment.js v2.5.1 (#1029)

This commit is contained in:
nobody 2022-06-28 08:28:00 +02:00
parent 64eda9fdba
commit 401dcd3714
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
6 changed files with 21 additions and 1 deletions

View File

@ -1345,6 +1345,7 @@ https://cdnjs.cloudflare.com/ajax/libs/Modaal/0.4.4/css/modaal.min.css
https://cdnjs.cloudflare.com/ajax/libs/Modaal/0.4.4/js/modaal.min.js
https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.3/moment-with-locales.min.js
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.5.1/moment-with-langs.min.js
https://cdnjs.cloudflare.com/ajax/libs/mootools/1.4.5/mootools-core-full-compat-yc.min.js
https://cdnjs.cloudflare.com/ajax/libs/mootools/1.6.0/mootools-core.min.js
https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/14.7.0/nouislider.min.js

View File

@ -716,6 +716,8 @@ function create_url() {
url="$JSDELIVR/npm/vue-match-media@$version/dist/index.min.js"
elif [ "$folder" = "createjs" ];then
url="$CREATEJS/$version/createjs.min.js"
elif [ "$folder" = "moment.js" ] && [ "$version" = "2.5.1" ];then
url="$CLOUDFLARE/$folder/$version/moment-with-langs.min.js"
# --------------------------------------------------------------------------
else
if [ "$subfile" = "$jfile" ]; then

View File

@ -324,7 +324,10 @@ targets.setLastVersion = function (type, version) {
if (type.startsWith('/mobile/1.')) return '1.4.5';
if (type.startsWith('/Modaal/0.')) return '0.4.4';
if (type.startsWith('/modernizr/2.')) return '2.8.3';
if (type.startsWith('/moment.js/2.')) return '2.29.3';
if (type.startsWith('/moment.js/2.')) {
if (helpers.compareVersion('2.5.1', version)) return '2.5.1'; // <= v2.5.1
return '2.29.3';
}
if (type.startsWith('/mootools/1.')) {
if (helpers.compareVersion('1.4.5', version)) return '1.4.5'; // <= v1.4.5
return '1.6.0';

View File

@ -58,6 +58,7 @@
<li>angular-translate-loader-partial v2.19.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/1029">#1029</a>)</li>
<li>angular-i18n v1.8.3 (<a href="https://codeberg.org/nobody/LocalCDN/issues/1029">#1029</a>)</li>
<li>twix.js v0.3.0 v1.3.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/1029">#1029</a>)</li>
<li>moment.js v2.5.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/1029">#1029</a>)</li>
</ul>
</div>
<div id="generator-section">

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
In this directory the file was renamed.
Original: moment-with-langs.min.js
Now: moment-with-locales.min.jsm