diff --git a/src/index.js b/src/index.js index 9ba2b9d9..2b124a08 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,7 @@ /*global globalThis*/ import Strophe from './core.js'; -import { $build, $msg, $pres, $iq } from './builder.js'; +import Builder, { $build, $msg, $pres, $iq } from './builder.js'; import { stx, toStanza } from './stanza.js'; globalThis.$build = $build; @@ -10,4 +10,4 @@ globalThis.$msg = $msg; globalThis.$pres = $pres; globalThis.Strophe = Strophe; -export { $build, $iq, $msg, $pres, Strophe, stx, toStanza }; +export { Builder, $build, $iq, $msg, $pres, Strophe, stx, toStanza }; diff --git a/src/types/index.d.ts b/src/types/index.d.ts index 13b49669..ab8c60cb 100644 --- a/src/types/index.d.ts +++ b/src/types/index.d.ts @@ -1,3 +1,4 @@ +import Builder from './builder.js'; import { $build } from './builder.js'; import { $iq } from './builder.js'; import { $msg } from './builder.js'; @@ -5,5 +6,5 @@ import { $pres } from './builder.js'; import Strophe from './core.js'; import { stx } from './stanza.js'; import { toStanza } from './stanza.js'; -export { $build, $iq, $msg, $pres, Strophe, stx, toStanza }; +export { Builder, $build, $iq, $msg, $pres, Strophe, stx, toStanza }; //# sourceMappingURL=index.d.ts.map \ No newline at end of file