Datasourceforcryptocurrency / node_modules /fast-check /lib /check /model /commands /CommandWrapper.js
Download node_modules/fast-check/lib/check/model/commands/CommandWrapper.js from Really-amin/Datasourceforcryptocurrency: direct link, hf CLI and curl.
- Browser
- Download file 1.28 kB
-
https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/check/model/commands/CommandWrapper.js
- Command line
-
hf download hf://spaces/Really-amin/Datasourceforcryptocurrency@250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/check/model/commands/CommandWrapper.js
-
curl -L -o CommandWrapper.js https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/check/model/commands/CommandWrapper.js
1.28 kB
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.CommandWrapper = void 0; | |
| const stringify_1 = require("../../../utils/stringify"); | |
| const symbols_1 = require("../../symbols"); | |
| class CommandWrapper { | |
| constructor(cmd) { | |
| this.cmd = cmd; | |
| this.hasRan = false; | |
| if ((0, stringify_1.hasToStringMethod)(cmd)) { | |
| const method = cmd[stringify_1.toStringMethod]; | |
| this[stringify_1.toStringMethod] = function toStringMethod() { | |
| return method.call(cmd); | |
| }; | |
| } | |
| if ((0, stringify_1.hasAsyncToStringMethod)(cmd)) { | |
| const method = cmd[stringify_1.asyncToStringMethod]; | |
| this[stringify_1.asyncToStringMethod] = function asyncToStringMethod() { | |
| return method.call(cmd); | |
| }; | |
| } | |
| } | |
| check(m) { | |
| return this.cmd.check(m); | |
| } | |
| run(m, r) { | |
| this.hasRan = true; | |
| return this.cmd.run(m, r); | |
| } | |
| clone() { | |
| if ((0, symbols_1.hasCloneMethod)(this.cmd)) | |
| return new CommandWrapper(this.cmd[symbols_1.cloneMethod]()); | |
| return new CommandWrapper(this.cmd); | |
| } | |
| toString() { | |
| return this.cmd.toString(); | |
| } | |
| } | |
| exports.CommandWrapper = CommandWrapper; | |