Download node_modules/fast-check/lib/arbitrary/jsonValue.js from Really-amin/Datasourceforcryptocurrency: direct link, hf CLI and curl.
- Browser
- Download file 854 Bytes
-
https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/arbitrary/jsonValue.js
- Command line
-
hf download hf://spaces/Really-amin/Datasourceforcryptocurrency@250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/arbitrary/jsonValue.js
-
curl -L -o jsonValue.js https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/arbitrary/jsonValue.js
854 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.jsonValue = jsonValue; | |
| const string_1 = require("./string"); | |
| const JsonConstraintsBuilder_1 = require("./_internals/helpers/JsonConstraintsBuilder"); | |
| const anything_1 = require("./anything"); | |
| const fullUnicodeString_1 = require("./fullUnicodeString"); | |
| function jsonValue(constraints = {}) { | |
| const noUnicodeString = constraints.noUnicodeString === undefined || constraints.noUnicodeString === true; | |
| const stringArbitrary = 'stringUnit' in constraints | |
| ? (0, string_1.string)({ unit: constraints.stringUnit }) | |
| : noUnicodeString | |
| ? (0, string_1.string)() | |
| : (0, fullUnicodeString_1.fullUnicodeString)(); | |
| return (0, anything_1.anything)((0, JsonConstraintsBuilder_1.jsonConstraintsBuilder)(stringArbitrary, constraints)); | |
| } | |