You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LiveFile (inherited by LiveJson) is exposing a getContents() method to retrieve the underlying content as a Promise<Uint8Array>.
We need to have:
add a parameter to getContents called update which is a boolean defaulting to false that, when set to true does a FileContentsQuery network action, updating the underlying content in the process. If it's false, it retrieves the stored data in Uint8Array format.
both LiveJson and LiveFile should use the query result to update it's internal data reference
Implement LiveJson.toString() which will stringify its data
Implement LiveFile.toString() which will return its internal data (if it's a string) or <binary File content> if the data is a Uint8Array.
toString() implementations will allow for fluent formatting in structures such as This is the file: ${liveFile}.
The text was updated successfully, but these errors were encountered:
LiveFile
(inherited byLiveJson
) is exposing agetContents()
method to retrieve the underlying content as aPromise<Uint8Array>
.We need to have:
getContents
calledupdate
which is a boolean defaulting tofalse
that, when set totrue
does aFileContentsQuery
network action, updating the underlying content in the process. If it's false, it retrieves the stored data inUint8Array
format.LiveJson
andLiveFile
should use the query result to update it's internaldata
referenceLiveJson.toString()
which will stringify its dataLiveFile.toString()
which will return its internal data (if it's a string) or<binary File content>
if the data is aUint8Array
.toString()
implementations will allow for fluent formatting in structures such asThis is the file: ${liveFile}
.The text was updated successfully, but these errors were encountered: