UNPKG

gatsby-source-sanity

Version:

Gatsby source plugin for building websites using Sanity.io as a backend.

16 lines 693 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCacheKey = exports.CACHE_KEYS = void 0; var CACHE_KEYS; (function (CACHE_KEYS) { CACHE_KEYS["TYPE_MAP"] = "typeMap"; CACHE_KEYS["GRAPHQL_SDL"] = "graphqlSdl"; CACHE_KEYS["IMAGE_EXTENSIONS"] = "imageExt"; CACHE_KEYS["LAST_BUILD"] = "lastBuildTime"; })(CACHE_KEYS || (exports.CACHE_KEYS = CACHE_KEYS = {})); function getCacheKey(config, suffix) { var _a; return "".concat(config.projectId, "-").concat(config.dataset, "-").concat((_a = config.typePrefix) !== null && _a !== void 0 ? _a : '', "-").concat(suffix); } exports.getCacheKey = getCacheKey; //# sourceMappingURL=cache.js.map