mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-02-03 21:40:53 +00:00
KI
KJ
This commit is contained in:
8
unified-ai-platform/node_modules/@dabh/diagnostics/browser/index.js
generated
vendored
Normal file
8
unified-ai-platform/node_modules/@dabh/diagnostics/browser/index.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
//
|
||||
// Select the correct build version depending on the environment.
|
||||
//
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./production.js');
|
||||
} else {
|
||||
module.exports = require('./development.js');
|
||||
}
|
||||
6
unified-ai-platform/node_modules/@dabh/diagnostics/browser/override.js
generated
vendored
Normal file
6
unified-ai-platform/node_modules/@dabh/diagnostics/browser/override.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
var diagnostics = require('./');
|
||||
|
||||
//
|
||||
// No way to override `debug` with `diagnostics` in the browser.
|
||||
//
|
||||
module.exports = diagnostics;
|
||||
24
unified-ai-platform/node_modules/@dabh/diagnostics/browser/production.js
generated
vendored
Normal file
24
unified-ai-platform/node_modules/@dabh/diagnostics/browser/production.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
var create = require('../diagnostics');
|
||||
|
||||
/**
|
||||
* Create a new diagnostics logger.
|
||||
*
|
||||
* @param {String} namespace The namespace it should enable.
|
||||
* @param {Object} options Additional options.
|
||||
* @returns {Function} The logger.
|
||||
* @public
|
||||
*/
|
||||
var diagnostics = create(function prod(namespace, options) {
|
||||
options = options || {};
|
||||
options.namespace = namespace;
|
||||
options.prod = true;
|
||||
options.dev = false;
|
||||
|
||||
if (!(options.force || prod.force)) return prod.nope(options);
|
||||
return prod.yep(options);
|
||||
});
|
||||
|
||||
//
|
||||
// Expose the diagnostics logger.
|
||||
//
|
||||
module.exports = diagnostics;
|
||||
Reference in New Issue
Block a user