@ndriadev/futurable 1.0.2 → 1.0.3
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/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ npm install futurable # or yarn add futurable or pnpm add futurable
|
|
|
67
67
|
# Usage
|
|
68
68
|
The library supports both ESM and CJS formats, so it can be used as follows:
|
|
69
69
|
```javascript
|
|
70
|
-
import Futurable from 'futurable'; // ok
|
|
70
|
+
import { Futurable } from 'futurable'; // ok
|
|
71
71
|
|
|
72
72
|
const { Futurable } = require('futurable'); // ok
|
|
73
73
|
```
|
|
@@ -152,7 +152,7 @@ const promise = new Promise((resolve, reject) => {
|
|
|
152
152
|
});
|
|
153
153
|
|
|
154
154
|
//Futurable
|
|
155
|
-
import Futurable from 'futurable';
|
|
155
|
+
import { Futurable } from 'futurable';
|
|
156
156
|
|
|
157
157
|
const futurable = new Futurable((resolve, reject) => {
|
|
158
158
|
const data = /*..async operations or other..*/
|