node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

1
server/node_modules/tiny-invariant/src/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export default function invariant(condition: any, message?: string): void

22
server/node_modules/tiny-invariant/src/index.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
// @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: mixed, message?: string) {
if (condition) {
return;
}
// Condition not passed
if (isProduction) {
// In production we strip the message but still throw
throw new Error(prefix);
} else {
// When not in production we allow the message to pass through
// *This block will be removed in production builds*
throw new Error(`${prefix}: ${message || ''}`);
}
}