easy-web-worker 7.0.4 → 7.0.5
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
|
@@ -19,7 +19,7 @@ I sincerely apologize for any inconvenience this may cause.
|
|
|
19
19
|
### Creating a web worker never was easier!
|
|
20
20
|
|
|
21
21
|
```ts
|
|
22
|
-
import
|
|
22
|
+
import createEasyWebWorker from 'easy-web-worker/createEasyWebWorker';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* The callback parameter will be the body of the worker
|
|
@@ -331,7 +331,7 @@ let's see how to use it:
|
|
|
331
331
|
|
|
332
332
|
```TS
|
|
333
333
|
// imports only the static web worker
|
|
334
|
-
import
|
|
334
|
+
import createStaticEasyWebWorker from 'easy-web-worker/createStaticEasyWebWorker';
|
|
335
335
|
|
|
336
336
|
// this is gonna create the same message structure the runtime Workers
|
|
337
337
|
const { onMessage } = createStaticEasyWebWorker();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-web-worker",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.5",
|
|
4
4
|
"description": "This is a library to easily handle and create web-workers, if you are a web developer and never tried this... do not wait any longer! Workers are an amazing option to improve user experience and make your webpages even greater",
|
|
5
5
|
"main": "./bundle.js",
|
|
6
6
|
"types": "./index.d.ts",
|