Skip to content

Commit

Permalink
Update default moment version and hash (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
SerenityIK committed Nov 19, 2020
1 parent a8f42fc commit f4ceefb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flask_moment.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
'/6Z/hRTt8+pR6L4N2')

# //cdnjs.cloudflare.com/ajax/libs/moment.js/2.27.0/moment-with-locales.min.js
default_moment_version = '2.27.0'
default_moment_sri = ('sha512-rmZcZsyhe0/MAjquhTgiUcb4d9knaFc7b5xAfju483gbEXT'
'keJRUMIPk6s3ySZMYUHEcjKbjLjyddGWMrNEvZg==')
default_moment_version = '2.29.1'
default_moment_sri = ('sha512-LGXaggshOkD/at6PFNcp2V2unf9LzFq6LE+sChH7ceMTDP0'
'g2kn6Vxwgg7wkPP7AAtX+lmPqPdxB47A0Nz0cMQ==')


class _moment(object):
Expand All @@ -37,7 +37,7 @@ def include_moment(version=default_moment_version, local_js=None,
else 'moment-with-langs.min.js'
else:
js_filename = 'moment.min.js'

if not sri:
js = ('<script src="https://cdnjs.cloudflare.com/ajax/libs/'
'moment.js/{}/{}"></script>\n').format(
Expand Down

0 comments on commit f4ceefb

Please sign in to comment.