PHP 8.2.30
Preview: tiny-invariant.esm.js Size: 452 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/tiny-invariant/dist/tiny-invariant.esm.js

var isProduction = process.env.NODE_ENV === 'production';
var prefix = 'Invariant failed';
function invariant(condition, message) {
    if (condition) {
        return;
    }
    if (isProduction) {
        throw new Error(prefix);
    }
    var provided = typeof message === 'function' ? message() : message;
    var value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
    throw new Error(value);
}

export { invariant as default };

Directory Contents

Dirs: 1 × Files: 5

Name Size Perms Modified Actions
esm DIR
- drwxr-xr-x 2026-02-28 00:28:02
Edit Download
462 B lrw-r--r-- 2026-02-28 00:26:44
Edit Download
1.02 KB lrw-r--r-- 2026-02-28 00:28:06
Edit Download
452 B lrw-r--r-- 2026-02-28 00:26:54
Edit Download
841 B lrw-r--r-- 2026-02-28 00:27:28
Edit Download
302 B lrw-r--r-- 2026-02-28 00:27:34
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).