Skip to content

Commit

Permalink
Also export toStanza
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbrand committed Sep 28, 2023
1 parent db3848d commit 6b24a2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import Strophe from './core.js';
import { $build, $msg, $pres, $iq } from './builder.js';
import { stx } from './stanza.js';
import { stx, toStanza } from './stanza.js';

globalThis.$build = $build;
globalThis.$iq = $iq;
globalThis.$msg = $msg;
globalThis.$pres = $pres;
globalThis.Strophe = Strophe;

export { $build, $iq, $msg, $pres, Strophe, stx };
export { $build, $iq, $msg, $pres, Strophe, stx, toStanza };
3 changes: 2 additions & 1 deletion src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ import { $msg } from './builder.js';
import { $pres } from './builder.js';
import Strophe from './core.js';
import { stx } from './stanza.js';
export { $build, $iq, $msg, $pres, Strophe, stx };
import { toStanza } from './stanza.js';
export { $build, $iq, $msg, $pres, Strophe, stx, toStanza };
//# sourceMappingURL=index.d.ts.map

0 comments on commit 6b24a2a

Please sign in to comment.