Download node_modules/agent-base/dist/src/promisify.js from BillAnll/my: direct link, hf CLI and curl.
- Browser
- Download file 495 Bytes
-
https://huggingface.co/spaces/BillAnll/my/resolve/main/node_modules/agent-base/dist/src/promisify.js
- Command line
-
hf download hf://spaces/BillAnll/my/node_modules/agent-base/dist/src/promisify.js
-
curl -L -o promisify.js https://huggingface.co/spaces/BillAnll/my/resolve/main/node_modules/agent-base/dist/src/promisify.js
495 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| function promisify(fn) { | |
| return function (req, opts) { | |
| return new Promise((resolve, reject) => { | |
| fn.call(this, req, opts, (err, rtn) => { | |
| if (err) { | |
| reject(err); | |
| } | |
| else { | |
| resolve(rtn); | |
| } | |
| }); | |
| }); | |
| }; | |
| } | |
| exports.default = promisify; | |
| //# sourceMappingURL=promisify.js.map |