@rzl-zone/utils-js 3.14.0-beta.0 → 3.14.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/dist/.references/index.d.cts +1 -1
- package/dist/.references/index.d.ts +1 -1
- package/dist/{AbortError-DVT8lAKn.js → AbortError-CgE6QNOR.js} +3 -3
- package/dist/{AbortError-DVT8lAKn.js.map → AbortError-CgE6QNOR.js.map} +1 -1
- package/dist/{AbortError-DK6kpzbu.cjs → AbortError-D54txsmn.cjs} +3 -3
- package/dist/{AbortError-DK6kpzbu.cjs.map → AbortError-D54txsmn.cjs.map} +1 -1
- package/dist/{assertIsArray-CG7L7vlt.js → assertIsArray-DmlqnTiq.js} +3 -3
- package/dist/{assertIsArray-CG7L7vlt.js.map → assertIsArray-DmlqnTiq.js.map} +1 -1
- package/dist/{assertIsArray-CtCRD-_G.cjs → assertIsArray-Xx-zlo6O.cjs} +3 -3
- package/dist/{assertIsArray-CtCRD-_G.cjs.map → assertIsArray-Xx-zlo6O.cjs.map} +1 -1
- package/dist/{assertIsPlainObject-j9bDqNLo.js → assertIsPlainObject-CIzDchLs.js} +3 -3
- package/dist/{assertIsPlainObject-j9bDqNLo.js.map → assertIsPlainObject-CIzDchLs.js.map} +1 -1
- package/dist/{assertIsPlainObject-DPZLj-Ho.cjs → assertIsPlainObject-DYoxHcW5.cjs} +3 -3
- package/dist/{assertIsPlainObject-DPZLj-Ho.cjs.map → assertIsPlainObject-DYoxHcW5.cjs.map} +1 -1
- package/dist/{assertIsString-CjE9kbQ_.cjs → assertIsString-CuPbh3FB.cjs} +3 -3
- package/dist/{assertIsString-CjE9kbQ_.cjs.map → assertIsString-CuPbh3FB.cjs.map} +1 -1
- package/dist/{assertIsString-CHIwE12y.js → assertIsString-sgY3ml5f.js} +3 -3
- package/dist/{assertIsString-CHIwE12y.js.map → assertIsString-sgY3ml5f.js.map} +1 -1
- package/dist/assertions/index.cjs +7 -7
- package/dist/assertions/index.d.cts +2 -2
- package/dist/assertions/index.d.ts +2 -2
- package/dist/assertions/index.js +7 -7
- package/dist/conversions/index.cjs +6 -6
- package/dist/conversions/index.d.cts +2 -2
- package/dist/conversions/index.d.ts +2 -2
- package/dist/conversions/index.js +6 -6
- package/dist/{conversions-Ben5p5Ts.js → conversions-BkxqYXxy.js} +13 -13
- package/dist/{conversions-Ben5p5Ts.js.map → conversions-BkxqYXxy.js.map} +1 -1
- package/dist/{conversions-BFz6MKaV.cjs → conversions-UdMB90xR.cjs} +13 -13
- package/dist/{conversions-BFz6MKaV.cjs.map → conversions-UdMB90xR.cjs.map} +1 -1
- package/dist/errors/index.cjs +2 -2
- package/dist/errors/index.d.cts +1 -1
- package/dist/errors/index.d.ts +1 -1
- package/dist/errors/index.js +2 -2
- package/dist/events/index.cjs +5 -5
- package/dist/events/index.d.cts +1 -1
- package/dist/events/index.d.ts +1 -1
- package/dist/events/index.js +5 -5
- package/dist/{formatter-ekJQF_bA-xLD9mGk4.js → formatter-BFgV1HhV-BtIJs2H2.js} +3 -3
- package/dist/formatter-BFgV1HhV-BtIJs2H2.js.map +1 -0
- package/dist/{formatter-ekJQF_bA-BepnCBkQ.cjs → formatter-BFgV1HhV-DyybWSuj.cjs} +3 -3
- package/dist/formatter-BFgV1HhV-DyybWSuj.cjs.map +1 -0
- package/dist/formatters/index.cjs +2 -2
- package/dist/formatters/index.d.cts +2 -2
- package/dist/formatters/index.d.ts +2 -2
- package/dist/formatters/index.js +2 -2
- package/dist/{formatters-zd0Gs4Cs.cjs → formatters-Cjng28nY.cjs} +12 -12
- package/dist/{formatters-zd0Gs4Cs.cjs.map → formatters-Cjng28nY.cjs.map} +1 -1
- package/dist/{formatters-BAbGsnYA.js → formatters-Dqccnt-p.js} +12 -12
- package/dist/{formatters-BAbGsnYA.js.map → formatters-Dqccnt-p.js.map} +1 -1
- package/dist/generators/index.cjs +8 -8
- package/dist/generators/index.d.cts +2 -2
- package/dist/generators/index.d.ts +2 -2
- package/dist/generators/index.js +7 -7
- package/dist/{hasOwnProp-D9Tpgokd.cjs → hasOwnProp-DTWYqy7S.cjs} +5 -5
- package/dist/{hasOwnProp-D9Tpgokd.cjs.map → hasOwnProp-DTWYqy7S.cjs.map} +1 -1
- package/dist/{hasOwnProp-CVIhlD1i.js → hasOwnProp-yVVsxPin.js} +5 -5
- package/dist/{hasOwnProp-CVIhlD1i.js.map → hasOwnProp-yVVsxPin.js.map} +1 -1
- package/dist/{index-BVovC-yK.d.cts → index-9Ql1W3gt.d.cts} +3 -3
- package/dist/{index-9JsU_wMu.d.ts → index-BD0J8wkE.d.cts} +3 -3
- package/dist/{index-CjpbuJF4.d.ts → index-BcoUy2oV.d.ts} +2 -2
- package/dist/{index-hOqBIL7F.d.ts → index-Bpk3YwGW.d.ts} +3 -3
- package/dist/{index-Dm4a___O.d.ts → index-CTMG8cZV.d.ts} +2 -2
- package/dist/{index-C1X6ha9s.d.cts → index-DUBCXPy4.d.cts} +2 -2
- package/dist/{index-Dwduk7ez.d.cts → index-DhUTzQ_o.d.ts} +3 -3
- package/dist/{index-jyuOZMX7.d.ts → index-DqYMKSmd.d.ts} +3 -3
- package/dist/{index-DlyDmXUo.d.ts → index-JfwSupYB.d.ts} +2 -2
- package/dist/{index-BP3sUrAx.d.ts → index-O2q2f-pu.d.cts} +2 -2
- package/dist/{index-I5V6RbZM.d.cts → index-VgNZ6ndx.d.cts} +3 -3
- package/dist/{index-lI0b7iUz.d.cts → index-k_rjVRjU.d.ts} +2 -2
- package/dist/{index-DZHiYYR7.d.ts → index-or0oP9i2.d.cts} +2 -2
- package/dist/{index-DZHiYYR7.d.cts → index-or0oP9i2.d.ts} +2 -2
- package/dist/{index-CcPQZ41G.d.cts → index-u4-Euidh.d.cts} +2 -2
- package/dist/{index-CssrQyHh.d.cts → index-zAqCZxGr.d.cts} +2 -2
- package/dist/{isBigInt-Cez32M69.js → isBigInt-DdFRCpeE.js} +2 -2
- package/dist/{isBigInt-Cez32M69.js.map → isBigInt-DdFRCpeE.js.map} +1 -1
- package/dist/{isBigInt-YgpNKTbA.cjs → isBigInt-LkCpVJ3E.cjs} +2 -2
- package/dist/{isBigInt-YgpNKTbA.cjs.map → isBigInt-LkCpVJ3E.cjs.map} +1 -1
- package/dist/{isEmptyString-C9QLWjx2.js → isEmptyString-B6ubItgT.js} +3 -3
- package/dist/{isEmptyString-C9QLWjx2.js.map → isEmptyString-B6ubItgT.js.map} +1 -1
- package/dist/{isEmptyString-O4TFe1Ao.cjs → isEmptyString-Csc5Sf_W.cjs} +3 -3
- package/dist/{isEmptyString-O4TFe1Ao.cjs.map → isEmptyString-Csc5Sf_W.cjs.map} +1 -1
- package/dist/{isEmptyValue-kCjnLjbN.js → isEmptyValue-h97JT4pD.js} +4 -4
- package/dist/{isEmptyValue-kCjnLjbN.js.map → isEmptyValue-h97JT4pD.js.map} +1 -1
- package/dist/{isEmptyValue-CFExALXZ.cjs → isEmptyValue-qNOhUBFE.cjs} +4 -4
- package/dist/{isEmptyValue-CFExALXZ.cjs.map → isEmptyValue-qNOhUBFE.cjs.map} +1 -1
- package/dist/{isFinite-B_hHbDpa.cjs → isFinite-CKeuVXbD.cjs} +3 -3
- package/dist/{isFinite-B_hHbDpa.cjs.map → isFinite-CKeuVXbD.cjs.map} +1 -1
- package/dist/{isFinite-ZvNhyHlF.js → isFinite-CzYYv-mQ.js} +3 -3
- package/dist/{isFinite-ZvNhyHlF.js.map → isFinite-CzYYv-mQ.js.map} +1 -1
- package/dist/{isInteger-aZgzTTZG.js → isInteger-BtA3flbk.js} +2 -2
- package/dist/{isInteger-aZgzTTZG.js.map → isInteger-BtA3flbk.js.map} +1 -1
- package/dist/{isInteger-dnc6W63Z.cjs → isInteger-iTok9NaH.cjs} +2 -2
- package/dist/{isInteger-dnc6W63Z.cjs.map → isInteger-iTok9NaH.cjs.map} +1 -1
- package/dist/{isNumber-BCWD4dW0.js → isNumber-C1mOuBuA.js} +3 -3
- package/dist/{isNumber-BCWD4dW0.js.map → isNumber-C1mOuBuA.js.map} +1 -1
- package/dist/{isNumber-BkzwAe50.cjs → isNumber-CM1vdNcW.cjs} +3 -3
- package/dist/{isNumber-BkzwAe50.cjs.map → isNumber-CM1vdNcW.cjs.map} +1 -1
- package/dist/{isPlainObject-CJvRG4Je.d.ts → isPlainObject-DQoM4DGQ.d.ts} +2 -2
- package/dist/{isPlainObject-CAe_ElKO.d.cts → isPlainObject-Y__iykWN.d.cts} +2 -2
- package/dist/{isServer-DhFaedeT.cjs → isServer-CWlp2R2N.cjs} +2 -2
- package/dist/{isServer-DhFaedeT.cjs.map → isServer-CWlp2R2N.cjs.map} +1 -1
- package/dist/{isServer-CQzrX5e0.js → isServer-Drgyboev.js} +2 -2
- package/dist/{isServer-CQzrX5e0.js.map → isServer-Drgyboev.js.map} +1 -1
- package/dist/{isTypedArray-DxsPKrLh.js → isTypedArray-BY8CIj3k.js} +5 -5
- package/dist/{isTypedArray-DxsPKrLh.js.map → isTypedArray-BY8CIj3k.js.map} +1 -1
- package/dist/{isTypedArray-DjADSu8q.cjs → isTypedArray-DspIjxdk.cjs} +5 -5
- package/dist/{isTypedArray-DjADSu8q.cjs.map → isTypedArray-DspIjxdk.cjs.map} +1 -1
- package/dist/{isValidDomain-CDtNOhMc.js → isValidDomain-BPfJEkFk.js} +7 -7
- package/dist/{isValidDomain-CDtNOhMc.js.map → isValidDomain-BPfJEkFk.js.map} +1 -1
- package/dist/{isValidDomain-D_x7uNIu.cjs → isValidDomain-DUUCoKtD.cjs} +10 -10
- package/dist/{isValidDomain-D_x7uNIu.cjs.map → isValidDomain-DUUCoKtD.cjs.map} +1 -1
- package/dist/{logger-CUacYy3D.cjs → logger-BXg2xufj.cjs} +2 -2
- package/dist/{logger-CUacYy3D.cjs.map → logger-BXg2xufj.cjs.map} +1 -1
- package/dist/{logger-CLWnKRKE.js → logger-Wxl_Krg6.js} +2 -2
- package/dist/{logger-CLWnKRKE.js.map → logger-Wxl_Krg6.js.map} +1 -1
- package/dist/{noop-CjEbNsJL.cjs → noop-ByxeOveJ.cjs} +2 -2
- package/dist/{noop-CjEbNsJL.cjs.map → noop-ByxeOveJ.cjs.map} +1 -1
- package/dist/{noop-qxrcogt5.js → noop-D8aGbjbP.js} +2 -2
- package/dist/{noop-qxrcogt5.js.map → noop-D8aGbjbP.js.map} +1 -1
- package/dist/{normalizeSpaces-D0_Z4qnO.cjs → normalizeSpaces-CQ7tZLNG.cjs} +3 -3
- package/dist/{normalizeSpaces-D0_Z4qnO.cjs.map → normalizeSpaces-CQ7tZLNG.cjs.map} +1 -1
- package/dist/{normalizeSpaces-DAsxzBEQ.js → normalizeSpaces-DNUOxp_8.js} +3 -3
- package/dist/{normalizeSpaces-DAsxzBEQ.js.map → normalizeSpaces-DNUOxp_8.js.map} +1 -1
- package/dist/operations/index.cjs +8 -8
- package/dist/operations/index.d.cts +2 -2
- package/dist/operations/index.d.ts +2 -2
- package/dist/operations/index.js +8 -8
- package/dist/parsers/index.cjs +2 -2
- package/dist/parsers/index.d.cts +1 -1
- package/dist/parsers/index.d.ts +1 -1
- package/dist/parsers/index.js +2 -2
- package/dist/{parsers-i8WEeMJl.cjs → parsers-CJ5tHtqF.cjs} +4 -4
- package/dist/{parsers-i8WEeMJl.cjs.map → parsers-CJ5tHtqF.cjs.map} +1 -1
- package/dist/{parsers-BBAE_xVM.js → parsers-DMlqliPw.js} +4 -4
- package/dist/{parsers-BBAE_xVM.js.map → parsers-DMlqliPw.js.map} +1 -1
- package/dist/{parsing-DGjB8cwr.cjs → parsing-DB_S0WFz.cjs} +3 -3
- package/dist/{parsing-DGjB8cwr.cjs.map → parsing-DB_S0WFz.cjs.map} +1 -1
- package/dist/{parsing-D9tbKQ0v.js → parsing-DhIQhWpX.js} +3 -3
- package/dist/{parsing-D9tbKQ0v.js.map → parsing-DhIQhWpX.js.map} +1 -1
- package/dist/predicates/index.cjs +14 -14
- package/dist/predicates/index.d.cts +3 -3
- package/dist/predicates/index.d.ts +3 -3
- package/dist/predicates/index.js +14 -14
- package/dist/{predicates-C0dova7l.js → predicates-BzYMbNrZ.js} +11 -11
- package/dist/{predicates-C0dova7l.js.map → predicates-BzYMbNrZ.js.map} +1 -1
- package/dist/{predicates-Dd7To7B4.cjs → predicates-DDW3etqF.cjs} +11 -11
- package/dist/{predicates-Dd7To7B4.cjs.map → predicates-DDW3etqF.cjs.map} +1 -1
- package/dist/promises/index.cjs +5 -5
- package/dist/promises/index.d.cts +2 -2
- package/dist/promises/index.d.ts +2 -2
- package/dist/promises/index.js +5 -5
- package/dist/{punyCode-DHTLhGdD.cjs → punyCode-B_VPjG0d.cjs} +4 -4
- package/dist/{punyCode-DHTLhGdD.cjs.map → punyCode-B_VPjG0d.cjs.map} +1 -1
- package/dist/{punyCode-Deb1Mrkc.js → punyCode-DsuJbWCl.js} +4 -4
- package/dist/{punyCode-Deb1Mrkc.js.map → punyCode-DsuJbWCl.js.map} +1 -1
- package/dist/{removeSpaces-BPnsdRN0.js → removeSpaces-BF-T_1Yt.js} +3 -3
- package/dist/{removeSpaces-BPnsdRN0.js.map → removeSpaces-BF-T_1Yt.js.map} +1 -1
- package/dist/{removeSpaces-CN3pxBz_.cjs → removeSpaces-BJu-gKps.cjs} +3 -3
- package/dist/{removeSpaces-CN3pxBz_.cjs.map → removeSpaces-BJu-gKps.cjs.map} +1 -1
- package/dist/rzl-utils.global.js +1 -1
- package/dist/{safeJsonParse-D1FLVTEM.cjs → safeJsonParse-B5F8XtrZ.cjs} +7 -7
- package/dist/{safeJsonParse-D1FLVTEM.cjs.map → safeJsonParse-B5F8XtrZ.cjs.map} +1 -1
- package/dist/{safeJsonParse-DEVKNDSn.js → safeJsonParse-DYSkUnhM.js} +7 -7
- package/dist/{safeJsonParse-DEVKNDSn.js.map → safeJsonParse-DYSkUnhM.js.map} +1 -1
- package/dist/{safeStableStringify-DfwxmiWn.js → safeStableStringify-CDSYnLUz.js} +5 -5
- package/dist/{safeStableStringify-DfwxmiWn.js.map → safeStableStringify-CDSYnLUz.js.map} +1 -1
- package/dist/{safeStableStringify-C5HHKUdn.cjs → safeStableStringify-MuBiT-4B.cjs} +5 -5
- package/dist/{safeStableStringify-C5HHKUdn.cjs.map → safeStableStringify-MuBiT-4B.cjs.map} +1 -1
- package/dist/strings/index.cjs +6 -6
- package/dist/strings/index.d.cts +2 -2
- package/dist/strings/index.d.ts +2 -2
- package/dist/strings/index.js +6 -6
- package/dist/tailwind/index.cjs +2 -2
- package/dist/tailwind/index.d.cts +2 -2
- package/dist/tailwind/index.d.ts +2 -2
- package/dist/tailwind/index.js +2 -2
- package/dist/{tailwind-tJNnFPsF.js → tailwind-BhHULklj.js} +6 -6
- package/dist/{tailwind-tJNnFPsF.js.map → tailwind-BhHULklj.js.map} +1 -1
- package/dist/{tailwind-BG7B0cDs.cjs → tailwind-hx6TIFIL.cjs} +6 -6
- package/dist/{tailwind-BG7B0cDs.cjs.map → tailwind-hx6TIFIL.cjs.map} +1 -1
- package/dist/{toStringArrayUnRecursive-D0WbLIRz.js → toStringArrayUnRecursive-U-nkEIDs.js} +6 -6
- package/dist/{toStringArrayUnRecursive-D0WbLIRz.js.map → toStringArrayUnRecursive-U-nkEIDs.js.map} +1 -1
- package/dist/{toStringArrayUnRecursive-QLoaNX_-.cjs → toStringArrayUnRecursive-_lJEmBlf.cjs} +6 -6
- package/dist/{toStringArrayUnRecursive-QLoaNX_-.cjs.map → toStringArrayUnRecursive-_lJEmBlf.cjs.map} +1 -1
- package/dist/urls/index.cjs +3 -3
- package/dist/urls/index.d.cts +1 -1
- package/dist/urls/index.d.ts +1 -1
- package/dist/urls/index.js +3 -3
- package/dist/{urls-EoWslGgg.js → urls-BcGIFgfR.js} +14 -14
- package/dist/{urls-EoWslGgg.js.map → urls-BcGIFgfR.js.map} +1 -1
- package/dist/{urls-NCzPepe2.cjs → urls-DGvZsMSN.cjs} +15 -15
- package/dist/{urls-NCzPepe2.cjs.map → urls-DGvZsMSN.cjs.map} +1 -1
- package/package.json +4 -4
- package/dist/formatter-ekJQF_bA-BepnCBkQ.cjs.map +0 -1
- package/dist/formatter-ekJQF_bA-xLD9mGk4.js.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.14.0
|
|
5
|
+
* Version: `3.14.0`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
@@ -15,4 +15,4 @@ Object.defineProperty(exports, 'noop', {
|
|
|
15
15
|
return noop;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
//# sourceMappingURL=noop-
|
|
18
|
+
//# sourceMappingURL=noop-ByxeOveJ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"noop-
|
|
1
|
+
{"version":3,"file":"noop-ByxeOveJ.cjs","names":[],"sources":["../src/generators/utils/noop.ts"],"sourcesContent":["/** ------------------------------------------------------------------------------------\n * * ***Utility: `noop`.***\n * -------------------------------------------------------------------------------------\n * **A no-operation function that performs no action.**\n *\n * ---\n * @description\n * Commonly used as a **placeholder**, **default callback**, or **stub function**.\n *\n * ---\n * - **Behavior**:\n * - Does not return any meaningful value (`void`).\n * - Safely callable in any context without side effects.\n *\n * ---\n * @remarks\n * Although this function returns `void`, it implicitly results in `undefined`,\n * but the return value should never be relied upon.\n *\n * ---\n * @example\n * 1. #### **Basic usage** — does nothing and returns undefined implicitly:\n * ```\n * import { noop } from \"@rzl-zone/utils-js/generators\";\n *\n * noop();\n * // ➔ no effect (void)\n * ```\n * ---\n * 2. #### **Using with type-checking helpers:**\n * ```ts\n * import { noop } from \"@rzl-zone/utils-js/generators\";\n * import { isFunction, isUndefined } from \"@rzl-zone/utils-js/predicates\";\n *\n * isFunction(noop);\n * // ➔ true (`noop` is a function)\n * isUndefined(noop());\n * // ➔ true (calling `noop()` returns `undefined`)\n * isFunction(noop());\n * // ➔ false (the return value is `undefined`, not a function)\n * ```\n * ---\n * 3. #### **As a default callback:**\n * ```ts\n * import { noop } from \"@rzl-zone/utils-js/generators\";\n *\n * const callback = noop;\n * callback();\n * // ➔ no effect (void)\n * ```\n */\nexport const noop = (): void => {};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA,MAAa,aAAmB,CAAC"}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.14.0
|
|
5
|
+
* Version: `3.14.0`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
10
|
const noop = () => {};
|
|
11
11
|
export { noop as t };
|
|
12
|
-
//# sourceMappingURL=noop-
|
|
12
|
+
//# sourceMappingURL=noop-D8aGbjbP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"noop-
|
|
1
|
+
{"version":3,"file":"noop-D8aGbjbP.js","names":[],"sources":["../src/generators/utils/noop.ts"],"sourcesContent":["/** ------------------------------------------------------------------------------------\n * * ***Utility: `noop`.***\n * -------------------------------------------------------------------------------------\n * **A no-operation function that performs no action.**\n *\n * ---\n * @description\n * Commonly used as a **placeholder**, **default callback**, or **stub function**.\n *\n * ---\n * - **Behavior**:\n * - Does not return any meaningful value (`void`).\n * - Safely callable in any context without side effects.\n *\n * ---\n * @remarks\n * Although this function returns `void`, it implicitly results in `undefined`,\n * but the return value should never be relied upon.\n *\n * ---\n * @example\n * 1. #### **Basic usage** — does nothing and returns undefined implicitly:\n * ```\n * import { noop } from \"@rzl-zone/utils-js/generators\";\n *\n * noop();\n * // ➔ no effect (void)\n * ```\n * ---\n * 2. #### **Using with type-checking helpers:**\n * ```ts\n * import { noop } from \"@rzl-zone/utils-js/generators\";\n * import { isFunction, isUndefined } from \"@rzl-zone/utils-js/predicates\";\n *\n * isFunction(noop);\n * // ➔ true (`noop` is a function)\n * isUndefined(noop());\n * // ➔ true (calling `noop()` returns `undefined`)\n * isFunction(noop());\n * // ➔ false (the return value is `undefined`, not a function)\n * ```\n * ---\n * 3. #### **As a default callback:**\n * ```ts\n * import { noop } from \"@rzl-zone/utils-js/generators\";\n *\n * const callback = noop;\n * callback();\n * // ➔ no effect (void)\n * ```\n */\nexport const noop = (): void => {};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA,MAAa,aAAmB,CAAC"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.14.0
|
|
5
|
+
* Version: `3.14.0`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
10
|
"use strict";
|
|
11
|
-
const require_logger = require('./logger-
|
|
11
|
+
const require_logger = require('./logger-BXg2xufj.cjs');
|
|
12
12
|
const normalizeSpaces = (value, options) => {
|
|
13
13
|
if (!require_logger.isNonEmptyString(value)) return "";
|
|
14
14
|
if (!require_logger.isPlainObject(options)) options = {};
|
|
@@ -23,4 +23,4 @@ Object.defineProperty(exports, 'normalizeSpaces', {
|
|
|
23
23
|
return normalizeSpaces;
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
//# sourceMappingURL=normalizeSpaces-
|
|
26
|
+
//# sourceMappingURL=normalizeSpaces-CQ7tZLNG.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeSpaces-
|
|
1
|
+
{"version":3,"file":"normalizeSpaces-CQ7tZLNG.cjs","names":["isNonEmptyString","isPlainObject"],"sources":["../src/strings/sanitizations/normalizeSpaces.ts"],"sourcesContent":["import { isPlainObject } from \"@/predicates/is/isPlainObject\";\nimport { isNonEmptyString } from \"@/predicates/is/isNonEmptyString\";\n\ntype NormalizeSpacesOptions = {\n /** If `true`, skips normalization and only trims whitespace from start & end, defaultValue: `false`.\n *\n * @default false\n */\n trimOnly?: boolean;\n /** If `false`, skips trimming value, defaultValue: `true`.\n *\n * @default true\n */\n withTrim?: boolean;\n};\n\n/** ----------------------------------------------------------\n * * ***Utility: `normalizeSpaces`.***\n * -----------------------------------------------------------\n * **Normalizes whitespace in a string by reducing multiple spaces\n * to a single space, optionally trims, or only trims based on options.**\n *\n * ---\n * - **Behavior:**\n * - Collapses all consecutive whitespace (spaces, tabs, newlines) into a single space.\n * - Can trim leading/trailing spaces (default behavior), or preserve them with `withTrim: false`.\n * - Can skip normalization entirely and only trim using `trimOnly: true`.\n * - Returns an empty string if input is `null` or `undefined`.\n *\n * ---\n * @param {string | null | undefined} value - The input string to be processed. If `null` or `undefined`, returns an empty string.\n * @param {NormalizeSpacesOptions} [options] - Configuration options.\n * @param {NormalizeSpacesOptions[\"trimOnly\"]} [options.trimOnly=false] - If `true`, skips normalization and only trims the string.\n * @param {NormalizeSpacesOptions[\"withTrim\"]} [options.withTrim=true] - If `false`, preserves leading/trailing whitespace.\n *\n * ---\n * @returns {string} The processed string.\n *\n * ---\n * @example\n * normalizeSpaces(\" Hello World\\tthis is\\n\\nok \");\n * // ➔ \"Hello World this is ok\"\n * normalizeSpaces(\" Hello World\\tthis is\\n\\nok \", { trimOnly: true });\n * // ➔ \"Hello World\tthis is\\n\\nok\"\n * normalizeSpaces(\" Hello World \", { withTrim: false });\n * // ➔ \" Hello World \"\n * normalizeSpaces(null);\n * // ➔ \"\"\n */\nexport const normalizeSpaces = (\n value: string | null | undefined,\n options?: NormalizeSpacesOptions\n): string => {\n if (!isNonEmptyString(value)) return \"\";\n\n if (!isPlainObject(options)) options = {};\n\n const { trimOnly = false, withTrim = true } = options;\n\n if (trimOnly) return value.trim();\n\n if (withTrim) {\n value = value.trim();\n }\n\n // Remove all duplicate spaces (including tabs, newlines, etc.)\n return value.replace(/\\s+/g, \" \");\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,MAAa,mBACX,OACA,YACW;CACX,IAAI,CAACA,gCAAiB,KAAK,GAAG,OAAO;CAErC,IAAI,CAACC,6BAAc,OAAO,GAAG,UAAU,CAAC;CAExC,MAAM,EAAE,WAAW,OAAO,WAAW,SAAS;CAE9C,IAAI,UAAU,OAAO,MAAM,KAAK;CAEhC,IAAI,UACF,QAAQ,MAAM,KAAK;CAIrB,OAAO,MAAM,QAAQ,QAAQ,GAAG;AAClC"}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.14.0
|
|
5
|
+
* Version: `3.14.0`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
|
-
import { E as isPlainObject, w as isNonEmptyString } from "./logger-
|
|
10
|
+
import { E as isPlainObject, w as isNonEmptyString } from "./logger-Wxl_Krg6.js";
|
|
11
11
|
const normalizeSpaces = (value, options) => {
|
|
12
12
|
if (!isNonEmptyString(value)) return "";
|
|
13
13
|
if (!isPlainObject(options)) options = {};
|
|
@@ -17,4 +17,4 @@ const normalizeSpaces = (value, options) => {
|
|
|
17
17
|
return value.replace(/\s+/g, " ");
|
|
18
18
|
};
|
|
19
19
|
export { normalizeSpaces as t };
|
|
20
|
-
//# sourceMappingURL=normalizeSpaces-
|
|
20
|
+
//# sourceMappingURL=normalizeSpaces-DNUOxp_8.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeSpaces-
|
|
1
|
+
{"version":3,"file":"normalizeSpaces-DNUOxp_8.js","names":[],"sources":["../src/strings/sanitizations/normalizeSpaces.ts"],"sourcesContent":["import { isPlainObject } from \"@/predicates/is/isPlainObject\";\nimport { isNonEmptyString } from \"@/predicates/is/isNonEmptyString\";\n\ntype NormalizeSpacesOptions = {\n /** If `true`, skips normalization and only trims whitespace from start & end, defaultValue: `false`.\n *\n * @default false\n */\n trimOnly?: boolean;\n /** If `false`, skips trimming value, defaultValue: `true`.\n *\n * @default true\n */\n withTrim?: boolean;\n};\n\n/** ----------------------------------------------------------\n * * ***Utility: `normalizeSpaces`.***\n * -----------------------------------------------------------\n * **Normalizes whitespace in a string by reducing multiple spaces\n * to a single space, optionally trims, or only trims based on options.**\n *\n * ---\n * - **Behavior:**\n * - Collapses all consecutive whitespace (spaces, tabs, newlines) into a single space.\n * - Can trim leading/trailing spaces (default behavior), or preserve them with `withTrim: false`.\n * - Can skip normalization entirely and only trim using `trimOnly: true`.\n * - Returns an empty string if input is `null` or `undefined`.\n *\n * ---\n * @param {string | null | undefined} value - The input string to be processed. If `null` or `undefined`, returns an empty string.\n * @param {NormalizeSpacesOptions} [options] - Configuration options.\n * @param {NormalizeSpacesOptions[\"trimOnly\"]} [options.trimOnly=false] - If `true`, skips normalization and only trims the string.\n * @param {NormalizeSpacesOptions[\"withTrim\"]} [options.withTrim=true] - If `false`, preserves leading/trailing whitespace.\n *\n * ---\n * @returns {string} The processed string.\n *\n * ---\n * @example\n * normalizeSpaces(\" Hello World\\tthis is\\n\\nok \");\n * // ➔ \"Hello World this is ok\"\n * normalizeSpaces(\" Hello World\\tthis is\\n\\nok \", { trimOnly: true });\n * // ➔ \"Hello World\tthis is\\n\\nok\"\n * normalizeSpaces(\" Hello World \", { withTrim: false });\n * // ➔ \" Hello World \"\n * normalizeSpaces(null);\n * // ➔ \"\"\n */\nexport const normalizeSpaces = (\n value: string | null | undefined,\n options?: NormalizeSpacesOptions\n): string => {\n if (!isNonEmptyString(value)) return \"\";\n\n if (!isPlainObject(options)) options = {};\n\n const { trimOnly = false, withTrim = true } = options;\n\n if (trimOnly) return value.trim();\n\n if (withTrim) {\n value = value.trim();\n }\n\n // Remove all duplicate spaces (including tabs, newlines, etc.)\n return value.replace(/\\s+/g, \" \");\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,MAAa,mBACX,OACA,YACW;CACX,IAAI,CAAC,iBAAiB,KAAK,GAAG,OAAO;CAErC,IAAI,CAAC,cAAc,OAAO,GAAG,UAAU,CAAC;CAExC,MAAM,EAAE,WAAW,OAAO,WAAW,SAAS;CAE9C,IAAI,UAAU,OAAO,MAAM,KAAK;CAEhC,IAAI,UACF,QAAQ,MAAM,KAAK;CAIrB,OAAO,MAAM,QAAQ,QAAQ,GAAG;AAClC"}
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.14.0
|
|
5
|
+
* Version: `3.14.0`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
12
|
-
const require_logger = require('../logger-
|
|
13
|
-
const require_assertIsArray = require('../assertIsArray-
|
|
14
|
-
const require_isEmptyValue = require('../isEmptyValue-
|
|
15
|
-
const require_safeStableStringify = require('../safeStableStringify-
|
|
16
|
-
const require_isTypedArray = require('../isTypedArray-
|
|
17
|
-
const require_safeJsonParse = require('../safeJsonParse-
|
|
18
|
-
const require_isServer = require('../isServer-
|
|
12
|
+
const require_logger = require('../logger-BXg2xufj.cjs');
|
|
13
|
+
const require_assertIsArray = require('../assertIsArray-Xx-zlo6O.cjs');
|
|
14
|
+
const require_isEmptyValue = require('../isEmptyValue-qNOhUBFE.cjs');
|
|
15
|
+
const require_safeStableStringify = require('../safeStableStringify-MuBiT-4B.cjs');
|
|
16
|
+
const require_isTypedArray = require('../isTypedArray-DspIjxdk.cjs');
|
|
17
|
+
const require_safeJsonParse = require('../safeJsonParse-B5F8XtrZ.cjs');
|
|
18
|
+
const require_isServer = require('../isServer-CWlp2R2N.cjs');
|
|
19
19
|
async function copyText(text, options) {
|
|
20
20
|
if (!require_logger.isPlainObject(options)) options = {};
|
|
21
21
|
const now = () => typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.14.0
|
|
5
|
+
* Version: `3.14.0`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import { D as NumberRangeUnion } from "../index-
|
|
11
|
+
import { D as NumberRangeUnion } from "../index-or0oP9i2.cjs";
|
|
12
12
|
type CopyMethod = "clipboard" | "fallback" | "manual";
|
|
13
13
|
type CopyStatus = "success" | "error";
|
|
14
14
|
type CopyResult = {
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.14.0
|
|
5
|
+
* Version: `3.14.0`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import { D as NumberRangeUnion } from "../index-
|
|
11
|
+
import { D as NumberRangeUnion } from "../index-or0oP9i2.js";
|
|
12
12
|
type CopyMethod = "clipboard" | "fallback" | "manual";
|
|
13
13
|
type CopyStatus = "success" | "error";
|
|
14
14
|
type CopyResult = {
|
package/dist/operations/index.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.14.0
|
|
5
|
+
* Version: `3.14.0`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
|
-
import { E as isPlainObject, O as isArray, S as isNaN, g as isObjectOrArray, m as isNonEmptyArray, t as createMessage } from "../logger-
|
|
11
|
-
import { t as assertIsArray } from "../assertIsArray-
|
|
12
|
-
import { r as isEmptyArray } from "../isEmptyValue-
|
|
13
|
-
import { r as isUndefined, t as safeStableStringify } from "../safeStableStringify-
|
|
14
|
-
import { r as isEqual } from "../isTypedArray-
|
|
15
|
-
import { t as safeJsonParse } from "../safeJsonParse-
|
|
16
|
-
import { t as isServer } from "../isServer-
|
|
10
|
+
import { E as isPlainObject, O as isArray, S as isNaN, g as isObjectOrArray, m as isNonEmptyArray, t as createMessage } from "../logger-Wxl_Krg6.js";
|
|
11
|
+
import { t as assertIsArray } from "../assertIsArray-DmlqnTiq.js";
|
|
12
|
+
import { r as isEmptyArray } from "../isEmptyValue-h97JT4pD.js";
|
|
13
|
+
import { r as isUndefined, t as safeStableStringify } from "../safeStableStringify-CDSYnLUz.js";
|
|
14
|
+
import { r as isEqual } from "../isTypedArray-BY8CIj3k.js";
|
|
15
|
+
import { t as safeJsonParse } from "../safeJsonParse-DYSkUnhM.js";
|
|
16
|
+
import { t as isServer } from "../isServer-Drgyboev.js";
|
|
17
17
|
async function copyText(text, options) {
|
|
18
18
|
if (!isPlainObject(options)) options = {};
|
|
19
19
|
const now = () => typeof performance !== "undefined" ? performance.now() : Date.now();
|
package/dist/parsers/index.cjs
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.14.0
|
|
5
|
+
* Version: `3.14.0`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
12
|
-
const require_parsers = require('../parsers-
|
|
12
|
+
const require_parsers = require('../parsers-CJ5tHtqF.cjs');
|
|
13
13
|
exports.extractFileName = require_parsers.extractFileName;
|
package/dist/parsers/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.14.0
|
|
5
|
+
* Version: `3.14.0`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
package/dist/parsers/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.14.0
|
|
5
|
+
* Version: `3.14.0`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
package/dist/parsers/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.14.0
|
|
5
|
+
* Version: `3.14.0`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
|
-
import { t as extractFileName } from "../parsers-
|
|
10
|
+
import { t as extractFileName } from "../parsers-DMlqliPw.js";
|
|
11
11
|
export { extractFileName };
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.14.0
|
|
5
|
+
* Version: `3.14.0`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
10
|
"use strict";
|
|
11
|
-
const require_logger = require('./logger-
|
|
12
|
-
const require_punyCode = require('./punyCode-
|
|
11
|
+
const require_logger = require('./logger-BXg2xufj.cjs');
|
|
12
|
+
const require_punyCode = require('./punyCode-B_VPjG0d.cjs');
|
|
13
13
|
const EXTENSIONS_FILE = new Set([
|
|
14
14
|
"txt",
|
|
15
15
|
"md",
|
|
@@ -647,4 +647,4 @@ Object.defineProperty(exports, 'extractFileName', {
|
|
|
647
647
|
return extractFileName;
|
|
648
648
|
}
|
|
649
649
|
});
|
|
650
|
-
//# sourceMappingURL=parsers-
|
|
650
|
+
//# sourceMappingURL=parsers-CJ5tHtqF.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers-i8WEeMJl.cjs","names":["isNonEmptyString","isPlainObject","punycodeUtilsJS","createMessage"],"sources":["../src/parsers/_private/extensions.ts","../src/parsers/extractFileName.ts"],"sourcesContent":["// ==========================\n// Single extensions\n// ==========================\nexport const EXTENSIONS_FILE = new Set([\n // 📄 Text & Document\n \"txt\",\n \"md\",\n \"rtf\",\n \"tex\",\n \"doc\",\n \"docx\",\n \"odt\",\n \"ott\",\n \"pdf\",\n \"djvu\",\n \"epub\",\n \"fb2\",\n \"lit\",\n \"lrf\",\n \"xls\",\n \"xlsx\",\n \"ods\",\n \"csv\",\n \"tsv\",\n \"ppt\",\n \"pptx\",\n \"pps\",\n \"bib\",\n \"cba\",\n \"cbt\",\n \"cbz\",\n \"cbr\",\n \"opds\",\n \"fodt\",\n \"pages\",\n \"rtfd\",\n \"sxc\",\n \"sxw\",\n \"wpd\",\n \"xps\",\n \"dotx\",\n \"dotm\",\n \"xltx\",\n \"xltm\",\n \"sldx\",\n \"sldm\",\n \"fods\",\n \"mdx\",\n \"markdown\",\n \"texi\",\n \"textile\",\n\n // 🖼️ Image\n \"jpg\",\n \"jpeg\",\n \"png\",\n \"gif\",\n \"bmp\",\n \"tif\",\n \"tiff\",\n \"webp\",\n \"svg\",\n \"ico\",\n \"heif\",\n \"heic\",\n \"raw\",\n \"cr2\",\n \"nef\",\n \"orf\",\n \"sr2\",\n \"dng\",\n \"dds\",\n \"psd\",\n \"exr\",\n \"xcf\",\n \"ai\",\n \"eps\",\n \"cdr\",\n \"indd\",\n \"pcx\",\n \"pgm\",\n \"ppm\",\n \"pbm\",\n \"pnm\",\n \"jfif\",\n \"ras\",\n \"tga\",\n \"j2k\",\n \"jp2\",\n \"emf\",\n \"wmf\",\n \"hdp\",\n \"mdi\",\n \"hevc\",\n\n // 🎵 Audio\n \"mp3\",\n \"wav\",\n \"ogg\",\n \"flac\",\n \"aac\",\n \"m4a\",\n \"wma\",\n \"alac\",\n \"aiff\",\n \"aif\",\n \"amr\",\n \"mid\",\n \"midi\",\n \"opus\",\n \"au\",\n \"caf\",\n \"ape\",\n \"mka\",\n \"spx\",\n \"ra\",\n \"ram\",\n \"mpc\",\n \"wv\",\n \"aifc\",\n \"mod\",\n \"it\",\n \"s3m\",\n \"xm\",\n \"kar\",\n \"m4b\",\n \"voc\",\n \"snd\",\n \"a52\",\n \"ac3\",\n \"dts\",\n\n // 🎥 Video\n \"mp4\",\n \"mkv\",\n \"avi\",\n \"mov\",\n \"wmv\",\n \"webm\",\n \"mpeg\",\n \"mpg\",\n \"3gp\",\n \"3g2\",\n \"m4v\",\n \"ts\",\n \"mts\",\n \"asf\",\n \"rm\",\n \"rmvb\",\n \"vob\",\n \"f4v\",\n \"ogv\",\n \"m2ts\",\n \"dav\",\n \"mxf\",\n \"mjpeg\",\n \"flv\",\n \"divx\",\n \"f4a\",\n \"f4p\",\n \"m2v\",\n \"ogm\",\n \"vp8\",\n \"vp9\",\n \"xvid\",\n \"yuv\",\n \"mng\",\n \"dv\",\n \"m1v\",\n \"roq\",\n \"m2t\",\n \"av1\",\n \"hevc\",\n \"m3u\",\n \"m3u8\",\n\n // 🗃️ Archive & Compression\n \"zip\",\n \"rar\",\n \"7z\",\n \"tar\",\n \"gz\",\n \"bz\",\n \"bz2\",\n \"xz\",\n \"tgz\",\n \"tbz2\",\n \"txz\",\n \"lz\",\n \"lzma\",\n \"z\",\n \"cab\",\n \"arj\",\n \"ace\",\n \"rpm\",\n \"deb\",\n \"pkg\",\n \"apk\",\n \"jar\",\n \"war\",\n \"ear\",\n \"sit\",\n \"sitx\",\n \"cpgz\",\n \"tlz\",\n \"tlzma\",\n \"tzo\",\n \"cpio\",\n \"shar\",\n \"bzip\",\n \"gzip\",\n \"7zip\",\n \"rar5\",\n \"tbz\",\n \"txz\",\n\n // 💾 Disk Image\n \"iso\",\n \"img\",\n \"vhd\",\n \"vmdk\",\n \"qcow2\",\n \"vhdx\",\n \"bin\",\n \"cue\",\n \"nrg\",\n \"daa\",\n \"sdi\",\n \"vfd\",\n \"ima\",\n \"dmg\",\n \"vdi\",\n \"toast\",\n \"ccd\",\n \"mdf\",\n \"cdi\",\n \"bif\",\n \"bifc\",\n \"bifd\",\n\n // 🗃️ Database & Data\n \"sql\",\n \"db\",\n \"dbf\",\n \"mdb\",\n \"accdb\",\n \"json\",\n \"toml\",\n \"ini\",\n \"log\",\n \"plist\",\n \"pkl\",\n \"msgpack\",\n \"h5\",\n \"hdf5\",\n \"parquet\",\n \"avro\",\n \"orc\",\n \"ndjson\",\n \"pdb\",\n \"sqlite\",\n \"sqlite3\",\n \"dbx\",\n \"sdf\",\n \"nc\",\n \"netcdf\",\n \"grib\",\n \"geojson\",\n \"gml\",\n \"hjson\",\n \"cdb\",\n \"db3\",\n \"dta\",\n \"sav\",\n \"sas7bdat\",\n \"ldif\",\n \"fdb\",\n \"gdb\",\n \"sqlite2\",\n \"h5ad\",\n \"nc4\",\n \"xmind\",\n \"drawio\",\n \"sdc\",\n \"jsonl\",\n \"yaml\",\n \"yml\",\n \"toml\",\n\n // 💻 Code & Script\n \"js\",\n \"jsx\",\n \"ts\",\n \"tsx\",\n \"c\",\n \"cpp\",\n \"net\",\n \"h\",\n \"hpp\",\n \"java\",\n \"py\",\n \"rb\",\n \"go\",\n \"rs\",\n \"php\",\n \"pl\",\n \"sh\",\n \"bat\",\n \"cmd\",\n \"ps1\",\n \"lua\",\n \"swift\",\n \"kt\",\n \"scala\",\n \"cs\",\n \"vb\",\n \"dart\",\n \"m\",\n \"r\",\n \"jl\",\n \"fs\",\n \"vbproj\",\n \"sln\",\n \"pri\",\n \"gemspec\",\n \"gradle\",\n \"coffee\",\n \"erl\",\n \"ex\",\n \"exs\",\n \"hs\",\n \"lisp\",\n \"clj\",\n \"groovy\",\n \"scm\",\n \"vbs\",\n \"nim\",\n \"rkt\",\n \"ml\",\n \"mli\",\n \"fsx\",\n \"psm1\",\n \"cbl\",\n \"for\",\n \"f90\",\n \"lock\",\n \"tsconfig\",\n \"vue\",\n \"svelte\",\n \"cjs\",\n \"mjs\",\n \"mts\",\n \"cts\",\n \"json5\",\n \"es6\",\n \"module\",\n \"systemjs\",\n\n // 🌐 Web & Config\n \"html\",\n \"htm\",\n \"xhtml\",\n \"css\",\n \"scss\",\n \"sass\",\n \"less\",\n \"xml\",\n \"xlf\",\n \"po\",\n \"pot\",\n \"jsp\",\n \"asp\",\n \"aspx\",\n \"jspf\",\n \"cgi\",\n \"cfm\",\n \"env\",\n \"babelrc\",\n \"cfg\",\n \"config\",\n \"conf\",\n \"editorconfig\",\n \"eslintrc\",\n \"gitconfig\",\n \"gitattributes\",\n \"gitignore\",\n \"prettierrc\",\n \"webmanifest\",\n \"dockerfile\",\n // \".dockerfile\",\n\n // 🔠 Font\n \"ttf\",\n \"otf\",\n \"woff\",\n \"woff2\",\n \"eot\",\n \"dfont\",\n \"pfa\",\n \"pfb\",\n \"fon\",\n \"fnt\",\n \"bdf\",\n \"ps\",\n\n // 🗺️ CAD & GIS\n \"dwg\",\n \"dxf\",\n \"shp\",\n \"kml\",\n \"kmz\",\n \"gpx\",\n \"stl\",\n \"step\",\n \"iges\",\n \"igs\",\n \"3ds\",\n \"3dm\",\n \"fbx\",\n \"obj\",\n \"dae\",\n \"ifc\",\n\n // 🔧 System / Binary / Execution\n \"exe\",\n \"msi\",\n \"run\",\n \"com\",\n \"app\",\n \"elf\",\n \"dll\",\n \"so\",\n \"dylib\",\n \"sys\",\n \"scr\",\n \"bin\",\n \"out\",\n\n // 🔐 Certificates / Crypto\n \"pem\",\n \"crt\",\n \"cer\",\n \"der\",\n \"csr\",\n \"p12\",\n \"pfx\",\n \"jks\",\n \"asc\",\n \"gpg\",\n \"pgp\",\n \"p7b\",\n \"p7c\",\n \"spc\",\n \"key\",\n \"pub\",\n \"cert\",\n \"p7m\",\n\n // 🎮 Games & Projects\n \"nes\",\n \"sfc\",\n \"gba\",\n \"nds\",\n \"rom\",\n \"pak\",\n \"vpk\",\n \"bik\",\n \"cso\",\n \"wad\",\n \"wadx\",\n \"smc\",\n \"gb\",\n \"gbc\",\n\n // 🔬 Bioinformatics\n \"fasta\",\n \"fa\",\n \"fas\",\n \"ffn\",\n \"faa\",\n \"fna\",\n \"frn\",\n \"fastq\",\n \"fq\",\n \"bam\",\n \"bed\",\n \"sam\",\n \"vcf\",\n \"gff\",\n \"gff3\",\n \"gtf\",\n \"fai\",\n \"tbi\",\n \"fast5\",\n \"fqz\",\n \"fq5\"\n]);\n\n// ==========================\n// Double extensions\n// ==========================\nexport const DOUBLE_EXTENSIONS_FILE = new Set([\n \"log.gz\",\n \"tar.gz\",\n \"tar.bz2\",\n \"tar.bz\",\n \"tar.xz\",\n \"tar.lz\",\n \"tar.lzma\",\n \"tar.Z\",\n \"tar.zst\",\n \"tar.lz4\",\n \"log.gz\",\n \"sql.gz\",\n \"csv.gz\",\n \"tsv.gz\",\n \"json.gz\",\n \"ndjson.gz\",\n \"fq.gz\",\n \"sam.gz\",\n \"fasta.gz\",\n \"fa.gz\",\n \"ffn.gz\",\n \"faa.gz\",\n \"fna.gz\",\n \"frn.gz\",\n \"fastq.gz\",\n \"js.map\",\n \"css.map\"\n]);\n\n// ==========================\n// Special filenames\n// ==========================\nexport const SPECIAL_FILENAMES = new Set([\n \"Makefile\",\n \"Dockerfile\",\n \".dockerignore\",\n \".npmrc\",\n \".envrc\",\n \".htgroup\",\n \".eslintignore\",\n \".env.test\",\n \".env.local\",\n \".env.production\",\n \".env.development\",\n \".env.example\",\n \".dockerfile\",\n \".htaccess\",\n \".htpasswd\",\n \".babelrc\",\n \".eslintrc\",\n \".editorconfig\",\n \".prettierignore\",\n \"docker-compose.override.yml\",\n \"docker-compose.yml\",\n \"Vagrantfile\",\n \"Procfile\",\n \"Gemfile\",\n \"Rakefile\",\n \"package.json\",\n \"package-lock.json\",\n \"yarn.lock\",\n \"pnpm-lock.yaml\",\n \"tsconfig.json\",\n \"webpack.config.js\",\n \"vite.config.js\",\n \"vite.config.ts\",\n \"Gruntfile.js\",\n \"gulpfile.js\",\n \"babel.config.js\",\n \"babel.js\",\n \"rollup.js\",\n\n // SPECIAL PRESERVE NAME\n \"CON\",\n \"NUL\",\n \"PRN\",\n \"AUX\",\n \"COM1\",\n \"COM2\",\n \"COM3\",\n \"COM4\",\n \"COM5\",\n \"COM6\",\n \"COM7\",\n \"COM8\",\n \"COM9\",\n \"LPT1\",\n \"LPT2\",\n \"LPT3\",\n \"LPT4\",\n \"LPT5\",\n \"LPT6\",\n \"LPT7\",\n \"LPT8\",\n \"LPT9\"\n]);\n","import { createMessage } from \"@/_private/logger\";\n\nimport { punycodeUtilsJS } from \"@/urls/utils/punyCode\";\nimport { isPlainObject } from \"@/predicates/is/isPlainObject\";\nimport { isNonEmptyString } from \"@/predicates/is/isNonEmptyString\";\nimport { assertIsBoolean } from \"@/assertions/booleans/assertIsBoolean\";\n\nimport {\n DOUBLE_EXTENSIONS_FILE,\n EXTENSIONS_FILE,\n SPECIAL_FILENAMES\n} from \"./_private/extensions\";\n\nexport type ExtractFileNameOptions = {\n /** ------------------------------------------------------------------------------------\n * * ***Indicates whether the input should be treated as a potential domain string.***\n * -------------------------------------------------------------------------------------\n *\n * - Behavior when `true`:\n * - The `domainName` option is required and must be a string and non-empty string.\n * If `domainName` is `undefined`, `null`, or an empty string, a `TypeError` will be thrown.\n * - The `domainName` is used to determine if the input is a domain-only string.\n * - Returns `null` if the input exactly matches `domainName` or any of its subdomains **and** has no additional path or filename.\n * - If the input does not match `domainName` or its subdomains, it will be processed as a regular file-like name.\n * - Supports **Unicode/IDN domains** (e.g., `tést-ドメイン.com`) and **ASCII filenames**, mixed safely.\n *\n * ---\n * @default false\n */\n domainAware?: boolean;\n\n /** ------------------------------------------------------------------------------------\n * * ***The base domain name used for comparison (e.g., `\"example.com\"`).***\n * -------------------------------------------------------------------------------------\n *\n * - Required when `domainAware` is `true`.\n * - Helps differentiate between a domain-only input (ignored) and a standalone file-like string (processed normally).\n * - Must be a string and non-empty string. Invalid values (`undefined`, `null`, or empty string) will trigger a `TypeError`.\n * - Works with both **ASCII domains** and **Unicode/IDN domains**.\n * - Example:\n * ```ts\n * // ASCII domain + ASCII filename\n * extractFileName(\"resume.com\", {\n * domainAware: true,\n * domainName: \"example.com\"\n * });\n * // ➔ \"resume\"\n * extractFileName(\"example.com\", {\n * domainAware: true,\n * domainName: \"example.com\"\n * });\n * // ➔ null (because input is treated as domain-name)\n *\n * // Unicode domain + ASCII filename\n * extractFileName(\"tést-ドメイン.com/file.txt\", {\n * domainAware: true,\n * domainName: \"ドメイン.com\"\n * });\n * // ➔ \"file\"\n *\n * // Unicode domain + Unicode filename\n * extractFileName(\"tést-ドメイン.com/ファイル名.pdf\", {\n * domainAware: true,\n * domainName: \"ドメイン.com\"\n * });\n * // ➔ \"ファイル名\"\n *\n * // Invalid domainName, will throw TypeError\n * extractFileName(\"resume.com\", {\n * domainAware: true,\n * domainName: \"\"\n * });\n * // ➔ TypeError\n * ```\n *\n * ---\n * @default undefined\n */\n domainName?: string;\n};\n\n/** ------------------------------------------------------------------------------------\n * * ***Utility: `extractFileName`.***\n * -------------------------------------------------------------------------------------\n * **Extracts the **clean base filename** from nearly any input string, including URLs, local file paths,\n * UNC paths, and plain filenames.**\n *\n * ---\n * - It automatically safely handles extracts the **base file name** (without extension) from:\n * - File system paths (Windows, Unix, UNC).\n * - Protocols like http, https, ftp, file, mailto, or custom schemes.\n * - Percent-encoded, Unicode, and emoji characters.\n * - Dotfiles, reserved OS names, multi-part extensions.\n * - Data URIs.\n * - Optional domain-aware mode to ignore domain-only inputs.\n * - Plain filenames.\n *\n * ---\n * - Full support for:\n * - Unicode, emoji, percent-encoding.\n * - Dotfiles (e.g., `.env`, `.gitignore`).\n * - Reserved/OS-protected filenames:\n * `CON`, `PRN`, `AUX`, `NUL`, `COM1`~`COM9`, `LPT1`~`LPT9`.\n * - Known multi-part extensions:\n * `.tar.gz`, `.tar.bz2`, `.tar.xz`, `.tar.lz`, `.tar.zst`, `.min.js`, `.js.map`, `.log.gz`, `.sql.gz`,\n * `.backup.tar`, etc.\n * - Data URIs (`data:[mime];base64,...` ➔ payload string).\n * - Domain-aware mode (optional).\n *\n * ---\n * - **Behavior / Features**\n * - Strips **known extensions**, including multi-part and common double/triple extensions.\n * - Leaves unknown/custom extensions intact.\n * - Preserves **dotfiles** as-is (leading dot preserved).\n * - Returns `null` if:\n * - input is `null`, `undefined`, or not a string.\n * - input is empty, whitespace-only, or only slashes.\n * - input represents a folder path (trailing slash/backslash, drive/folder only).\n * - input is a **domain-only string** in domain-aware mode.\n * - Normalizes Windows-style backslashes (`\\`) internally as `/`.\n * - Supports UNC paths, mixed slashes, and Windows drive letters safely.\n * - Handles URLs:\n * - Ignores query strings (`?v=1.2.3`) and hash fragments (`#section`).\n * - Decodes percent-encoded filenames (`my%20file.txt` ➔ `my file.txt`).\n * - Supports protocol-relative URLs (`//cdn.example.com/file.jpg`).\n * - Supports uncommon/custom protocols (`ftp://`, `file://`, `mailto:`, etc.).\n * - Handles **multiple dots**, **trailing dots**, **triple or more extensions**.\n * - Supports filenames on mixed Unicode/ASCII domains:\n * - Domain names can include Unicode characters (IDN / punycode).\n * - Filenames may contain ASCII, Unicode, and emoji characters.\n * - Works correctly when domain is Unicode and filename is ASCII, or vice versa.\n * - Supports extremely long filenames safely (up to OS limits).\n * - Domain-aware mode (`domainAware: true` + `domainName`):\n * - Parameter `domainName` must be a string and non-empty string; otherwise a TypeError is thrown.\n * - Returns `null` if input equals `domainName` or any subdomain with no file path.\n * - Extracts filename normally if path/file exists on domain or other domain.\n * - Safe in Node.js and browsers.\n *\n * ---\n * @param {string | null | undefined} input\n * URL, file path, or plain filename to extract from.\n *\n * @param {ExtractFileNameOptions} [options]\n * Optional configuration:\n * - `domainAware?: boolean` – Treat input as a domain string. Requires `domainName` to be a string and non-empty string; otherwise, a TypeError is thrown.\n * - `domainName?: string` – Base domain for comparison eg (`example.com`), required when `domainAware` is true.\n *\n * ---\n * @returns {string | null}\n * - Base filename without known extensions\n * - Original filename if extension unknown\n * - `null` for invalid inputs, folder paths, or domain-only strings\n *\n * ---\n * @example\n * 1. #### Basic files:\n * ```ts\n * extractFileName(\"document.pdf\");\n * // ➔ \"document\"\n * extractFileName(\"/files/archive.tar.gz\");\n * // ➔ \"archive\"\n * extractFileName(\"C:\\\\path\\\\file.txt\");\n * // ➔ \"file\"\n * extractFileName(\".env\");\n * // ➔ \".env\"\n * extractFileName(\"folder/\");\n * // ➔ null\n * ```\n * ---\n * 2. #### Not a file:\n * ```ts\n * extractFileName(\"not-file\");\n * // ➔ null\n * extractFileName(\"not-file/\");\n * // ➔ null\n * extractFileName(\"/not-file/\");\n * // ➔ null\n * extractFileName(\"/not-file\");\n * // ➔ null\n * ```\n * ---\n * 3. #### URLs with `queries`, `hashes`, `protocols`:\n * ```ts\n * extractFileName(\"https://example.com/file.txt?ver=1\");\n * // ➔ \"file\"\n * extractFileName(\"https://example.com/archive.tar.gz#part\");\n * // ➔ \"archive\"\n * extractFileName(\"//cdn.example.com/image.png\");\n * // ➔ \"image\"\n * ```\n * ---\n * 4. #### Special protocol handling:\n * ```ts\n * extractFileName(\"tel:+6212345678\");\n * // ➔ \"+6212345678\"\n * extractFileName(\"sms:+6212345678\");\n * // ➔ \"+6212345678\"\n * extractFileName(\"mailto:user@domain.com\");\n * // ➔ \"user@domain\"\n * extractFileName(\"data:text/plain;base64,SGVsbG8=\");\n * // ➔ \"SGVsbG8=\"\n * extractFileName(\"mailto:resume.com\");\n * // ➔ \"resume\"\n * extractFileName(\"ftp://example.com/image.jpeg\");\n * // ➔ \"image\"\n * extractFileName(\"ftp://files.example.com/app.min.js\");\n * // ➔ \"app.min\"\n * extractFileName(\"file:///C:/path/to/document.pdf\");\n * // ➔ \"document\"\n * extractFileName(\"custom-scheme://example.com/video.mp4\");\n * // ➔ \"video\"\n * ```\n * ---\n * 5. #### Unicode & emoji:\n * ```ts\n * extractFileName(\"emoji-😊.png\");\n * // ➔ \"emoji-😊\"\n * extractFileName(\"🔥project.tar.gz\");\n * // ➔ \"🔥project\"\n * ```\n * 6. #### Dotfiles:\n * ```ts\n * extractFileName(\".gitignore\");\n * // ➔ \".gitignore\"\n * extractFileName(\"/path/.bashrc\");\n * // ➔ \".bashrc\"\n * ```\n * ---\n * 7. #### Mixed Unicode domain and ASCII filename:\n * ```ts\n * extractFileName(\"https://tést-ドメイン.com/file.txt\");\n * // ➔ \"file\"\n * extractFileName(\"https://example.com/ファイル名.pdf\");\n * // ➔ \"ファイル名\"\n * extractFileName(\"https://ドメイン例.com/emoji-🔥.png\");\n * // ➔ \"emoji-🔥\"\n * ```\n * 8. #### Reserved filenames:\n * ```ts\n * extractFileName(\"CON\");\n * // ➔ \"CON\"\n * extractFileName(\"NUL.txt\");\n * // ➔ \"NUL\"\n * ```\n * ---\n * 9. #### Domain-aware mode:\n * ```ts\n * extractFileName(\"example.com\", {\n * domainAware: true,\n * domainName: \"example.com\"\n * });\n * // ➔ null\n * extractFileName(\"cdn.example.com\", {\n * domainAware: true,\n * domainName: \"example.com\"\n * });\n * // ➔ null\n * extractFileName(\"resume.com\", {\n * domainAware: true,\n * domainName: \"example.com\"\n * });\n * // ➔ \"resume\"\n * extractFileName(\"https://example.com/file.txt\", {\n * domainAware: true,\n * domainName: \"example.com\"\n * });\n * // ➔ \"file\"\n * ```\n * ---\n * 10. #### Windows & UNC paths:\n * ```ts\n * extractFileName(\"C:\\\\Users\\\\rzl\\\\Documents\\\\file.txt\");\n * // ➔ \"file\"\n * extractFileName(\"\\\\\\\\SERVER\\\\share\\\\logs\\\\output.log\");\n * // ➔ \"output\"\n * extractFileName(\"C:/Users\\\\rzl/mix\\\\test.pdf\");\n * // ➔ \"test\"\n * ```\n * ---\n * 11. #### Edge / extreme cases:\n * ```ts\n * extractFileName(\"https://example.com/my%20file%20name.txt\");\n * // ➔ \"my file name\"\n * extractFileName(\"app.min.js.map\");\n * // ➔ \"app.min\"\n * extractFileName(\"backup.tar.bak\");\n * // ➔ \"backup.tar.bak\" (unknown double extension)\n * extractFileName(\"filename.\");\n * // ➔ \"filename.\"\n * extractFileName(\"a\".repeat(255) + \".txt\");\n * // ➔ \"a\".repeat(255)\n * ```\n * ---\n * @note\n * - Robust: never throws, handles unusual inputs safely.\n * - Suitable for display, logging, or safe storage.\n * - Normalizes slashes consistently.\n * - Covers nearly all real-world filename, URL, path, data URI, and domain scenarios.\n * - Handles Windows UNC paths, mixed slashes, percent-encoded, Unicode/emoji filenames.\n * - Known multi-part extensions list can be extended without breaking functionality.\n */\nexport const extractFileName = (\n input?: string | null,\n options?: ExtractFileNameOptions\n): string | null => {\n if (!isNonEmptyString(input)) return null;\n if (!isPlainObject(options)) options = {};\n\n const { domainName, domainAware = false } = options;\n\n assertIsBoolean(domainAware, {\n message: ({ currentType, validType }) =>\n errorMsg(\n `Parameter \\`domainAware\\` property of the \\`options\\` (second parameter) must be of type \\`${validType}\\`, but received: \\`${currentType}\\`.`\n )\n });\n\n let pathname = input.trim();\n\n // Normalize Windows backslashes\n pathname = pathname.replace(/\\\\/g, \"/\");\n\n // domain-aware mode\n if (domainAware) {\n if (!isNonEmptyString(domainName)) {\n throw new TypeError(\n errorMsg(\n \"If parameter `domainAware` is set to `true`, the option parameter `domainName` is required as string, and cant be an empty-string.\"\n )\n );\n }\n\n const cleanDomain = punycodeUtilsJS\n .toASCII(domainName)\n .replace(/^https?:\\/\\//i, \"\")\n .replace(/^www\\./, \"\")\n .replace(/\\/.*$/, \"\")\n .toLowerCase();\n\n const inputDomain = punycodeUtilsJS\n .toASCII(input)\n .replace(/^https?:\\/\\//i, \"\")\n .replace(/^www\\./, \"\")\n .toLowerCase();\n\n const inputHost = inputDomain.split(\"/\")[0]?.split(/[?#]/)[0];\n const matchesDomain =\n inputHost === cleanDomain || inputHost?.endsWith(`.${cleanDomain}`);\n const hasPath = /\\/[^/]+$/.test(inputDomain);\n\n if (matchesDomain && !hasPath) return null;\n }\n\n // handle special protocol-like strings\n const protocolMatch = pathname.match(/^([a-zA-Z][a-zA-Z0-9+.-]*):(.+)$/);\n if (protocolMatch) {\n const scheme = protocolMatch[1]?.toLowerCase() || \"\";\n const rest = protocolMatch[2];\n\n if ([\"tel\", \"sms\"].some((sch) => sch.startsWith(scheme))) {\n const clean = rest?.split(\"?\")[0]?.split(\"#\")[0];\n return clean?.trim() || null;\n } else if (scheme === \"mailto\") {\n const parts = rest?.split(\"/\");\n let last = parts?.[parts.length - 1];\n last = last?.split(\"?\")[0]?.split(\"#\")[0]; // strip query/hash\n const dotIndex = last?.lastIndexOf(\".\");\n if (dotIndex && dotIndex > 0) last = last?.slice(0, dotIndex);\n return last || null;\n } else if (scheme === \"data\") {\n const commaIndex = rest?.indexOf(\",\") || -1;\n if (commaIndex === -1) return null;\n let payload = rest?.slice(commaIndex + 1);\n payload = payload?.split?.(\"?\")[0]?.split(\"#\")[0]; // strip query/hash\n return payload?.trim() || null;\n }\n }\n\n if (/^[a-z][a-z\\d+\\-.]*:\\/{3,}/i.test(pathname)) {\n // eg https:///file.txt (has more than 2 slash after : protocol)\n pathname = pathname.replace(/^[a-z][a-z\\d+\\-.]*:\\/{2,}/i, \"\");\n } else {\n try {\n const isProbablyUrl = /^[a-z][a-z\\d+\\-.]*:(\\/\\/)?/i.test(pathname);\n\n pathname = isProbablyUrl\n ? new URL(pathname).pathname\n : new URL(`http://localhost/${pathname}`).pathname;\n } catch {\n // Fallback for weird URLs like 'https:///file.txt'\n // Remove protocol + any number of slashes\n pathname = pathname.replace(/^[a-z][a-z\\d+\\-.]*:(\\/\\/)?/i, \"\");\n }\n }\n\n // split into non-empty segments\n const segments = pathname.split(\"/\").filter(Boolean);\n\n if (segments.length === 0) return null;\n\n // Take the last segment as candidate filename\n let lastSegment =\n segments[segments.length - 1]?.split(\"?\")[0]?.split(\"#\")[0] || \"\";\n // Strip trailing ? or # that is alone\n lastSegment = lastSegment?.replace(/[?#]+$/, \"\");\n if (!lastSegment) return null;\n\n // Replace encoded slashes and dots\n lastSegment = lastSegment\n .replace(/%2F/gi, \"/\")\n .replace(/%5C/gi, \"\\\\\")\n .replace(/%2E/gi, \".\");\n\n // If replacement introduces new slashes, take the new last segment\n if (lastSegment.includes(\"/\")) {\n const parts = lastSegment.split(\"/\").filter(Boolean);\n lastSegment = parts[parts.length - 1] || \"\";\n }\n\n let filename = decodeURIComponent(lastSegment);\n\n if (!filename) return null;\n\n // Special filenames always returned as-is (even if trailing slash)\n if (SPECIAL_FILENAMES.has(filename)) return filename;\n\n // Dotfiles like \".env\" should be returned as-is (single leading dot, no other dot)\n if (/^\\.[^.\\s][^/]*$/.test(filename)) return filename;\n\n // If the original pathname ends with \"/\" and the last segment doesn't look like a file\n // const originalEndsWithSlash = pathname.endsWith(\"/\");\n if (!filename.includes(\".\")) return null;\n\n // Strip double extensions first\n const sortedDouble = [...DOUBLE_EXTENSIONS_FILE].sort(\n (a, b) => b.length - a.length\n );\n for (const ext of sortedDouble) {\n const dotExt = `.${ext.toLowerCase()}`;\n if (filename.toLowerCase().endsWith(dotExt)) {\n filename = filename.slice(0, filename.length - dotExt.length);\n break;\n }\n }\n\n // Strip single extensions\n const sortedSingle = [...EXTENSIONS_FILE].sort((a, b) => b.length - a.length);\n for (const ext of sortedSingle) {\n const dotExt = `.${ext.toLowerCase()}`;\n if (filename.toLowerCase().endsWith(dotExt)) {\n filename = filename.slice(0, filename.length - dotExt.length);\n break;\n }\n }\n\n return filename || null;\n};\n\n/**\n * @internal ***`Not part of the public API.`***\n */\nconst errorMsg = (msg: string) => createMessage(\"extractFileName\", msg);\n"],"mappings":";;;;;;;;;;;;;;AAGA,MAAa,kBAAkB,IAAI,IAAI;CAErC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAIA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AAKD,MAAa,yBAAyB,IAAI,IAAI;CAC5C;CACA;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"}
|
|
1
|
+
{"version":3,"file":"parsers-CJ5tHtqF.cjs","names":["isNonEmptyString","isPlainObject","punycodeUtilsJS","createMessage"],"sources":["../src/parsers/_private/extensions.ts","../src/parsers/extractFileName.ts"],"sourcesContent":["// ==========================\n// Single extensions\n// ==========================\nexport const EXTENSIONS_FILE = new Set([\n // 📄 Text & Document\n \"txt\",\n \"md\",\n \"rtf\",\n \"tex\",\n \"doc\",\n \"docx\",\n \"odt\",\n \"ott\",\n \"pdf\",\n \"djvu\",\n \"epub\",\n \"fb2\",\n \"lit\",\n \"lrf\",\n \"xls\",\n \"xlsx\",\n \"ods\",\n \"csv\",\n \"tsv\",\n \"ppt\",\n \"pptx\",\n \"pps\",\n \"bib\",\n \"cba\",\n \"cbt\",\n \"cbz\",\n \"cbr\",\n \"opds\",\n \"fodt\",\n \"pages\",\n \"rtfd\",\n \"sxc\",\n \"sxw\",\n \"wpd\",\n \"xps\",\n \"dotx\",\n \"dotm\",\n \"xltx\",\n \"xltm\",\n \"sldx\",\n \"sldm\",\n \"fods\",\n \"mdx\",\n \"markdown\",\n \"texi\",\n \"textile\",\n\n // 🖼️ Image\n \"jpg\",\n \"jpeg\",\n \"png\",\n \"gif\",\n \"bmp\",\n \"tif\",\n \"tiff\",\n \"webp\",\n \"svg\",\n \"ico\",\n \"heif\",\n \"heic\",\n \"raw\",\n \"cr2\",\n \"nef\",\n \"orf\",\n \"sr2\",\n \"dng\",\n \"dds\",\n \"psd\",\n \"exr\",\n \"xcf\",\n \"ai\",\n \"eps\",\n \"cdr\",\n \"indd\",\n \"pcx\",\n \"pgm\",\n \"ppm\",\n \"pbm\",\n \"pnm\",\n \"jfif\",\n \"ras\",\n \"tga\",\n \"j2k\",\n \"jp2\",\n \"emf\",\n \"wmf\",\n \"hdp\",\n \"mdi\",\n \"hevc\",\n\n // 🎵 Audio\n \"mp3\",\n \"wav\",\n \"ogg\",\n \"flac\",\n \"aac\",\n \"m4a\",\n \"wma\",\n \"alac\",\n \"aiff\",\n \"aif\",\n \"amr\",\n \"mid\",\n \"midi\",\n \"opus\",\n \"au\",\n \"caf\",\n \"ape\",\n \"mka\",\n \"spx\",\n \"ra\",\n \"ram\",\n \"mpc\",\n \"wv\",\n \"aifc\",\n \"mod\",\n \"it\",\n \"s3m\",\n \"xm\",\n \"kar\",\n \"m4b\",\n \"voc\",\n \"snd\",\n \"a52\",\n \"ac3\",\n \"dts\",\n\n // 🎥 Video\n \"mp4\",\n \"mkv\",\n \"avi\",\n \"mov\",\n \"wmv\",\n \"webm\",\n \"mpeg\",\n \"mpg\",\n \"3gp\",\n \"3g2\",\n \"m4v\",\n \"ts\",\n \"mts\",\n \"asf\",\n \"rm\",\n \"rmvb\",\n \"vob\",\n \"f4v\",\n \"ogv\",\n \"m2ts\",\n \"dav\",\n \"mxf\",\n \"mjpeg\",\n \"flv\",\n \"divx\",\n \"f4a\",\n \"f4p\",\n \"m2v\",\n \"ogm\",\n \"vp8\",\n \"vp9\",\n \"xvid\",\n \"yuv\",\n \"mng\",\n \"dv\",\n \"m1v\",\n \"roq\",\n \"m2t\",\n \"av1\",\n \"hevc\",\n \"m3u\",\n \"m3u8\",\n\n // 🗃️ Archive & Compression\n \"zip\",\n \"rar\",\n \"7z\",\n \"tar\",\n \"gz\",\n \"bz\",\n \"bz2\",\n \"xz\",\n \"tgz\",\n \"tbz2\",\n \"txz\",\n \"lz\",\n \"lzma\",\n \"z\",\n \"cab\",\n \"arj\",\n \"ace\",\n \"rpm\",\n \"deb\",\n \"pkg\",\n \"apk\",\n \"jar\",\n \"war\",\n \"ear\",\n \"sit\",\n \"sitx\",\n \"cpgz\",\n \"tlz\",\n \"tlzma\",\n \"tzo\",\n \"cpio\",\n \"shar\",\n \"bzip\",\n \"gzip\",\n \"7zip\",\n \"rar5\",\n \"tbz\",\n \"txz\",\n\n // 💾 Disk Image\n \"iso\",\n \"img\",\n \"vhd\",\n \"vmdk\",\n \"qcow2\",\n \"vhdx\",\n \"bin\",\n \"cue\",\n \"nrg\",\n \"daa\",\n \"sdi\",\n \"vfd\",\n \"ima\",\n \"dmg\",\n \"vdi\",\n \"toast\",\n \"ccd\",\n \"mdf\",\n \"cdi\",\n \"bif\",\n \"bifc\",\n \"bifd\",\n\n // 🗃️ Database & Data\n \"sql\",\n \"db\",\n \"dbf\",\n \"mdb\",\n \"accdb\",\n \"json\",\n \"toml\",\n \"ini\",\n \"log\",\n \"plist\",\n \"pkl\",\n \"msgpack\",\n \"h5\",\n \"hdf5\",\n \"parquet\",\n \"avro\",\n \"orc\",\n \"ndjson\",\n \"pdb\",\n \"sqlite\",\n \"sqlite3\",\n \"dbx\",\n \"sdf\",\n \"nc\",\n \"netcdf\",\n \"grib\",\n \"geojson\",\n \"gml\",\n \"hjson\",\n \"cdb\",\n \"db3\",\n \"dta\",\n \"sav\",\n \"sas7bdat\",\n \"ldif\",\n \"fdb\",\n \"gdb\",\n \"sqlite2\",\n \"h5ad\",\n \"nc4\",\n \"xmind\",\n \"drawio\",\n \"sdc\",\n \"jsonl\",\n \"yaml\",\n \"yml\",\n \"toml\",\n\n // 💻 Code & Script\n \"js\",\n \"jsx\",\n \"ts\",\n \"tsx\",\n \"c\",\n \"cpp\",\n \"net\",\n \"h\",\n \"hpp\",\n \"java\",\n \"py\",\n \"rb\",\n \"go\",\n \"rs\",\n \"php\",\n \"pl\",\n \"sh\",\n \"bat\",\n \"cmd\",\n \"ps1\",\n \"lua\",\n \"swift\",\n \"kt\",\n \"scala\",\n \"cs\",\n \"vb\",\n \"dart\",\n \"m\",\n \"r\",\n \"jl\",\n \"fs\",\n \"vbproj\",\n \"sln\",\n \"pri\",\n \"gemspec\",\n \"gradle\",\n \"coffee\",\n \"erl\",\n \"ex\",\n \"exs\",\n \"hs\",\n \"lisp\",\n \"clj\",\n \"groovy\",\n \"scm\",\n \"vbs\",\n \"nim\",\n \"rkt\",\n \"ml\",\n \"mli\",\n \"fsx\",\n \"psm1\",\n \"cbl\",\n \"for\",\n \"f90\",\n \"lock\",\n \"tsconfig\",\n \"vue\",\n \"svelte\",\n \"cjs\",\n \"mjs\",\n \"mts\",\n \"cts\",\n \"json5\",\n \"es6\",\n \"module\",\n \"systemjs\",\n\n // 🌐 Web & Config\n \"html\",\n \"htm\",\n \"xhtml\",\n \"css\",\n \"scss\",\n \"sass\",\n \"less\",\n \"xml\",\n \"xlf\",\n \"po\",\n \"pot\",\n \"jsp\",\n \"asp\",\n \"aspx\",\n \"jspf\",\n \"cgi\",\n \"cfm\",\n \"env\",\n \"babelrc\",\n \"cfg\",\n \"config\",\n \"conf\",\n \"editorconfig\",\n \"eslintrc\",\n \"gitconfig\",\n \"gitattributes\",\n \"gitignore\",\n \"prettierrc\",\n \"webmanifest\",\n \"dockerfile\",\n // \".dockerfile\",\n\n // 🔠 Font\n \"ttf\",\n \"otf\",\n \"woff\",\n \"woff2\",\n \"eot\",\n \"dfont\",\n \"pfa\",\n \"pfb\",\n \"fon\",\n \"fnt\",\n \"bdf\",\n \"ps\",\n\n // 🗺️ CAD & GIS\n \"dwg\",\n \"dxf\",\n \"shp\",\n \"kml\",\n \"kmz\",\n \"gpx\",\n \"stl\",\n \"step\",\n \"iges\",\n \"igs\",\n \"3ds\",\n \"3dm\",\n \"fbx\",\n \"obj\",\n \"dae\",\n \"ifc\",\n\n // 🔧 System / Binary / Execution\n \"exe\",\n \"msi\",\n \"run\",\n \"com\",\n \"app\",\n \"elf\",\n \"dll\",\n \"so\",\n \"dylib\",\n \"sys\",\n \"scr\",\n \"bin\",\n \"out\",\n\n // 🔐 Certificates / Crypto\n \"pem\",\n \"crt\",\n \"cer\",\n \"der\",\n \"csr\",\n \"p12\",\n \"pfx\",\n \"jks\",\n \"asc\",\n \"gpg\",\n \"pgp\",\n \"p7b\",\n \"p7c\",\n \"spc\",\n \"key\",\n \"pub\",\n \"cert\",\n \"p7m\",\n\n // 🎮 Games & Projects\n \"nes\",\n \"sfc\",\n \"gba\",\n \"nds\",\n \"rom\",\n \"pak\",\n \"vpk\",\n \"bik\",\n \"cso\",\n \"wad\",\n \"wadx\",\n \"smc\",\n \"gb\",\n \"gbc\",\n\n // 🔬 Bioinformatics\n \"fasta\",\n \"fa\",\n \"fas\",\n \"ffn\",\n \"faa\",\n \"fna\",\n \"frn\",\n \"fastq\",\n \"fq\",\n \"bam\",\n \"bed\",\n \"sam\",\n \"vcf\",\n \"gff\",\n \"gff3\",\n \"gtf\",\n \"fai\",\n \"tbi\",\n \"fast5\",\n \"fqz\",\n \"fq5\"\n]);\n\n// ==========================\n// Double extensions\n// ==========================\nexport const DOUBLE_EXTENSIONS_FILE = new Set([\n \"log.gz\",\n \"tar.gz\",\n \"tar.bz2\",\n \"tar.bz\",\n \"tar.xz\",\n \"tar.lz\",\n \"tar.lzma\",\n \"tar.Z\",\n \"tar.zst\",\n \"tar.lz4\",\n \"log.gz\",\n \"sql.gz\",\n \"csv.gz\",\n \"tsv.gz\",\n \"json.gz\",\n \"ndjson.gz\",\n \"fq.gz\",\n \"sam.gz\",\n \"fasta.gz\",\n \"fa.gz\",\n \"ffn.gz\",\n \"faa.gz\",\n \"fna.gz\",\n \"frn.gz\",\n \"fastq.gz\",\n \"js.map\",\n \"css.map\"\n]);\n\n// ==========================\n// Special filenames\n// ==========================\nexport const SPECIAL_FILENAMES = new Set([\n \"Makefile\",\n \"Dockerfile\",\n \".dockerignore\",\n \".npmrc\",\n \".envrc\",\n \".htgroup\",\n \".eslintignore\",\n \".env.test\",\n \".env.local\",\n \".env.production\",\n \".env.development\",\n \".env.example\",\n \".dockerfile\",\n \".htaccess\",\n \".htpasswd\",\n \".babelrc\",\n \".eslintrc\",\n \".editorconfig\",\n \".prettierignore\",\n \"docker-compose.override.yml\",\n \"docker-compose.yml\",\n \"Vagrantfile\",\n \"Procfile\",\n \"Gemfile\",\n \"Rakefile\",\n \"package.json\",\n \"package-lock.json\",\n \"yarn.lock\",\n \"pnpm-lock.yaml\",\n \"tsconfig.json\",\n \"webpack.config.js\",\n \"vite.config.js\",\n \"vite.config.ts\",\n \"Gruntfile.js\",\n \"gulpfile.js\",\n \"babel.config.js\",\n \"babel.js\",\n \"rollup.js\",\n\n // SPECIAL PRESERVE NAME\n \"CON\",\n \"NUL\",\n \"PRN\",\n \"AUX\",\n \"COM1\",\n \"COM2\",\n \"COM3\",\n \"COM4\",\n \"COM5\",\n \"COM6\",\n \"COM7\",\n \"COM8\",\n \"COM9\",\n \"LPT1\",\n \"LPT2\",\n \"LPT3\",\n \"LPT4\",\n \"LPT5\",\n \"LPT6\",\n \"LPT7\",\n \"LPT8\",\n \"LPT9\"\n]);\n","import { createMessage } from \"@/_private/logger\";\n\nimport { punycodeUtilsJS } from \"@/urls/utils/punyCode\";\nimport { isPlainObject } from \"@/predicates/is/isPlainObject\";\nimport { isNonEmptyString } from \"@/predicates/is/isNonEmptyString\";\nimport { assertIsBoolean } from \"@/assertions/booleans/assertIsBoolean\";\n\nimport {\n DOUBLE_EXTENSIONS_FILE,\n EXTENSIONS_FILE,\n SPECIAL_FILENAMES\n} from \"./_private/extensions\";\n\nexport type ExtractFileNameOptions = {\n /** ------------------------------------------------------------------------------------\n * * ***Indicates whether the input should be treated as a potential domain string.***\n * -------------------------------------------------------------------------------------\n *\n * - Behavior when `true`:\n * - The `domainName` option is required and must be a string and non-empty string.\n * If `domainName` is `undefined`, `null`, or an empty string, a `TypeError` will be thrown.\n * - The `domainName` is used to determine if the input is a domain-only string.\n * - Returns `null` if the input exactly matches `domainName` or any of its subdomains **and** has no additional path or filename.\n * - If the input does not match `domainName` or its subdomains, it will be processed as a regular file-like name.\n * - Supports **Unicode/IDN domains** (e.g., `tést-ドメイン.com`) and **ASCII filenames**, mixed safely.\n *\n * ---\n * @default false\n */\n domainAware?: boolean;\n\n /** ------------------------------------------------------------------------------------\n * * ***The base domain name used for comparison (e.g., `\"example.com\"`).***\n * -------------------------------------------------------------------------------------\n *\n * - Required when `domainAware` is `true`.\n * - Helps differentiate between a domain-only input (ignored) and a standalone file-like string (processed normally).\n * - Must be a string and non-empty string. Invalid values (`undefined`, `null`, or empty string) will trigger a `TypeError`.\n * - Works with both **ASCII domains** and **Unicode/IDN domains**.\n * - Example:\n * ```ts\n * // ASCII domain + ASCII filename\n * extractFileName(\"resume.com\", {\n * domainAware: true,\n * domainName: \"example.com\"\n * });\n * // ➔ \"resume\"\n * extractFileName(\"example.com\", {\n * domainAware: true,\n * domainName: \"example.com\"\n * });\n * // ➔ null (because input is treated as domain-name)\n *\n * // Unicode domain + ASCII filename\n * extractFileName(\"tést-ドメイン.com/file.txt\", {\n * domainAware: true,\n * domainName: \"ドメイン.com\"\n * });\n * // ➔ \"file\"\n *\n * // Unicode domain + Unicode filename\n * extractFileName(\"tést-ドメイン.com/ファイル名.pdf\", {\n * domainAware: true,\n * domainName: \"ドメイン.com\"\n * });\n * // ➔ \"ファイル名\"\n *\n * // Invalid domainName, will throw TypeError\n * extractFileName(\"resume.com\", {\n * domainAware: true,\n * domainName: \"\"\n * });\n * // ➔ TypeError\n * ```\n *\n * ---\n * @default undefined\n */\n domainName?: string;\n};\n\n/** ------------------------------------------------------------------------------------\n * * ***Utility: `extractFileName`.***\n * -------------------------------------------------------------------------------------\n * **Extracts the **clean base filename** from nearly any input string, including URLs, local file paths,\n * UNC paths, and plain filenames.**\n *\n * ---\n * - It automatically safely handles extracts the **base file name** (without extension) from:\n * - File system paths (Windows, Unix, UNC).\n * - Protocols like http, https, ftp, file, mailto, or custom schemes.\n * - Percent-encoded, Unicode, and emoji characters.\n * - Dotfiles, reserved OS names, multi-part extensions.\n * - Data URIs.\n * - Optional domain-aware mode to ignore domain-only inputs.\n * - Plain filenames.\n *\n * ---\n * - Full support for:\n * - Unicode, emoji, percent-encoding.\n * - Dotfiles (e.g., `.env`, `.gitignore`).\n * - Reserved/OS-protected filenames:\n * `CON`, `PRN`, `AUX`, `NUL`, `COM1`~`COM9`, `LPT1`~`LPT9`.\n * - Known multi-part extensions:\n * `.tar.gz`, `.tar.bz2`, `.tar.xz`, `.tar.lz`, `.tar.zst`, `.min.js`, `.js.map`, `.log.gz`, `.sql.gz`,\n * `.backup.tar`, etc.\n * - Data URIs (`data:[mime];base64,...` ➔ payload string).\n * - Domain-aware mode (optional).\n *\n * ---\n * - **Behavior / Features**\n * - Strips **known extensions**, including multi-part and common double/triple extensions.\n * - Leaves unknown/custom extensions intact.\n * - Preserves **dotfiles** as-is (leading dot preserved).\n * - Returns `null` if:\n * - input is `null`, `undefined`, or not a string.\n * - input is empty, whitespace-only, or only slashes.\n * - input represents a folder path (trailing slash/backslash, drive/folder only).\n * - input is a **domain-only string** in domain-aware mode.\n * - Normalizes Windows-style backslashes (`\\`) internally as `/`.\n * - Supports UNC paths, mixed slashes, and Windows drive letters safely.\n * - Handles URLs:\n * - Ignores query strings (`?v=1.2.3`) and hash fragments (`#section`).\n * - Decodes percent-encoded filenames (`my%20file.txt` ➔ `my file.txt`).\n * - Supports protocol-relative URLs (`//cdn.example.com/file.jpg`).\n * - Supports uncommon/custom protocols (`ftp://`, `file://`, `mailto:`, etc.).\n * - Handles **multiple dots**, **trailing dots**, **triple or more extensions**.\n * - Supports filenames on mixed Unicode/ASCII domains:\n * - Domain names can include Unicode characters (IDN / punycode).\n * - Filenames may contain ASCII, Unicode, and emoji characters.\n * - Works correctly when domain is Unicode and filename is ASCII, or vice versa.\n * - Supports extremely long filenames safely (up to OS limits).\n * - Domain-aware mode (`domainAware: true` + `domainName`):\n * - Parameter `domainName` must be a string and non-empty string; otherwise a TypeError is thrown.\n * - Returns `null` if input equals `domainName` or any subdomain with no file path.\n * - Extracts filename normally if path/file exists on domain or other domain.\n * - Safe in Node.js and browsers.\n *\n * ---\n * @param {string | null | undefined} input\n * URL, file path, or plain filename to extract from.\n *\n * @param {ExtractFileNameOptions} [options]\n * Optional configuration:\n * - `domainAware?: boolean` – Treat input as a domain string. Requires `domainName` to be a string and non-empty string; otherwise, a TypeError is thrown.\n * - `domainName?: string` – Base domain for comparison eg (`example.com`), required when `domainAware` is true.\n *\n * ---\n * @returns {string | null}\n * - Base filename without known extensions\n * - Original filename if extension unknown\n * - `null` for invalid inputs, folder paths, or domain-only strings\n *\n * ---\n * @example\n * 1. #### Basic files:\n * ```ts\n * extractFileName(\"document.pdf\");\n * // ➔ \"document\"\n * extractFileName(\"/files/archive.tar.gz\");\n * // ➔ \"archive\"\n * extractFileName(\"C:\\\\path\\\\file.txt\");\n * // ➔ \"file\"\n * extractFileName(\".env\");\n * // ➔ \".env\"\n * extractFileName(\"folder/\");\n * // ➔ null\n * ```\n * ---\n * 2. #### Not a file:\n * ```ts\n * extractFileName(\"not-file\");\n * // ➔ null\n * extractFileName(\"not-file/\");\n * // ➔ null\n * extractFileName(\"/not-file/\");\n * // ➔ null\n * extractFileName(\"/not-file\");\n * // ➔ null\n * ```\n * ---\n * 3. #### URLs with `queries`, `hashes`, `protocols`:\n * ```ts\n * extractFileName(\"https://example.com/file.txt?ver=1\");\n * // ➔ \"file\"\n * extractFileName(\"https://example.com/archive.tar.gz#part\");\n * // ➔ \"archive\"\n * extractFileName(\"//cdn.example.com/image.png\");\n * // ➔ \"image\"\n * ```\n * ---\n * 4. #### Special protocol handling:\n * ```ts\n * extractFileName(\"tel:+6212345678\");\n * // ➔ \"+6212345678\"\n * extractFileName(\"sms:+6212345678\");\n * // ➔ \"+6212345678\"\n * extractFileName(\"mailto:user@domain.com\");\n * // ➔ \"user@domain\"\n * extractFileName(\"data:text/plain;base64,SGVsbG8=\");\n * // ➔ \"SGVsbG8=\"\n * extractFileName(\"mailto:resume.com\");\n * // ➔ \"resume\"\n * extractFileName(\"ftp://example.com/image.jpeg\");\n * // ➔ \"image\"\n * extractFileName(\"ftp://files.example.com/app.min.js\");\n * // ➔ \"app.min\"\n * extractFileName(\"file:///C:/path/to/document.pdf\");\n * // ➔ \"document\"\n * extractFileName(\"custom-scheme://example.com/video.mp4\");\n * // ➔ \"video\"\n * ```\n * ---\n * 5. #### Unicode & emoji:\n * ```ts\n * extractFileName(\"emoji-😊.png\");\n * // ➔ \"emoji-😊\"\n * extractFileName(\"🔥project.tar.gz\");\n * // ➔ \"🔥project\"\n * ```\n * 6. #### Dotfiles:\n * ```ts\n * extractFileName(\".gitignore\");\n * // ➔ \".gitignore\"\n * extractFileName(\"/path/.bashrc\");\n * // ➔ \".bashrc\"\n * ```\n * ---\n * 7. #### Mixed Unicode domain and ASCII filename:\n * ```ts\n * extractFileName(\"https://tést-ドメイン.com/file.txt\");\n * // ➔ \"file\"\n * extractFileName(\"https://example.com/ファイル名.pdf\");\n * // ➔ \"ファイル名\"\n * extractFileName(\"https://ドメイン例.com/emoji-🔥.png\");\n * // ➔ \"emoji-🔥\"\n * ```\n * 8. #### Reserved filenames:\n * ```ts\n * extractFileName(\"CON\");\n * // ➔ \"CON\"\n * extractFileName(\"NUL.txt\");\n * // ➔ \"NUL\"\n * ```\n * ---\n * 9. #### Domain-aware mode:\n * ```ts\n * extractFileName(\"example.com\", {\n * domainAware: true,\n * domainName: \"example.com\"\n * });\n * // ➔ null\n * extractFileName(\"cdn.example.com\", {\n * domainAware: true,\n * domainName: \"example.com\"\n * });\n * // ➔ null\n * extractFileName(\"resume.com\", {\n * domainAware: true,\n * domainName: \"example.com\"\n * });\n * // ➔ \"resume\"\n * extractFileName(\"https://example.com/file.txt\", {\n * domainAware: true,\n * domainName: \"example.com\"\n * });\n * // ➔ \"file\"\n * ```\n * ---\n * 10. #### Windows & UNC paths:\n * ```ts\n * extractFileName(\"C:\\\\Users\\\\rzl\\\\Documents\\\\file.txt\");\n * // ➔ \"file\"\n * extractFileName(\"\\\\\\\\SERVER\\\\share\\\\logs\\\\output.log\");\n * // ➔ \"output\"\n * extractFileName(\"C:/Users\\\\rzl/mix\\\\test.pdf\");\n * // ➔ \"test\"\n * ```\n * ---\n * 11. #### Edge / extreme cases:\n * ```ts\n * extractFileName(\"https://example.com/my%20file%20name.txt\");\n * // ➔ \"my file name\"\n * extractFileName(\"app.min.js.map\");\n * // ➔ \"app.min\"\n * extractFileName(\"backup.tar.bak\");\n * // ➔ \"backup.tar.bak\" (unknown double extension)\n * extractFileName(\"filename.\");\n * // ➔ \"filename.\"\n * extractFileName(\"a\".repeat(255) + \".txt\");\n * // ➔ \"a\".repeat(255)\n * ```\n * ---\n * @note\n * - Robust: never throws, handles unusual inputs safely.\n * - Suitable for display, logging, or safe storage.\n * - Normalizes slashes consistently.\n * - Covers nearly all real-world filename, URL, path, data URI, and domain scenarios.\n * - Handles Windows UNC paths, mixed slashes, percent-encoded, Unicode/emoji filenames.\n * - Known multi-part extensions list can be extended without breaking functionality.\n */\nexport const extractFileName = (\n input?: string | null,\n options?: ExtractFileNameOptions\n): string | null => {\n if (!isNonEmptyString(input)) return null;\n if (!isPlainObject(options)) options = {};\n\n const { domainName, domainAware = false } = options;\n\n assertIsBoolean(domainAware, {\n message: ({ currentType, validType }) =>\n errorMsg(\n `Parameter \\`domainAware\\` property of the \\`options\\` (second parameter) must be of type \\`${validType}\\`, but received: \\`${currentType}\\`.`\n )\n });\n\n let pathname = input.trim();\n\n // Normalize Windows backslashes\n pathname = pathname.replace(/\\\\/g, \"/\");\n\n // domain-aware mode\n if (domainAware) {\n if (!isNonEmptyString(domainName)) {\n throw new TypeError(\n errorMsg(\n \"If parameter `domainAware` is set to `true`, the option parameter `domainName` is required as string, and cant be an empty-string.\"\n )\n );\n }\n\n const cleanDomain = punycodeUtilsJS\n .toASCII(domainName)\n .replace(/^https?:\\/\\//i, \"\")\n .replace(/^www\\./, \"\")\n .replace(/\\/.*$/, \"\")\n .toLowerCase();\n\n const inputDomain = punycodeUtilsJS\n .toASCII(input)\n .replace(/^https?:\\/\\//i, \"\")\n .replace(/^www\\./, \"\")\n .toLowerCase();\n\n const inputHost = inputDomain.split(\"/\")[0]?.split(/[?#]/)[0];\n const matchesDomain =\n inputHost === cleanDomain || inputHost?.endsWith(`.${cleanDomain}`);\n const hasPath = /\\/[^/]+$/.test(inputDomain);\n\n if (matchesDomain && !hasPath) return null;\n }\n\n // handle special protocol-like strings\n const protocolMatch = pathname.match(/^([a-zA-Z][a-zA-Z0-9+.-]*):(.+)$/);\n if (protocolMatch) {\n const scheme = protocolMatch[1]?.toLowerCase() || \"\";\n const rest = protocolMatch[2];\n\n if ([\"tel\", \"sms\"].some((sch) => sch.startsWith(scheme))) {\n const clean = rest?.split(\"?\")[0]?.split(\"#\")[0];\n return clean?.trim() || null;\n } else if (scheme === \"mailto\") {\n const parts = rest?.split(\"/\");\n let last = parts?.[parts.length - 1];\n last = last?.split(\"?\")[0]?.split(\"#\")[0]; // strip query/hash\n const dotIndex = last?.lastIndexOf(\".\");\n if (dotIndex && dotIndex > 0) last = last?.slice(0, dotIndex);\n return last || null;\n } else if (scheme === \"data\") {\n const commaIndex = rest?.indexOf(\",\") || -1;\n if (commaIndex === -1) return null;\n let payload = rest?.slice(commaIndex + 1);\n payload = payload?.split?.(\"?\")[0]?.split(\"#\")[0]; // strip query/hash\n return payload?.trim() || null;\n }\n }\n\n if (/^[a-z][a-z\\d+\\-.]*:\\/{3,}/i.test(pathname)) {\n // eg https:///file.txt (has more than 2 slash after : protocol)\n pathname = pathname.replace(/^[a-z][a-z\\d+\\-.]*:\\/{2,}/i, \"\");\n } else {\n try {\n const isProbablyUrl = /^[a-z][a-z\\d+\\-.]*:(\\/\\/)?/i.test(pathname);\n\n pathname = isProbablyUrl\n ? new URL(pathname).pathname\n : new URL(`http://localhost/${pathname}`).pathname;\n } catch {\n // Fallback for weird URLs like 'https:///file.txt'\n // Remove protocol + any number of slashes\n pathname = pathname.replace(/^[a-z][a-z\\d+\\-.]*:(\\/\\/)?/i, \"\");\n }\n }\n\n // split into non-empty segments\n const segments = pathname.split(\"/\").filter(Boolean);\n\n if (segments.length === 0) return null;\n\n // Take the last segment as candidate filename\n let lastSegment =\n segments[segments.length - 1]?.split(\"?\")[0]?.split(\"#\")[0] || \"\";\n // Strip trailing ? or # that is alone\n lastSegment = lastSegment?.replace(/[?#]+$/, \"\");\n if (!lastSegment) return null;\n\n // Replace encoded slashes and dots\n lastSegment = lastSegment\n .replace(/%2F/gi, \"/\")\n .replace(/%5C/gi, \"\\\\\")\n .replace(/%2E/gi, \".\");\n\n // If replacement introduces new slashes, take the new last segment\n if (lastSegment.includes(\"/\")) {\n const parts = lastSegment.split(\"/\").filter(Boolean);\n lastSegment = parts[parts.length - 1] || \"\";\n }\n\n let filename = decodeURIComponent(lastSegment);\n\n if (!filename) return null;\n\n // Special filenames always returned as-is (even if trailing slash)\n if (SPECIAL_FILENAMES.has(filename)) return filename;\n\n // Dotfiles like \".env\" should be returned as-is (single leading dot, no other dot)\n if (/^\\.[^.\\s][^/]*$/.test(filename)) return filename;\n\n // If the original pathname ends with \"/\" and the last segment doesn't look like a file\n // const originalEndsWithSlash = pathname.endsWith(\"/\");\n if (!filename.includes(\".\")) return null;\n\n // Strip double extensions first\n const sortedDouble = [...DOUBLE_EXTENSIONS_FILE].sort(\n (a, b) => b.length - a.length\n );\n for (const ext of sortedDouble) {\n const dotExt = `.${ext.toLowerCase()}`;\n if (filename.toLowerCase().endsWith(dotExt)) {\n filename = filename.slice(0, filename.length - dotExt.length);\n break;\n }\n }\n\n // Strip single extensions\n const sortedSingle = [...EXTENSIONS_FILE].sort((a, b) => b.length - a.length);\n for (const ext of sortedSingle) {\n const dotExt = `.${ext.toLowerCase()}`;\n if (filename.toLowerCase().endsWith(dotExt)) {\n filename = filename.slice(0, filename.length - dotExt.length);\n break;\n }\n }\n\n return filename || null;\n};\n\n/**\n * @internal ***`Not part of the public API.`***\n */\nconst errorMsg = (msg: string) => createMessage(\"extractFileName\", msg);\n"],"mappings":";;;;;;;;;;;;;;AAGA,MAAa,kBAAkB,IAAI,IAAI;CAErC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAIA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AAKD,MAAa,yBAAyB,IAAI,IAAI;CAC5C;CACA;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"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.14.0
|
|
5
|
+
* Version: `3.14.0`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
|
-
import { E as isPlainObject, n as assertIsBoolean, t as createMessage, w as isNonEmptyString } from "./logger-
|
|
11
|
-
import { t as punycodeUtilsJS } from "./punyCode-
|
|
10
|
+
import { E as isPlainObject, n as assertIsBoolean, t as createMessage, w as isNonEmptyString } from "./logger-Wxl_Krg6.js";
|
|
11
|
+
import { t as punycodeUtilsJS } from "./punyCode-DsuJbWCl.js";
|
|
12
12
|
const EXTENSIONS_FILE = new Set([
|
|
13
13
|
"txt",
|
|
14
14
|
"md",
|
|
@@ -641,4 +641,4 @@ const extractFileName = (input, options) => {
|
|
|
641
641
|
};
|
|
642
642
|
const errorMsg = (msg) => createMessage("extractFileName", msg);
|
|
643
643
|
export { extractFileName as t };
|
|
644
|
-
//# sourceMappingURL=parsers-
|
|
644
|
+
//# sourceMappingURL=parsers-DMlqliPw.js.map
|