Download node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/node-config-provider/dist-cjs/fromStatic.js
- Command line
-
hf download hf://spaces/sweet2004/bot/node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js
-
curl -L -o fromStatic.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/node-config-provider/dist-cjs/fromStatic.js
413 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.fromStatic = void 0; | |
| const property_provider_1 = require("@aws-sdk/property-provider"); | |
| const isFunction = (func) => typeof func === "function"; | |
| const fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, property_provider_1.fromStatic)(defaultValue); | |
| exports.fromStatic = fromStatic; | |