Skip to content

Commit

Permalink
fix(saslprep): saslprep typing in node.d.ts NODE-5996 (#254)
Browse files Browse the repository at this point in the history
fix saslprep typing
  • Loading branch information
baileympearson authored Mar 6, 2024
1 parent e318c36 commit c04571d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/saslprep/src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ import data from './code-points-data';

const codePoints = createMemoryCodePoints(data);

const saslprep = _saslprep.bind(null, codePoints);
function saslprep(input: string, opts?: { allowUnassigned?: boolean }): string {
return _saslprep(codePoints, input, opts);
}

Object.assign(saslprep, { saslprep, default: saslprep });
saslprep.saslprep = saslprep;
saslprep.default = saslprep;

export = saslprep;

0 comments on commit c04571d

Please sign in to comment.