rittenhop-dev/versions/5.94.2/node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js
2024-09-23 19:40:12 -04:00

8 lines
413 B
JavaScript

"use strict";
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;