@rzl-zone/utils-js 3.1.3-beta.0 → 3.2.2-beta.0
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 +11 -10
- package/dist/assertions/index.cjs +1 -1
- package/dist/assertions/index.js +1 -1
- package/dist/chunk-2HSNUPEO.cjs +1 -0
- package/dist/chunk-3YCFMGRB.js +1 -0
- package/dist/chunk-4Z75R3IT.cjs +1 -0
- package/dist/chunk-5C2SMIGX.cjs +1 -0
- package/dist/chunk-5Z2G23WP.js +1 -0
- package/dist/chunk-6C3ATUGM.cjs +1 -0
- package/dist/chunk-AJ25PWXX.cjs +1 -0
- package/dist/chunk-BHIBDDQF.js +1 -0
- package/dist/chunk-CE4JI2YB.js +1 -0
- package/dist/chunk-CMJ6UYWW.cjs +1 -0
- package/dist/chunk-D3VSHABU.cjs +1 -0
- package/dist/chunk-DG2GWBTS.cjs +1 -0
- package/dist/chunk-DVMHRLKP.cjs +1 -0
- package/dist/chunk-ECRNH4FW.js +1 -0
- package/dist/chunk-EKS4IZJR.cjs +1 -0
- package/dist/chunk-EOZKYR5S.cjs +1 -0
- package/dist/chunk-EUANTHVN.js +1 -0
- package/dist/chunk-EW3I4O7X.js +1 -0
- package/dist/chunk-F3E77L46.js +1 -0
- package/dist/chunk-FIAAX3UE.js +1 -0
- package/dist/chunk-FV7SEBKD.cjs +1 -0
- package/dist/chunk-GGWPB23G.cjs +1 -0
- package/dist/chunk-GVWGQNLF.js +1 -0
- package/dist/chunk-H3FXL4DU.cjs +1 -0
- package/dist/chunk-HHPDLSX2.cjs +1 -0
- package/dist/chunk-IMCLPT5V.cjs +1 -0
- package/dist/chunk-IRGE5W7L.js +1 -0
- package/dist/chunk-J2RGTPGK.cjs +1 -0
- package/dist/chunk-JARPXKBM.cjs +1 -0
- package/dist/chunk-JFJUPYDT.cjs +1 -0
- package/dist/chunk-JLP56WSM.js +1 -0
- package/dist/chunk-K3MV4AIN.cjs +1 -0
- package/dist/chunk-KHO2SBNA.cjs +1 -0
- package/dist/chunk-KOVO72OM.js +1 -0
- package/dist/chunk-LJ4M3VGE.js +1 -0
- package/dist/chunk-LJVGJLP4.js +1 -0
- package/dist/chunk-M47QIBXI.cjs +1 -0
- package/dist/chunk-MC3LXMCQ.js +1 -0
- package/dist/chunk-MISCBZJC.js +1 -0
- package/dist/chunk-MMSYCIJ2.cjs +1 -1
- package/dist/chunk-MTUBDVJ2.js +1 -0
- package/dist/chunk-O7UT5AN3.cjs +1 -0
- package/dist/chunk-OGPPP2S3.js +1 -0
- package/dist/chunk-OLPKAX7F.cjs +1 -0
- package/dist/chunk-ONZFBJVW.js +1 -0
- package/dist/chunk-ORZFHBEY.js +1 -0
- package/dist/chunk-OWV2P376.js +1 -0
- package/dist/chunk-QNKGP5DY.js +1 -0
- package/dist/chunk-RV2WK5E6.js +1 -0
- package/dist/chunk-SBF43G3B.cjs +1 -0
- package/dist/chunk-T4CIAKEK.js +1 -0
- package/dist/chunk-UDA26MCU.cjs +1 -0
- package/dist/chunk-VCFXNV3Q.cjs +1 -0
- package/dist/chunk-VHAPTHEA.cjs +1 -0
- package/dist/chunk-WVSPXFTY.js +1 -0
- package/dist/chunk-X74TUJSE.cjs +1 -0
- package/dist/chunk-XC3QHAK2.cjs +1 -0
- package/dist/chunk-XLDAIZRK.js +1 -0
- package/dist/chunk-XZJ7C4N6.js +1 -0
- package/dist/chunk-YV3K2EKJ.js +1 -0
- package/dist/chunk-ZHV5ZYVN.cjs +1 -0
- package/dist/chunk-ZL7J6GTP.js +1 -0
- package/dist/chunk-ZTCLKKMB.js +1 -0
- package/dist/conversions/index.cjs +1 -1
- package/dist/conversions/index.js +1 -1
- package/dist/env/index.cjs +1 -1
- package/dist/env/index.js +1 -1
- package/dist/events/index.cjs +1 -1
- package/dist/events/index.js +1 -1
- package/dist/formatting/index.cjs +1 -1
- package/dist/formatting/index.js +1 -1
- package/dist/generator/index.cjs +1 -1
- package/dist/generator/index.js +1 -1
- package/dist/next/index.cjs +1 -8
- package/dist/next/index.js +1 -8
- package/dist/next/server/index.cjs +1 -2
- package/dist/next/server/index.js +1 -2
- package/dist/operations/index.cjs +1 -1
- package/dist/operations/index.js +1 -1
- package/dist/parsers/index.cjs +1 -1
- package/dist/parsers/index.js +1 -1
- package/dist/predicates/index.cjs +1 -1
- package/dist/predicates/index.js +1 -1
- package/dist/promise/index.cjs +1 -1
- package/dist/promise/index.js +1 -1
- package/dist/rzl-utils.global.js +1 -4
- package/dist/strings/index.cjs +1 -1
- package/dist/strings/index.js +1 -1
- package/dist/tailwind/index.cjs +1 -0
- package/dist/tailwind/index.d.ts +565 -0
- package/dist/tailwind/index.js +1 -0
- package/dist/urls/index.cjs +1 -1
- package/dist/urls/index.js +1 -1
- package/package.json +22 -9
- package/dist/chunk-26W3VZIK.cjs +0 -1
- package/dist/chunk-2KRCHXFG.cjs +0 -2
- package/dist/chunk-33ZLH266.js +0 -1
- package/dist/chunk-4L4EJTNZ.js +0 -1
- package/dist/chunk-56QBKKRE.js +0 -1
- package/dist/chunk-5Q37AP7P.js +0 -1
- package/dist/chunk-5SZUSNGZ.js +0 -1
- package/dist/chunk-7CHFAMS2.js +0 -1
- package/dist/chunk-7MMJZ6HS.js +0 -1
- package/dist/chunk-7TC6DE3J.cjs +0 -1
- package/dist/chunk-7VX33E3V.js +0 -1
- package/dist/chunk-7YWAQOA4.cjs +0 -1
- package/dist/chunk-BEZPD44N.cjs +0 -1
- package/dist/chunk-BI263OHW.js +0 -1
- package/dist/chunk-CII6WWLO.cjs +0 -1
- package/dist/chunk-D5TYPCWU.cjs +0 -1
- package/dist/chunk-EEQY5QUG.js +0 -1
- package/dist/chunk-ELDDNERR.js +0 -1
- package/dist/chunk-ESJYBIYH.js +0 -1
- package/dist/chunk-EWYPSKKM.js +0 -1
- package/dist/chunk-EXCOQLWX.cjs +0 -1
- package/dist/chunk-FIEZKTAZ.cjs +0 -1
- package/dist/chunk-FWQVTMYA.cjs +0 -1
- package/dist/chunk-G4EWCRKS.js +0 -1
- package/dist/chunk-G7R5XZRM.cjs +0 -1
- package/dist/chunk-GGEV7LXX.cjs +0 -1
- package/dist/chunk-HJOZOENU.cjs +0 -1
- package/dist/chunk-IRDZVLNZ.cjs +0 -1
- package/dist/chunk-IW73G523.cjs +0 -1
- package/dist/chunk-IY5OZAB3.cjs +0 -1
- package/dist/chunk-J4NCYYGS.js +0 -1
- package/dist/chunk-J7JAZAJD.js +0 -1
- package/dist/chunk-JYNSO7ZY.js +0 -1
- package/dist/chunk-K3UVKYEU.js +0 -1
- package/dist/chunk-LQ76EDZG.js +0 -1
- package/dist/chunk-MROH35V3.cjs +0 -1
- package/dist/chunk-NJSAV73S.js +0 -1
- package/dist/chunk-NNM7QCNB.js +0 -1
- package/dist/chunk-NR44SNYE.js +0 -1
- package/dist/chunk-NXMTWY77.js +0 -1
- package/dist/chunk-OZCQZO2V.cjs +0 -4
- package/dist/chunk-PUQXRLZH.cjs +0 -1
- package/dist/chunk-Q3NTKN5I.cjs +0 -1
- package/dist/chunk-QDNSC57Z.js +0 -4
- package/dist/chunk-QGXTL5ZH.js +0 -2
- package/dist/chunk-QSQDP7L2.cjs +0 -1
- package/dist/chunk-RV2VULM7.cjs +0 -1
- package/dist/chunk-S5M33A4O.js +0 -1
- package/dist/chunk-SGTHOQQ2.js +0 -1
- package/dist/chunk-SL3RQOWA.js +0 -1
- package/dist/chunk-SW6HYEW7.cjs +0 -1
- package/dist/chunk-SYJC7UAW.js +0 -1
- package/dist/chunk-SZPWZZYG.cjs +0 -1
- package/dist/chunk-UA4B7JBO.cjs +0 -1
- package/dist/chunk-UQDJF5RR.cjs +0 -1
- package/dist/chunk-UTQUYABU.cjs +0 -1
- package/dist/chunk-VPW3DRV5.js +0 -1
- package/dist/chunk-W32WALNU.js +0 -1
- package/dist/chunk-XGZ6K753.cjs +0 -1
- package/dist/chunk-YFTR64N5.cjs +0 -1
- package/dist/chunk-ZFDS7W6B.cjs +0 -1
- package/dist/chunk-ZQOLZE6Z.cjs +0 -1
- package/dist/stylings/index.cjs +0 -1
- package/dist/stylings/index.d.ts +0 -41
- package/dist/stylings/index.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isString as r,resolveErrorMessageAssertions as e}from"./chunk-EW3I4O7X.js";var o=(o,t={})=>{if(r(o))return;const i=e({value:o,options:t,requiredValidType:"string"});throw new TypeError(i)};export{o as assertIsString};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.isBigInt=t=>"bigint"==typeof t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var r=require("./chunk-D3VSHABU.cjs");exports.assertIsString=(e,s={})=>{if(r.isString(e))return;const t=r.resolveErrorMessageAssertions({value:e,options:s,requiredValidType:"string"});throw new TypeError(t)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var r=require("./chunk-D3VSHABU.cjs");exports.assertIsArray=function(e,s){if(r.isArray(e))return;const o=r.resolveErrorMessageAssertions({value:e,options:s,requiredValidType:"array"});throw new TypeError(o)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return"number"==typeof e&&Number.isInteger(e)}export{e as isInteger};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./chunk-VHAPTHEA.cjs"),i=require("./chunk-D3VSHABU.cjs"),r=require("tailwind-merge-v3"),s=require("tailwind-merge-v4");function t(e){var i,r,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(i=0;i<o;i++)e[i]&&(r=t(e[i]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}var o=function(){for(var e,i,r=0,s="",o=arguments.length;r<o;r++)(e=arguments[r])&&(i=t(e))&&(s&&(s+=" "),s+=i);return s},n=e=>{i.isPlainObject(e)||(e={});let{config:r,prefix:s,extend:t,override:o,cacheSize:n,experimentalParseClassName:a}=e;i.isPlainObject(r)||(r={}),i.isPlainObject(t)||(t={}),i.isPlainObject(o)||(o={}),i.isNumber(n)||(n=void 0),i.isNonEmptyString(s)||(s=void 0),i.isFunction(a)||(a=void 0);return{config:r,override:o,cacheSize:n,prefix:s,experimentalParseClassName:a,theme:i.hasOwnProp(t,"theme")?t.theme:{},classGroups:i.hasOwnProp(t,"classGroups")?t.classGroups:{},conflictingClassGroupModifiers:i.hasOwnProp(t,"conflictingClassGroupModifiers")?t.conflictingClassGroupModifiers:{},conflictingClassGroups:i.hasOwnProp(t,"conflictingClassGroups")?t.conflictingClassGroups:{},orderSensitiveModifiers:i.hasOwnProp(t,"orderSensitiveModifiers")&&i.isNonEmptyArray(t.orderSensitiveModifiers)?t.orderSensitiveModifiers:[]}},a=r.getDefaultConfig(),c=(e={})=>{var s,t,o;i.isPlainObject(e)||(e={});const{cacheSize:c,classGroups:l,config:f,conflictingClassGroupModifiers:p,conflictingClassGroups:u,override:d,prefix:m,theme:g,experimentalParseClassName:x}=n(e);return r.extendTailwindMerge({prefix:m??f.prefix,cacheSize:c||a.cacheSize,experimentalParseClassName:x,override:d,extend:{conflictingClassGroupModifiers:{...a.conflictingClassGroupModifiers,...p},theme:{...a.theme,...g},conflictingClassGroups:{...a.conflictingClassGroups,...u},classGroups:{...a.classGroups,...l,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...(null==(s=f.theme)?void 0:s.fontSize)||{},...(null==(o=null==(t=f.theme)?void 0:t.extend)?void 0:o.fontSize)||{}}).map(e=>`text-${e}`)}}})},l=s.getDefaultConfig(),f=(e={})=>{var r,t,o;i.isPlainObject(e)||(e={});const{cacheSize:a,classGroups:c,config:f,conflictingClassGroupModifiers:p,conflictingClassGroups:u,orderSensitiveModifiers:d,override:m,prefix:g,theme:x,experimentalParseClassName:h}=n(e);return s.extendTailwindMerge({prefix:g||f.prefix,cacheSize:a||l.cacheSize,experimentalParseClassName:h,override:m,extend:{conflictingClassGroupModifiers:{...l.conflictingClassGroupModifiers,...p},theme:{...l.theme,...x},conflictingClassGroups:{...l.conflictingClassGroups,...u},orderSensitiveModifiers:[...l.orderSensitiveModifiers,...d],classGroups:{...l.classGroups,...c,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...(null==(r=f.theme)?void 0:r.fontSize)||{},...(null==(o=null==(t=f.theme)?void 0:t.extend)?void 0:o.fontSize)||{}}).map(e=>`text-${e}`)}}})},p=c(),u=f();exports.cnV3=(...e)=>p(o(...e)),exports.cnV4=(...e)=>u(o(...e)),exports.customCnV3=(e,...r)=>{if(!i.isFunction(e))throw new TypeError(`first Parameter (\`customTwMergeV3\`) must be of type \`function\`, but received: \`${i.getPreciseType(e)}\`.`);return e(o(...r))},exports.customCnV4=(e,...r)=>{if(!i.isFunction(e))throw new TypeError(`first Parameter (\`customTwMergeV4\`) must be of type \`function\`, but received: \`${i.getPreciseType(e)}\`.`);return e(o(...r))},exports.shouldForwardProp=i=>(e.assertIsArray(i,{message:({currentType:e,validType:i})=>`First parameter (\`props\`) must be of type \`${i}\`, but received: \`${e}\`.`}),e=>!i.map(e=>e.toString()).includes(e.toString())),exports.twMergeDefaultV3=c,exports.twMergeDefaultV4=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./chunk-J2RGTPGK.cjs"),t=require("./chunk-VCFXNV3Q.cjs"),s=require("./chunk-D3VSHABU.cjs");exports.disableUserInteraction=(s="on_processing")=>{if(e.isServer())return;t.assertIsString(s,{message:({validType:e,currentType:t})=>`First parameter \`className\` must be of type \`${e}\`, but received: \`${t}\`.`});const{documentElement:r}=document;r&&!r.classList.contains(s)&&r.classList.add(s)},exports.enableUserInteraction=(s="on_processing")=>{if(e.isServer())return;t.assertIsString(s,{message:({validType:e,currentType:t})=>`First parameter \`className\` must be of type \`${e}\`, but received: \`${t}\`.`});const{documentElement:r}=document;r&&r.classList.contains(s)&&r.classList.remove(s)},exports.removeElementFocus=()=>{if(e.isServer())return;const t=document.activeElement;t instanceof HTMLElement&&t.blur()},exports.scrollToTop=t=>{if(e.isServer())return;s.isPlainObject(t)||(t={});const r=s.hasOwnProp(t,"behavior")&&s.isNonEmptyString(t.behavior)&&["auto","instant","smooth"].includes(t.behavior.trim())?t.behavior:"smooth";let i=s.hasOwnProp(t,"timeout")&&s.isNumber(t.timeout)&&t.timeout>=1?t.timeout:1;i=i>2147483647?2147483647:i,setTimeout(()=>window.scrollTo({top:0,left:0,behavior:r}),i)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isEmptyArray as e,isEmptyObject as r}from"./chunk-ZTCLKKMB.js";import{noop as t}from"./chunk-FIAAX3UE.js";import{safeStableStringify as o}from"./chunk-BHIBDDQF.js";import{isString as n,isNumber as s,isNull as a,isUndefined as c,isNaN as i,isArray as m,isObject as l,isNonEmptyString as u,getPreciseType as v,isError as f,assertIsPlainObject as d,hasOwnProp as p,isBoolean as N,isFunction as g}from"./chunk-EW3I4O7X.js";var y=e=>{if(!n(e)&&!s(e))return 0;const r=String(e).trim().replace(/[^0-9]/g,"");return Number(r)||0},b=(e={})=>{d(e,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const r=!!p(e,"convertBooleans")&&e.convertBooleans,o=!!p(e,"convertDates")&&e.convertDates,n=!!p(e,"convertNumbers")&&e.convertNumbers,s=!!p(e,"loggingOnFail")&&e.loggingOnFail,a=!!p(e,"removeEmptyArrays")&&e.removeEmptyArrays,c=!!p(e,"removeEmptyObjects")&&e.removeEmptyObjects,i=!!p(e,"removeNulls")&&e.removeNulls,l=!!p(e,"removeUndefined")&&e.removeUndefined,u=!!p(e,"strictMode")&&e.strictMode,f=!!p(e,"checkSymbols")&&e.checkSymbols,y=!!p(e,"convertNaN")&&e.convertNaN,b=p(e,"customDateFormats")?e.customDateFormats:[],E=p(e,"onError")?e.onError:t;if(!(N(r)&&N(o)&&N(n)&&N(y)&&N(f)&&N(s)&&N(a)&&N(c)&&N(i)&&N(l)&&N(u)&&m(b)&&g(E)))throw new TypeError(`Invalid \`options\` parameter (second argument): \`convertBooleans\`, \`convertDates\`, \`convertNumbers\`, \`loggingOnFail\`, \`removeEmptyArrays\`, \`removeEmptyObjects\`, \`removeNulls\`, \`removeUndefined\`, \`strictMode\` expected to be a \`boolean\` type, \`customDateFormats\` expected to be a \`array\` type and \`onError\` expected to be a \`void function\` type. But received: ['convertBooleans': \`${v(r)}\`, 'convertDates': \`${v(o)}\`, 'convertNumbers': \`${v(n)}\`, 'loggingOnFail': \`${v(s)}\`, 'removeEmptyArrays': \`${v(a)}\`, 'removeEmptyObjects': \`${v(c)}\`, 'removeNulls': \`${v(i)}\`, 'removeUndefined': \`${v(l)}\`, 'strictMode': \`${v(u)}\`, 'customDateFormats': \`${v(b)}\`, 'onError': \`${v(E)}\`].`);return{convertBooleans:r,convertDates:o,convertNumbers:n,convertNaN:y,loggingOnFail:s,removeEmptyArrays:a,removeEmptyObjects:c,removeNulls:i,removeUndefined:l,strictMode:u,customDateFormats:b,onError:E,checkSymbols:f}},E=(t,o={})=>{var s;const u=b(o);if(a(t))return u.removeNulls?void 0:null;if(!c(t)){if(n(t)){const e=t.trim();if(u.convertNaN&&"NaN"===e)return NaN;if(u.convertNumbers&&!i(Number(e)))return Number(e);if(u.convertBooleans){if("true"===e)return!0;if("false"===e)return!1}if(u.convertDates){if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(e))return new Date(e);if(null==(s=u.customDateFormats)?void 0:s.length)for(const r of u.customDateFormats){const t=D(e,r);if(t)return t}}return u.strictMode?void 0:e}if(m(t)){const r=t.map(e=>E(e,u)).filter(e=>!c(e));return u.removeEmptyArrays&&e(r)?void 0:r}if(l(t)){const e={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const o=E(t[r],u);c(o)||(e[r]=o)}return u.removeEmptyObjects&&r(e,{checkSymbols:u.checkSymbols})?void 0:e}return u.strictMode?void 0:t}u.removeUndefined},D=(e,r)=>{if(!u(e)||!u(r))throw new TypeError(`Parameter \`dateString\` and \`format\` must be of type \`string\` and not empty-string, but received: "['dateString': \`${v(e)}\` - (current value: \`${o(e)}\`), 'format': \`${v(r)}\` - (current value: \`${o(r)}\`)]".`);const t=e.split(/[-/]/).map(Number);if(3!==t.length||t.some(i))return null;let n,s,a;if("DD/MM/YYYY"===r)[n,s,a]=t;else{if("MM/DD/YYYY"!==r)return null;[s,n,a]=t}s-=1;const c=new Date(a,s,n);return c.getFullYear()!==a||c.getMonth()!==s||c.getDate()!==n?null:c};function h(e,r={}){if(a(e))return null;const t=b(r);if(t.convertNaN&&(i(e)||u(e)&&"NaN"===e))return NaN;if(t.convertNumbers&&!i(Number(e))&&s(y(e)))return Number(e);if(n(e))try{let r=function(e){const r=new Set(["\\",'"',"/","b","f","n","r","t","u"]);let t="",o=!1,n=!1,s=!1;for(let a=0;a<e.length;a++){const c=e[a];if(s)o?"'"===c?t+="'":r.has(c)?t+="\\"===c?"\\\\":'"'===c?'\\"':"\\"+c:t+="\\\\"+c:n?'"'===c?t+='\\"':r.has(c)?t+="\\"+c:t+="\\\\"+c:t+="\\"+c,s=!1;else if("\\"!==c){if(o||n){if(o){if("'"===c){t+='"',o=!1;continue}}else if(n&&'"'===c){t+='"',n=!1;continue}}else{if("'"===c){t+='"',o=!0;continue}if('"'===c){t+='"',n=!0;continue}}t+=c}else s=!0}return t}(e);r=t.removeUndefined?r.replace(/,\s*"[^"]*"\s*:\s*undefined(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*undefined\s*(,)?/g,""):r.replace(/:\s*undefined(?=\s*[,}])/g,":null"),r=t.convertNaN?r.replace(/:\s*NaN(?=\s*[,}])/g,':"NaN"'):r.replace(/:\s*NaN(?=\s*[,}])/g,':"NaN"').replace(/,\s*"[^"]*"\s*:\s*NaN(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*NaN\s*(,)?/g,""),r=r.replace(/,(\s*[}\]])/g,"$1");const o=JSON.parse(r);return E(o,t)}catch(e){return t.loggingOnFail&&console.error("Failed to parsing at `safeJsonParse`:",e),void t.onError(f(e)?new Error(e.message.replace(/^JSON\.parse:/,"Failed to parsing")):new Error(String(e)))}}export{E as cleanParsedData,y as extractDigits,D as parseCustomDate,h as safeJsonParse};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isInteger as e}from"./chunk-WVSPXFTY.js";import{safeStableStringify as r}from"./chunk-BHIBDDQF.js";import{getPreciseType as n,isNull as o}from"./chunk-EW3I4O7X.js";var t=(t=1e3,i)=>{if(!e(t)||t<=0)throw new TypeError(`First parameter (\`milliSeconds\`) must be of type \`number\` and value must be a \`non-zero\`, \`non-NaN\`, \`non-negative\`, and \`integer-number\`, but received: \`${n(t)}\`, with value: \`${r(t)}\`.`);if(o(i)||i&&!(i instanceof AbortSignal))throw new TypeError("Second parameter (`signal`) must be an `instance of AbortSignal` if provided.");return new Promise((e,r)=>{const n=setTimeout(()=>{o(),e()},t),o=()=>{clearTimeout(n),i&&i.removeEventListener("abort",a)},a=()=>{o(),r(new DOMException("Function `delay` aborted","AbortError"))};i&&(i.aborted?a():i.addEventListener("abort",a,{once:!0}))})};export{t as delay};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isNonEmptyString as s}from"./chunk-EW3I4O7X.js";var a=new Set(["txt","md","rtf","tex","doc","docx","odt","ott","pdf","djvu","epub","mobi","azw","azw3","xls","xlsx","ods","csv","tsv","ppt","pptx","odp","pps","md","bib","tex","log","jpg","jpeg","png","gif","bmp","tif","tiff","webp","svg","ico","heif","heic","raw","cr2","nef","orf","sr2","dng","dds","psd","exr","xcf","ai","eps","cdr","psd","indd","mp3","wav","ogg","flac","aac","m4a","wma","alac","aiff","amr","mid","midi","opus","au","caf","ape","opus","mp4","mkv","avi","mov","flv","wmv","webm","mpeg","mpg","3gp","3g2","m4v","ts","mts","asf","rm","rmvb","vob","f4v","ogv","m2ts","mod","dav","zip","rar","7z","tar","gz","bz2","xz","tgz","tbz2","txz","lz","lzma","z","cab","arj","ace","iso","dmg","rpm","deb","pkg","apk","jar","iso","img","vhd","vmdk","qcow2","dmg","sql","db","dbf","mdb","accdb","json","xml","yaml","yml","toml","ini","plist","yaml","pkl","msgpack","h5","hdf5","parquet","avro","orc","ndjson","db","pdb","sqlite","sqlite3","dbx","sdf","js","jsx","ts","tsx","c","cpp","h","hpp","java","py","rb","go","rs","php","pl","sh","bat","cmd","ps1","lua","swift","kt","scala","cs","vb","dart","m","r","jl","fs","vbproj","sln","pri","Makefile","html","htm","xhtml","css","scss","sass","less","xml","json","yaml","yml","xlf","xlf","po","pot","jsp","asp","aspx","php","jspf","cgi","cfm","pl","env","conf","config","xml","ini","cfg","toml","yaml","dockerfile","gitignore","gitconfig","gitattributes","npmignore","lock","gradle","pom","yaml","prettierrc","eslintrc","babelrc","editorconfig","ttf","otf","woff","woff2","eot","dwg","dxf","shp","kml","kmz","gpx","stl","step","iges","3ds","3dm","fbx","obj","exe","msi","bin","run","com","cmd","apk","app","deb","rpm","elf","dll","so","dylib","sys","pem","crt","cer","key","der","csr","p12","pfx","jks","iso","cue","bin","nes","sfc","gba","nds","nes","sav","rom","pak","vpk","bik","epub","mobi","azw","azw3","fb2","lit","lrf","cbr","cbz","cbt","cba","opds","fasta","fa","fas","ffn","faa","fna","frn","fastq","fq","gb","gbk","sam","bam","vcf","gff","bed","log","bak","tmp","old","backup","swp","part","crdownload","torrent","ics","vcf","ics","ical","ics","ical","calendar","srt","sub","idx","cue","cdf","hdf","h5","nc","grib","fits","netcdf","sdf","vtk","xmind","drawio","jar","war","ear","crx","xpi","plugin","vsix","safariextz"]),t=new Set(["tar.gz","tar.bz2","tar.xz","tar.lz","tar.lzma","tar.Z","tar.zst","tar.xz"]),r=r=>{if(!s(r))return;let p=r.split("/").pop();if(""===p)return"";if(p){for(const s of t){const a=`.${s}`;if(p.toLowerCase().endsWith(a))return p.slice(0,-a.length)}for(;;){const s=p.lastIndexOf(".");if(-1===s)break;const t=p.slice(s+1).toLowerCase();if(!a.has(t))break;p=p.slice(0,s)}return p}};export{r as extractFileName};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var r=require("./chunk-UDA26MCU.cjs"),e=require("./chunk-D3VSHABU.cjs");function t(r){return"[object Map]"===Object.prototype.toString.call(r)||r instanceof Map}var s=r=>r instanceof Date&&!e.isNaN(r.getTime());exports.isDate=s,exports.isMap=t,exports.safeStableStringify=(n,i={})=>{e.assertIsPlainObject(i,{message:({currentType:r,validType:e})=>`Second parameter (\`options\`) must be of type \`${e}\`, but received: \`${r}\`.`});const o=!!e.hasOwnProp(i,"pretty")&&i.pretty,a=!e.hasOwnProp(i,"sortKeys")||i.sortKeys,c=!!e.hasOwnProp(i,"sortArray")&&i.sortArray;if(!e.isBoolean(a)||!e.isBoolean(c)||!e.isBoolean(o))throw new TypeError(`Parameters \`sortKeys\`, \`sortArray\` and \`pretty\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: "['sortKeys': \`${e.getPreciseType(a)}\`, 'sortArray': \`${e.getPreciseType(c)}\`, 'pretty': \`${e.getPreciseType(o)}\`]".`);const u=new WeakSet,f=r=>e.isNull(r)||!e.isObjectOrArray(r)&&!e.isFunction(r),p=n=>{if(n instanceof Number)return Number(n);if(n instanceof String)return String(n);if(n instanceof Boolean)return Boolean(n);if(!e.isFunction(n)&&!e.isSymbol(n)){if(r.isBigInt(n))return n.toString();if(e.isUndefined(n)||e.isNaN(n)||n===1/0||n===-1/0)return null;if(e.isObjectOrArray(n)){if(u.has(n))return"[Circular]";if(u.add(n),s(n))return n.toISOString();if(t(n))return{map:Array.from(n.entries()).map(([r,e])=>[r,p(e)])};if(e.isSet(n))return{set:Array.from(n.values()).map(p)};if(e.isArray(n)){const r=n.map(p);if(c){const t=[],s=[];for(const e of r)f(e)?t.push(e):s.push(e);return t.sort((r,t)=>e.isNumber(r)&&e.isNumber(t)?r-t:String(r).localeCompare(String(t))),[...t,...s]}return r}const r=Object.keys(n);a&&r.sort((r,t)=>{const s=Number(r),n=Number(t);return e.isNaN(s)||e.isNaN(n)?r.localeCompare(t):s-n});const i={};if(e.isObject(n))for(const t of r){const r=p(n[t]);e.isUndefined(r)||(i[t]=r)}return i}return n}};try{return JSON.stringify(p(n),null,o?2:0)}catch(r){return console.warn("Error in safeStableStringify:",r),"{}"}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{parseCurrencyString as e}from"./chunk-EUANTHVN.js";import{isFinite as t}from"./chunk-OWV2P376.js";import{normalizeSpaces as r}from"./chunk-MISCBZJC.js";import{isEmptyString as n}from"./chunk-KOVO72OM.js";import{assertIsString as o}from"./chunk-T4CIAKEK.js";import{isInteger as a}from"./chunk-WVSPXFTY.js";import{safeStableStringify as i}from"./chunk-BHIBDDQF.js";import{isString as s,getPreciseType as u,assertIsPlainObject as p,hasOwnProp as l,isBoolean as c,isPlainObject as m,isNaN as d,isUndefined as f,isFunction as y,assertIsBoolean as h,isNil as b,isNumber as g,isNonEmptyString as $}from"./chunk-EW3I4O7X.js";import{id as v,enUS as w}from"date-fns/locale";import{isDate as T,parse as D,format as k}from"date-fns";var S=(r,n={})=>{if(!s(r)&&!t(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive-number\`, but received: \`${u(r)}\`, with value: \`${i(r)}\`.`);p(n,{message:({currentType:e,validType:t})=>`Second parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const b=!!l(n,"decimal")&&n.decimal,g=l(n,"totalDecimal")?n.totalDecimal:2,$=!l(n,"endDecimal")||n.endDecimal,v=!!l(n,"indianFormat")&&n.indianFormat,w=l(n,"suffixCurrency")?n.suffixCurrency:"",T=l(n,"suffixDecimal")?n.suffixDecimal:"",D=l(n,"roundedDecimal")?n.roundedDecimal:"round",k=l(n,"negativeFormat")?n.negativeFormat:"dash";let S=l(n,"separatorDecimals")?n.separatorDecimals:",",M=l(n,"separator")?n.separator:".";if(!(s(M)&&s(S)&&s(w)&&s(T)))throw new TypeError(`Parameter \`separator\`, \`separatorDecimals\`, \`suffixCurrency\` and \`suffixDecimal\` property of the \`options\` (second parameter) must be of type \`string\`, but received: ['separator': \`${u(M)}\`, 'separatorDecimals': \`${u(S)}\`, 'suffixCurrency': \`${u(w)}\`, 'suffixDecimal': \`${u(T)}\`].`);if(!c(b)||!c($)||!c(v))throw new TypeError(`Parameter \`decimal\`, \`endDecimal\` and \`indianFormat\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['decimal': \`${u(b)}\`, 'endDecimal': \`${u($)}\`, 'indianFormat': \`${u(v)}\`].`);if(!a(g))throw new TypeError(`Parameter \`totalDecimal\` property of the \`options\` (second parameter) must be of type \`integer-number\`, but received: \`${u(g)}\`, with value: \`${i(length)}\`.`);if(!1!==D&&"round"!==D&&"ceil"!==D&&"floor"!==D)throw new TypeError(`Parameter \`roundedDecimal\` property of the \`options\` (second parameter) must be of type \`false\` or \`string\` must be one of "round" | "ceil" | "floor", but received: \`${u(D)}\`, with value: \`${i(D)}\`.`);if("abs"!==k&&"brackets"!==k&&"dash"!==k&&!m(k))throw new TypeError(`Parameter \`negativeFormat\` property of the \`options\` (second parameter) must be of type \`string\` must be one of "abs" | "brackets" | "dash" or \`plain-object\` type, but received: \`${u(k)}\`, with value: \`${i(k)}\`.`);const E=s(r)?e(r):r;if(d(E))throw new TypeError("First parameter (`value`) could not be parsed into a valid `number`.");let F="",N="",P=Math.abs(E);const x=Math.pow(10,g);if(D){const e=P*x;switch(D){case"round":P=Math.round(e)/x;break;case"ceil":P=Math.ceil(e)/x;break;case"floor":P=Math.floor(e)/x}}if(D)[F,N]=P.toFixed(g).split("."),N=N??"".padEnd(g,"0");else{const e=String(P).split(".");F=e[0],N=(e[1]||"").slice(0,g).padEnd(g,"0")}let j;if(v?(M=",",S=".",j=(w.trim().length?w:"")+C(F,M)):j=(w.trim().length?w:"")+F.replace(/\B(?=(\d{3})+(?!\d))/g,M),b&&!f(N)&&g>0){let e=S+N;$&&(e+=T),j+=e}if(E<0)if("dash"===k)j="-"+j;else if("brackets"===k)j="("+j+")";else if("abs"===k);else if(m(k))if(l(k,"custom")){const e=k.custom;if(!y(e))throw new TypeError(`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) must be of type function: \`(formatted: string) => string\`, but received: \`${u(e)}\`.`);const t=e(j);o(t,{message:({currentType:e,validType:t})=>`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) expected return a \`${t}\` type value, but received: \`${e}\`.`}),j=t}else{const e=k.style||"dash",t=!f(k.space)&&k.space;if(h(t,{message:({currentType:e,validType:t})=>`Parameter \`negativeFormat.space\` property of the \`options\` (second parameter) must be of type \`${t} or undefined\`, but received: \`${e}\`.`}),"abs"!==e&&"brackets"!==e&&"dash"!==e)throw new TypeError(`Parameter \`negativeFormat.style\` property of the \`options\` (second parameter) must be of type \`string\` must be of type "abs" | "brackets" | "dash", but received: \`${u(e)}\`, with value: \`${i(e)}\`.`);switch(e){case"dash":j="-"+(t?" ":"")+j;break;case"brackets":j=t?`( ${j} )`:`(${j})`}}return j},C=(e,t)=>{const r=e.slice(-3),n=e.slice(0,-3);return n?n.replace(/\B(?=(\d{2})+(?!\d))/g,t)+t+r:r},M=(e,r=",")=>{if(!s(e)&&!t(e))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive number\`, but received: \`${u(e)}\`.`);if(!s(r))throw new TypeError(`Second parameter (\`separator\`) must be of type \`string\` or empty as \`undefined\`, but received: \`${u(r)}\`.`);const n="."===(r=s(r)?r:",")?",":".",o=e.toString().trim(),a=o.lastIndexOf("."),i=o.lastIndexOf(",");let p="";a>i?p=".":i>a&&(p=",");let l=o,c="";if(p){const e=o.split(p);l=e.slice(0,-1).join(p),c=e.slice(-1)[0]}l=l.replace(/[^\d]/g,"");const m=l.replace(/\B(?=(\d{3})+(?!\d))/g,r);return c?`${m}${n}${c}`:m};function E(e,t={}){if(b(e))return"";if(!s(e)&&!g(e))throw new TypeError(`First parameter (\`value\`) must be of type \`string\`, \`number\`, \`null\` or \`undefined\`, but received: \`${u(e)}\`.`);p(t,{message:({currentType:e,validType:t})=>`Second parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const r=l(t,"separator")?t.separator:" ",n=!!l(t,"takeNumberOnly")&&t.takeNumberOnly,o=!!l(t,"checkValidOnly")&&t.checkValidOnly,a=l(t,"plusNumberCountry")?t.plusNumberCountry:"",i=l(t,"openingNumberCountry")?t.openingNumberCountry:"",m=l(t,"closingNumberCountry")?t.closingNumberCountry:"";if(!c(n)||!c(o))throw new TypeError(`Parameter \`takeNumberOnly\` and \`checkValidOnly\` property of the \`options\` (second parameter) must be of type \`boolean\` or unset as \`undefined\` value, but received: ['takeNumberOnly': \`${u(n)}\`, 'checkValidOnly': \`${u(o)}\`].`);if(!(s(r)&&s(a)&&s(i)&&s(m)))throw new TypeError(`Parameter \`separator\`, \`plusNumberCountry\`, \`openingNumberCountry\` and \`closingNumberCountry\` property of the \`options\` (second parameter) must be of type \`string\` or unset as \`undefined\` value, but received: ['separator': \`${u(r)}\`, 'plusNumberCountry': \`${u(a)}\`, 'openingNumberCountry': \`${u(i)}\`, 'closingNumberCountry': \`${u(m)}\`].`);if(s(e)||(e=String(e)),n)return e.replace(/\D/g,"");if(o)return/^(\+)?[0-9\s().-]+$/.test(e)&&e.replace(/\D/g,"").length<24;e=e.replace(/\D/g,"");let d=a.trim().replace(/\s+/g,"").replace(/[^\d+]/g,"");/^\+/.test(d)&&(d="+"+d.replace(/^\++/,""));let f="",y="";({7:"Russia, Kazakhstan",27:"South Africa",31:"Netherlands",32:"Belgium",33:"France",34:"Spain",36:"Hungary",39:"Italy, San Marino, Vatican",44:"United Kingdom",46:"Sweden",47:"Norway",48:"Poland",49:"Germany",52:"Mexico",54:"Argentina",55:"Brazil",56:"Chile",61:"Australia",62:"Indonesia",64:"New Zealand",81:"Japan",82:"South Korea",86:"China",90:"Turkey",91:"India",92:"Pakistan",351:"Portugal",352:"Luxembourg",971:"UAE"})[d.replace(/^\+/,"").replace(/[^\d]/g,"")]&&e.startsWith("0")?(f=e.slice(1,4),y=e.slice(4)):(f=e.slice(0,4),y=e.slice(4));const h=d.trim(),$=i.trim(),v=m.trim();let w="";w=h?$&&v?`${$}${h}${v} ${f}`:$&&!v?`${$}${h} ${f}`:!$&&v?`${h}${v} ${f}`:`${h} ${f}`:`${f}`;const T={0:r,4:r,8:r,12:r,16:r,20:r,24:r};for(let e=0;e<y.length;e++){w+=(T[e+f.length]||"")+y[e]}return w}var F=(e,t)=>{if(b(t)&&(t="YYYY-MM-DD hh:mm:ss"),!s(t))return null;if(b(e)||!T(e)&&!$(e))return null;try{const r=new Date(e);if(d(r.getTime()))return null;const n=e=>e.toString().padStart(2,"0"),o={YYYY:r.getFullYear().toString(),MM:n(r.getMonth()+1),DD:n(r.getDate()),hh:n(r.getHours()),mm:n(r.getMinutes()),ss:n(r.getSeconds())},a=Object.entries(o).reduce((e,[t,r])=>e.split(t).join(r),t);return a.includes("NaN")?null:a}catch{return null}},N=(e,t)=>{if(b(e)||!T(e)&&!$(e))return null;const r=new Date(e);if(d(r.getTime()))return null;m(t)||(t={});const{locale:n="en-US",...o}=t;try{return new Intl.DateTimeFormat($(n)?n.trim():"en-US",o).format(r)}catch{return null}},P=(e,t={})=>{if(b(e)||!T(e)&&!$(e))return null;m(t)||(t={});const{inputFormat:r,locale:n="en",inputLocale:o="en",...a}=t,i=l(t,"format")&&$(t.format)?t.format:"dd MMM yyyy - HH:mm:ss";let s;try{if($(e)&&r&&o){const t=$(o)?"id"===o?v:w:o;s=D(e,r,new Date,{locale:t})}else s=new Date(e);if(d(s.getTime()))return null;const t=$(n)?"id"===n?v:w:n;return k(s,i,{...a,locale:t})}catch{return null}},x=e=>{try{if(b(e)||s(e)&&n(e))e=new Date;else if(!T(e)&&!$(e))return"0";const t=new Date(e);if(d(t.getTime()))return"0";const r=e=>e.toString().padStart(2,"0");let o=t.getTimezoneOffset();const a=o<0?"+":"-";return o=Math.abs(o),`${a}${r(Math.floor(o/60))}${r(o%60)}`}catch{return"0"}},j=(e,t={})=>{if(!$(e))return"";p(t,{message:({currentType:e,validType:t})=>`Second parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const r=l(t,"mode")?t.mode:"fixed";if("random"!==r&&"fixed"!==r)throw new TypeError(`Parameter \`mode\` property of the \`options\` (second parameter) must be one of "fixed" or "random", but received: \`${u(r)}\`, with value: \`${i(r)}\`.`);if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e))return"";const[n,o]=e.split("@"),a=o.split(".");if(a.length<2)return"";const[s,...c]=a,m=c.join("."),d=O(r,e),f=n.length<4?1:2,y=s.length<4?1:2;return`${A(n,f,.6,d)}@${A(s,y,.5,d)}.${m.length<=2?m:A(m,1,.4,d)}`},O=(e,t)=>"fixed"===e?(()=>{let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return Math.abs(e)})():void 0,A=(e,t,r,n)=>{if(e.length<=t)return"*".repeat(e.length);const o=e.split(""),a=Math.max(t,Math.ceil(e.length*r)),i=new Set;let s=0;for(;i.size<a;){const t=f(n)?Math.floor(Math.random()*e.length):(n+e.length+31*s)%e.length;i.add(t),s++}for(const e of i)o[e]="*";return o.join("")};function I(e,t,n={}){if(b(e)||t<=0)return e;if(o(e,{message:({currentType:e,validType:t})=>`First parameter (\`subject\`) must be of type \`${t}\`, but received: \`${e}\`.`}),!a(t))throw new TypeError(`Second parameter (\`limiter\`) must be of type \`integer-number\`, but received: \`${u(t)}\`, with value: \`${i(t)}\`.`);p(n,{message:({currentType:e,validType:t})=>`Third parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const s=l(n,"separator")?n.separator:" ",c=!!l(n,"reCountAfterSpace")&&n.reCountAfterSpace;if(o(s,{message:({currentType:e,validType:t})=>`Parameter \`separator\` property of the \`options\` (third parameter) must be of type \`${t}\`, but received: \`${e}\`.`}),h(c,{message:({currentType:e,validType:t})=>`Parameter \`reCountAfterSpace\` property of the \`options\` (third parameter) must be of type \`${t}\`, but received: \`${e}\`.`}),e=r(e),!c){let r="",n=0;for(let o=0;o<e.length;o++){n===t&&(r+=s,n=0),r+=e[o],n++}return r}const m=e.split(" "),d=[];let f=[],y=0;for(let e=0;e<m.length;e++){const r=m[e];let n="",o=0;for(let e=0;e<r.length;e++)n+=r[e],o++,o===t&&e<r.length-1&&(n+=s,o=0);f.push(n),y++,y!==t&&e!==m.length-1||(d.push(f.join(s)),f=[],y=0)}return d.join(" ")}var Y=(e,t={})=>{if(!$(e))return"";p(t,{message:({currentType:e,validType:t})=>`Seconds parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const r=!l(t,"trim")||t.trim,s=l(t,"length")?t.length:10;let c=l(t,"ending")?t.ending:"...";if(!a(s))throw new TypeError(`Parameter \`length\` property of the \`options\` (second parameter) must be of type \`integer-number\`, but received: \`${u(s)}\`, with value: \`${i(s)}\`.`);if(s<1)return"";o(c,{message:({currentType:e,validType:t})=>`Parameter \`ending\` property of the \`options\` (second parameter) must be of type \`${t}\`, but received: \`${e}\`.`}),h(r,{message:({currentType:e,validType:t})=>`Parameter \`trim\` property of the \`options\` (second parameter) must be of type \`${t}\`, but received: \`${e}\`.`}),c=n(c)?"...":c.trim();const m=r?e.trim():e;if(m.length<=s)return m;const d=m.slice(0,s);return(r?d:d.trimEnd())+c};export{j as censorEmail,I as chunkString,S as formatCurrency,P as formatDateFns,N as formatDateIntl,F as formatDateTime,M as formatNumber,E as formatPhoneNumber,x as getGMTOffset,Y as truncateString};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isDate as e,isMap as r}from"./chunk-BHIBDDQF.js";import{isObjectOrArray as t,isError as n,isSet as f,isArray as i,isObject as o,assertIsPlainObject as u,hasOwnProp as s,assertIsBoolean as c,isUndefined as a}from"./chunk-EW3I4O7X.js";var g=e=>e instanceof RegExp;function y(e){return e instanceof ArrayBuffer}function l(o,u,s,c=new WeakMap){if(o===u)return!0;if(o!=o&&u!=u)return!0;if(!t(o)||!t(u))return!1;if(c.get(o)===u)return!0;c.set(o,u);const h=(e,r,t,n,f)=>{if(s){const i=s(e,r,t,n,f,c);if(!a(i))return i}return l(e,r,s,c)};if(e(o)&&e(u))return o.getTime()===u.getTime();if(g(o)&&g(u))return o.source===u.source&&o.flags===u.flags;if(n(o)&&n(u))return o.name===u.name&&o.message===u.message;if(ArrayBuffer.isView(o)&&ArrayBuffer.isView(u)){const e=new Uint8Array(o.buffer,o.byteOffset,o.byteLength),r=new Uint8Array(u.buffer,u.byteOffset,u.byteLength);if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}if(y(o)&&y(u)){if(o.byteLength!==u.byteLength)return!1;const e=new Uint8Array(o),r=new Uint8Array(u);for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}if(r(o)&&r(u)){if(o.size!==u.size)return!1;for(const[e,r]of o){if(!u.has(e))return!1;if(!l(r,u.get(e),s,c))return!1}return!0}if(f(o)&&f(u)){if(o.size!==u.size)return!1;for(const e of o){let r=!1;for(const t of u)if(l(e,t,s,c)){r=!0;break}if(!r)return!1}return!0}if(i(o)&&i(u)){if(o.length!==u.length)return!1;for(let e=0;e<o.length;e++)if(!h(o[e],u[e],e,o,u))return!1;return!0}if(Object.getPrototypeOf(o)!==Object.getPrototypeOf(u))return!1;const b=Reflect.ownKeys(o),m=Reflect.ownKeys(u);if(b.length!==m.length)return!1;for(const e of b){if(!h(o[e],u[e],e,o,u))return!1}return!0}function h(e,r){return l(e,r,void 0,new WeakMap)}var b=e=>!i(e)||0===e.length;function m(e,r={}){if(!o(e))return!0;u(r,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const t=!!s(r,"checkSymbols")&&r.checkSymbols;c(t,{message:({currentType:e,validType:r})=>`Parameter \`checkSymbols\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const n=0===Object.keys(e).length;return t?n&&0===Object.getOwnPropertySymbols(e).length:n}export{l as baseDeepEqual,y as isArrayBuffer,b as isEmptyArray,m as isEmptyObject,h as isEqual,g as isRegExp};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var e=require("../chunk-DG2GWBTS.cjs"),r=require("../chunk-EOZKYR5S.cjs");require("../chunk-6C3ATUGM.cjs");var t=require("../chunk-H3FXL4DU.cjs");require("../chunk-M47QIBXI.cjs"),require("../chunk-JARPXKBM.cjs"),require("../chunk-VHAPTHEA.cjs");var n=require("../chunk-O7UT5AN3.cjs");require("../chunk-CMJ6UYWW.cjs"),require("../chunk-5C2SMIGX.cjs"),require("../chunk-4Z75R3IT.cjs"),require("../chunk-VCFXNV3Q.cjs");var o=require("../chunk-ZHV5ZYVN.cjs");require("../chunk-UDA26MCU.cjs"),require("../chunk-D3VSHABU.cjs"),Object.defineProperty(exports,"convertType",{enumerable:!0,get:function(){return e.convertType}}),Object.defineProperty(exports,"removeObjectPaths",{enumerable:!0,get:function(){return e.removeObjectPaths}}),Object.defineProperty(exports,"toBooleanContent",{enumerable:!0,get:function(){return e.toBooleanContent}}),Object.defineProperty(exports,"toBooleanContentDeep",{enumerable:!0,get:function(){return e.toBooleanContentDeep}}),Object.defineProperty(exports,"toBooleanExplicit",{enumerable:!0,get:function(){return e.toBooleanExplicit}}),Object.defineProperty(exports,"toBooleanLoose",{enumerable:!0,get:function(){return e.toBooleanLoose}}),Object.defineProperty(exports,"toNumberArrayUnRecursive",{enumerable:!0,get:function(){return e.toNumberArrayUnRecursive}}),Object.defineProperty(exports,"toNumberDeep",{enumerable:!0,get:function(){return e.toNumberDeep}}),Object.defineProperty(exports,"toStringDeep",{enumerable:!0,get:function(){return e.toStringDeep}}),Object.defineProperty(exports,"cleanParsedData",{enumerable:!0,get:function(){return r.cleanParsedData}}),Object.defineProperty(exports,"extractDigits",{enumerable:!0,get:function(){return r.extractDigits}}),Object.defineProperty(exports,"parseCustomDate",{enumerable:!0,get:function(){return r.parseCustomDate}}),Object.defineProperty(exports,"safeJsonParse",{enumerable:!0,get:function(){return r.safeJsonParse}}),Object.defineProperty(exports,"dedupeArray",{enumerable:!0,get:function(){return t.dedupeArray}}),Object.defineProperty(exports,"filterNilArray",{enumerable:!0,get:function(){return t.filterNilArray}}),Object.defineProperty(exports,"toStringArrayUnRecursive",{enumerable:!0,get:function(){return t.toStringArrayUnRecursive}}),Object.defineProperty(exports,"toStringDeepForce",{enumerable:!0,get:function(){return t.toStringDeepForce}}),Object.defineProperty(exports,"parseCurrencyString",{enumerable:!0,get:function(){return n.parseCurrencyString}}),Object.defineProperty(exports,"safeStableStringify",{enumerable:!0,get:function(){return o.safeStableStringify}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{convertType,removeObjectPaths,toBooleanContent,toBooleanContentDeep,toBooleanExplicit,toBooleanLoose,toNumberArrayUnRecursive,toNumberDeep,toStringDeep}from"../chunk-LJ4M3VGE.js";export{cleanParsedData,extractDigits,parseCustomDate,safeJsonParse}from"../chunk-XLDAIZRK.js";import"../chunk-MTUBDVJ2.js";export{dedupeArray,filterNilArray,toStringArrayUnRecursive,toStringDeepForce}from"../chunk-ORZFHBEY.js";import"../chunk-IRGE5W7L.js";import"../chunk-ZTCLKKMB.js";import"../chunk-ECRNH4FW.js";export{parseCurrencyString}from"../chunk-EUANTHVN.js";import"../chunk-OWV2P376.js";import"../chunk-FIAAX3UE.js";import"../chunk-KOVO72OM.js";import"../chunk-T4CIAKEK.js";export{safeStableStringify}from"../chunk-BHIBDDQF.js";import"../chunk-QNKGP5DY.js";import"../chunk-EW3I4O7X.js";
|
package/dist/env/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";require("../chunk-MMSYCIJ2.cjs");var e=require("../chunk-J2RGTPGK.cjs");Object.defineProperty(exports,"isServer",{enumerable:!0,get:function(){return e.isServer}});
|
package/dist/env/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"../chunk-G5LXIEFO.js";export{isServer}from"../chunk-MC3LXMCQ.js";
|
package/dist/events/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var e=require("../chunk-XC3QHAK2.cjs");require("../chunk-J2RGTPGK.cjs"),require("../chunk-VCFXNV3Q.cjs"),require("../chunk-D3VSHABU.cjs"),Object.defineProperty(exports,"disableUserInteraction",{enumerable:!0,get:function(){return e.disableUserInteraction}}),Object.defineProperty(exports,"enableUserInteraction",{enumerable:!0,get:function(){return e.enableUserInteraction}}),Object.defineProperty(exports,"removeElementFocus",{enumerable:!0,get:function(){return e.removeElementFocus}}),Object.defineProperty(exports,"scrollToTop",{enumerable:!0,get:function(){return e.scrollToTop}});
|
package/dist/events/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{disableUserInteraction,enableUserInteraction,removeElementFocus,scrollToTop}from"../chunk-5Z2G23WP.js";import"../chunk-MC3LXMCQ.js";import"../chunk-T4CIAKEK.js";import"../chunk-EW3I4O7X.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var e=require("../chunk-HHPDLSX2.cjs");require("../chunk-O7UT5AN3.cjs"),require("../chunk-CMJ6UYWW.cjs"),require("../chunk-2HSNUPEO.cjs"),require("../chunk-4Z75R3IT.cjs"),require("../chunk-VCFXNV3Q.cjs"),require("../chunk-DVMHRLKP.cjs"),require("../chunk-ZHV5ZYVN.cjs"),require("../chunk-UDA26MCU.cjs"),require("../chunk-D3VSHABU.cjs"),Object.defineProperty(exports,"censorEmail",{enumerable:!0,get:function(){return e.censorEmail}}),Object.defineProperty(exports,"chunkString",{enumerable:!0,get:function(){return e.chunkString}}),Object.defineProperty(exports,"formatCurrency",{enumerable:!0,get:function(){return e.formatCurrency}}),Object.defineProperty(exports,"formatDateFns",{enumerable:!0,get:function(){return e.formatDateFns}}),Object.defineProperty(exports,"formatDateIntl",{enumerable:!0,get:function(){return e.formatDateIntl}}),Object.defineProperty(exports,"formatDateTime",{enumerable:!0,get:function(){return e.formatDateTime}}),Object.defineProperty(exports,"formatNumber",{enumerable:!0,get:function(){return e.formatNumber}}),Object.defineProperty(exports,"formatPhoneNumber",{enumerable:!0,get:function(){return e.formatPhoneNumber}}),Object.defineProperty(exports,"getGMTOffset",{enumerable:!0,get:function(){return e.getGMTOffset}}),Object.defineProperty(exports,"truncateString",{enumerable:!0,get:function(){return e.truncateString}});
|
package/dist/formatting/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{censorEmail,chunkString,formatCurrency,formatDateFns,formatDateIntl,formatDateTime,formatNumber,formatPhoneNumber,getGMTOffset,truncateString}from"../chunk-ZL7J6GTP.js";import"../chunk-EUANTHVN.js";import"../chunk-OWV2P376.js";import"../chunk-MISCBZJC.js";import"../chunk-KOVO72OM.js";import"../chunk-T4CIAKEK.js";import"../chunk-WVSPXFTY.js";import"../chunk-BHIBDDQF.js";import"../chunk-QNKGP5DY.js";import"../chunk-EW3I4O7X.js";
|
package/dist/generator/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var e=require("../chunk-FV7SEBKD.cjs"),r=require("../chunk-5C2SMIGX.cjs");require("../chunk-DVMHRLKP.cjs"),require("../chunk-ZHV5ZYVN.cjs"),require("../chunk-UDA26MCU.cjs"),require("../chunk-D3VSHABU.cjs"),Object.defineProperty(exports,"getRandomItem",{enumerable:!0,get:function(){return e.getRandomItem}}),Object.defineProperty(exports,"randomInt",{enumerable:!0,get:function(){return e.randomInt}}),Object.defineProperty(exports,"randomIntByLength",{enumerable:!0,get:function(){return e.randomIntByLength}}),Object.defineProperty(exports,"randomStr",{enumerable:!0,get:function(){return e.randomStr}}),Object.defineProperty(exports,"noop",{enumerable:!0,get:function(){return r.noop}});
|
package/dist/generator/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{getRandomItem,randomInt,randomIntByLength,randomStr}from"../chunk-3YCFMGRB.js";export{noop}from"../chunk-FIAAX3UE.js";import"../chunk-WVSPXFTY.js";import"../chunk-BHIBDDQF.js";import"../chunk-QNKGP5DY.js";import"../chunk-EW3I4O7X.js";
|
package/dist/next/index.cjs
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
- Invalid 'route' value.
|
|
3
|
-
- Must be of type \`string\` and non-empty string, but received: "${chunkCII6WWLO_cjs.E(e)}": \`${chunk26W3VZIK_cjs.c(e)}\`.`);if(!/[\\[\]]/.test(e))return e;if(chunkCII6WWLO_cjs.j(t,{message:({validType:o})=>`\u274C 'generateRoute' Failed cause in route "${e}":
|
|
4
|
-
- Missing or invalid parameters \`${o}\` for route: "${e}", must be of type \`${o}\` mapping parameters.`}),chunkCII6WWLO_cjs.c(t))throw new TypeError(`\u274C 'generateRoute' Failed cause in route "${e}":
|
|
5
|
-
- Missing parameters \`plain-object\` for route: "${e}".`);let n=["?","&","#","=","/","'",'"',"(",")","+",";","%","@",":"],r=[],s=Array.from(e.matchAll(/\[(\w+)\]/g)).map(o=>o[1]);for(let o of s){let i=t[o];if(!chunkCII6WWLO_cjs.g(i)){r.push(`- Invalid parameter: "${o}" must be of type \`string\`, but received: \`${chunkCII6WWLO_cjs.E(i)}\`.`);continue}if(chunkUTQUYABU_cjs.a(i)){r.push(`- Parameter "${o}" cannot be empty string.`);continue}let p=n.filter(g=>i.includes(g));if(/\s/.test(i)&&p.push("white-space(s)"),p.length>0){let g=p.map(a=>a==="`"?"backtick - (`)":`\`${a}\``);n.includes("white-space(s)")||n.push("white-space(s)");let m=n.map(a=>a==="`"?"backtick - (`)":`\`${a}\``);r.push(`- Parameter "${o}" contains invalid characters (${g.join(", ")}). These characters are not allowed because they could cause issues in URL structure. The following characters are forbidden in route parameters: (${m.join(", ")}).`);}}if(chunkCII6WWLO_cjs.r(r))throw new Error(`\u274C 'generateRoute' Failed cause in route "${e}":
|
|
6
|
-
${r.join(`
|
|
7
|
-
`)}.`);return e.replace(/\[(\w+)\]/g,(o,i)=>(chunkCII6WWLO_cjs.p(t[i])?t[i]:"").trim().replace(/^\/+|\/+$/g,"")).replace(/\/+/g,"/")}var q=(e,t={})=>{try{let p=function(m,a){return `${m.replace(/\/+$/,"")}/${a.replace(/^\/+/,"")}`};var n=p;chunkBEZPD44N_cjs.a(chunkCII6WWLO_cjs.c(e)?"":e,{message({currentType:m,validType:a}){return `First parameter (\`pathname\`) must be of type \`${a}\`, but received: \`${m}\`.`}}),chunkCII6WWLO_cjs.f(t)||(t={});let{prefix:r="/api",withOrigin:s=!0}=t;if(!chunkCII6WWLO_cjs.m(r)&&!chunkCII6WWLO_cjs.g(r))throw new TypeError(`Parameter \`prefix\` property of the \`options\` (second parameter) must be of type \`string\`, but received: \`${chunkCII6WWLO_cjs.E(r)}\`.`);chunkCII6WWLO_cjs.G(s,{message:({currentType:m,validType:a})=>`Parameter \`withOrigin\` property of the \`options\` (second parameter) must be of type \`${a}\`, but received: \`${m}\`.`}),e=chunkOZCQZO2V_cjs.c(e),r=chunkOZCQZO2V_cjs.c(r);let o=r.endsWith("/")?r:r+"/";(e===r||e===r+"/"||e.startsWith(o))&&(e=e.slice(r.length),e=chunkOZCQZO2V_cjs.c(e));let i=b({suffix:r});return p(s?i:new URL(i).pathname,e).replace(/\/+$/,"")}catch(r){throw chunkCII6WWLO_cjs.C(r)?r:new Error("Failed to generate backend API URL in `createBeApiUrl()`, Error: "+new Error(String(r)).message.trim())}};var b=({suffix:e="/"}={})=>{chunkBEZPD44N_cjs.a(e,{message({currentType:t,validType:n}){return `Parameter \`suffix\` property of the first parameter must be of type \`${n}\`, but received: \`${t}\`.`}});try{let t=process.env.NEXT_PUBLIC_BACKEND_API_URL?.trim();if(t){t=chunkMROH35V3_cjs.c(t);let s=new URL(t);!!!s.port&&process.env.NEXT_PUBLIC_PORT_BE&&(t=s.origin+chunkOZCQZO2V_cjs.d(process.env.NEXT_PUBLIC_PORT_BE,{prefixColon:!0}));}else t="http://localhost"+chunkOZCQZO2V_cjs.d(process.env.NEXT_PUBLIC_PORT_BE||"8000",{prefixColon:!0});e=chunkMROH35V3_cjs.c(e).length?chunkMROH35V3_cjs.c(e):"/";let n=new URL(t.replace(/\/+$/,"")).origin,r=e==="/"?"/":`${e.startsWith("/")?"":"/"}${e.replace(/\/+$/,"")}`;return `${n}${r}`}catch(t){throw new Error("Invalid `NEXT_PUBLIC_BACKEND_API_URL`, failed to generate from `getBeApiUrl()`, Error:"+t)}};var te=()=>{try{let e=process.env.NEXT_PUBLIC_BASE_URL?.trim(),t=process.env.NEXT_PUBLIC_PORT_FE?.trim(),n=e||"http://localhost";n=chunkMROH35V3_cjs.c(n).replace(/\/+$/,"");let r=/:\/\/[^/]+:\d+/.test(n);!r&&t?n+=chunkOZCQZO2V_cjs.d(t,{prefixColon:!0}):!r&&!e&&(n+=":3000");let s=new URL(n);return `${s.protocol}//${s.hostname}${s.port?`:${s.port}`:""}`}catch(e){throw new Error("Invalid `NEXT_PUBLIC_BASE_URL`, failed to generate from `getBaseUrl()`, Error:"+e)}};
|
|
8
|
-
exports.createBeApiUrl=q;exports.generateRoute=N;exports.getBaseUrl=te;exports.getBeApiUrl=b;
|
|
1
|
+
"use strict";var e=require("../chunk-SBF43G3B.cjs"),r=require("../chunk-2HSNUPEO.cjs"),t=require("../chunk-4Z75R3IT.cjs"),n=require("../chunk-VCFXNV3Q.cjs");require("../chunk-DVMHRLKP.cjs");var s=require("../chunk-ZHV5ZYVN.cjs");require("../chunk-UDA26MCU.cjs");var i=require("../chunk-D3VSHABU.cjs");var a=({suffix:t="/"}={})=>{var s;n.assertIsString(t,{message:({currentType:e,validType:r})=>`Parameter \`suffix\` property of the first parameter must be of type \`${r}\`, but received: \`${e}\`.`});try{let n=null==(s=process.env.NEXT_PUBLIC_BACKEND_API_URL)?void 0:s.trim();if(n){n=r.removeSpaces(n);const t=new URL(n);!!!t.port&&process.env.NEXT_PUBLIC_PORT_BE&&(n=t.origin+e.formatEnvPort(process.env.NEXT_PUBLIC_PORT_BE,{prefixColon:!0}))}else n="http://localhost"+e.formatEnvPort(process.env.NEXT_PUBLIC_PORT_BE||"8000",{prefixColon:!0});t=r.removeSpaces(t).length?r.removeSpaces(t):"/";const i=new URL(n.replace(/\/+$/,"")).origin;return`${i}${"/"===t?"/":`${t.startsWith("/")?"":"/"}${t.replace(/\/+$/,"")}`}`}catch(e){throw new Error("Invalid `NEXT_PUBLIC_BACKEND_API_URL`, failed to generate from `getBeApiUrl()`, Error:"+e)}};exports.createBeApiUrl=(r,t={})=>{try{let s=function(e,r){return`${e.replace(/\/+$/,"")}/${r.replace(/^\/+/,"")}`};n.assertIsString(i.isNil(r)?"":r,{message:({currentType:e,validType:r})=>`First parameter (\`pathname\`) must be of type \`${r}\`, but received: \`${e}\`.`}),i.isPlainObject(t)||(t={});let{prefix:o="/api",withOrigin:c=!0}=t;if(!i.isUndefined(o)&&!i.isString(o))throw new TypeError(`Parameter \`prefix\` property of the \`options\` (second parameter) must be of type \`string\`, but received: \`${i.getPreciseType(o)}\`.`);i.assertIsBoolean(c,{message:({currentType:e,validType:r})=>`Parameter \`withOrigin\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),r=e.normalizePathname(r),o=e.normalizePathname(o);const p=o.endsWith("/")?o:o+"/";(r===o||r===o+"/"||r.startsWith(p))&&(r=r.slice(o.length),r=e.normalizePathname(r));const u=a({suffix:o});return s(c?u:new URL(u).pathname,r).replace(/\/+$/,"")}catch(e){throw i.isError(e)?e:new Error("Failed to generate backend API URL in `createBeApiUrl()`, Error: "+new Error(String(e)).message.trim())}},exports.generateRoute=function(e,r){if(!i.isString(e)||t.isEmptyString(e))throw new TypeError(`❌ 'generateRoute' Failed:\n- Invalid 'route' value.\n- Must be of type \`string\` and non-empty string, but received: "${i.getPreciseType(e)}": \`${s.safeStableStringify(e)}\`.`);if(!/[\\[\]]/.test(e))return e;if(i.assertIsPlainObject(r,{message:({validType:r})=>`❌ 'generateRoute' Failed cause in route "${e}":\n- Missing or invalid parameters \`${r}\` for route: "${e}", must be of type \`${r}\` mapping parameters.`}),i.isNil(r))throw new TypeError(`❌ 'generateRoute' Failed cause in route "${e}":\n- Missing parameters \`plain-object\` for route: "${e}".`);const n=["?","&","#","=","/","'",'"',"(",")","+",";","%","@",":"],a=[],o=Array.from(e.matchAll(/\[(\w+)\]/g)).map(e=>e[1]);for(const e of o){const s=r[e];if(!i.isString(s)){a.push(`- Invalid parameter: "${e}" must be of type \`string\`, but received: \`${i.getPreciseType(s)}\`.`);continue}if(t.isEmptyString(s)){a.push(`- Parameter "${e}" cannot be empty string.`);continue}const o=n.filter(e=>s.includes(e));if(/\s/.test(s)&&o.push("white-space(s)"),o.length>0){const r=o.map(e=>"`"===e?"backtick - (`)":`\`${e}\``);n.includes("white-space(s)")||n.push("white-space(s)");const t=n.map(e=>"`"===e?"backtick - (`)":`\`${e}\``);a.push(`- Parameter "${e}" contains invalid characters (${r.join(", ")}). These characters are not allowed because they could cause issues in URL structure. The following characters are forbidden in route parameters: (${t.join(", ")}).`)}}if(i.isNonEmptyArray(a))throw new Error(`❌ 'generateRoute' Failed cause in route "${e}":\n${a.join("\n")}.`);return e.replace(/\[(\w+)\]/g,(e,t)=>(i.isNonEmptyString(r[t])?r[t]:"").trim().replace(/^\/+|\/+$/g,"")).replace(/\/+/g,"/")},exports.getBaseUrl=()=>{var t,n;try{const s=null==(t=process.env.NEXT_PUBLIC_BASE_URL)?void 0:t.trim(),i=null==(n=process.env.NEXT_PUBLIC_PORT_FE)?void 0:n.trim();let a=s||"http://localhost";a=r.removeSpaces(a).replace(/\/+$/,"");const o=/:\/\/[^/]+:\d+/.test(a);!o&&i?a+=e.formatEnvPort(i,{prefixColon:!0}):o||s||(a+=":3000");const c=new URL(a);return`${c.protocol}//${c.hostname}${c.port?`:${c.port}`:""}`}catch(e){throw new Error("Invalid `NEXT_PUBLIC_BASE_URL`, failed to generate from `getBaseUrl()`, Error:"+e)}},exports.getBeApiUrl=a;
|
package/dist/next/index.js
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
- Invalid 'route' value.
|
|
3
|
-
- Must be of type \`string\` and non-empty string, but received: "${E(e)}": \`${c(e)}\`.`);if(!/[\\[\]]/.test(e))return e;if(j(t,{message:({validType:o})=>`\u274C 'generateRoute' Failed cause in route "${e}":
|
|
4
|
-
- Missing or invalid parameters \`${o}\` for route: "${e}", must be of type \`${o}\` mapping parameters.`}),c$1(t))throw new TypeError(`\u274C 'generateRoute' Failed cause in route "${e}":
|
|
5
|
-
- Missing parameters \`plain-object\` for route: "${e}".`);let n=["?","&","#","=","/","'",'"',"(",")","+",";","%","@",":"],r$1=[],s=Array.from(e.matchAll(/\[(\w+)\]/g)).map(o=>o[1]);for(let o of s){let i=t[o];if(!g(i)){r$1.push(`- Invalid parameter: "${o}" must be of type \`string\`, but received: \`${E(i)}\`.`);continue}if(a(i)){r$1.push(`- Parameter "${o}" cannot be empty string.`);continue}let p=n.filter(g=>i.includes(g));if(/\s/.test(i)&&p.push("white-space(s)"),p.length>0){let g=p.map(a=>a==="`"?"backtick - (`)":`\`${a}\``);n.includes("white-space(s)")||n.push("white-space(s)");let m=n.map(a=>a==="`"?"backtick - (`)":`\`${a}\``);r$1.push(`- Parameter "${o}" contains invalid characters (${g.join(", ")}). These characters are not allowed because they could cause issues in URL structure. The following characters are forbidden in route parameters: (${m.join(", ")}).`);}}if(r(r$1))throw new Error(`\u274C 'generateRoute' Failed cause in route "${e}":
|
|
6
|
-
${r$1.join(`
|
|
7
|
-
`)}.`);return e.replace(/\[(\w+)\]/g,(o,i)=>(p(t[i])?t[i]:"").trim().replace(/^\/+|\/+$/g,"")).replace(/\/+/g,"/")}var q=(e,t={})=>{try{let p=function(m,a){return `${m.replace(/\/+$/,"")}/${a.replace(/^\/+/,"")}`};var n=p;a$1(c$1(e)?"":e,{message({currentType:m,validType:a}){return `First parameter (\`pathname\`) must be of type \`${a}\`, but received: \`${m}\`.`}}),f(t)||(t={});let{prefix:r="/api",withOrigin:s=!0}=t;if(!m(r)&&!g(r))throw new TypeError(`Parameter \`prefix\` property of the \`options\` (second parameter) must be of type \`string\`, but received: \`${E(r)}\`.`);G(s,{message:({currentType:m,validType:a})=>`Parameter \`withOrigin\` property of the \`options\` (second parameter) must be of type \`${a}\`, but received: \`${m}\`.`}),e=c$2(e),r=c$2(r);let o=r.endsWith("/")?r:r+"/";(e===r||e===r+"/"||e.startsWith(o))&&(e=e.slice(r.length),e=c$2(e));let i=b({suffix:r});return p(s?i:new URL(i).pathname,e).replace(/\/+$/,"")}catch(r){throw C(r)?r:new Error("Failed to generate backend API URL in `createBeApiUrl()`, Error: "+new Error(String(r)).message.trim())}};var b=({suffix:e="/"}={})=>{a$1(e,{message({currentType:t,validType:n}){return `Parameter \`suffix\` property of the first parameter must be of type \`${n}\`, but received: \`${t}\`.`}});try{let t=process.env.NEXT_PUBLIC_BACKEND_API_URL?.trim();if(t){t=c$3(t);let s=new URL(t);!!!s.port&&process.env.NEXT_PUBLIC_PORT_BE&&(t=s.origin+d(process.env.NEXT_PUBLIC_PORT_BE,{prefixColon:!0}));}else t="http://localhost"+d(process.env.NEXT_PUBLIC_PORT_BE||"8000",{prefixColon:!0});e=c$3(e).length?c$3(e):"/";let n=new URL(t.replace(/\/+$/,"")).origin,r=e==="/"?"/":`${e.startsWith("/")?"":"/"}${e.replace(/\/+$/,"")}`;return `${n}${r}`}catch(t){throw new Error("Invalid `NEXT_PUBLIC_BACKEND_API_URL`, failed to generate from `getBeApiUrl()`, Error:"+t)}};var te=()=>{try{let e=process.env.NEXT_PUBLIC_BASE_URL?.trim(),t=process.env.NEXT_PUBLIC_PORT_FE?.trim(),n=e||"http://localhost";n=c$3(n).replace(/\/+$/,"");let r=/:\/\/[^/]+:\d+/.test(n);!r&&t?n+=d(t,{prefixColon:!0}):!r&&!e&&(n+=":3000");let s=new URL(n);return `${s.protocol}//${s.hostname}${s.port?`:${s.port}`:""}`}catch(e){throw new Error("Invalid `NEXT_PUBLIC_BASE_URL`, failed to generate from `getBaseUrl()`, Error:"+e)}};
|
|
8
|
-
export{q as createBeApiUrl,N as generateRoute,te as getBaseUrl,b as getBeApiUrl};
|
|
1
|
+
import{normalizePathname as e,formatEnvPort as r}from"../chunk-LJVGJLP4.js";import{removeSpaces as t}from"../chunk-MISCBZJC.js";import{isEmptyString as o}from"../chunk-KOVO72OM.js";import{assertIsString as n}from"../chunk-T4CIAKEK.js";import"../chunk-WVSPXFTY.js";import{safeStableStringify as i}from"../chunk-BHIBDDQF.js";import"../chunk-QNKGP5DY.js";import{isString as a,getPreciseType as s,assertIsPlainObject as p,isNil as c,isNonEmptyArray as u,isNonEmptyString as l,isPlainObject as m,isUndefined as f,assertIsBoolean as h,isError as $}from"../chunk-EW3I4O7X.js";function d(e,r){if(!a(e)||o(e))throw new TypeError(`❌ 'generateRoute' Failed:\n- Invalid 'route' value.\n- Must be of type \`string\` and non-empty string, but received: "${s(e)}": \`${i(e)}\`.`);if(!/[\\[\]]/.test(e))return e;if(p(r,{message:({validType:r})=>`❌ 'generateRoute' Failed cause in route "${e}":\n- Missing or invalid parameters \`${r}\` for route: "${e}", must be of type \`${r}\` mapping parameters.`}),c(r))throw new TypeError(`❌ 'generateRoute' Failed cause in route "${e}":\n- Missing parameters \`plain-object\` for route: "${e}".`);const t=["?","&","#","=","/","'",'"',"(",")","+",";","%","@",":"],n=[],m=Array.from(e.matchAll(/\[(\w+)\]/g)).map(e=>e[1]);for(const e of m){const i=r[e];if(!a(i)){n.push(`- Invalid parameter: "${e}" must be of type \`string\`, but received: \`${s(i)}\`.`);continue}if(o(i)){n.push(`- Parameter "${e}" cannot be empty string.`);continue}const p=t.filter(e=>i.includes(e));if(/\s/.test(i)&&p.push("white-space(s)"),p.length>0){const r=p.map(e=>"`"===e?"backtick - (`)":`\`${e}\``);t.includes("white-space(s)")||t.push("white-space(s)");const o=t.map(e=>"`"===e?"backtick - (`)":`\`${e}\``);n.push(`- Parameter "${e}" contains invalid characters (${r.join(", ")}). These characters are not allowed because they could cause issues in URL structure. The following characters are forbidden in route parameters: (${o.join(", ")}).`)}}if(u(n))throw new Error(`❌ 'generateRoute' Failed cause in route "${e}":\n${n.join("\n")}.`);return e.replace(/\[(\w+)\]/g,(e,t)=>(l(r[t])?r[t]:"").trim().replace(/^\/+|\/+$/g,"")).replace(/\/+/g,"/")}var g=(r,t={})=>{try{let o=function(e,r){return`${e.replace(/\/+$/,"")}/${r.replace(/^\/+/,"")}`};n(c(r)?"":r,{message:({currentType:e,validType:r})=>`First parameter (\`pathname\`) must be of type \`${r}\`, but received: \`${e}\`.`}),m(t)||(t={});let{prefix:i="/api",withOrigin:p=!0}=t;if(!f(i)&&!a(i))throw new TypeError(`Parameter \`prefix\` property of the \`options\` (second parameter) must be of type \`string\`, but received: \`${s(i)}\`.`);h(p,{message:({currentType:e,validType:r})=>`Parameter \`withOrigin\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),r=e(r),i=e(i);const u=i.endsWith("/")?i:i+"/";(r===i||r===i+"/"||r.startsWith(u))&&(r=r.slice(i.length),r=e(r));const l=v({suffix:i});return o(p?l:new URL(l).pathname,r).replace(/\/+$/,"")}catch(e){throw $(e)?e:new Error("Failed to generate backend API URL in `createBeApiUrl()`, Error: "+new Error(String(e)).message.trim())}},v=({suffix:e="/"}={})=>{var o;n(e,{message:({currentType:e,validType:r})=>`Parameter \`suffix\` property of the first parameter must be of type \`${r}\`, but received: \`${e}\`.`});try{let n=null==(o=process.env.NEXT_PUBLIC_BACKEND_API_URL)?void 0:o.trim();if(n){n=t(n);const e=new URL(n);!!!e.port&&process.env.NEXT_PUBLIC_PORT_BE&&(n=e.origin+r(process.env.NEXT_PUBLIC_PORT_BE,{prefixColon:!0}))}else n="http://localhost"+r(process.env.NEXT_PUBLIC_PORT_BE||"8000",{prefixColon:!0});e=t(e).length?t(e):"/";const i=new URL(n.replace(/\/+$/,"")).origin;return`${i}${"/"===e?"/":`${e.startsWith("/")?"":"/"}${e.replace(/\/+$/,"")}`}`}catch(e){throw new Error("Invalid `NEXT_PUBLIC_BACKEND_API_URL`, failed to generate from `getBeApiUrl()`, Error:"+e)}},E=()=>{var e,o;try{const n=null==(e=process.env.NEXT_PUBLIC_BASE_URL)?void 0:e.trim(),i=null==(o=process.env.NEXT_PUBLIC_PORT_FE)?void 0:o.trim();let a=n||"http://localhost";a=t(a).replace(/\/+$/,"");const s=/:\/\/[^/]+:\d+/.test(a);!s&&i?a+=r(i,{prefixColon:!0}):s||n||(a+=":3000");const p=new URL(a);return`${p.protocol}//${p.hostname}${p.port?`:${p.port}`:""}`}catch(e){throw new Error("Invalid `NEXT_PUBLIC_BASE_URL`, failed to generate from `getBaseUrl()`, Error:"+e)}};export{g as createBeApiUrl,d as generateRoute,E as getBaseUrl,v as getBeApiUrl};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
exports.getClientIpOrUrl=g;
|
|
1
|
+
"use strict";var e=require("../../chunk-D3VSHABU.cjs");require("server-only");var r=require("next/server");exports.getClientIpOrUrl=(t,n=!0)=>{if(!e.isFunction(r.NextRequest))throw new Error("Function `getClientIpOrUrl` is designed to be used in a `NextJS` environment.");if(!(t instanceof r.NextRequest))throw new TypeError("First parameter (`request`) must be an `instance of NextRequest` from `NextJS`.");e.assertIsBoolean(n,{message:({currentType:e,validType:r})=>`Second parameter (\`includeFullUrl\`) must be of type \`${r}\`, but received: \`${e}\`.`});const s=(t.headers.get("x-forwarded-for")??"127.0.0.1").trim().split(",");"::ffff:127.0.0.1"!==s[0]&&"::1"!==s[0]||(s[0]="127.0.0.1");const o=s.length>1?s[s.length-1].trim():s[0];if(!n)return o;const i=t.headers.get("x-forwarded-proto")||"http",u=t.headers.get("x-forwarded-port")||"3000";return`${"production"===process.env.NODE_ENV?i:"http"}://${o}:${u}`};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export{g as getClientIpOrUrl};
|
|
1
|
+
import{isFunction as e,assertIsBoolean as r}from"../../chunk-EW3I4O7X.js";import"server-only";import{NextRequest as t}from"next/server";var o=(o,n=!0)=>{if(!e(t))throw new Error("Function `getClientIpOrUrl` is designed to be used in a `NextJS` environment.");if(!(o instanceof t))throw new TypeError("First parameter (`request`) must be an `instance of NextRequest` from `NextJS`.");r(n,{message:({currentType:e,validType:r})=>`Second parameter (\`includeFullUrl\`) must be of type \`${r}\`, but received: \`${e}\`.`});const s=(o.headers.get("x-forwarded-for")??"127.0.0.1").trim().split(",");"::ffff:127.0.0.1"!==s[0]&&"::1"!==s[0]||(s[0]="127.0.0.1");const i=s.length>1?s[s.length-1].trim():s[0];if(!n)return i;const p=o.headers.get("x-forwarded-proto")||"http",a=o.headers.get("x-forwarded-port")||"3000";return`${"production"===process.env.NODE_ENV?p:"http"}://${i}:${a}`};export{o as getClientIpOrUrl};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var e=require("../chunk-EKS4IZJR.cjs");require("../chunk-EOZKYR5S.cjs"),require("../chunk-JARPXKBM.cjs"),require("../chunk-VHAPTHEA.cjs"),require("../chunk-5C2SMIGX.cjs"),require("../chunk-ZHV5ZYVN.cjs"),require("../chunk-UDA26MCU.cjs"),require("../chunk-D3VSHABU.cjs"),Object.defineProperty(exports,"findDuplicates",{enumerable:!0,get:function(){return e.findDuplicates}}),Object.defineProperty(exports,"omitKeys",{enumerable:!0,get:function(){return e.omitKeys}}),Object.defineProperty(exports,"omitKeysDeep",{enumerable:!0,get:function(){return e.omitKeysDeep}});
|
package/dist/operations/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{findDuplicates,omitKeys,omitKeysDeep}from"../chunk-CE4JI2YB.js";import"../chunk-XLDAIZRK.js";import"../chunk-ZTCLKKMB.js";import"../chunk-ECRNH4FW.js";import"../chunk-FIAAX3UE.js";import"../chunk-BHIBDDQF.js";import"../chunk-QNKGP5DY.js";import"../chunk-EW3I4O7X.js";
|
package/dist/parsers/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var e=require("../chunk-IMCLPT5V.cjs");require("../chunk-D3VSHABU.cjs"),Object.defineProperty(exports,"extractFileName",{enumerable:!0,get:function(){return e.extractFileName}});
|
package/dist/parsers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{extractFileName}from"../chunk-YV3K2EKJ.js";import"../chunk-EW3I4O7X.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var e=require("../chunk-OLPKAX7F.cjs"),r=require("../chunk-KHO2SBNA.cjs"),t=require("../chunk-6C3ATUGM.cjs"),n=require("../chunk-M47QIBXI.cjs"),i=require("../chunk-JARPXKBM.cjs");require("../chunk-O7UT5AN3.cjs");var u=require("../chunk-CMJ6UYWW.cjs"),o=require("../chunk-4Z75R3IT.cjs");require("../chunk-VCFXNV3Q.cjs");var s=require("../chunk-DVMHRLKP.cjs"),c=require("../chunk-ZHV5ZYVN.cjs"),p=require("../chunk-UDA26MCU.cjs"),a=require("../chunk-D3VSHABU.cjs");Object.defineProperty(exports,"areArraysEqual",{enumerable:!0,get:function(){return e.areArraysEqual}}),Object.defineProperty(exports,"areObjectsEqual",{enumerable:!0,get:function(){return e.areObjectsEqual}}),Object.defineProperty(exports,"areURLsEqualPath",{enumerable:!0,get:function(){return e.areURLsEqualPath}}),Object.defineProperty(exports,"areURLsIdentical",{enumerable:!0,get:function(){return e.areURLsIdentical}}),Object.defineProperty(exports,"arrayHasAnyMatch",{enumerable:!0,get:function(){return e.arrayHasAnyMatch}}),Object.defineProperty(exports,"doesKeyExist",{enumerable:!0,get:function(){return e.doesKeyExist}}),Object.defineProperty(exports,"isArguments",{enumerable:!0,get:function(){return e.isArguments}}),Object.defineProperty(exports,"isArrayLike",{enumerable:!0,get:function(){return e.isArrayLike}}),Object.defineProperty(exports,"isArrayLikeObject",{enumerable:!0,get:function(){return e.isArrayLikeObject}}),Object.defineProperty(exports,"isCurrencyLike",{enumerable:!0,get:function(){return e.isCurrencyLike}}),Object.defineProperty(exports,"isDeepEqual",{enumerable:!0,get:function(){return e.isDeepEqual}}),Object.defineProperty(exports,"isElement",{enumerable:!0,get:function(){return e.isElement}}),Object.defineProperty(exports,"isEmpty",{enumerable:!0,get:function(){return e.isEmpty}}),Object.defineProperty(exports,"isEmptyDeep",{enumerable:!0,get:function(){return e.isEmptyDeep}}),Object.defineProperty(exports,"isEqualWith",{enumerable:!0,get:function(){return e.isEqualWith}}),Object.defineProperty(exports,"isLength",{enumerable:!0,get:function(){return e.isLength}}),Object.defineProperty(exports,"isMatch",{enumerable:!0,get:function(){return e.isMatch}}),Object.defineProperty(exports,"isMatchWith",{enumerable:!0,get:function(){return e.isMatchWith}}),Object.defineProperty(exports,"isNative",{enumerable:!0,get:function(){return e.isNative}}),Object.defineProperty(exports,"isObjectLoose",{enumerable:!0,get:function(){return e.isObjectLoose}}),Object.defineProperty(exports,"isPropertyKey",{enumerable:!0,get:function(){return e.isPropertyKey}}),Object.defineProperty(exports,"isSafeInteger",{enumerable:!0,get:function(){return e.isSafeInteger}}),Object.defineProperty(exports,"isValidURL",{enumerable:!0,get:function(){return e.isValidURL}}),Object.defineProperty(exports,"isWeakMap",{enumerable:!0,get:function(){return e.isWeakMap}}),Object.defineProperty(exports,"textContainsAll",{enumerable:!0,get:function(){return e.textContainsAll}}),Object.defineProperty(exports,"textContainsAny",{enumerable:!0,get:function(){return e.textContainsAny}}),Object.defineProperty(exports,"isURL",{enumerable:!0,get:function(){return r.isURL}}),Object.defineProperty(exports,"isNonEmptyValue",{enumerable:!0,get:function(){return t.isNonEmptyValue}}),Object.defineProperty(exports,"isTypedArray",{enumerable:!0,get:function(){return t.isTypedArray}}),Object.defineProperty(exports,"isEmptyValue",{enumerable:!0,get:function(){return n.isEmptyValue}}),Object.defineProperty(exports,"isArrayBuffer",{enumerable:!0,get:function(){return i.isArrayBuffer}}),Object.defineProperty(exports,"isEmptyArray",{enumerable:!0,get:function(){return i.isEmptyArray}}),Object.defineProperty(exports,"isEmptyObject",{enumerable:!0,get:function(){return i.isEmptyObject}}),Object.defineProperty(exports,"isEqual",{enumerable:!0,get:function(){return i.isEqual}}),Object.defineProperty(exports,"isRegExp",{enumerable:!0,get:function(){return i.isRegExp}}),Object.defineProperty(exports,"isFinite",{enumerable:!0,get:function(){return u.isFinite}}),Object.defineProperty(exports,"isEmptyString",{enumerable:!0,get:function(){return o.isEmptyString}}),Object.defineProperty(exports,"isInteger",{enumerable:!0,get:function(){return s.isInteger}}),Object.defineProperty(exports,"isDate",{enumerable:!0,get:function(){return c.isDate}}),Object.defineProperty(exports,"isMap",{enumerable:!0,get:function(){return c.isMap}}),Object.defineProperty(exports,"isBigInt",{enumerable:!0,get:function(){return p.isBigInt}}),Object.defineProperty(exports,"getPreciseType",{enumerable:!0,get:function(){return a.getPreciseType}}),Object.defineProperty(exports,"hasOwnProp",{enumerable:!0,get:function(){return a.hasOwnProp}}),Object.defineProperty(exports,"isArray",{enumerable:!0,get:function(){return a.isArray}}),Object.defineProperty(exports,"isBoolean",{enumerable:!0,get:function(){return a.isBoolean}}),Object.defineProperty(exports,"isBuffer",{enumerable:!0,get:function(){return a.isBuffer}}),Object.defineProperty(exports,"isError",{enumerable:!0,get:function(){return a.isError}}),Object.defineProperty(exports,"isFunction",{enumerable:!0,get:function(){return a.isFunction}}),Object.defineProperty(exports,"isNaN",{enumerable:!0,get:function(){return a.isNaN}}),Object.defineProperty(exports,"isNil",{enumerable:!0,get:function(){return a.isNil}}),Object.defineProperty(exports,"isNonEmptyArray",{enumerable:!0,get:function(){return a.isNonEmptyArray}}),Object.defineProperty(exports,"isNonEmptyString",{enumerable:!0,get:function(){return a.isNonEmptyString}}),Object.defineProperty(exports,"isNull",{enumerable:!0,get:function(){return a.isNull}}),Object.defineProperty(exports,"isNumber",{enumerable:!0,get:function(){return a.isNumber}}),Object.defineProperty(exports,"isObject",{enumerable:!0,get:function(){return a.isObject}}),Object.defineProperty(exports,"isObjectOrArray",{enumerable:!0,get:function(){return a.isObjectOrArray}}),Object.defineProperty(exports,"isPlainObject",{enumerable:!0,get:function(){return a.isPlainObject}}),Object.defineProperty(exports,"isSet",{enumerable:!0,get:function(){return a.isSet}}),Object.defineProperty(exports,"isString",{enumerable:!0,get:function(){return a.isString}}),Object.defineProperty(exports,"isSymbol",{enumerable:!0,get:function(){return a.isSymbol}}),Object.defineProperty(exports,"isUndefined",{enumerable:!0,get:function(){return a.isUndefined}});
|
package/dist/predicates/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{areArraysEqual,areObjectsEqual,areURLsEqualPath,areURLsIdentical,arrayHasAnyMatch,doesKeyExist,isArguments,isArrayLike,isArrayLikeObject,isCurrencyLike,isDeepEqual,isElement,isEmpty,isEmptyDeep,isEqualWith,isLength,isMatch,isMatchWith,isNative,isObjectLoose,isPropertyKey,isSafeInteger,isValidURL,isWeakMap,textContainsAll,textContainsAny}from"../chunk-GVWGQNLF.js";export{isURL}from"../chunk-ONZFBJVW.js";export{isNonEmptyValue,isTypedArray}from"../chunk-MTUBDVJ2.js";export{isEmptyValue}from"../chunk-IRGE5W7L.js";export{isArrayBuffer,isEmptyArray,isEmptyObject,isEqual,isRegExp}from"../chunk-ZTCLKKMB.js";import"../chunk-EUANTHVN.js";export{isFinite}from"../chunk-OWV2P376.js";export{isEmptyString}from"../chunk-KOVO72OM.js";import"../chunk-T4CIAKEK.js";export{isInteger}from"../chunk-WVSPXFTY.js";export{isDate,isMap}from"../chunk-BHIBDDQF.js";export{isBigInt}from"../chunk-QNKGP5DY.js";export{getPreciseType,hasOwnProp,isArray,isBoolean,isBuffer,isError,isFunction,isNaN,isNil,isNonEmptyArray,isNonEmptyString,isNull,isNumber,isObject,isObjectOrArray,isPlainObject,isSet,isString,isSymbol,isUndefined}from"../chunk-EW3I4O7X.js";
|
package/dist/promise/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var e=require("../chunk-JFJUPYDT.cjs");require("../chunk-DVMHRLKP.cjs"),require("../chunk-ZHV5ZYVN.cjs"),require("../chunk-UDA26MCU.cjs"),require("../chunk-D3VSHABU.cjs"),Object.defineProperty(exports,"delay",{enumerable:!0,get:function(){return e.delay}});
|
package/dist/promise/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{delay}from"../chunk-XZJ7C4N6.js";import"../chunk-WVSPXFTY.js";import"../chunk-BHIBDDQF.js";import"../chunk-QNKGP5DY.js";import"../chunk-EW3I4O7X.js";
|