UNPKG

sanity-next-social-image-generator

Version:
19 lines (18 loc) 636 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getClient = void 0; var client_1 = __importDefault(require("@sanity/client")); var getClient = function (dataset, projectId, apiVersion, token, useCdn) { if (useCdn === void 0) { useCdn = false; } return (0, client_1.default)({ dataset: dataset, projectId: projectId, apiVersion: apiVersion, token: token, useCdn: useCdn, }); }; exports.getClient = getClient;