Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

34
static/js/ketcher2/node_modules/glogg/index.js generated vendored Normal file
View File

@ -0,0 +1,34 @@
'use strict';
var format = require('util').format;
var sparkles = require('sparkles');
var levels = [
'debug',
'info',
'warn',
'error'
];
function getLogger(namespace){
var logger = sparkles(namespace);
levels.forEach(function(level){
logger[level] = makeLogLevel(level);
});
return logger;
}
function makeLogLevel(level){
return function(msg){
if(typeof msg === 'string'){
msg = format.apply(null, arguments);
}
this.emit(level, msg);
};
}
module.exports = getLogger;