Files
rss-nostr-lambda/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js
T

8 lines
412 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromStatic = void 0;
const property_provider_1 = require("@smithy/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;