@emohk/utils 1.0.1 → 1.0.2

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
- 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.2",
4
4
  "description": "A collection of utility functions for various projects.",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",