@rzl-zone/build-tools 0.0.11 → 0.0.12

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.
Files changed (80) hide show
  1. package/dist/.references/index.d.cts +1 -1
  2. package/dist/.references/index.d.ts +1 -1
  3. package/dist/bundler/rolldown.cjs +4 -4
  4. package/dist/bundler/rolldown.cjs.map +1 -1
  5. package/dist/bundler/rolldown.d.cts +2 -2
  6. package/dist/bundler/rolldown.d.ts +2 -2
  7. package/dist/bundler/rolldown.js +1 -1
  8. package/dist/bundler/rolldown.js.map +1 -1
  9. package/dist/bundler/tsdown.cjs +9 -9
  10. package/dist/bundler/tsdown.cjs.map +1 -1
  11. package/dist/bundler/tsdown.d.cts +2 -2
  12. package/dist/bundler/tsdown.d.ts +2 -2
  13. package/dist/bundler/tsdown.js +3 -3
  14. package/dist/bundler/tsdown.js.map +1 -1
  15. package/dist/bundler/utils.cjs +2 -2
  16. package/dist/bundler/utils.cjs.map +1 -1
  17. package/dist/bundler/utils.d.cts +2 -2
  18. package/dist/bundler/utils.d.ts +2 -2
  19. package/dist/bundler/utils.js +2 -2
  20. package/dist/bundler/utils.js.map +1 -1
  21. package/dist/client-B-L0njjX.js +75 -0
  22. package/dist/client-B-L0njjX.js.map +1 -0
  23. package/dist/client-BxJj_VrQ.cjs +81 -0
  24. package/dist/client-BxJj_VrQ.cjs.map +1 -0
  25. package/dist/commander-kit/index.cjs +84 -65
  26. package/dist/commander-kit/index.cjs.map +1 -1
  27. package/dist/commander-kit/index.d.cts +3 -3
  28. package/dist/commander-kit/index.d.ts +3 -3
  29. package/dist/commander-kit/index.js +24 -5
  30. package/dist/commander-kit/index.js.map +1 -1
  31. package/dist/{extra-BleSbKJp.d.ts → extra-CNDyFVA8.d.ts} +2 -2
  32. package/dist/{extra-C8r3KWjP.d.cts → extra-CtuOwfZ4.d.cts} +2 -2
  33. package/dist/{fast-globe-options-DnV58KJc.d.ts → fast-globe-options-Dj630IVV.d.ts} +3 -3
  34. package/dist/{fast-globe-options-D7S2fQZZ.d.cts → fast-globe-options-NcQT6Fg5.d.cts} +3 -3
  35. package/dist/{helper-C0AShk-j.js → formatter-Bd8fVs2h.js} +88 -3
  36. package/dist/formatter-Bd8fVs2h.js.map +1 -0
  37. package/dist/{helper-DNj9Sj4w.cjs → formatter-DEp7VUev.cjs} +142 -14
  38. package/dist/formatter-DEp7VUev.cjs.map +1 -0
  39. package/dist/{identity-CcYkvy9q.js → identity-BaFHc-2R.js} +5 -6
  40. package/dist/{identity-CcYkvy9q.js.map → identity-BaFHc-2R.js.map} +1 -1
  41. package/dist/{identity-Crq3bzhv.cjs → identity-C9ff_g77.cjs} +14 -15
  42. package/dist/{identity-Crq3bzhv.cjs.map → identity-C9ff_g77.cjs.map} +1 -1
  43. package/dist/{index-DlH2PDPD.d.cts → index-BXqEWtZV.d.cts} +2 -2
  44. package/dist/{index-BdtMQyzF.d.cts → index-DgaO182z.d.cts} +2 -2
  45. package/dist/{index-CwHGSras.d.ts → index-qpwsLgqK.d.ts} +2 -2
  46. package/dist/{index-NLQcJJFO.d.ts → index-uMbOxPvL.d.ts} +2 -2
  47. package/dist/index.cjs +221 -274
  48. package/dist/index.cjs.map +1 -1
  49. package/dist/index.d.cts +5 -5
  50. package/dist/index.d.ts +5 -5
  51. package/dist/index.js +5 -58
  52. package/dist/index.js.map +1 -1
  53. package/dist/{package-banner-DkNDAjMK.js → package-banner-Bk5L__8h.js} +4 -5
  54. package/dist/{package-banner-DkNDAjMK.js.map → package-banner-Bk5L__8h.js.map} +1 -1
  55. package/dist/package-banner-Pjznq5SP.cjs +59 -0
  56. package/dist/{package-banner-BoS7Lbi9.cjs.map → package-banner-Pjznq5SP.cjs.map} +1 -1
  57. package/dist/server-BsqxhpCl.js +198 -0
  58. package/dist/server-BsqxhpCl.js.map +1 -0
  59. package/dist/server-CyO1Pxp8.cjs +255 -0
  60. package/dist/server-CyO1Pxp8.cjs.map +1 -0
  61. package/dist/utils/client.cjs +12 -11
  62. package/dist/utils/client.d.cts +1 -1
  63. package/dist/utils/client.d.ts +1 -1
  64. package/dist/utils/client.js +3 -2
  65. package/dist/utils/server.cjs +5 -2
  66. package/dist/utils/server.d.cts +433 -3
  67. package/dist/utils/server.d.ts +433 -3
  68. package/dist/utils/server.js +3 -3
  69. package/package.json +6 -4
  70. package/dist/client-CuivP4z0.cjs +0 -221
  71. package/dist/client-CuivP4z0.cjs.map +0 -1
  72. package/dist/client-DzeqTq6Y.js +0 -160
  73. package/dist/client-DzeqTq6Y.js.map +0 -1
  74. package/dist/helper-C0AShk-j.js.map +0 -1
  75. package/dist/helper-DNj9Sj4w.cjs.map +0 -1
  76. package/dist/package-banner-BoS7Lbi9.cjs +0 -60
  77. package/dist/server-CvLC0e2m.cjs +0 -181
  78. package/dist/server-CvLC0e2m.cjs.map +0 -1
  79. package/dist/server-Dc93jndm.js +0 -142
  80. package/dist/server-Dc93jndm.js.map +0 -1
@@ -2,14 +2,14 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.11`
5
+ * Version: `0.0.12`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
9
9
  */
10
10
 
11
- import { t as AnyString } from "../extra-C8r3KWjP.cjs";
12
- import { t as CommandIdentity } from "../index-BdtMQyzF.cjs";
11
+ import { t as AnyString } from "../extra-CtuOwfZ4.cjs";
12
+ import { t as CommandIdentity } from "../index-DgaO182z.cjs";
13
13
  import { AddHelpTextContext, AddHelpTextPosition, Argument, Command, CommandOptions, CommanderError, ErrorOptions, ExecutableCommandOptions, Help, HelpConfiguration, HelpContext, HookEvent, InvalidArgumentError, InvalidOptionArgumentError, Option, OptionValueSource, OptionValues, OutputConfiguration, ParseOptions, ParseOptionsResult } from "commander";
14
14
 
15
15
  /** ----------------------------------------------------------------
@@ -2,14 +2,14 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.11`
5
+ * Version: `0.0.12`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
9
9
  */
10
10
 
11
- import { t as AnyString } from "../extra-BleSbKJp.js";
12
- import { t as CommandIdentity } from "../index-NLQcJJFO.js";
11
+ import { t as AnyString } from "../extra-CNDyFVA8.js";
12
+ import { t as CommandIdentity } from "../index-uMbOxPvL.js";
13
13
  import { AddHelpTextContext, AddHelpTextPosition, Argument, Command, CommandOptions, CommanderError, ErrorOptions, ExecutableCommandOptions, Help, HelpConfiguration, HelpContext, HookEvent, InvalidArgumentError, InvalidOptionArgumentError, Option, OptionValueSource, OptionValues, OutputConfiguration, ParseOptions, ParseOptionsResult } from "commander";
14
14
 
15
15
  /** ----------------------------------------------------------------
@@ -2,16 +2,16 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.11`
5
+ * Version: `0.0.12`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
9
9
  */
10
10
 
11
- import { _ as isUndefined, c as isNil, i as isBoolean, l as isNonEmptyString, t as deepFreeze, u as isNull } from "../helper-C0AShk-j.js";
12
- import { r as ICONS } from "../server-Dc93jndm.js";
13
- import { n as PACKAGE_META, t as CommandIdentity } from "../identity-CcYkvy9q.js";
14
- import { a as joinInline, i as formatOptionValue, l as picocolors, n as EOL, s as joinLinesLoose, t as ConfigurationError } from "../client-DzeqTq6Y.js";
11
+ import { _ as isNonEmptyString, c as picocolors, g as isNil, i as joinInline, o as joinLinesLoose, p as isBoolean, r as formatOptionValue, t as EOL, u as deepFreeze, v as isNull, w as isUndefined } from "../formatter-Bd8fVs2h.js";
12
+ import { o as ICONS } from "../server-BsqxhpCl.js";
13
+ import { n as PACKAGE_META, t as CommandIdentity } from "../identity-BaFHc-2R.js";
14
+ import { t as ConfigurationError } from "../client-B-L0njjX.js";
15
15
  import "@rzl-zone/node-only";
16
16
  import { parse } from "node:path";
17
17
  import { Argument, Command, CommanderError, Help, InvalidArgumentError, InvalidOptionArgumentError, Option } from "commander";
@@ -57,11 +57,28 @@ function handleCommanderExit(err) {
57
57
  console.error(err);
58
58
  process.exit(1);
59
59
  }
60
+ //! Reject primitive values: prototype chains only exist on object-like entities
61
+ //! Safety guard: If target has no prototype (e.g., Object.create(null)), match is impossible
62
+ //! Constraint: Primitives do not have prototype chains and cannot be instances
60
63
  function isExactInstanceOf(value, ctor) {
61
64
  //! Constraint: Immediately reject primitives
62
65
  if (value === null || typeof value !== "object" && typeof value !== "function") return false;
63
66
  return Object.getPrototypeOf(value) === ctor.prototype;
64
67
  }
68
+ //! Requirement: Must be a function to even be a candidate for a constructor
69
+ //! Safety Guard: If toString fails (e.g. on certain Proxy types), reject immediately
70
+ //! Logic Boundary: If it lacks both ES6 class syntax and native constructor markers, reject as regular function
71
+ //! also Reject ordinary functions that are not constructable class-like entities
72
+ //! Validity constructor must have valid prototype object
73
+ //! Identity Verification: The back-reference must strictly equal the original function
74
+ //! Panic Guard: Catch errors from potential 'poisoned' prototypes or proxy traps
75
+ //! Reference Matching: Ensure the descriptor's value is the exact same object as the prototype link
76
+ //! NOTE:
77
+ //! Native class constructors (e.g. Map, Set, Promise, Error)
78
+ //! may have non-writable prototype properties.
79
+ //!
80
+ //! Therefore, checking descriptor.value identity is sufficient
81
+ //! to confirm structural integrity without enforcing write-ability.
65
82
  var CliHelp = class extends Help {
66
83
  constructor() {
67
84
  super();
@@ -546,5 +563,7 @@ var CliInvalidOptionArgumentError = class extends InvalidOptionArgumentError {
546
563
  const cliCreateArgument = (name, description) => new CliArgument(name, description);
547
564
  const cliCreateCommand = (name) => new CliCommand(name);
548
565
  const cliCreateOption = (arg, description) => new CliOption(arg, description);
566
+ //! --- CLI ---
567
+ //! --- CLI TYPE ---
549
568
  export { CliArgument, CliCommand, CliCommanderError, CliHelp, CliInvalidArgumentError, CliInvalidOptionArgumentError, CliOption, CommandIdentity, applyCommanderUi, cliCreateArgument, cliCreateCommand, cliCreateOption, cliProgram, createBaseProgram, formatCommanderError, getCommanderErrorCode, handleCommanderExit, isCommanderError };
550
569
  //# sourceMappingURL=index.js.map