UNPKG

bigbluebutton-html-plugin-sdk

Version:

This repository contains the SDK for developing BigBlueButton plugins. Plugins are React components that can be loaded from external sources by the BigBlueButton HTML5 client to extend its functionalities.

25 lines 1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.makeCustomHookIdentifierFromArgs = exports.makeCustomHookIdentifier = exports.sortedStringify = void 0; /* eslint-disable @typescript-eslint/no-explicit-any */ function sortedStringify(obj) { if (obj) { var sortedKeys = Object.keys(obj).sort(); var sortedObj = sortedKeys.reduce(function (accumulator, key) { accumulator[key] = obj[key]; return accumulator; }, {}); return JSON.stringify(sortedObj); } return ''; } exports.sortedStringify = sortedStringify; function makeCustomHookIdentifier(query, variables) { return query + sortedStringify(variables); } exports.makeCustomHookIdentifier = makeCustomHookIdentifier; function makeCustomHookIdentifierFromArgs(args) { return makeCustomHookIdentifier(args.query, args.variables); } exports.makeCustomHookIdentifierFromArgs = makeCustomHookIdentifierFromArgs; //# sourceMappingURL=utils.js.map