Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
moodle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
moodle
moodle
Commits
b3164b32
Commit
b3164b32
authored
Jan 13, 2021
by
Sara Arjona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'MDL-70299' of
git://github.com/paulholden/moodle
parents
8717e879
67f13783
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
lib/amd/build/loglevel.min.js
lib/amd/build/loglevel.min.js
+0
-0
lib/amd/build/loglevel.min.js.map
lib/amd/build/loglevel.min.js.map
+0
-0
lib/amd/src/loglevel.js
lib/amd/src/loglevel.js
+12
-6
lib/thirdpartylibs.xml
lib/thirdpartylibs.xml
+1
-1
No files found.
lib/amd/build/loglevel.min.js
View file @
b3164b32
This diff was suppressed by a .gitattributes entry.
lib/amd/build/loglevel.min.js.map
View file @
b3164b32
This diff was suppressed by a .gitattributes entry.
lib/amd/src/loglevel.js
View file @
b3164b32
...
...
@@ -26,7 +26,7 @@
// Copy loglevel.js into lib/amd/src/ in Moodle folder.
// Add the license as a comment to the file and these instructions.
/*! loglevel - v1.
6.6 - https://github.com/pimterry/loglevel - (c) 2019
Tim Perry - licensed MIT */
/*! loglevel - v1.
7.1 - https://github.com/pimterry/loglevel - (c) 2020
Tim Perry - licensed MIT */
(
function
(
root
,
definition
)
{
"
use strict
"
;
if
(
typeof
define
===
'
function
'
&&
define
.
amd
)
{
...
...
@@ -42,7 +42,7 @@
// Slightly dubious tricks to cut down minimized file size
var
noop
=
function
()
{};
var
undefinedType
=
"
undefined
"
;
var
isIE
=
(
typeof
window
!==
undefinedType
)
&&
(
var
isIE
=
(
typeof
window
!==
undefinedType
)
&&
(
typeof
window
.
navigator
!==
undefinedType
)
&&
(
/Trident
\/
|MSIE /
.
test
(
window
.
navigator
.
userAgent
)
);
...
...
@@ -141,15 +141,18 @@
function
Logger
(
name
,
defaultLevel
,
factory
)
{
var
self
=
this
;
var
currentLevel
;
var
storageKey
=
"
loglevel
"
;
if
(
name
)
{
if
(
typeof
name
===
"
string
"
)
{
storageKey
+=
"
:
"
+
name
;
}
else
if
(
typeof
name
===
"
symbol
"
)
{
storageKey
=
undefined
;
}
function
persistLevelIfPossible
(
levelNum
)
{
var
levelName
=
(
logMethods
[
levelNum
]
||
'
silent
'
).
toUpperCase
();
if
(
typeof
window
===
undefinedType
)
return
;
if
(
typeof
window
===
undefinedType
||
!
storageKey
)
return
;
// Use localStorage if available
try
{
...
...
@@ -167,7 +170,7 @@
function
getPersistedLevel
()
{
var
storedLevel
;
if
(
typeof
window
===
undefinedType
)
return
;
if
(
typeof
window
===
undefinedType
||
!
storageKey
)
return
;
try
{
storedLevel
=
window
.
localStorage
[
storageKey
];
...
...
@@ -260,7 +263,7 @@
var
_loggersByName
=
{};
defaultLogger
.
getLogger
=
function
getLogger
(
name
)
{
if
(
typeof
name
!==
"
string
"
||
name
===
""
)
{
if
(
(
typeof
name
!==
"
symbol
"
&&
typeof
name
!==
"
string
"
)
||
name
===
""
)
{
throw
new
TypeError
(
"
You must supply a name when creating a logger.
"
);
}
...
...
@@ -287,5 +290,8 @@
return
_loggersByName
;
};
// ES6 default export, for compatibility
defaultLogger
[
'
default
'
]
=
defaultLogger
;
return
defaultLogger
;
}));
lib/thirdpartylibs.xml
View file @
b3164b32
...
...
@@ -193,7 +193,7 @@
<location>
amd/src/loglevel.js
</location>
<name>
loglevel.js
</name>
<license>
MIT
</license>
<version>
1.
6.6
</version>
<version>
1.
7.1
</version>
</library>
<library>
<location>
mustache
</location>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment