Siddharth VP
Siddharth VP
Perhaps the solution would be to make `login()` atomic. It may be next month that I'm able to address this and the other issues – if you want to take...
> Perhaps the solution would be to make `login()` atomic. Went ahead with this solution.
All valid points. Unfortunately, the read operations in MwnPage are a mess. In addition, many of the methods in this class use action=parse which invokes the MediaWiki parser instead of...
This is mostly intentional. Title's interface matches that of mw.Title in the on-site JS interface - which works similarly and only uses the second constructor arg if the page name...
Closing as expected behaviour.
Please provide more details - such as the full error trace, whether your project uses ESM or not (and if so what build tools you are using), and the sample...
Mwn does not natively support ESM. Are you using a build tool to compile the project to CommonJS?
Closing as proper steps to reproduce have been provided.
We have that function in morebits: [Morebits.string.safeReplace](https://github.com/wikimedia-gadgets/twinkle/blob/8e5fc218a5dbb86f43b90f10b3d5d74df6b7111c/morebits.js#L1535).
Makes sense to me.