fix: missing spec has (fixes #161) (#163)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham 2024-08-23 01:40:58 -04:00 committed by GitHub
parent ce57528961
commit 279ec97582
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,6 +104,9 @@ setmetatable(M, {
t[k] = setmetatable({}, { __index = v })
-- Hack for aliasing and makes it sane for us.
t[k].parse_response = v.parse_response_data
t[k].has = function()
return os.getenv(t[k].api_key_name) and true or false
end
return t[k]
end