@ndriadev/futurable 1.0.2 → 1.0.4

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.
Files changed (2) hide show
  1. package/README.md +2 -3
  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
  ```
@@ -129,7 +129,6 @@ They are the following:
129
129
  - [sleep](#sleep)
130
130
  - [delay](#delay)
131
131
  - [fetch](#fetch)
132
- - [promisify](#promisify)
133
132
  - [futurizable](#futurizable)
134
133
  - [Futurable.onCancel](#Futurable.onCancel)
135
134
  - [Futurable.sleep](#Futurable.sleep)
@@ -152,7 +151,7 @@ const promise = new Promise((resolve, reject) => {
152
151
  });
153
152
 
154
153
  //Futurable
155
- import Futurable from 'futurable';
154
+ import { Futurable } from 'futurable';
156
155
 
157
156
  const futurable = new Futurable((resolve, reject) => {
158
157
  const data = /*..async operations or other..*/
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ndriadev/futurable",
3
3
  "description": "Extension Javascript's Promise API with more functionalities",
4
4
  "private": false,
5
- "version": "1.0.2",
5
+ "version": "1.0.4",
6
6
  "type": "module",
7
7
  "engines": {
8
8
  "node": ">=16.13.2"