Download node_modules/@aws-sdk/shared-ini-file-loader/dist-es/getSsoSessionData.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 276 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/shared-ini-file-loader/dist-es/getSsoSessionData.js
- Command line
-
hf download hf://spaces/sweet2004/bot/node_modules/@aws-sdk/shared-ini-file-loader/dist-es/getSsoSessionData.js
-
curl -L -o getSsoSessionData.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/shared-ini-file-loader/dist-es/getSsoSessionData.js
276 Bytes
| const ssoSessionKeyRegex = /^sso-session\s(["'])?([^\1]+)\1$/; | |
| export const getSsoSessionData = (data) => Object.entries(data) | |
| .filter(([key]) => ssoSessionKeyRegex.test(key)) | |
| .reduce((acc, [key, value]) => ({ ...acc, [ssoSessionKeyRegex.exec(key)[2]]: value }), {}); | |