aboutsummaryrefslogtreecommitdiffstats
path: root/util/stanza.lua
Commit message (Expand)AuthorAgeFilesLines
* util.stanza: Handle Clark notation for attributes in :find()Kim Alvefur2024-11-171-0/+3
* util.stanza: Handle namespace prefixes for attributes in :find()Kim Alvefur2024-11-171-0/+4
* util: Prefix module imports with prosody namespaceKim Alvefur2023-03-171-4/+4
* Merge 0.12->trunkKim Alvefur2022-12-121-36/+60
|\
| * Merge 0.12->trunkKim Alvefur2022-09-151-0/+5
| |\
| * | util.stanza: Add add_error() to simplify adding error tags to existing stanzasMatthew Wild2022-08-291-25/+31
| * | util.stanza: Add method for extracting a single attribute valueKim Alvefur2022-08-171-0/+8
| * | util.stanza: Create tables with correct size to avoid reallocationsKim Alvefur2022-03-181-2/+15
| * | util.stanza: Use table.move in cloneKim Alvefur2022-03-181-9/+6
* | | Merge 0.11->0.120.12.2Kim Alvefur2022-12-121-1/+5
|\ \ \ | |_|/ |/| |
| * | util.stanza: Allow U+7F0.11.14Kim Alvefur2022-11-221-1/+5
* | | util.stanza: Return nil instead of nothing (fix test with luassert >=1.9)Kim Alvefur2022-09-151-0/+5
| |/ |/|
* | util.stanza: Remove dead codeKim Alvefur2021-12-311-5/+0
* | util.stanza: Make type error message consistent with othersKim Alvefur2021-12-311-1/+1
* | util.stanza: Adjust pretty printing for symmetryKim Alvefur2021-11-291-1/+1
* | util.stanza: Add :get_child_with_attr() + testsMatthew Wild2021-09-121-0/+8
* | util.stanza: Export pretty printing functionKim Alvefur2021-06-291-1/+3
* | util.stanza: Simplify and make pretty-printing look nicerKim Alvefur2020-11-071-29/+37
* | util.stanza: Remove Windows "support" (disabling ANSI color pretty printing)Kim Alvefur2020-11-071-11/+2
* | util.stanza: add at_top helperJonas Schäfer2021-05-081-0/+4
* | Merge 0.11->trunkKim Alvefur2021-01-081-2/+2
|\|
| * util.stanza: Move misplaced argument to correct placeKim Alvefur2020-12-241-2/+2
* | Merge 0.11->trunkKim Alvefur2020-11-111-1/+9
|\|
| * util.stanza: Reject ASCII control characters (fixes #1606)Kim Alvefur2020-11-111-1/+9
* | util.stanza: Extract Application-Specific Condition from errorsKim Alvefur2020-09-261-6/+8
* | util.stanza: Support Application-Specific Conditions in util.errorKim Alvefur2020-09-261-0/+5
* | util.stanza: Get 'by' from context insteadKim Alvefur2020-09-261-1/+1
* | util.stanza: Support inclusion of <gone> URI from util.error objectKim Alvefur2020-09-261-2/+8
* | util.stanza: Support getting 'by' from util.error objectKim Alvefur2020-09-261-0/+3
* | util.stanza: Reorder code to prepare for extracting 'by' from util.errorKim Alvefur2020-09-261-3/+3
* | util.stanza: Add method returning stanza with added indentationKim Alvefur2020-04-121-0/+30
* | util.stanza: Accept util.error object to error_replyKim Alvefur2019-12-141-0/+3
* | util.stanza: Support the 'by' attribute on errorsKim Alvefur2019-11-251-2/+5
* | util.stanza: Check that argument to error_reply is NOT a stanza of type errorKim Alvefur2019-11-251-0/+2
* | util.stanza: Check that argument to error_reply is a stanzaKim Alvefur2019-11-251-0/+3
* | util.stanza: Remove redundant check for attrsKim Alvefur2019-11-251-1/+1
* | util.stanza: Check that argument to reply is a stanzaKim Alvefur2019-11-251-0/+3
* | util.stanza: Use :text_tag internally everywhereKim Alvefur2019-08-021-3/+3
* | util.stanza: Fix :top_tag() handling of namespaced attributesMatthew Wild2019-03-251-32/+30
* | util.stanza: Require a type attribute for iq stanzasKim Alvefur2018-12-281-1/+7
|/
* util.stanza: Deserialize stanza without mutating input (fixes #711)Kim Alvefur2018-12-011-27/+17
* util.stanza: Validate input to clone() (with brief tests)Kim Alvefur2018-11-171-2/+9
* util.stanza: Set preserialize as freeze metamethodKim Alvefur2018-10-121-0/+2
* util.stanza: Don't automatically generate ids for iq stanzasMatthew Wild2018-09-131-9/+4
* util.stanza + tests: Bail out of loop if we are iterating too far, fixes #981Matthew Wild2018-08-191-0/+6
* Merge 0.10->trunkKim Alvefur2018-07-081-0/+10
|\
| * util.stanza: Add method for removing all children with a specific name, xmlnsKim Alvefur2018-07-081-0/+10
* | util.stanza: Remove redundant check from :text now done in :add_direct_childKim Alvefur2018-06-081-1/+0
* | util.stanza: Verify that other objects added as children are valid stringsKim Alvefur2018-06-081-1/+4
* | util.stanza: Verify that child tags added are really stanzas (closes #1165)Kim Alvefur2018-06-081-1/+1