UNPKG

@nanggo/social-preview

Version:

Generate beautiful social media preview images from any URL

18 lines (17 loc) 1.92 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.shutdownSharpCaches = exports.clearAllCaches = exports.getCacheStats = exports.clearInflightRequests = exports.getInflightRequestStats = exports.isCacheCleanupRunning = exports.stopCacheCleanup = exports.startCacheCleanup = exports.PreviewGeneratorError = exports.ErrorType = void 0; var types_1 = require("./types"); Object.defineProperty(exports, "ErrorType", { enumerable: true, get: function () { return types_1.ErrorType; } }); Object.defineProperty(exports, "PreviewGeneratorError", { enumerable: true, get: function () { return types_1.PreviewGeneratorError; } }); var cache_1 = require("./utils/cache"); Object.defineProperty(exports, "startCacheCleanup", { enumerable: true, get: function () { return cache_1.startCacheCleanup; } }); Object.defineProperty(exports, "stopCacheCleanup", { enumerable: true, get: function () { return cache_1.stopCacheCleanup; } }); Object.defineProperty(exports, "isCacheCleanupRunning", { enumerable: true, get: function () { return cache_1.isCacheCleanupRunning; } }); var metadata_extractor_1 = require("./core/metadata-extractor"); Object.defineProperty(exports, "getInflightRequestStats", { enumerable: true, get: function () { return metadata_extractor_1.getInflightRequestStats; } }); Object.defineProperty(exports, "clearInflightRequests", { enumerable: true, get: function () { return metadata_extractor_1.clearInflightRequests; } }); var sharp_cache_1 = require("./utils/sharp-cache"); Object.defineProperty(exports, "getCacheStats", { enumerable: true, get: function () { return sharp_cache_1.getCacheStats; } }); Object.defineProperty(exports, "clearAllCaches", { enumerable: true, get: function () { return sharp_cache_1.clearAllCaches; } }); Object.defineProperty(exports, "shutdownSharpCaches", { enumerable: true, get: function () { return sharp_cache_1.shutdownSharpCaches; } });