mirror of
https://github.com/bjc/prosody.git
synced 2025-03-31 11:47:40 +03:00
teal: Move into prosody namespace
This commit is contained in:
parent
738df041ac
commit
f68336b96e
61 changed files with 20 additions and 20 deletions
|
@ -135,7 +135,7 @@ lint:
|
|||
@echo $$(sed -n '/^\tlocal exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored
|
||||
shellcheck configure
|
||||
|
||||
vpath %.tl teal-src/
|
||||
vpath %.tl teal-src/prosody
|
||||
%.lua: %.tl
|
||||
tl -I teal-src/ --gen-compat off --gen-target 5.1 gen $^ -o $@
|
||||
-lua-format -i $@
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local st = require"util.stanza"
|
||||
local st = require "prosody.util.stanza"
|
||||
|
||||
global record moduleapi
|
||||
get_name : function (moduleapi) : string
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
-- Key-Value stores (the default)
|
||||
|
||||
local stanza = require"util.stanza".stanza_t
|
||||
local stanza = require"prosody.util.stanza".stanza_t
|
||||
|
||||
local record keyval_store
|
||||
get : function ( keyval_store, string ) : any , string
|
|
@ -1,4 +1,4 @@
|
|||
local Role = require "util.roles".Role;
|
||||
local Role = require "prosody.util.roles".Role;
|
||||
|
||||
local record usermanager
|
||||
record AuthProvider
|
|
@ -1,4 +1,4 @@
|
|||
local Promise = require "util.promise".Promise;
|
||||
local Promise = require "prosody.util.promise".Promise;
|
||||
|
||||
local record sslctx -- from LuaSec
|
||||
end
|
|
@ -1,7 +1,7 @@
|
|||
module:set_global();
|
||||
|
||||
local async = require "util.async";
|
||||
local datetime = require "util.datetime";
|
||||
local async = require "prosody.util.async";
|
||||
local datetime = require "prosody.util.datetime";
|
||||
|
||||
local record map_store<K,V>
|
||||
-- TODO move to somewhere sensible
|
|
@ -1,4 +1,4 @@
|
|||
local Stanza = require "util.stanza".stanza_t
|
||||
local Stanza = require "prosody.util.stanza".stanza_t
|
||||
|
||||
local record Room
|
||||
jid : string
|
|
@ -1,4 +1,4 @@
|
|||
local stanza_t = require "util.stanza".stanza_t
|
||||
local stanza_t = require "prosody.util.stanza".stanza_t
|
||||
|
||||
local record lib
|
||||
record dataform
|
|
@ -19,14 +19,14 @@
|
|||
-- TODO s/number/integer/ once we have appropriate math.type() compat
|
||||
--
|
||||
|
||||
if not math.type then require "util.mathcompat" end
|
||||
if not math.type then require "prosody.util.mathcompat" end
|
||||
|
||||
local st = require "util.stanza";
|
||||
local json = require"util.json"
|
||||
local pointer = require"util.jsonpointer";
|
||||
local st = require "prosody.util.stanza";
|
||||
local json = require "prosody.util.json"
|
||||
local pointer = require "prosody.util.jsonpointer";
|
||||
|
||||
local json_type_name = json.json_type_name;
|
||||
local json_schema_object = require "util.jsonschema"
|
||||
local json_schema_object = require "prosody.util.jsonschema"
|
||||
local type schema_t = boolean | json_schema_object
|
||||
|
||||
local function toboolean ( s : string ) : boolean
|
|
@ -8,12 +8,12 @@
|
|||
-- https://json-schema.org/draft/2020-12/json-schema-validation.html
|
||||
--
|
||||
|
||||
if not math.type then require "util.mathcompat" end
|
||||
if not math.type then require "prosody.util.mathcompat" end
|
||||
|
||||
local json = require"util.json"
|
||||
local json = require "prosody.util.json"
|
||||
local null = json.null;
|
||||
|
||||
local pointer = require "util.jsonpointer"
|
||||
local pointer = require "prosody.util.jsonpointer"
|
||||
|
||||
local type json_type_name = json.json_type_name
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
local crypto = require "util.crypto"
|
||||
local crypto = require "prosody.util.crypto"
|
||||
local record jwtlib
|
||||
enum algorithm
|
||||
"HS256"
|
|
@ -1,4 +1,4 @@
|
|||
local queue = require "util.queue";
|
||||
local queue = require "prosody.util.queue";
|
||||
|
||||
local record lib
|
||||
-- T would typically be util.stanza
|
|
@ -14,7 +14,7 @@ local s_match = string.match;
|
|||
local s_sub = string.sub;
|
||||
local t_concat = table.concat;
|
||||
|
||||
local st = require "util.stanza";
|
||||
local st = require "prosody.util.stanza";
|
||||
|
||||
local type escape_t = function (string) : string
|
||||
local type filter_t = function (string, string | st.stanza_t, string) : string | st.stanza_t, boolean
|
Loading…
Add table
Add a link
Reference in a new issue