Commit Graph

143 Commits (ea2f97e9ed8317dc9a62e45d9a807dca7e3700a5)

Author SHA1 Message Date
Kim Alvefur 885fde62be util.stanza: Handle Clark notation for attributes in :find() 1 year ago
Kim Alvefur 00584c4d61 util.stanza: Handle namespace prefixes for attributes in :find() 1 year ago
Kim Alvefur 4fa3808e8d util.stanza: Allow U+7F 3 years ago
Kim Alvefur f6727510da util.stanza: Return nil instead of nothing (fix test with luassert >=1.9) 3 years ago
Kim Alvefur 43531740f9 util: Prefix module imports with prosody namespace 3 years ago
Matthew Wild b02ab508d5 util.stanza: Add add_error() to simplify adding error tags to existing stanzas 3 years ago
Kim Alvefur 8959868a28 util.stanza: Add method for extracting a single attribute value 3 years ago
Kim Alvefur 7f7ec9e1ed util.stanza: Move misplaced argument to correct place 5 years ago
Kim Alvefur 8328e6681e util.stanza: Reject ASCII control characters (fixes #1606) 5 years ago
Kim Alvefur 5ead4102de util.stanza: Remove dead code 4 years ago
Kim Alvefur 72be6f8229 util.stanza: Make type error message consistent with others 4 years ago
Kim Alvefur ebd4ea2bb3 util.stanza: Adjust pretty printing for symmetry 4 years ago
Matthew Wild eba0bacfda util.stanza: Add :get_child_with_attr() + tests 4 years ago
Kim Alvefur f40173b4c7 util.stanza: Export pretty printing function 5 years ago
Kim Alvefur db2c51bcae util.stanza: Simplify and make pretty-printing look nicer 5 years ago
Kim Alvefur 317c76c881 util.stanza: Remove Windows "support" (disabling ANSI color pretty printing) 5 years ago
Jonas Schäfer b3ec594dd4 util.stanza: add at_top helper 5 years ago
Kim Alvefur 815ce25d10 util.stanza: Extract Application-Specific Condition from errors 5 years ago
Kim Alvefur 1c53f533b0 util.stanza: Support Application-Specific Conditions in util.error 5 years ago
Kim Alvefur 8c0efc9e55 util.stanza: Get 'by' from context instead 5 years ago
Kim Alvefur 3f9988468d util.stanza: Support inclusion of <gone> URI from util.error object 5 years ago
Kim Alvefur 2f0b85ce29 util.stanza: Support getting 'by' from util.error object 5 years ago
Kim Alvefur d9e80064b5 util.stanza: Reorder code to prepare for extracting 'by' from util.error 5 years ago
Kim Alvefur f0ac29acf0 util.stanza: Add method returning stanza with added indentation 6 years ago
Kim Alvefur 4e34c40ece util.stanza: Accept util.error object to error_reply 6 years ago
Kim Alvefur be23b274f6 util.stanza: Support the 'by' attribute on errors 6 years ago
Kim Alvefur 54da2ab6f7 util.stanza: Check that argument to error_reply is NOT a stanza of type error 6 years ago
Kim Alvefur 52b7181979 util.stanza: Check that argument to error_reply is a stanza 6 years ago
Kim Alvefur 11095184a5 util.stanza: Remove redundant check for attrs 6 years ago
Kim Alvefur b340e5e462 util.stanza: Check that argument to reply is a stanza 6 years ago
Kim Alvefur 76536dab05 util.stanza: Deserialize stanza without mutating input (fixes #711) 7 years ago
Kim Alvefur 50f6335501 util.stanza: Validate input to clone() (with brief tests) 7 years ago
Kim Alvefur 6e624e01c6 util.stanza: Use :text_tag internally everywhere 6 years ago
Kim Alvefur e2321c4d37 util.stanza: Set preserialize as freeze metamethod 7 years ago
Kim Alvefur 759fe72f49 util.stanza: Add method for removing all children with a specific name, xmlns 8 years ago
Matthew Wild 27d8902b8e util.stanza: Don't automatically generate ids for iq stanzas 7 years ago
Matthew Wild 3b0271f560 util.stanza + tests: Bail out of loop if we are iterating too far, fixes #981 7 years ago
Kim Alvefur 6d79aef106 util.stanza: Remove redundant check from :text now done in :add_direct_child 8 years ago
Kim Alvefur 37344a42d8 util.stanza: Verify that other objects added as children are valid strings 8 years ago
Kim Alvefur beac6ef1ea util.stanza: Verify that child tags added are really stanzas (closes #1165) 8 years ago
Kim Alvefur 2d784f1063 util.stanza: Add :text_tag(), a shortcut for adding nodes with text 8 years ago
Matthew Wild 17500b46fb util.stanza: Allow :text(nil) and :text("") as harmless nops 8 years ago
Matthew Wild 65f4b853a0 util.stanza: Switch from asserts to if's, improve performance, errors and tests 8 years ago
Matthew Wild 6d7cd57d44 util.stanza: Add stricter validation for data passed to stanza builder API 8 years ago
Kim Alvefur 43b814a83b vairious: Add annotation when an empty environment is set [luacheck] 8 years ago
Kim Alvefur 6cdc43292e util.stanza: Change __type to __name as this is used by Lua 5.3 in some error reporting functions 8 years ago
Kim Alvefur 1438a38845 util: Various minor changes to please [luacheck] 8 years ago
Kim Alvefur 47dbb92888 util.stanza: Create tables with correct size to avoid reallocations 4 years ago
Kim Alvefur ceea9b1788 util.stanza: Use table.move in clone 4 years ago
Kim Alvefur 2d642bfb76 util.stanza: Add an is_stanza() function to check if an object is a stanza 9 years ago