UNPKG

cozy-dataproxy-lib

Version:

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

22 lines (16 loc) 513 B
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.getPouchLink = void 0; var _cozyPouchLink = _interopRequireDefault(require("cozy-pouch-link")); var getPouchLink = function getPouchLink(client) { if (!client) { return null; } return client.links.find(function (link) { return link instanceof _cozyPouchLink.default; }) || null; }; exports.getPouchLink = getPouchLink;