Initializes a WappStorage instance with the provided name.
The name of the WappStorage instance.
Unregister the callback function that was previously registered with onChange.
A promise that resolves to true if the callback was successfully unregistered, and false otherwise.
Initializes the WappStorage instance by fetching data based on the provided name.
A Promise that resolves once the initialization is complete.
Returns an array of all the keys in the storage.
An array of keys.
Registers a callback function to be invoked when the storage changes.
The callback function to be invoked.
A promise that resolves to true if the callback was successfully registered, and false otherwise.
Reloads the data from the server.
A promise that resolves to a boolean indicating whether the reload was successful.
Removes the specified name(s) from the storage.
The name or an array of names to be removed.
A promise that resolves to true if the name(s) were successfully removed, and false otherwise.
Removes a secret value from the storage.
The name of the secret value to remove, or an array of names.
A promise that resolves to true if the secret value was successfully removed, and false otherwise.
Resets the state of the wapp storage.
A promise that resolves when the reset is complete.
Sets the value of a key-value pair in the storage.
A Promise that resolves to true if the value was successfully set, and false otherwise.
Sets the secret value of a key-value pair in the storage.
A Promise that resolves to true if the secret value was successfully set, and false otherwise.
Updates the data and returns a promise that resolves to a boolean indicating whether the update was successful.
A promise that resolves to true if the update was successful, and false otherwise.
Class representing a WappStorage instance.