UNPKG

dcp-client

Version:

Core libraries for accessing DCP network

70 lines (63 loc) 1.96 kB
/** * @file ns-map.js Namespace map, for translating between API-consumer namespace * and the webpacked client internal namespace. This module can * be loaded with either a CommonJS/1.0 (NodeJS) or /2.0 (BravoJS) * module system. * * Each export key is a module name to be exposed to dcp-client API- * consumers; each export value is the property where that module * is stored on the webpack bundle. * * @author Wes Garland, wes@kingsds.network * @date Aug 2019 */ if (typeof module.declare === 'undefined') { /* cjs1 */ module.declare = function moduleDeclarePolyfill(deps, factory) { if (!factory) { factory = deps deps = undefined } factory(require, exports, module) } } module.declare([], function $$nsMap(require, exports, module) { var moduleIdentifier; /* LHS: where symbols appear RHS: where they come from in dcp-client-bundle-src.js */ exports['dcp/build'] = 'dcp-build'; for (moduleIdentifier of [ 'dcp-config', 'compute', 'wallet', 'identity', 'jnu', 'types', 'protocol', 'dom-tk', 'dcp-assert', 'dcp-xhr', 'dcp-env', 'dcp-url', 'cli', 'constants', 'dcp-timers', 'resource-dir', 'dcp-events', 'eth', 'serialize', 'job', 'range-object', 'stats-ranges', 'standard-objects', 'worker', 'utils', 'publish', 'compute-groups', 'signal-handler', ]) exports['dcp/' + moduleIdentifier] = moduleIdentifier; /** * LONG TERM PLAN * - ensure names in webpack need no translation except adding /dcp (looks good now) * - remove this module * - test all three load modes */ }); /* end of module */