Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/tiny-warning/src/ drwxr-xr-x | |
| Viewing file: Select action/file-type: // @flow
const isProduction: boolean = process.env.NODE_ENV === 'production';
export default function warning(condition: mixed, message: string): void {
// don't do anything in production
// wrapping in production check for better dead code elimination
if (!isProduction) {
// condition passed: do not log
if (condition) {
return;
}
// Condition not passed
const text: string = `Warning: ${message}`;
// check console for IE9 support which provides console
// only with open devtools
if (typeof console !== 'undefined') {
console.warn(text);
}
// Throwing an error and catching it immediately
// to improve debugging
// A consumer can use 'pause on caught exceptions'
// https://github.com/facebook/react/issues/4216
try {
throw Error(text);
} catch (x) {}
}
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0411 ]-- |