@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 CHANGED
@@ -1 +1 @@
1
- "use strict";const t=s=>s();module.exports=t;
1
+ 'use strict';var o=e=>e(),t=o;module.exports=t;
@@ -4,4 +4,5 @@
4
4
  * @returns Value of the block.
5
5
  */
6
6
  declare const useBlock: <RT>(callback: () => RT) => RT;
7
- export default useBlock;
7
+
8
+ export { useBlock as default };
package/dist/index.d.ts CHANGED
@@ -1 +1,8 @@
1
- export { default } from './_hook';
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
@@ -1,4 +1 @@
1
- const o = (e) => e();
2
- export {
3
- o as default
4
- };
1
+ var o=e=>e(),t=o;export{t as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purr-core/hooks.block",
3
- "version": "0.0.9",
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.10"
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
  }