@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.
- package/dist/.references/index.d.cts +1 -1
- package/dist/.references/index.d.ts +1 -1
- package/dist/bundler/rolldown.cjs +4 -4
- package/dist/bundler/rolldown.cjs.map +1 -1
- package/dist/bundler/rolldown.d.cts +2 -2
- package/dist/bundler/rolldown.d.ts +2 -2
- package/dist/bundler/rolldown.js +1 -1
- package/dist/bundler/rolldown.js.map +1 -1
- package/dist/bundler/tsdown.cjs +9 -9
- package/dist/bundler/tsdown.cjs.map +1 -1
- package/dist/bundler/tsdown.d.cts +2 -2
- package/dist/bundler/tsdown.d.ts +2 -2
- package/dist/bundler/tsdown.js +3 -3
- package/dist/bundler/tsdown.js.map +1 -1
- package/dist/bundler/utils.cjs +2 -2
- package/dist/bundler/utils.cjs.map +1 -1
- package/dist/bundler/utils.d.cts +2 -2
- package/dist/bundler/utils.d.ts +2 -2
- package/dist/bundler/utils.js +2 -2
- package/dist/bundler/utils.js.map +1 -1
- package/dist/client-B-L0njjX.js +75 -0
- package/dist/client-B-L0njjX.js.map +1 -0
- package/dist/client-BxJj_VrQ.cjs +81 -0
- package/dist/client-BxJj_VrQ.cjs.map +1 -0
- package/dist/commander-kit/index.cjs +84 -65
- package/dist/commander-kit/index.cjs.map +1 -1
- package/dist/commander-kit/index.d.cts +3 -3
- package/dist/commander-kit/index.d.ts +3 -3
- package/dist/commander-kit/index.js +24 -5
- package/dist/commander-kit/index.js.map +1 -1
- package/dist/{extra-BleSbKJp.d.ts → extra-CNDyFVA8.d.ts} +2 -2
- package/dist/{extra-C8r3KWjP.d.cts → extra-CtuOwfZ4.d.cts} +2 -2
- package/dist/{fast-globe-options-DnV58KJc.d.ts → fast-globe-options-Dj630IVV.d.ts} +3 -3
- package/dist/{fast-globe-options-D7S2fQZZ.d.cts → fast-globe-options-NcQT6Fg5.d.cts} +3 -3
- package/dist/{helper-C0AShk-j.js → formatter-Bd8fVs2h.js} +88 -3
- package/dist/formatter-Bd8fVs2h.js.map +1 -0
- package/dist/{helper-DNj9Sj4w.cjs → formatter-DEp7VUev.cjs} +142 -14
- package/dist/formatter-DEp7VUev.cjs.map +1 -0
- package/dist/{identity-CcYkvy9q.js → identity-BaFHc-2R.js} +5 -6
- package/dist/{identity-CcYkvy9q.js.map → identity-BaFHc-2R.js.map} +1 -1
- package/dist/{identity-Crq3bzhv.cjs → identity-C9ff_g77.cjs} +14 -15
- package/dist/{identity-Crq3bzhv.cjs.map → identity-C9ff_g77.cjs.map} +1 -1
- package/dist/{index-DlH2PDPD.d.cts → index-BXqEWtZV.d.cts} +2 -2
- package/dist/{index-BdtMQyzF.d.cts → index-DgaO182z.d.cts} +2 -2
- package/dist/{index-CwHGSras.d.ts → index-qpwsLgqK.d.ts} +2 -2
- package/dist/{index-NLQcJJFO.d.ts → index-uMbOxPvL.d.ts} +2 -2
- package/dist/index.cjs +221 -274
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -58
- package/dist/index.js.map +1 -1
- package/dist/{package-banner-DkNDAjMK.js → package-banner-Bk5L__8h.js} +4 -5
- package/dist/{package-banner-DkNDAjMK.js.map → package-banner-Bk5L__8h.js.map} +1 -1
- package/dist/package-banner-Pjznq5SP.cjs +59 -0
- package/dist/{package-banner-BoS7Lbi9.cjs.map → package-banner-Pjznq5SP.cjs.map} +1 -1
- package/dist/server-BsqxhpCl.js +198 -0
- package/dist/server-BsqxhpCl.js.map +1 -0
- package/dist/server-CyO1Pxp8.cjs +255 -0
- package/dist/server-CyO1Pxp8.cjs.map +1 -0
- package/dist/utils/client.cjs +12 -11
- package/dist/utils/client.d.cts +1 -1
- package/dist/utils/client.d.ts +1 -1
- package/dist/utils/client.js +3 -2
- package/dist/utils/server.cjs +5 -2
- package/dist/utils/server.d.cts +433 -3
- package/dist/utils/server.d.ts +433 -3
- package/dist/utils/server.js +3 -3
- package/package.json +6 -4
- package/dist/client-CuivP4z0.cjs +0 -221
- package/dist/client-CuivP4z0.cjs.map +0 -1
- package/dist/client-DzeqTq6Y.js +0 -160
- package/dist/client-DzeqTq6Y.js.map +0 -1
- package/dist/helper-C0AShk-j.js.map +0 -1
- package/dist/helper-DNj9Sj4w.cjs.map +0 -1
- package/dist/package-banner-BoS7Lbi9.cjs +0 -60
- package/dist/server-CvLC0e2m.cjs +0 -181
- package/dist/server-CvLC0e2m.cjs.map +0 -1
- package/dist/server-Dc93jndm.js +0 -142
- 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.
|
|
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-
|
|
12
|
-
import { t as CommandIdentity } from "../index-
|
|
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.
|
|
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-
|
|
12
|
-
import { t as CommandIdentity } from "../index-
|
|
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.
|
|
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
|
|
12
|
-
import {
|
|
13
|
-
import { n as PACKAGE_META, t as CommandIdentity } from "../identity-
|
|
14
|
-
import {
|
|
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
|