Download node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 729 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js
- Command line
-
hf download hf://spaces/sweet2004/bot/node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js
-
curl -L -o loadSsoSessionData.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js
729 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.loadSsoSessionData = void 0; | |
| const getConfigFilepath_1 = require("./getConfigFilepath"); | |
| const getSsoSessionData_1 = require("./getSsoSessionData"); | |
| const parseIni_1 = require("./parseIni"); | |
| const slurpFile_1 = require("./slurpFile"); | |
| const swallowError = () => ({}); | |
| const loadSsoSessionData = async (init = {}) => { | |
| var _a; | |
| return (0, slurpFile_1.slurpFile)((_a = init.configFilepath) !== null && _a !== void 0 ? _a : (0, getConfigFilepath_1.getConfigFilepath)()) | |
| .then(parseIni_1.parseIni) | |
| .then(getSsoSessionData_1.getSsoSessionData) | |
| .catch(swallowError); | |
| }; | |
| exports.loadSsoSessionData = loadSsoSessionData; | |