Spaces:
Running
Running
Download node_modules/@hapi/hoek/lib/assert.js from k-l-lambda/lotus: direct link, hf CLI and curl.
- Browser
- Download file 306 Bytes
-
https://huggingface.co/spaces/k-l-lambda/lotus/resolve/main/node_modules/%40hapi/hoek/lib/assert.js
- Command line
-
hf download hf://spaces/k-l-lambda/lotus/node_modules/@hapi/hoek/lib/assert.js
-
curl -L -o assert.js https://huggingface.co/spaces/k-l-lambda/lotus/resolve/main/node_modules/%40hapi/hoek/lib/assert.js
306 Bytes
| ; | |
| const AssertError = require('./error'); | |
| const internals = {}; | |
| module.exports = function (condition, ...args) { | |
| if (condition) { | |
| return; | |
| } | |
| if (args.length === 1 && | |
| args[0] instanceof Error) { | |
| throw args[0]; | |
| } | |
| throw new AssertError(args); | |
| }; | |