Файловый менеджер - Редактировать - /home/freeclou/app.optimyar.com/backend/node_modules/tiny-invariant/src/tiny-invariant.ts
Назад
// @flow const isProduction: boolean = process.env.NODE_ENV === 'production'; const prefix: string = 'Invariant failed'; // Throw an error if the condition fails // Strip out error messages for production // > Not providing an inline default argument for message as the result is smaller export default function invariant( condition: any, message?: string, ): asserts condition { if (condition) { return; } // Condition not passed // In production we strip the message but still throw if (isProduction) { throw new Error(prefix); } // When not in production we allow the message to pass through // *This block will be removed in production builds* throw new Error(`${prefix}: ${message || ''}`); }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка