UNPKG

cozy-dataproxy-lib

Version:

Library meant to be by Cozy Cloud's DataProxy apps for data manipulation

28 lines (19 loc) 680 B
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizeDoctype = exports.isDebug = void 0; var _cozyFlags = _interopRequireDefault(require("cozy-flags")); var _consts = require("../consts"); var isDebug = function isDebug() { return Boolean((0, _cozyFlags.default)('debug')); }; exports.isDebug = isDebug; var normalizeDoctype = function normalizeDoctype(doctype) { if (doctype && doctype.includes(_consts.SHARED_DRIVE_FILES_DOCTYPE)) { return _consts.FILES_DOCTYPE; } return doctype; }; exports.normalizeDoctype = normalizeDoctype;