UNPKG

jsm-core

Version:
12 lines (11 loc) 405 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.extendCache = extendCache; function extendCache(cache, extensions) { // Dynamically add the extensions to the SDK Object.entries(extensions).forEach(([key, customManager]) => { cache[key] = customManager; // Add to serviceContainers }); // Return the SDK with extended typing return cache; }