@rzl-zone/utils-js 3.1.0 → 3.1.1
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/{chunk-Z4DXK7A6.cjs → chunk-4VCRMMAH.cjs} +1 -1
- package/dist/{chunk-FUS3DVLB.cjs → chunk-5Y52H4VH.cjs} +1 -1
- package/dist/{chunk-TVXADXCC.cjs → chunk-7H7IODCQ.cjs} +1 -1
- package/dist/chunk-7PG6YKIY.cjs +1 -0
- package/dist/{chunk-WBWTXKMC.cjs → chunk-7YVINA3U.cjs} +1 -1
- package/dist/{chunk-PXDRHFIE.js → chunk-AXWJJXJC.js} +1 -1
- package/dist/chunk-DQFU3KLE.cjs +1 -0
- package/dist/{chunk-GGRMHIFJ.cjs → chunk-EXWCTDC3.cjs} +1 -1
- package/dist/{chunk-LBMEEJWA.js → chunk-G2B35D5W.js} +1 -1
- package/dist/{chunk-3KBHD3BS.cjs → chunk-GLUYWYOA.cjs} +1 -1
- package/dist/{chunk-BSVZRN7C.js → chunk-GRSCNTOK.js} +1 -1
- package/dist/{chunk-735HJXBT.cjs → chunk-I6NOFGAK.cjs} +1 -1
- package/dist/{chunk-APHDUCVQ.js → chunk-IRBPXCMR.js} +1 -1
- package/dist/chunk-L73TOPX5.js +1 -0
- package/dist/{chunk-7U44T63D.cjs → chunk-MHXVVDRQ.cjs} +1 -1
- package/dist/{chunk-I7YGXQPI.cjs → chunk-NHNBV5VS.cjs} +1 -1
- package/dist/{chunk-HQ5GQTEE.js → chunk-NXWPZDDX.js} +1 -1
- package/dist/{chunk-SMADKXZE.js → chunk-QVRTHAM2.js} +1 -1
- package/dist/{chunk-4HD2O5A4.js → chunk-RF34NETZ.js} +1 -1
- package/dist/{chunk-6HQDHIOD.js → chunk-SAW7XS4K.js} +1 -1
- package/dist/{chunk-IREHUBF7.js → chunk-URGK5UQT.js} +1 -1
- package/dist/{chunk-EGNZCW4K.js → chunk-WFPQO7KN.js} +1 -1
- package/dist/{chunk-S6Z6I2EG.cjs → chunk-WZE3XLKY.cjs} +1 -1
- package/dist/{chunk-FEKDB32T.js → chunk-X4PD3I5U.js} +1 -1
- package/dist/{chunk-YRM7IJLX.js → chunk-XSFPU3YT.js} +1 -1
- package/dist/{chunk-C6JFHUR2.cjs → chunk-XVHPXRUH.cjs} +1 -1
- package/dist/chunk-Y44ZD3GG.js +1 -0
- package/dist/{chunk-NU3N4WHD.cjs → chunk-ZR7GTJQX.cjs} +1 -1
- package/dist/conversions/index.cjs +1 -1
- package/dist/conversions/index.d.ts +116 -31
- package/dist/conversions/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 -1
- package/dist/next/index.js +1 -1
- package/dist/operations/index.cjs +1 -1
- package/dist/operations/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 -1
- package/dist/urls/index.cjs +1 -1
- package/dist/urls/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-AJ65QFV2.js +0 -1
- package/dist/chunk-CTBRLEOG.js +0 -1
- package/dist/chunk-E63WVPZE.cjs +0 -1
- package/dist/chunk-YXHCULSO.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isURL as e}from"./chunk-ONZFBJVW.js";import{isTypedArray as r}from"./chunk-
|
|
1
|
+
import{isURL as e}from"./chunk-ONZFBJVW.js";import{isTypedArray as r}from"./chunk-NXWPZDDX.js";import{isEqual as t,isEmptyArray as n,isRegExp as o,baseDeepEqual as i}from"./chunk-GRSCNTOK.js";import{parseCurrencyString as u}from"./chunk-VEYMQ3UA.js";import{isEmptyString as a}from"./chunk-TSLYDPBJ.js";import{assertIsString as s}from"./chunk-W2W3L2M5.js";import{safeStableStringify as f,isDate as c,isMap as p}from"./chunk-L73TOPX5.js";import{isArray as m,getPreciseType as l,assertIsBoolean as h,isNonEmptyString as y,assertIsPlainObject as g,isObjectOrArray as b,isFunction as d,isString as v,isNumber as T,isSymbol as $,isSet as j,isPlainObject as w,isNil as N,isBoolean as S,isBuffer as k,isNaN as O,isUndefined as P,isObject as E,isNull as A}from"./chunk-2UIRWYE3.js";var R=(e,r,n=!1)=>{if(!m(e)||!m(r))throw new TypeError(`Parameters \`array1\` and \`array2\` property of the \`options\` (second parameter) must be of type \`array\`, but received: ['array1': \`${l(e)}\`, 'array2': \`${l(r)}\`].`);if(h(n,{message:({currentType:e,validType:r})=>`Third parameter \`ignoreOrder\` must be of type \`${r}\`, but received: \`${e}\`.`}),!t(e.length,r.length))return!1;const o=e=>{if(!m(e))return e;return e.map(e=>m(e)?o(e):e).sort((e,r)=>{const t=f(e),n=f(r);return t<n?-1:t>n?1:0})},i=n?o(e):e,u=n?o(r):r;return!!t(i.length,u.length)&&i.every((e,r)=>f(e)===f(u[r]))},M=(e,r)=>t(e,r),W=(r,t)=>{if(!e(r)||!e(t))throw new TypeError("Parameters `urlA` and `urlB` (first and second parameter) must be instance of URL.");return r.protocol+"//"+r.host+r.pathname==t.protocol+"//"+t.host+t.pathname},x=(r,t)=>{if(!e(r)||!e(t))throw new TypeError("Parameters `urlA` and `urlB` (first and second parameter) must be instance of URL.");return r.protocol+"//"+r.host+r.pathname+r.search==t.protocol+"//"+t.host+t.pathname+t.search},z=(e,r,t={})=>{if(!y(e)||!m(r))return!1;g(t,{message:({currentType:e,validType:r})=>`Third parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const{exactMatch:n=!1,flags:o="i"}=t;h(n,{message:({currentType:e,validType:r})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),s(o,{message:({currentType:e,validType:r})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const i=r.filter(e=>y(e)).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return 0!==i.length&&i.every(r=>new RegExp(n?`(?<!\\S)${r}(?!\\S)`:r,o.includes("u")?o:o+"u").test(e))},I=(e,r,t={})=>{if(!y(e)||!m(r))return!1;g(t,{message:({currentType:e,validType:r})=>`Third parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const{exactMatch:n=!1,flags:o="i"}=t;h(n,{message:({currentType:e,validType:r})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),s(o,{message:({currentType:e,validType:r})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const i=r.filter(e=>y(e)).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));if(0===i.length)return!1;const u=n?`(?<!\\S)(${i.join("|")})(?!\\S)`:`(${i.join("|")})`;return new RegExp(u,o.includes("u")?o:o+"u").test(e)};function L(e){const r=typeof e;return"string"===r||"number"===r||"symbol"===r}var U=(e,r)=>{if(!b(e))return!1;if(!L(r))throw new TypeError(`Second Parameter (\`key\`) must be of type \`string\`, \`number\` or \`symbol\`, but received: \`${l(r)}\`.`);return!!Object.prototype.hasOwnProperty.call(e,r)||(m(e)?e.some(e=>U(e,r)):Object.values(e).some(e=>b(e)&&U(e,r)))},B=(e,r)=>{if(!m(e)||!m(r)||n(e)||n(r))return!1;const t=new Set(e);return r.some(e=>t.has(e))},X=e=>"[object Arguments]"===Object.prototype.toString.call(e);function Z(e){return"number"==typeof e&&e>-1&&Number.isInteger(e)&&e<=Number.MAX_SAFE_INTEGER}function D(e){return!d(e)&&b(e)&&Z(null==e?void 0:e.length)}function F(e){return b(e)&&Z(e.length)}var Y=e=>{if(!v(e)&&!T(e))return!1;return 0!==u(e.toString())||"0"===e.toString().trim()},_=(e,r)=>{if("number"==typeof e&&"number"==typeof r&&Number.isNaN(e)&&Number.isNaN(r))return!0;if(e===r)return!0;if(typeof e!=typeof r)return!1;if(c(e)&&c(r))return e.getTime()===r.getTime();if(o(e)&&o(r))return e.toString()===r.toString();if($(e)&&$(r))return e.toString()===r.toString();if(j(e)&&j(r)){if(e.size!==r.size)return!1;const t=Array.from(r),n=new Set;for(const r of e){let e=!1;for(let o=0;o<t.length;o++)if(!n.has(o)&&_(r,t[o])){n.add(o),e=!0;break}if(!e)return!1}return!0}if(p(e)&&p(r)){if(e.size!==r.size)return!1;const t=Array.from(r),n=new Set;for(const[r,o]of e){let e=!1;for(let i=0;i<t.length;i++){if(n.has(i))continue;const[u,a]=t[i];if(_(r,u)&&_(o,a)){n.add(i),e=!0;break}}if(!e)return!1}return!0}if(m(e)&&m(r))return e.length===r.length&&e.every((e,t)=>_(e,r[t]));if(b(e)&&b(r)&&e&&r){if(m(e)!==m(r))return!1;const t=Object.keys(e),n=Object.keys(r);return t.length===n.length&&t.every(t=>_(e[t],r[t]))}return!1};function C(e){return!!e&&"object"==typeof e&&1===(null==e?void 0:e.nodeType)&&!w(e)}function G(e){return!!N(e)||(!!(S(e)||T(e,{includeNaN:!0})||$(e))||(d(e)?0===Object.keys(e).length:v(e)||m(e)||X(e)||r(e)?0===e.length:p(e)||j(e)?0===e.size:k(e)?0===e.length:!!w(e)&&0===Object.keys(e).length))}var J=e=>{if(v(e))return a(e);if(T(e))return O(e);if(m(e))return n(e)||e.every(J);if(b(e)){const r=Object.keys(e),t=Object.getOwnPropertySymbols(e);return 0===r.length&&0===t.length||[...r,...t].every(r=>J(e[r]))}return!e};function K(e,r,t){return i(e,r,t,new WeakMap)}function V(e,r,t){return q(e,r,t)}function Q(e,r){return e===r||0===e&&0===r||Number.isNaN(e)&&Number.isNaN(r)}function q(e,r,t){if(e===r)return!0;if(!b(r))return Q(e,r);if(!b(e))return!1;const n=Reflect.ownKeys(r).filter(e=>!(m(r)&&"length"===e));for(const o of n){if(!(o in e))return!1;const n=e[o],i=r[o],u=null==t?void 0:t(n,i,o,e,r);if(P(u)){if(b(n)&&b(i)){if(!V(n,i,t))return!1}else if(!Q(n,i))return!1}else if(!u)return!1}return!0}function H(e,r){return q(e,r)}var ee=Function.prototype.toString,re=/\{\s*\[native code\]\s*\}/;function te(e){if(!d(e))return!1;try{const r=ee.call(e);return re.test(r)}catch{return!1}}function ne(e){return!N(e)&&(b(e)||d(e))}function oe(e){return"number"==typeof e&&Number.isSafeInteger(e)}var ie=e=>{if(!y(e))return!1;let r;try{r=decodeURIComponent(e)}catch{return!1}if(!r.startsWith("http://")&&!r.startsWith("https://"))return!1;return new RegExp(/^https?:\/\/(?:localhost(?::\d+)?(?:[\/?#][^\s]*)?|(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}(?::\d+)?(?:[\/?#][^\s]*)?)$/).test(r)};function ue(e){return E(e)&&!A(e)&&e instanceof WeakMap}export{R as areArraysEqual,M as areObjectsEqual,W as areURLsEqualPath,x as areURLsIdentical,B as arrayHasAnyMatch,U as doesKeyExist,X as isArguments,D as isArrayLike,F as isArrayLikeObject,Y as isCurrencyLike,_ as isDeepEqual,C as isElement,G as isEmpty,J as isEmptyDeep,K as isEqualWith,Z as isLength,H as isMatch,V as isMatchWith,te as isNative,ne as isObjectLoose,L as isPropertyKey,oe as isSafeInteger,ie as isValidURL,ue as isWeakMap,z as textContainsAll,I as textContainsAny};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./chunk-
|
|
1
|
+
"use strict";var e=require("./chunk-ZR7GTJQX.cjs"),r=require("./chunk-4VCRMMAH.cjs"),t=require("./chunk-YT3MSZKK.cjs"),s=require("./chunk-DQFU3KLE.cjs"),i=require("./chunk-INUFZJLX.cjs"),n=e=>{t.assertIsArray(e,{message:({currentType:e,validType:r})=>`First parameter (\`values\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const s=[];return e.forEach((t,i)=>{for(let n=i+1;n<e.length;n++)if(r.isEqual(t,e[n])){s.some(e=>r.isEqual(e,t))||s.push(t);break}}),s};exports.findDuplicates=n,exports.omitKeys=(e,r)=>{if(!i.isPlainObject(e))return{};t.assertIsArray(r,{message:({currentType:e,validType:r})=>`Second parameter (\`keysToOmit\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const s=n(r);if(s.length>0)throw new Error(`Function "omitKeys" Error: Duplicate keys detected - \`${s}\``);return Object.fromEntries(Object.entries(e).filter(([e])=>!r.includes(e)))},exports.omitKeysDeep=(a,c)=>{if(!i.isPlainObject(a))return{};t.assertIsArray(c,{message:({currentType:e,validType:r})=>`Second parameter (\`keysToOmit\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const o=n(c);if(i.isNonEmptyArray(o))throw new Error(`Function "omitKeysDeep" Error: Duplicate keys detected - \`${s.safeStableStringify(o)}\`.`);const u=(e,t)=>{if(!i.isObjectOrArray(e))return e;const[s,...n]=t;if(r.isEmptyArray(n))if(i.isArray(e)){const r=parseInt(s);!i.isNaN(r)&&r in e&&e.splice(r,1)}else delete e[s];else{const r=e[s];i.isObjectOrArray(r)&&(e[s]=u(r,n))}return e},y=e=>{if(i.isArray(e))return e.map(y).filter(e=>!(i.isObjectOrArray(e)&&0===Object.keys(e).length));if(i.isObjectOrArray(e)){return Object.fromEntries(Object.entries(e).map(([e,r])=>[e,y(r)]).filter(([,e])=>!(i.isUndefined(e)||i.isObjectOrArray(e)&&0===Object.keys(e).length)))}return e},l=e.safeJsonParse(s.safeStableStringify(a));for(const e of c){const r=e.split(".");u(l,r)}return y(l)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isRegExp as e,isEmptyArray as r,isEqual as t}from"./chunk-GRSCNTOK.js";import{assertIsArray as i}from"./chunk-ZXIWDFEQ.js";import{isFinite as n}from"./chunk-DUK2K4FB.js";import{safeStableStringify as o,isDate as a,isMap as u}from"./chunk-L73TOPX5.js";import{isBigInt as s}from"./chunk-QNKGP5DY.js";import{getPreciseType as p,isNaN as l,isString as f,isNumber as m,isBoolean as c,isNil as v,isNumberObject as y,isBooleanObject as g,isStringObject as d,isSymbol as b,isFunction as h,isArray as S,isObjectOrArray as T,isError as $,isSet as N,isObject as O,assertIsPlainObject as w,hasOwnProp as j,assertIsBoolean as k,isNull as I}from"./chunk-2UIRWYE3.js";function P(r,t){if(!1!==t&&"stringOrNumber"!==t&&"primitives"!==t&&"all"!==t)throw new TypeError(`Second parameter \`forceToString\` must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${p(t)}\`, with value: \`${o(t)}\`.`);if(l(r))return"primitives"===t||"all"===t?"NaN":NaN;if(f(r)||m(r))return"stringOrNumber"===t||"primitives"===t||"all"===t?String(r):r;if(c(r)||s(r)||v(r))return"primitives"===t||"all"===t?String(r):r;if(y(r)||g(r)||d(r))return"all"===t?r.valueOf().toString():r;if(b(r))return"all"===t?r.toString():r;if(h(r))return"all"===t?r.toString():r;if(S(r))return r.map(e=>P(e,t));if(T(r)){if(a(r))return"all"===t?r.toISOString():r;if(e(r))return"all"===t?r.toString():r;if($(r)||r instanceof Promise)return"all"===t?r.toString():r;if(N(r))return"all"===t?[...r].map(e=>P(e,t)):r;if(u(r))return"all"===t?[...r.entries()].map(([e,r])=>[P(e,t),P(r,t)]):r;const i={};if(O(r))for(const e of Object.keys(r))i[e]=P(r[e],t);return i}return r}function E(e){if(v(e))return;if(!S(e))return[];return e.reduce((e,t)=>{if(!v(t))if(S(t)){const i=E(t);i&&!r(i)&&e.push(i)}else e.push(t);return e},[])}var K=(e,r={})=>{i(e,{message:({currentType:e,validType:r})=>`First parameter (\`inputArray\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`}),w(r,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const n=!!j(r,"flatten")&&r.flatten,a=!!j(r,"forceToString")&&r.forceToString;if(!1!==a&&"stringOrNumber"!==a&&"primitives"!==a&&"all"!==a)throw new TypeError(`Parameter \`forceToString\` property of the \`options\` (second parameter) must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${p(a)}\`, with value: \`${o(a)}\`.`);k(n,{message:({currentType:e,validType:r})=>`Parameter \`flatten\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const s=e=>{const r=[];return e.reduce((e,i)=>{const n=S(i)?s(i):P(i,a);return r.some(e=>t(e,n))||(r.push(n),e.push(n)),e},[])},l=e=>S(e)?e.flatMap(l):N(e)?[...e].flatMap(l):u(e)?[...e.values()].flatMap(l):[e];return s(n?l(e):e)};function D(e,r={}){w(r,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const t=!j(r,"removeInvalidValue")||r.removeInvalidValue;if(k(t,{message:({currentType:e,validType:r})=>`Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),S(e)){const r=Array.from(e,e=>f(e)||n(e)||c(e)||s(e)?String(e):I(e)?null:void 0);return t?E(r):r}}export{K as dedupeArray,E as filterNilArray,D as toStringArrayUnRecursive,P as toStringDeepForce};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./chunk-
|
|
1
|
+
"use strict";var e=require("./chunk-4VCRMMAH.cjs"),r=require("./chunk-5C2SMIGX.cjs"),t=require("./chunk-DQFU3KLE.cjs"),o=require("./chunk-INUFZJLX.cjs"),n=e=>{if(!o.isString(e)&&!o.isNumber(e))return 0;const r=String(e).trim().replace(/[^0-9]/g,"");return Number(r)||0},s=(e={})=>{o.assertIsPlainObject(e,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const t=!!o.hasOwnProp(e,"convertBooleans")&&e.convertBooleans,n=!!o.hasOwnProp(e,"convertDates")&&e.convertDates,s=!!o.hasOwnProp(e,"convertNumbers")&&e.convertNumbers,i=!!o.hasOwnProp(e,"loggingOnFail")&&e.loggingOnFail,a=!!o.hasOwnProp(e,"removeEmptyArrays")&&e.removeEmptyArrays,c=!!o.hasOwnProp(e,"removeEmptyObjects")&&e.removeEmptyObjects,l=!!o.hasOwnProp(e,"removeNulls")&&e.removeNulls,u=!!o.hasOwnProp(e,"removeUndefined")&&e.removeUndefined,m=!!o.hasOwnProp(e,"strictMode")&&e.strictMode,p=!!o.hasOwnProp(e,"checkSymbols")&&e.checkSymbols,N=!!o.hasOwnProp(e,"convertNaN")&&e.convertNaN,v=o.hasOwnProp(e,"customDateFormats")?e.customDateFormats:[],d=o.hasOwnProp(e,"onError")?e.onError:r.noop;if(!(o.isBoolean(t)&&o.isBoolean(n)&&o.isBoolean(s)&&o.isBoolean(N)&&o.isBoolean(p)&&o.isBoolean(i)&&o.isBoolean(a)&&o.isBoolean(c)&&o.isBoolean(l)&&o.isBoolean(u)&&o.isBoolean(m)&&o.isArray(v)&&o.isFunction(d)))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': \`${o.getPreciseType(t)}\`, 'convertDates': \`${o.getPreciseType(n)}\`, 'convertNumbers': \`${o.getPreciseType(s)}\`, 'loggingOnFail': \`${o.getPreciseType(i)}\`, 'removeEmptyArrays': \`${o.getPreciseType(a)}\`, 'removeEmptyObjects': \`${o.getPreciseType(c)}\`, 'removeNulls': \`${o.getPreciseType(l)}\`, 'removeUndefined': \`${o.getPreciseType(u)}\`, 'strictMode': \`${o.getPreciseType(m)}\`, 'customDateFormats': \`${o.getPreciseType(v)}\`, 'onError': \`${o.getPreciseType(d)}\`].`);return{convertBooleans:t,convertDates:n,convertNumbers:s,convertNaN:N,loggingOnFail:i,removeEmptyArrays:a,removeEmptyObjects:c,removeNulls:l,removeUndefined:u,strictMode:m,customDateFormats:v,onError:d,checkSymbols:p}},i=(r,t={})=>{var n;const c=s(t);if(o.isNull(r))return c.removeNulls?void 0:null;if(!o.isUndefined(r)){if(o.isString(r)){const e=r.trim();if(c.convertNaN&&"NaN"===e)return NaN;if(c.convertNumbers&&!o.isNaN(Number(e)))return Number(e);if(c.convertBooleans){if("true"===e)return!0;if("false"===e)return!1}if(c.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==(n=c.customDateFormats)?void 0:n.length)for(const r of c.customDateFormats){const t=a(e,r);if(t)return t}}return c.strictMode?void 0:e}if(o.isArray(r)){const t=r.map(e=>i(e,c)).filter(e=>!o.isUndefined(e));return c.removeEmptyArrays&&e.isEmptyArray(t)?void 0:t}if(o.isObject(r)){const t={};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const n=i(r[e],c);o.isUndefined(n)||(t[e]=n)}return c.removeEmptyObjects&&e.isEmptyObject(t,{checkSymbols:c.checkSymbols})?void 0:t}return c.strictMode?void 0:r}c.removeUndefined},a=(e,r)=>{if(!o.isNonEmptyString(e)||!o.isNonEmptyString(r))throw new TypeError(`Parameter \`dateString\` and \`format\` must be of type \`string\` and not empty-string, but received: "['dateString': \`${o.getPreciseType(e)}\` - (current value: \`${t.safeStableStringify(e)}\`), 'format': \`${o.getPreciseType(r)}\` - (current value: \`${t.safeStableStringify(r)}\`)]".`);const n=e.split(/[-/]/).map(Number);if(3!==n.length||n.some(o.isNaN))return null;let s,i,a;if("DD/MM/YYYY"===r)[s,i,a]=n;else{if("MM/DD/YYYY"!==r)return null;[i,s,a]=n}i-=1;const c=new Date(a,i,s);return c.getFullYear()!==a||c.getMonth()!==i||c.getDate()!==s?null:c};exports.cleanParsedData=i,exports.extractDigits=n,exports.parseCustomDate=a,exports.safeJsonParse=function(e,r={}){if(o.isNull(e))return null;const t=s(r);if(t.convertNaN&&(o.isNaN(e)||o.isNonEmptyString(e)&&"NaN"===e))return NaN;if(t.convertNumbers&&!o.isNaN(Number(e))&&o.isNumber(n(e)))return Number(e);if(o.isString(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 i=0;i<e.length;i++){const a=e[i];if(s)o?"'"===a?t+="'":r.has(a)?t+="\\"===a?"\\\\":'"'===a?'\\"':"\\"+a:t+="\\\\"+a:n?'"'===a?t+='\\"':r.has(a)?t+="\\"+a:t+="\\\\"+a:t+="\\"+a,s=!1;else if("\\"!==a){if(o||n){if(o){if("'"===a){t+='"',o=!1;continue}}else if(n&&'"'===a){t+='"',n=!1;continue}}else{if("'"===a){t+='"',o=!0;continue}if('"'===a){t+='"',n=!0;continue}}t+=a}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 i(o,t)}catch(e){return t.loggingOnFail&&console.error("Failed to parsing at `safeJsonParse`:",e),void t.onError(o.isError(e)?new Error(e.message.replace(/^JSON\.parse:/,"Failed to parsing")):new Error(String(e)))}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../chunk-
|
|
1
|
+
"use strict";var e=require("../chunk-GLUYWYOA.cjs"),r=require("../chunk-ZR7GTJQX.cjs");require("../chunk-7YVINA3U.cjs");var t=require("../chunk-7PG6YKIY.cjs");require("../chunk-EXWCTDC3.cjs"),require("../chunk-4VCRMMAH.cjs"),require("../chunk-YT3MSZKK.cjs");var n=require("../chunk-7BXIZM57.cjs");require("../chunk-YZR5OGJA.cjs"),require("../chunk-5C2SMIGX.cjs"),require("../chunk-EBMHQW7X.cjs"),require("../chunk-Y4O5KZF6.cjs");var o=require("../chunk-DQFU3KLE.cjs");require("../chunk-UDA26MCU.cjs"),require("../chunk-INUFZJLX.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}});
|
|
@@ -1030,7 +1030,9 @@ declare function removeObjectPaths<T extends Record<string,unknown>,K extends Co
|
|
|
1030
1030
|
* -------------------------------------------------
|
|
1031
1031
|
*/
|
|
1032
1032
|
type SafeStableStringifyOptions={
|
|
1033
|
-
/**
|
|
1033
|
+
/** -------------------------------------------------
|
|
1034
|
+
* * ***Whether to sort **object keys** alphabetically (recursively).***
|
|
1035
|
+
* -------------------------------------------------
|
|
1034
1036
|
*
|
|
1035
1037
|
* - `true` (default): object keys are sorted to ensure stable output.
|
|
1036
1038
|
* - `false`: preserves original insertion order of keys.
|
|
@@ -1038,7 +1040,9 @@ type SafeStableStringifyOptions={
|
|
|
1038
1040
|
* @default true
|
|
1039
1041
|
*/
|
|
1040
1042
|
sortKeys?:boolean;
|
|
1041
|
-
/**
|
|
1043
|
+
/** -------------------------------------------------
|
|
1044
|
+
* * ***Whether to sort **primitive values inside arrays**.***
|
|
1045
|
+
* -------------------------------------------------
|
|
1042
1046
|
*
|
|
1043
1047
|
* - `true`: primitive values in arrays are sorted to ensure stable output.
|
|
1044
1048
|
* - `false` (default): arrays retain their original order; objects and nested arrays are not reordered.
|
|
@@ -1046,14 +1050,47 @@ sortKeys?:boolean;
|
|
|
1046
1050
|
* @default false
|
|
1047
1051
|
*/
|
|
1048
1052
|
sortArray?:boolean;
|
|
1049
|
-
/**
|
|
1053
|
+
/** -------------------------------------------------
|
|
1054
|
+
* * ***Whether to pretty-print JSON output with 2-space indentation.***
|
|
1055
|
+
* -------------------------------------------------
|
|
1050
1056
|
*
|
|
1051
1057
|
* - `true`: output is formatted with indentation and newlines.
|
|
1052
1058
|
* - `false` (default): produces compact single-line JSON.
|
|
1053
1059
|
*
|
|
1054
1060
|
* @default false
|
|
1055
1061
|
*/
|
|
1056
|
-
pretty?:boolean;
|
|
1062
|
+
pretty?:boolean;
|
|
1063
|
+
/** -------------------------------------------------
|
|
1064
|
+
* * ***Preserve `undefined` values instead of converting them to `null`.***
|
|
1065
|
+
* -------------------------------------------------
|
|
1066
|
+
* **Controls how the internal `deepProcess` step rewrites values
|
|
1067
|
+
* **before** the final `JSON.stringify` call.**
|
|
1068
|
+
* - **Default (`false`)** – Every `undefined` value
|
|
1069
|
+
* (object properties **and** array elements)
|
|
1070
|
+
* is replaced with `null` **before** serialization.
|
|
1071
|
+
* Because this happens first, the key is **not removed** by
|
|
1072
|
+
* `JSON.stringify`.
|
|
1073
|
+
* - **`true`** – Leaves `undefined` untouched so the final
|
|
1074
|
+
* `JSON.stringify` call behaves natively:
|
|
1075
|
+
* * Object properties with `undefined` are **removed**.
|
|
1076
|
+
* * Array elements that are `undefined` become `null`.
|
|
1077
|
+
* @default false
|
|
1078
|
+
* @example
|
|
1079
|
+
* // ✅ keepUndefined = true: behaves like native JSON.stringify
|
|
1080
|
+
* safeStableStringify({ a: undefined }, { keepUndefined: true });
|
|
1081
|
+
* // → '{}' // key removed
|
|
1082
|
+
*
|
|
1083
|
+
* // ✅ Default (false): convert undefined to null, key kept
|
|
1084
|
+
* safeStableStringify({ a: undefined });
|
|
1085
|
+
* // → '{"a":null}' // key present, value null
|
|
1086
|
+
*
|
|
1087
|
+
* // Arrays
|
|
1088
|
+
* safeStableStringify([undefined]);
|
|
1089
|
+
* // → '[null]' // same, but via pre-replacement
|
|
1090
|
+
* safeStableStringify([undefined], { keepUndefined: true });
|
|
1091
|
+
* // → '[null]' // element becomes null
|
|
1092
|
+
*/
|
|
1093
|
+
keepUndefined?:boolean;};
|
|
1057
1094
|
/** --------------------------------------------
|
|
1058
1095
|
* * ***Utility: `safeStableStringify`.***
|
|
1059
1096
|
* ---------------------------------------------
|
|
@@ -1083,6 +1120,15 @@ pretty?:boolean;};
|
|
|
1083
1120
|
* - Compared to `JSON.stringify`, this ensures **stable output**:
|
|
1084
1121
|
* - Same object structure always produces the same string.
|
|
1085
1122
|
* - Useful for deep equality checks, hashing, caching keys, or snapshot tests.
|
|
1123
|
+
* - Controls how `undefined` is handled **before** the final `JSON.stringify` call, by `keepUndefined`
|
|
1124
|
+
* options, default: `false`.
|
|
1125
|
+
* - **false**: All `undefined` values (object properties and array elements) are replaced
|
|
1126
|
+
* with `null`, so object keys remain.
|
|
1127
|
+
* - **true**: Leaves `undefined` values as-is, and handling by native `JSON.stringify` then:
|
|
1128
|
+
* 1. Removes object properties that are `undefined`
|
|
1129
|
+
* 2. Converts `undefined` array elements to `null`
|
|
1130
|
+
* - Use `true` when you need native removal of keys or to preserve sparse arrays
|
|
1131
|
+
* exactly as `JSON.stringify` would.
|
|
1086
1132
|
* @param {*} value
|
|
1087
1133
|
* - Any JavaScript value to serialize, can be:
|
|
1088
1134
|
* - Primitives (`number`, `string`, `boolean`, `bigint`, `null`, `undefined`)
|
|
@@ -1092,6 +1138,8 @@ pretty?:boolean;};
|
|
|
1092
1138
|
* - Circular structures
|
|
1093
1139
|
* @param {SafeStableStringifyOptions} [options]
|
|
1094
1140
|
* - Configuration options for `safeStableStringify`:
|
|
1141
|
+
* - `keepUndefined` (boolean) – Control how `undefined` is handled **before** the final `JSON.stringify`
|
|
1142
|
+
* call, default: `false`.
|
|
1095
1143
|
* - `sortKeys` (boolean) – Whether to sort object keys alphabetically (recursively), default: `true`.
|
|
1096
1144
|
* - `sortArray` (boolean) – Whether to sort primitive values inside arrays, default: `false`.
|
|
1097
1145
|
* - `pretty` (boolean) – Whether to pretty-print JSON output with 2-space indentation, default: `false`.
|
|
@@ -1117,6 +1165,14 @@ pretty?:boolean;};
|
|
|
1117
1165
|
* });
|
|
1118
1166
|
* // ➔ '[1,2,3]'
|
|
1119
1167
|
*
|
|
1168
|
+
* // keepUndefined = true (native removal of keys)
|
|
1169
|
+
* safeStableStringify({ a: undefined }, { keepUndefined: true });
|
|
1170
|
+
* // ➔ '{}' // key `a` is removed, like native JSON.stringify
|
|
1171
|
+
*
|
|
1172
|
+
* // Default keepUndefined = false (convert to null, keep key)
|
|
1173
|
+
* safeStableStringify({ a: undefined });
|
|
1174
|
+
* // ➔ '{"a":null}'
|
|
1175
|
+
*
|
|
1120
1176
|
* // Nested object + sortArray=true
|
|
1121
1177
|
* safeStableStringify({ z: [3, 1, 2], x: { d: 4, c: 3 } }, {
|
|
1122
1178
|
* sortKeys:true,
|
|
@@ -1158,7 +1214,7 @@ pretty?:boolean;};
|
|
|
1158
1214
|
* safeStableStringify({ f: () => {}, s: Symbol("wow") });
|
|
1159
1215
|
* // ➔ '{}'
|
|
1160
1216
|
*
|
|
1161
|
-
* // undefined, NaN, Infinity convert to null
|
|
1217
|
+
* // undefined, NaN, Infinity convert to null (keepUndefined = false or keepUndefined = true)
|
|
1162
1218
|
* safeStableStringify([undefined, NaN, Infinity, -Infinity]);
|
|
1163
1219
|
* // ➔ '[null,null,null,null]'
|
|
1164
1220
|
*
|
|
@@ -1183,11 +1239,27 @@ declare const safeStableStringify:(value:unknown,options?:SafeStableStringifyOpt
|
|
|
1183
1239
|
* - `"stringOrNumber"`: Converts strings and numbers to strings.
|
|
1184
1240
|
* - `"primitives"`: Converts all primitives (number, string, boolean, bigint, undefined, null, NaN) to strings.
|
|
1185
1241
|
* - `"all"`: Converts everything, including symbols, functions, Dates, RegExp, Maps, Sets, Errors, Promises,
|
|
1186
|
-
*
|
|
1242
|
+
* boxed primitives box (new Number, new String, new Boolean), and deeply all object properties, to strings.
|
|
1187
1243
|
* - `false`: Leaves everything unchanged.
|
|
1188
1244
|
* - **Special behaviors:**
|
|
1189
1245
|
* - `NaN` ➔ `"NaN"` only in `"primitives"` or `"all"` mode.
|
|
1190
1246
|
* - `Date` ➔ ISO string only in `"all"` mode.
|
|
1247
|
+
* - ***Primitives Boxed*** (`new Number`, `new String`, `new Boolean`):
|
|
1248
|
+
* - For `new String` we convert everything to string (behavior JS of new String):
|
|
1249
|
+
* - `new String("hi")` ➔ `.valueOf()` ➔ `"hi"`.
|
|
1250
|
+
* - `new String(true)` ➔ `.valueOf()` ➔ `"true"`.
|
|
1251
|
+
* - For `new Boolean` we convert to boolean (behavior JS of new Boolean) then convert to string:
|
|
1252
|
+
* - `new Boolean(true)` ➔ `.valueOf()` ➔ `true` ➔ `true.toString()` ➔ `"true"`.
|
|
1253
|
+
* - Special behavior JS of new Boolean, return `false` **(convert to string: `"false"`)**
|
|
1254
|
+
* for `false`, (`0` / `-0`), `""` (empty-string), `null`, `undefined`, `NaN`, otherwise
|
|
1255
|
+
* `true` **(convert to string: `"true"`)**.
|
|
1256
|
+
* - For `new Number`:
|
|
1257
|
+
* - `new Number(42)` ➔ `.valueOf()` ➔ `42` ➔ `42.toString()` ➔ `"42"`.
|
|
1258
|
+
* - `new Number(NaN)` ➔ `.valueOf()` ➔ `NaN` ➔ `NaN.toString()` ➔ `"NaN"`.
|
|
1259
|
+
* - `new Number(null)` ➔ `.valueOf()` ➔ `0` (`null` is `0` behavior JS of new Number) ➔ `0.toString()` ➔ `"0"`.
|
|
1260
|
+
* - `new Number(undefined)` ➔ `.valueOf()` ➔ `NaN` ➔ `NaN.toString()` ➔ `"NaN"`.
|
|
1261
|
+
* - `new Number(Infinity)` ➔ `Infinity` ➔ `Infinity` ➔ `Infinity.toString()` ➔ `"Infinity"`.
|
|
1262
|
+
* - `new Number(-Infinity)` ➔ `-Infinity` ➔ `-Infinity` ➔ `-Infinity.toString()` ➔ `"-Infinity"`.
|
|
1191
1263
|
* - `RegExp` ➔ Source string (e.g. `/abc/i`) only in `"all"` mode.
|
|
1192
1264
|
* - `Symbol` ➔ `Symbol(description)` string only in `"all"` mode.
|
|
1193
1265
|
* - `Map` ➔ Array of [key, value] pairs with keys/values stringified deeply (only in `"all"` mode).
|
|
@@ -1206,6 +1278,12 @@ declare const safeStableStringify:(value:unknown,options?:SafeStableStringifyOpt
|
|
|
1206
1278
|
* // ➔ "null"
|
|
1207
1279
|
* toStringDeepForce(Symbol("x"), "all");
|
|
1208
1280
|
* // ➔ "Symbol(x)"
|
|
1281
|
+
* toStringDeepForce(new String("hi"), "all");
|
|
1282
|
+
* // ➔ "hi"
|
|
1283
|
+
* toStringDeepForce(new Number(42), "all");
|
|
1284
|
+
* // ➔ "42"
|
|
1285
|
+
* toStringDeepForce(new Boolean(true), "all");
|
|
1286
|
+
* // ➔ "true"
|
|
1209
1287
|
* toStringDeepForce({ a: 1, b: [2, NaN] }, "primitives");
|
|
1210
1288
|
* // ➔ { a: "1", b: ["2", "NaN"] }
|
|
1211
1289
|
* toStringDeepForce(new Date("2025-01-01"), "all");
|
|
@@ -1227,7 +1305,7 @@ declare const safeStableStringify:(value:unknown,options?:SafeStableStringifyOpt
|
|
|
1227
1305
|
* toStringDeepForce([1, "a", { b: 2 }], false);
|
|
1228
1306
|
* // ➔ [1, "a", { b: 2 }]
|
|
1229
1307
|
*/
|
|
1230
|
-
declare function toStringDeepForce(value:unknown,forceToString:false|"stringOrNumber"|"primitives"|"all"):
|
|
1308
|
+
declare function toStringDeepForce<T>(value:unknown,forceToString:false|"stringOrNumber"|"primitives"|"all"):T;
|
|
1231
1309
|
/** ----------------------------------------------------------
|
|
1232
1310
|
* * Normalize leaked `never[]` into literal empty array `[]`.
|
|
1233
1311
|
* ----------------------------------------------------------
|
|
@@ -1295,24 +1373,28 @@ removeEmptyArrays?:RemoveEmptyArrays;};
|
|
|
1295
1373
|
* - Converts `Buffer`, `TypedArray`, `Set`, `Map`, and `arrays` recursively to `arrays of numbers`.
|
|
1296
1374
|
* - Converts boxed primitives box into their primitive equivalents then convert to number:
|
|
1297
1375
|
* - For `new String` we convert everything to number (behavior JS of new String):
|
|
1298
|
-
* - `new String(123)` ➔ `Number("123"
|
|
1299
|
-
* - `new String("123")` ➔ `Number("123"
|
|
1300
|
-
* -
|
|
1301
|
-
*
|
|
1376
|
+
* - `new String(123)` ➔ `.valueOf()` ➔ `"123"` ➔ `Number("123")` ➔ `123`.
|
|
1377
|
+
* - `new String("123")` ➔ `.valueOf()` ➔ `"123"` ➔ `Number("123")` ➔ `123`.
|
|
1378
|
+
* - `new String(true)` ➔ `.valueOf()` ➔ `"true"` ➔ `Number(true)` ➔ `1`.
|
|
1379
|
+
* - `new String(false)` ➔ `.valueOf()` ➔ `"false"` ➔ `Number(false)` ➔ `0`.
|
|
1380
|
+
* - If result from `valueOf()` is `NaN` or `Infinity` ***(will removing)***:
|
|
1381
|
+
* - `new String("hi")` ➔ `.valueOf()` ➔ `"hi"` ➔ `Number("hi")` ➔ `NaN` ***(remove)***.
|
|
1382
|
+
* - `new String(()=>{})` ➔ `.valueOf()` ➔ `"()=>{}"` ➔ `Number("()=>{}")` ➔ `NaN` ***(remove)***.
|
|
1302
1383
|
* - For `new Boolean` we convert to boolean (behavior JS of new Boolean) then convert to number:
|
|
1303
|
-
* - `new Boolean(true)` ➔ `Number(true
|
|
1304
|
-
* - `new Boolean(false)` ➔ `Number(false
|
|
1384
|
+
* - `new Boolean(true)` ➔ `.valueOf()` ➔ `true` ➔ `Number(true)` ➔ `1`.
|
|
1385
|
+
* - `new Boolean(false)` ➔ `.valueOf()` ➔ `false` ➔ `Number(false)` ➔ `0`.
|
|
1305
1386
|
* - Special behavior JS of new Boolean, return `false` **(convert to number: `0`)**
|
|
1306
1387
|
* for `false`, (`0` / `-0`), `""` (empty-string),
|
|
1307
1388
|
* `null`, `undefined`, `NaN`, otherwise `true` **(convert to number: `1`)**.
|
|
1308
1389
|
* - For `new Number`:
|
|
1309
|
-
* - `new Number(42)` ➔
|
|
1310
|
-
* - `new Number(
|
|
1311
|
-
* - `new Number(
|
|
1312
|
-
*
|
|
1313
|
-
*
|
|
1314
|
-
*
|
|
1315
|
-
*
|
|
1390
|
+
* - `new Number(42)` ➔ `.valueOf()` ➔ `42`.
|
|
1391
|
+
* - `new Number("42")` ➔ `.valueOf()` ➔ `42`.
|
|
1392
|
+
* - `new Number(null)` ➔ `.valueOf()` ➔ `0` (`null` is `0` behavior JS of new Number).
|
|
1393
|
+
* - If result from `valueOf()` is `NaN` or `Infinity` ***(will removing)***:
|
|
1394
|
+
* - `new Number(NaN)` ➔ `.valueOf()` ➔ `NaN` ***(remove)***.
|
|
1395
|
+
* - `new Number(undefined)` ➔ `.valueOf()` ➔ `NaN` ***(remove)***.
|
|
1396
|
+
* - `new Number(Infinity)` ➔ `.valueOf()` ➔ `Infinity` ***(remove)***.
|
|
1397
|
+
* - `new Number(-Infinity)` ➔ `.valueOf()` ➔ `-Infinity` ***(remove)***.
|
|
1316
1398
|
* - Recursively processes `nested objects`, `arrays`, `buffers`, `sets`, `maps`, and `typed arrays`.
|
|
1317
1399
|
* - Removes `empty-string`, `non-numeric strings`.
|
|
1318
1400
|
* - Removes `null`, `undefined`, `NaN`, `Infinity`, `-Infinity`.
|
|
@@ -1411,20 +1493,23 @@ removeEmptyArrays?:RemoveEmptyArrays;};
|
|
|
1411
1493
|
* - Converts `Buffer`, `TypedArray`, `Set`, `Map`, and `arrays` recursively to `arrays of strings`.
|
|
1412
1494
|
* - Converts boxed primitives box into their primitive equivalents then convert to string:
|
|
1413
1495
|
* - For `new String` we convert everything to string (behavior JS of new String):
|
|
1414
|
-
* - `new String("hi")` ➔
|
|
1496
|
+
* - `new String("hi")` ➔ `.valueOf()` ➔ `"hi"`.
|
|
1497
|
+
* - `new String(true)` ➔ `.valueOf()` ➔ `"true"`.
|
|
1415
1498
|
* - For `new Boolean` we convert to boolean (behavior JS of new Boolean) then convert to string:
|
|
1416
|
-
* - `new Boolean(true)` ➔
|
|
1499
|
+
* - `new Boolean(true)` ➔ `.valueOf()` ➔ `true` ➔ `true.toString()` ➔ `"true"`.
|
|
1417
1500
|
* - Special behavior JS of new Boolean, return `false` **(convert to string: `"false"`)**
|
|
1418
|
-
* for `false`, (`0` / `-0`), `""` (empty-string),
|
|
1419
|
-
* `
|
|
1501
|
+
* for `false`, (`0` / `-0`), `""` (empty-string), `null`, `undefined`, `NaN`, otherwise
|
|
1502
|
+
* `true` **(convert to string: `"true"`)**.
|
|
1420
1503
|
* - For `new Number`:
|
|
1421
|
-
* - `new Number(42)` ➔
|
|
1422
|
-
* - `new Number(
|
|
1423
|
-
* - `new Number(
|
|
1424
|
-
*
|
|
1425
|
-
*
|
|
1426
|
-
*
|
|
1427
|
-
*
|
|
1504
|
+
* - `new Number(42)` ➔ `.valueOf()` ➔ `42` ➔ `42.toString()` ➔ `"42"`.
|
|
1505
|
+
* - `new Number("42")` ➔ `.valueOf()` ➔ `42` ➔ `42.toString()` ➔ `"42"`.
|
|
1506
|
+
* - `new Number(null)` ➔ `.valueOf()` ➔ `0` (`null` is `0` behavior JS of new Number) ➔ `0.toString()` ➔ `"0"`.
|
|
1507
|
+
* - If result from `valueOf()` is `NaN` or `Infinity` ***(will removing)***:
|
|
1508
|
+
* - `new Number(NaN)` ➔ `.valueOf()` ➔ `NaN` ***(remove)***.
|
|
1509
|
+
* - `new Number("abc")` ➔ `.valueOf()` ➔ `NaN` ***(remove)***.
|
|
1510
|
+
* - `new Number(undefined)` ➔ `.valueOf()` ➔ `NaN` ***(remove)***.
|
|
1511
|
+
* - `new Number(Infinity)` ➔ `.valueOf()` ➔ `Infinity` ***(remove)***.
|
|
1512
|
+
* - `new Number(-Infinity)` ➔ `.valueOf()` ➔ `-Infinity` ***(remove)***.
|
|
1428
1513
|
* - Recursively processes `nested objects`, `arrays`, `buffers`, `sets`, `maps`, and `typed arrays`.
|
|
1429
1514
|
* - Removes `null`, `undefined`, `NaN`, `Infinity`, `-Infinity`.
|
|
1430
1515
|
* - Removes `unsupported` types like `functions`, `symbols`, and `BigInt`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{convertType,removeObjectPaths,toBooleanContent,toBooleanContentDeep,toBooleanExplicit,toBooleanLoose,toNumberArrayUnRecursive,toNumberDeep,toStringDeep}from"../chunk-
|
|
1
|
+
export{convertType,removeObjectPaths,toBooleanContent,toBooleanContentDeep,toBooleanExplicit,toBooleanLoose,toNumberArrayUnRecursive,toNumberDeep,toStringDeep}from"../chunk-WFPQO7KN.js";export{cleanParsedData,extractDigits,parseCustomDate,safeJsonParse}from"../chunk-G2B35D5W.js";import"../chunk-NXWPZDDX.js";export{dedupeArray,filterNilArray,toStringArrayUnRecursive,toStringDeepForce}from"../chunk-Y44ZD3GG.js";import"../chunk-X4PD3I5U.js";import"../chunk-GRSCNTOK.js";import"../chunk-ZXIWDFEQ.js";export{parseCurrencyString}from"../chunk-VEYMQ3UA.js";import"../chunk-DUK2K4FB.js";import"../chunk-FIAAX3UE.js";import"../chunk-TSLYDPBJ.js";import"../chunk-W2W3L2M5.js";export{safeStableStringify}from"../chunk-L73TOPX5.js";import"../chunk-QNKGP5DY.js";import"../chunk-2UIRWYE3.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../chunk-
|
|
1
|
+
"use strict";var e=require("../chunk-5Y52H4VH.cjs");require("../chunk-7BXIZM57.cjs"),require("../chunk-YZR5OGJA.cjs"),require("../chunk-XC2PYCT4.cjs"),require("../chunk-EBMHQW7X.cjs"),require("../chunk-Y4O5KZF6.cjs"),require("../chunk-DVMHRLKP.cjs"),require("../chunk-DQFU3KLE.cjs"),require("../chunk-UDA26MCU.cjs"),require("../chunk-INUFZJLX.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{censorEmail,chunkString,formatCurrency,formatDateFns,formatDateIntl,formatDateTime,formatNumber,formatPhoneNumber,getGMTOffset,truncateString}from"../chunk-
|
|
1
|
+
export{censorEmail,chunkString,formatCurrency,formatDateFns,formatDateIntl,formatDateTime,formatNumber,formatPhoneNumber,getGMTOffset,truncateString}from"../chunk-RF34NETZ.js";import"../chunk-VEYMQ3UA.js";import"../chunk-DUK2K4FB.js";import"../chunk-Q6NHYWVX.js";import"../chunk-TSLYDPBJ.js";import"../chunk-W2W3L2M5.js";import"../chunk-WVSPXFTY.js";import"../chunk-L73TOPX5.js";import"../chunk-QNKGP5DY.js";import"../chunk-2UIRWYE3.js";
|
package/dist/generator/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../chunk-
|
|
1
|
+
"use strict";var e=require("../chunk-7H7IODCQ.cjs"),r=require("../chunk-5C2SMIGX.cjs");require("../chunk-DVMHRLKP.cjs"),require("../chunk-DQFU3KLE.cjs"),require("../chunk-UDA26MCU.cjs"),require("../chunk-INUFZJLX.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{getRandomItem,randomInt,randomIntByLength,randomStr}from"../chunk-
|
|
1
|
+
export{getRandomItem,randomInt,randomIntByLength,randomStr}from"../chunk-IRBPXCMR.js";export{noop}from"../chunk-FIAAX3UE.js";import"../chunk-WVSPXFTY.js";import"../chunk-L73TOPX5.js";import"../chunk-QNKGP5DY.js";import"../chunk-2UIRWYE3.js";
|
package/dist/next/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../chunk-
|
|
1
|
+
"use strict";var e=require("../chunk-WZE3XLKY.cjs"),r=require("../chunk-XC2PYCT4.cjs"),t=require("../chunk-EBMHQW7X.cjs"),n=require("../chunk-Y4O5KZF6.cjs");require("../chunk-DVMHRLKP.cjs");var s=require("../chunk-DQFU3KLE.cjs");require("../chunk-UDA26MCU.cjs");var i=require("../chunk-INUFZJLX.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 +1 @@
|
|
|
1
|
-
import{normalizePathname as e,formatEnvPort as r}from"../chunk-
|
|
1
|
+
import{normalizePathname as e,formatEnvPort as r}from"../chunk-SAW7XS4K.js";import{removeSpaces as t}from"../chunk-Q6NHYWVX.js";import{isEmptyString as o}from"../chunk-TSLYDPBJ.js";import{assertIsString as n}from"../chunk-W2W3L2M5.js";import"../chunk-WVSPXFTY.js";import{safeStableStringify as i}from"../chunk-L73TOPX5.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-2UIRWYE3.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)}},w=()=>{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,w as getBaseUrl,v as getBeApiUrl};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../chunk-
|
|
1
|
+
"use strict";var e=require("../chunk-XVHPXRUH.cjs");require("../chunk-ZR7GTJQX.cjs"),require("../chunk-4VCRMMAH.cjs"),require("../chunk-YT3MSZKK.cjs"),require("../chunk-5C2SMIGX.cjs"),require("../chunk-DQFU3KLE.cjs"),require("../chunk-UDA26MCU.cjs"),require("../chunk-INUFZJLX.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{findDuplicates,omitKeys,omitKeysDeep}from"../chunk-
|
|
1
|
+
export{findDuplicates,omitKeys,omitKeysDeep}from"../chunk-QVRTHAM2.js";import"../chunk-G2B35D5W.js";import"../chunk-GRSCNTOK.js";import"../chunk-ZXIWDFEQ.js";import"../chunk-FIAAX3UE.js";import"../chunk-L73TOPX5.js";import"../chunk-QNKGP5DY.js";import"../chunk-2UIRWYE3.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../chunk-
|
|
1
|
+
"use strict";var e=require("../chunk-I6NOFGAK.cjs"),r=require("../chunk-KHO2SBNA.cjs"),t=require("../chunk-7YVINA3U.cjs"),n=require("../chunk-EXWCTDC3.cjs"),i=require("../chunk-4VCRMMAH.cjs");require("../chunk-7BXIZM57.cjs");var u=require("../chunk-YZR5OGJA.cjs"),o=require("../chunk-EBMHQW7X.cjs");require("../chunk-Y4O5KZF6.cjs");var s=require("../chunk-DVMHRLKP.cjs"),c=require("../chunk-DQFU3KLE.cjs"),p=require("../chunk-UDA26MCU.cjs"),b=require("../chunk-INUFZJLX.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 b.getPreciseType}}),Object.defineProperty(exports,"hasOwnProp",{enumerable:!0,get:function(){return b.hasOwnProp}}),Object.defineProperty(exports,"isArray",{enumerable:!0,get:function(){return b.isArray}}),Object.defineProperty(exports,"isBoolean",{enumerable:!0,get:function(){return b.isBoolean}}),Object.defineProperty(exports,"isBooleanObject",{enumerable:!0,get:function(){return b.isBooleanObject}}),Object.defineProperty(exports,"isBuffer",{enumerable:!0,get:function(){return b.isBuffer}}),Object.defineProperty(exports,"isError",{enumerable:!0,get:function(){return b.isError}}),Object.defineProperty(exports,"isFunction",{enumerable:!0,get:function(){return b.isFunction}}),Object.defineProperty(exports,"isInfinityNumber",{enumerable:!0,get:function(){return b.isInfinityNumber}}),Object.defineProperty(exports,"isNaN",{enumerable:!0,get:function(){return b.isNaN}}),Object.defineProperty(exports,"isNil",{enumerable:!0,get:function(){return b.isNil}}),Object.defineProperty(exports,"isNonEmptyArray",{enumerable:!0,get:function(){return b.isNonEmptyArray}}),Object.defineProperty(exports,"isNonEmptyString",{enumerable:!0,get:function(){return b.isNonEmptyString}}),Object.defineProperty(exports,"isNull",{enumerable:!0,get:function(){return b.isNull}}),Object.defineProperty(exports,"isNumber",{enumerable:!0,get:function(){return b.isNumber}}),Object.defineProperty(exports,"isNumberObject",{enumerable:!0,get:function(){return b.isNumberObject}}),Object.defineProperty(exports,"isObject",{enumerable:!0,get:function(){return b.isObject}}),Object.defineProperty(exports,"isObjectOrArray",{enumerable:!0,get:function(){return b.isObjectOrArray}}),Object.defineProperty(exports,"isPlainObject",{enumerable:!0,get:function(){return b.isPlainObject}}),Object.defineProperty(exports,"isSet",{enumerable:!0,get:function(){return b.isSet}}),Object.defineProperty(exports,"isString",{enumerable:!0,get:function(){return b.isString}}),Object.defineProperty(exports,"isStringObject",{enumerable:!0,get:function(){return b.isStringObject}}),Object.defineProperty(exports,"isSymbol",{enumerable:!0,get:function(){return b.isSymbol}}),Object.defineProperty(exports,"isUndefined",{enumerable:!0,get:function(){return b.isUndefined}});
|
package/dist/predicates/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-XSFPU3YT.js";export{isURL}from"../chunk-ONZFBJVW.js";export{isNonEmptyValue,isTypedArray}from"../chunk-NXWPZDDX.js";export{isEmptyValue}from"../chunk-X4PD3I5U.js";export{isArrayBuffer,isEmptyArray,isEmptyObject,isEqual,isRegExp}from"../chunk-GRSCNTOK.js";import"../chunk-VEYMQ3UA.js";export{isFinite}from"../chunk-DUK2K4FB.js";export{isEmptyString}from"../chunk-TSLYDPBJ.js";import"../chunk-W2W3L2M5.js";export{isInteger}from"../chunk-WVSPXFTY.js";export{isDate,isMap}from"../chunk-L73TOPX5.js";export{isBigInt}from"../chunk-QNKGP5DY.js";export{getPreciseType,hasOwnProp,isArray,isBoolean,isBooleanObject,isBuffer,isError,isFunction,isInfinityNumber,isNaN,isNil,isNonEmptyArray,isNonEmptyString,isNull,isNumber,isNumberObject,isObject,isObjectOrArray,isPlainObject,isSet,isString,isStringObject,isSymbol,isUndefined}from"../chunk-2UIRWYE3.js";
|
package/dist/promise/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../chunk-
|
|
1
|
+
"use strict";var e=require("../chunk-MHXVVDRQ.cjs");require("../chunk-DVMHRLKP.cjs"),require("../chunk-DQFU3KLE.cjs"),require("../chunk-UDA26MCU.cjs"),require("../chunk-INUFZJLX.cjs"),Object.defineProperty(exports,"delay",{enumerable:!0,get:function(){return e.delay}});
|
package/dist/promise/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{delay}from"../chunk-
|
|
1
|
+
export{delay}from"../chunk-URGK5UQT.js";import"../chunk-WVSPXFTY.js";import"../chunk-L73TOPX5.js";import"../chunk-QNKGP5DY.js";import"../chunk-2UIRWYE3.js";
|