UNPKG

@codex-storage/sdk-js

Version:

Codex SDK to interact with the Codex decentralized storage network.

59 lines (57 loc) 1.68 kB
export { CodexAvailabilityPatchInput, CodexCreateAvailabilityInput, CodexCreateStorageRequestInput, CodexMarketplace } from './chunk-IKKEHM5H.mjs'; export { CodexDebug, CodexLogLevelInput } from './chunk-OUB34QMD.mjs'; export { CodexData } from './chunk-HDKK24O2.mjs'; export { CodexNode } from './chunk-HPUHQWSZ.mjs'; import './chunk-JUEFSJIF.mjs'; export { Fetch, FetchAuthBuilder } from './chunk-2VOCE3TZ.mjs'; export { CodexError, CodexValibotIssuesMap } from './chunk-MVZZ6JVF.mjs'; // src/async.ts var Codex = class { url; _marketplace; _data; _node; _debug; constructor(url) { this.url = url; this._marketplace = null; this._data = null; this._node = null; this._debug = null; } async marketplace() { if (this._marketplace) { return this._marketplace; } const module = await import('./marketplace-P4FFNBN5.mjs'); this._marketplace = new module.CodexMarketplace(this.url); return this._marketplace; } async data() { if (this._data) { return this._data; } const module = await import('./data-AHZAMLHG.mjs'); this._data = new module.CodexData(this.url); return this._data; } async node() { if (this._node) { return this._node; } const module = await import('./node-5UP2EHQB.mjs'); this._node = new module.CodexNode(this.url); return this._node; } async debug() { if (this._debug) { return this._debug; } const module = await import('./debug-LSRKJBLX.mjs'); this._debug = new module.CodexDebug(this.url); return this._debug; } }; export { Codex }; //# sourceMappingURL=async.mjs.map //# sourceMappingURL=async.mjs.map