@emohk/utils 1.0.3 → 1.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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -8
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var{defineProperty:
|
|
1
|
+
var{defineProperty:a,getOwnPropertyNames:s,getOwnPropertyDescriptor:y}=Object,o=Object.prototype.hasOwnProperty;function h(n){return this[n]}var l=(n)=>{var t=(c??=new WeakMap).get(n),r;if(t)return t;if(t=a({},"__esModule",{value:!0}),n&&typeof n==="object"||typeof n==="function"){for(var e of s(n))if(!o.call(t,e))a(t,e,{get:h.bind(n,e),enumerable:!(r=y(n,e))||r.enumerable})}return c.set(n,t),t},c;var g=(n)=>n;function i(n,t){this[n]=g.bind(null,t)}var p=(n,t)=>{for(var r in t)a(n,r,{get:t[r],enumerable:!0,configurable:!0,set:i.bind(t,r)})};var k={};p(k,{checkObject:()=>u,checkStringPresent:()=>A,chunk:()=>f,hasValues:()=>x});module.exports=l(k);var A=(n)=>typeof n==="string"&&n.trim().length>0,u=(n)=>typeof n==="object"&&n!==null&&!Array.isArray(n),x=(n)=>Array.isArray(n)&&n.length>0,f=(n,t)=>Array.from({length:Math.ceil(n.length/t)},(r,e)=>n.slice(e*t,e*t+t));
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a=(n)=>typeof n==="string"&&n.trim().length>0,c=(n)=>typeof n==="object"&&n!==null&&!Array.isArray(n),s=(n)=>Array.isArray(n)&&n.length>0,y=(n,t)=>Array.from({length:Math.ceil(n.length/t)},(e,r)=>n.slice(r*t,r*t+t));export{c as checkObject,a as checkStringPresent,y as chunk,s as hasValues};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emohk/utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "A collection of utility functions for various projects.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -24,18 +24,16 @@
|
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/bun": "latest",
|
|
27
|
-
"prettier": "^3.9.
|
|
27
|
+
"prettier": "^3.9.10",
|
|
28
28
|
"typedoc": "^0.28.20",
|
|
29
|
-
"typedoc-plugin-markdown": "^4.
|
|
30
|
-
"typescript": "
|
|
31
|
-
|
|
32
|
-
"peerDependencies": {
|
|
33
|
-
"typescript": "^6.0.0 || ^7.0.0"
|
|
29
|
+
"typedoc-plugin-markdown": "^4.14.1",
|
|
30
|
+
"typescript": "7.0.2",
|
|
31
|
+
"typescript6": "npm:typescript@6.0.3"
|
|
34
32
|
},
|
|
35
33
|
"scripts": {
|
|
36
34
|
"build": "bun run build.ts",
|
|
37
35
|
"declare": "tsc --project tsconfig.declarations.json",
|
|
38
|
-
"docs": "typedoc",
|
|
36
|
+
"docs": "NODE_OPTIONS=\"--import=$PWD/scripts/typedoc-ts6-register.mjs\" typedoc",
|
|
39
37
|
"prepublishOnly": "bun run build && bun run declare"
|
|
40
38
|
},
|
|
41
39
|
"author": "Ronald Mak",
|