[skip ci] various small changes

This commit is contained in:
Brahim Hadriche committed 2024-01-12 10:26:06 -05:00
1 parent 4e8dfe1a23
commit e80a41ca72
3 files changed
+7 -29

No files matched your search

+2 -3
View File
@@ -4,8 +4,7 @@ This is an automated release. It is generated when new code is pushed to the mai
To test this release:
- Open Playlet web app in a browser (`http://ROKU_IP_ADDRESS:8888/index.html`)
- Go to settings, and scroll down to `Developer settings`
- Set `Playlet Library version` to `canary` and click `Apply`
- Open Playlet web app settings in a browser (`http://ROKU_IP_ADDRESS:8888/index.html#settings`)
- Scroll down to `Developer settings` and set `Playlet Library version` to `canary` and click `Apply`
- Restart Playlet
- You can verify that you're testing the `canary` release in the `Info` tab in Playlet or the web app
@@ -113,20 +113,6 @@ namespace HttpClient
return (new HttpRequest()).Method("HEAD").Url(url)
end function
function FromObject(obj as object) as HttpRequest
request = new HttpRequest()
for each key in obj
if IsFunction(request[key])
request[key](obj[key])
else
throw `Invalid key: "${key}" in object passed to HttpClient.FromObject`
end if
end for
return request
end function
class HttpRequest
public urlTransfer as object
+5 -12
View File
@@ -7,15 +7,6 @@ class XmlObject
private INDENT_SIZE = 2
function new()
m.escapeChars = {}
m.escapeChars["&"] = "&"
m.escapeChars["<"] = "&lt;"
m.escapeChars[">"] = "&gt;"
m.escapeChars[`"`] = `&quot;`
m.escapeChars["'"] = "&apos;"
end function
function Node(name as string, attributes = invalid as object) as boolean
newNode = {
name: name
@@ -92,9 +83,11 @@ class XmlObject
end function
function XmlEscape(input as string) as string
for each escChar in m.escapeChars
input = input.replace(escChar, m.escapeChars[escChar])
end for
input = input.replace("&", "&amp;")
input = input.replace("<", "&lt;")
input = input.replace(">", "&gt;")
input = input.replace(`"`, "&quot;")
input = input.replace("'", "&apos;")
return input
end function