libsodium 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 CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015-2020
1
+ Copyright (c) 2015-2023
2
2
  Ahmad Ben Mrad <batikhsouri at gmail dot org>
3
3
  Frank Denis <j at pureftpd dot org>
4
4
  Ryan Lester <ryan at cyph dot com>
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 `sodium-wrappers` module. The returned object contains a `.ready`
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
- const _sodium = require('libsodium-wrappers');
71
- (async() => {
70
+ import _sodium from 'libsodium-wrappers';
71
+ await (async() => {
72
72
  await _sodium.ready;
73
73
  const sodium = _sodium;
74
74