libsodium-sumo 0.7.9 → 0.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/modules-sumo/libsodium-sumo.js +1 -1
- package/package.json +4 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -60,15 +60,15 @@ bower install libsodium.js
|
|
|
60
60
|
|
|
61
61
|
### Usage (as a module)
|
|
62
62
|
|
|
63
|
-
Load the `
|
|
63
|
+
Load the `libsodium-wrappers` module. The returned object contains a `.ready`
|
|
64
64
|
property: a promise that must be resolve before the sodium functions
|
|
65
65
|
can be used.
|
|
66
66
|
|
|
67
67
|
Example:
|
|
68
68
|
|
|
69
69
|
```js
|
|
70
|
-
|
|
71
|
-
(async() => {
|
|
70
|
+
import _sodium from 'libsodium-wrappers';
|
|
71
|
+
await (async() => {
|
|
72
72
|
await _sodium.ready;
|
|
73
73
|
const sodium = _sodium;
|
|
74
74
|
|