@purr-core/hooks.block 0.0.9 → 0.0.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/dist/index.cjs +1 -1
- package/dist/{_hook.d.ts → index.d.cts} +2 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +1 -4
- package/package.json +4 -2
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';var o=e=>e(),t=o;module.exports=t;
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Alternative for `useMemo` without memorize anything.
|
|
3
|
+
* @param callback Function callback to be called to get the value.
|
|
4
|
+
* @returns Value of the block.
|
|
5
|
+
*/
|
|
6
|
+
declare const useBlock: <RT>(callback: () => RT) => RT;
|
|
7
|
+
|
|
8
|
+
export { useBlock as default };
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purr-core/hooks.block",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"typescript": "*",
|
|
25
25
|
"react": "*",
|
|
26
|
-
"@purr-core/utils.definitions": "0.0.
|
|
26
|
+
"@purr-core/utils.definitions": "0.0.12"
|
|
27
27
|
},
|
|
28
28
|
"author": "@DinhThienPhuc",
|
|
29
29
|
"license": "ISC",
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
"scripts": {
|
|
33
33
|
"dev": "vite build --watch",
|
|
34
34
|
"build": "tsc && vite build",
|
|
35
|
+
"build:vite": "tsc && vite build",
|
|
36
|
+
"build:tsup": "tsup",
|
|
35
37
|
"lint": "eslint . --ext ts,tsx --max-warnings 0"
|
|
36
38
|
}
|
|
37
39
|
}
|