Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.stanza: Get 'by' from context instead | Kim Alvefur | 2020-09-26 | 1 | -1/+1 |
| | | | | | | | Zash> <error by=?> should go where? extra.by? context? source? Zash> In Prosody this would usually be module.host or a bare user/room JID MattJ> Zash: context MattJ> context.by, basically the opposite of context.actor | ||||
* | util.stanza: Support inclusion of <gone> URI from util.error object | Kim Alvefur | 2020-09-26 | 1 | -0/+5 |
| | |||||
* | util.stanza: Support getting 'by' from util.error object | Kim Alvefur | 2020-09-26 | 1 | -1/+2 |
| | |||||
* | util.stanza: Add method returning stanza with added indentation | Kim Alvefur | 2020-04-12 | 1 | -0/+8 |
| | | | | | Adds indentation and line breaks to stanzas, to make stanzas easier to read for humans. | ||||
* | util.stanza: Accept util.error object to error_reply | Kim Alvefur | 2019-12-14 | 1 | -0/+17 |
| | | | | | | | | If we're moving towards util.error as the standard error container then this makes sense. This may allow for future extensibility without needing a lot of optional arguments. | ||||
* | util.stanza: Support the 'by' attribute on errors | Kim Alvefur | 2019-11-25 | 1 | -1/+2 |
| | | | | | This is to be used when the entity generating the error is not the same as the one the stanza was directed to, e.g. an intermediate server. | ||||
* | util.stanza: Check that argument to error_reply is NOT a stanza of type error | Kim Alvefur | 2019-11-25 | 1 | -0/+10 |
| | | | | Replying to an error is Very Bad | ||||
* | util.stanza: Check that argument to error_reply is a stanza | Kim Alvefur | 2019-11-25 | 1 | -0/+6 |
| | |||||
* | util.stanza: Remove redundant check for attrs | Kim Alvefur | 2019-11-25 | 1 | -0/+7 |
| | | | | A stanza can't not have attrs if created the correct way | ||||
* | util.stanza: Check that argument to reply is a stanza | Kim Alvefur | 2019-11-25 | 1 | -0/+6 |
| | |||||
* | util.stanza: Fix :top_tag() handling of namespaced attributes | Matthew Wild | 2019-03-25 | 1 | -0/+31 |
| | |||||
* | util.stanza: Require a type attribute for iq stanzas | Kim Alvefur | 2018-12-28 | 1 | -4/+15 |
| | |||||
* | util.stanza: Improve tests | Kim Alvefur | 2018-12-02 | 1 | -9/+19 |
| | |||||
* | util.stanza: Validate input to clone() (with brief tests) | Kim Alvefur | 2018-11-17 | 1 | -0/+14 |
| | |||||
* | util.stanza tests: Remove unused variable #luacheck | Matthew Wild | 2018-09-13 | 1 | -2/+2 |
| | |||||
* | util.stanza: Don't automatically generate ids for iq stanzas | Matthew Wild | 2018-09-13 | 1 | -3/+14 |
| | | | | | | | | | | Users of this API should provide their own id attribute that meets their uniqueness requirements. The current implementation leaks information (i.e. how many iq stanzas have been sent by the server to other JIDs). Providing any strong guarantees of randomness here would need to pull in additional dependencies that we don't want in this simple library. | ||||
* | util.stanza tests: Fix test name (copy/paste error?) | Matthew Wild | 2018-09-13 | 1 | -1/+1 |
| | |||||
* | util.stanza + tests: Bail out of loop if we are iterating too far, fixes #981 | Matthew Wild | 2018-08-19 | 1 | -0/+7 |
| | |||||
* | util.stanza tests: Add tests for maptags() method | Matthew Wild | 2018-08-19 | 1 | -0/+71 |
| | |||||
* | util.stanza: Brief tests for :remove_children | Kim Alvefur | 2018-07-08 | 1 | -0/+22 |
| | |||||
* | util.stanza: tests: Add more invalid data types and update for :text(nil) ↵ | Matthew Wild | 2018-03-21 | 1 | -10/+20 |
| | | | | and :text("") | ||||
* | util.stanza: Switch from asserts to if's, improve performance, errors and tests | Matthew Wild | 2018-03-18 | 1 | -26/+37 |
| | |||||
* | util.stanza: Test coverage of is_stanza() | Kim Alvefur | 2018-03-17 | 1 | -0/+16 |
| | |||||
* | util.stanza: Add stricter validation for data passed to stanza builder API | Matthew Wild | 2018-03-16 | 1 | -0/+34 |
| | |||||
* | util.stanza: Add tests ensuring support for unicode in tag/attr names | Matthew Wild | 2018-03-16 | 1 | -0/+6 |
| | |||||
* | util.stanza: Fix tests to call error_reply() correctly, and add tests to ↵ | Matthew Wild | 2018-03-16 | 1 | -2/+4 |
| | | | | ensure it vaguely works | ||||
* | Port tests to the `busted` test runner | Waqas Hussain | 2017-09-15 | 1 | -0/+159 |