@emohk/utils 1.0.1 → 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 CHANGED
@@ -58,5 +58,3 @@ To generate documentation:
58
58
  ```bash
59
59
  bun run docs
60
60
  ```
61
-
62
- This project was created using `bun init` in bun v1.3.6. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- var{defineProperty:E,getOwnPropertyNames:G,getOwnPropertyDescriptor:H}=Object,I=Object.prototype.hasOwnProperty;function J(q){return this[q]}var K=(q)=>{var B=(F??=new WeakMap).get(q),C;if(B)return B;if(B=E({},"__esModule",{value:!0}),q&&typeof q==="object"||typeof q==="function"){for(var D of G(q))if(!I.call(B,D))E(B,D,{get:J.bind(q,D),enumerable:!(C=H(q,D))||C.enumerable})}return F.set(q,B),B},F;var L=(q)=>q;function M(q,B){this[q]=L.bind(null,B)}var N=(q,B)=>{for(var C in B)E(q,C,{get:B[C],enumerable:!0,configurable:!0,set:M.bind(B,C)})};var U={};N(U,{hasValues:()=>Q,chunk:()=>R,checkStringPresent:()=>O,checkObject:()=>P});module.exports=K(U);var O=(q)=>typeof q==="string"&&q.trim().length>0,P=(q)=>typeof q==="object"&&q!==null&&!Array.isArray(q)&&q.constructor===Object,Q=(q)=>Array.isArray(q)&&q.length>0,R=(q,B)=>Array.from({length:Math.ceil(q.length/B)},(C,D)=>q.slice(D*B,D*B+B));
1
+ var{defineProperty:E,getOwnPropertyNames:G,getOwnPropertyDescriptor:H}=Object,I=Object.prototype.hasOwnProperty;function J(q){return this[q]}var K=(q)=>{var B=(F??=new WeakMap).get(q),C;if(B)return B;if(B=E({},"__esModule",{value:!0}),q&&typeof q==="object"||typeof q==="function"){for(var D of G(q))if(!I.call(B,D))E(B,D,{get:J.bind(q,D),enumerable:!(C=H(q,D))||C.enumerable})}return F.set(q,B),B},F;var L=(q)=>q;function M(q,B){this[q]=L.bind(null,B)}var N=(q,B)=>{for(var C in B)E(q,C,{get:B[C],enumerable:!0,configurable:!0,set:M.bind(B,C)})};var U={};N(U,{hasValues:()=>Q,chunk:()=>R,checkStringPresent:()=>O,checkObject:()=>P});module.exports=K(U);var O=(q)=>typeof q==="string"&&q.trim().length>0,P=(q)=>typeof q==="object"&&q!==null&&!Array.isArray(q),Q=(q)=>Array.isArray(q)&&q.length>0,R=(q,B)=>Array.from({length:Math.ceil(q.length/B)},(C,D)=>q.slice(D*B,D*B+B));
package/dist/index.d.ts CHANGED
@@ -13,9 +13,9 @@
13
13
  */
14
14
  export declare const checkStringPresent: (value: any) => value is string;
15
15
  /**
16
- * Checks if a value is a plain object (not null, not array).
16
+ * Checks if a value is an object (not null, not array).
17
17
  * @param object - The value to check
18
- * @returns True if the value is a plain object, false otherwise
18
+ * @returns True if the value is an object, false otherwise
19
19
  * @example
20
20
  * ```ts
21
21
  * checkObject({}) // true
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- var E=(q)=>typeof q==="string"&&q.trim().length>0,F=(q)=>typeof q==="object"&&q!==null&&!Array.isArray(q)&&q.constructor===Object,G=(q)=>Array.isArray(q)&&q.length>0,H=(q,B)=>Array.from({length:Math.ceil(q.length/B)},(D,C)=>q.slice(C*B,C*B+B));export{G as hasValues,H as chunk,E as checkStringPresent,F as checkObject};
1
+ var E=(q)=>typeof q==="string"&&q.trim().length>0,F=(q)=>typeof q==="object"&&q!==null&&!Array.isArray(q),G=(q)=>Array.isArray(q)&&q.length>0,H=(q,B)=>Array.from({length:Math.ceil(q.length/B)},(D,C)=>q.slice(C*B,C*B+B));export{G as hasValues,H as chunk,E as checkStringPresent,F as checkObject};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emohk/utils",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "A collection of utility functions for various projects.",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",
@@ -24,16 +24,17 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/bun": "latest",
27
- "prettier": "^3.8.1",
28
- "typedoc": "^0.28.17",
29
- "typedoc-plugin-markdown": "^4.10.0"
27
+ "prettier": "^3.9.5",
28
+ "typedoc": "^0.28.20",
29
+ "typedoc-plugin-markdown": "^4.12.0",
30
+ "typescript": "6.0.3"
30
31
  },
31
32
  "peerDependencies": {
32
- "typescript": "^5.9.3"
33
+ "typescript": "^6.0.0 || ^7.0.0"
33
34
  },
34
35
  "scripts": {
35
36
  "build": "bun run build.ts",
36
- "declare": "tsc index.ts --declaration --emitDeclarationOnly --outDir dist",
37
+ "declare": "tsc --project tsconfig.declarations.json",
37
38
  "docs": "typedoc",
38
39
  "prepublishOnly": "bun run build && bun run declare"
39
40
  },