@shell-shock/plugin-help 0.1.9 → 0.1.11

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 (40) hide show
  1. package/README.md +1 -1
  2. package/dist/components/display.cjs +9 -9
  3. package/dist/components/display.mjs +3 -3
  4. package/dist/index.cjs +2 -2
  5. package/dist/index.mjs +1 -1
  6. package/package.json +13 -15
  7. package/dist/_virtual/_rolldown/runtime.mjs +0 -3
  8. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/constant-case.cjs +0 -17
  9. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/constant-case.mjs +0 -17
  10. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/constant-case.mjs.map +0 -1
  11. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/get-words.cjs +0 -38
  12. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/get-words.mjs +0 -38
  13. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/get-words.mjs.map +0 -1
  14. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/kebab-case.cjs +0 -33
  15. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/kebab-case.mjs +0 -34
  16. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/kebab-case.mjs.map +0 -1
  17. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/snake-case.cjs +0 -40
  18. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/snake-case.mjs +0 -41
  19. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/snake-case.mjs.map +0 -1
  20. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/upper-case-first.cjs +0 -17
  21. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/upper-case-first.mjs +0 -17
  22. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/upper-case-first.mjs.map +0 -1
  23. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-empty.cjs +0 -20
  24. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-empty.mjs +0 -21
  25. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-empty.mjs.map +0 -1
  26. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-null.cjs +0 -12
  27. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-null.mjs +0 -12
  28. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-null.mjs.map +0 -1
  29. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-set-string.cjs +0 -20
  30. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-set-string.mjs +0 -21
  31. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-set-string.mjs.map +0 -1
  32. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-set.cjs +0 -19
  33. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-set.mjs +0 -20
  34. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-set.mjs.map +0 -1
  35. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-string.cjs +0 -12
  36. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-string.mjs +0 -12
  37. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-string.mjs.map +0 -1
  38. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-undefined.cjs +0 -8
  39. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-undefined.mjs +0 -8
  40. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-undefined.mjs.map +0 -1
package/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the ⚡<b>Shell Shock</b> monorepo. The Shell Shock pack
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.1.4-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/shell-shock/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/shell-shock/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.1.10-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/shell-shock/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/shell-shock/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -1,15 +1,15 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
3
- const require_is_set_string = require('../node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-set-string.cjs');
4
- const require_kebab_case = require('../node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/kebab-case.cjs');
5
- const require_snake_case = require('../node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/snake-case.cjs');
6
3
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
7
4
  let _alloy_js_core = require("@alloy-js/core");
8
5
  let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
6
+ let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
9
7
  let _powerlines_plugin_alloy_core_components_spacing = require("@powerlines/plugin-alloy/core/components/spacing");
10
8
  let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
11
9
  let _shell_shock_core = require("@shell-shock/core");
12
10
  let _shell_shock_plugin_theme_contexts_theme = require("@shell-shock/plugin-theme/contexts/theme");
11
+ let _stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
12
+ let _stryke_string_format_snake_case = require("@stryke/string-format/snake-case");
13
13
 
14
14
  //#region src/components/display.tsx
15
15
  /**
@@ -26,7 +26,7 @@ function HelpUsageDisplay(props) {
26
26
  hardline: true,
27
27
  children: (bin) => [(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`
28
28
  writeLine(
29
- colors.text.body.secondary(\`\$ \${colors.text.usage.bin("${bin}")}${command.segments.length > 0 ? ` ${command.segments.map((segment) => `\${colors.text.usage.${(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment) ? "dynamic" : "command"}("${(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment) ? `[${require_snake_case.snakeCase((0, _shell_shock_core_plugin_utils.getDynamicPathSegmentName)(segment))}]` : segment}")}`).join(" ")}` : ""}${Object.values(command.children).length > 0 ? ` \${colors.text.usage.dynamic("[command]")}` : ""}${command.args.length > 0 ? ` ${command.args.map((arg) => `\${colors.text.usage.args("<${require_snake_case.snakeCase((arg.kind === _shell_shock_core.CommandParameterKinds.string || arg.kind === _shell_shock_core.CommandParameterKinds.number) && arg.choices && arg.choices.length > 0 ? arg.choices.join("|") : arg.kind === _shell_shock_core.CommandParameterKinds.string && arg.format ? arg.format : arg.name)}${(arg.kind === _shell_shock_core.CommandParameterKinds.string || arg.kind === _shell_shock_core.CommandParameterKinds.number) && arg.variadic ? "..." : ""}>")}`).join(" ")}` : ""} \${colors.text.usage.options("[options]")}\`), { padding: ${theme.padding.app * indent} }
29
+ colors.text.body.secondary(\`\$ \${colors.text.usage.bin("${bin}")}${command.segments.length > 0 ? ` ${command.segments.map((segment) => `\${colors.text.usage.${(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment) ? "dynamic" : "command"}("${(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment) ? `[${(0, _stryke_string_format_snake_case.snakeCase)((0, _shell_shock_core_plugin_utils.getDynamicPathSegmentName)(segment))}]` : segment}")}`).join(" ")}` : ""}${Object.values(command.children).length > 0 ? ` \${colors.text.usage.dynamic("[command]")}` : ""}${command.args.length > 0 ? ` ${command.args.map((arg) => `\${colors.text.usage.args("<${(0, _stryke_string_format_snake_case.snakeCase)((arg.kind === _shell_shock_core.CommandParameterKinds.string || arg.kind === _shell_shock_core.CommandParameterKinds.number) && arg.choices && arg.choices.length > 0 ? arg.choices.join("|") : arg.kind === _shell_shock_core.CommandParameterKinds.string && arg.format ? arg.format : arg.name)}${(arg.kind === _shell_shock_core.CommandParameterKinds.string || arg.kind === _shell_shock_core.CommandParameterKinds.number) && arg.variadic ? "..." : ""}>")}`).join(" ")}` : ""} \${colors.text.usage.options("[options]")}\`), { padding: ${theme.padding.app * indent} }
30
30
  );`), (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})]
31
31
  }), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
32
32
  get when() {
@@ -40,7 +40,7 @@ function HelpUsageDisplay(props) {
40
40
  hardline: true,
41
41
  children: (bin) => [(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`
42
42
  writeLine(
43
- colors.text.body.secondary(\`\$ \${colors.text.usage.bin("${bin}")}${command.segments.length > 0 ? ` ${command.segments.map((segment) => `\${colors.text.usage.${(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment) ? "dynamic" : "command"}("${(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment) ? `[${require_snake_case.snakeCase((0, _shell_shock_core_plugin_utils.getDynamicPathSegmentName)(segment))}]` : segment}")}`).join(" ")}` : ""}${Object.values(command.children).length > 0 ? ` \${colors.text.usage.dynamic("[command]")}` : ""} \${colors.text.usage.options("[options]")}${command.args.length > 0 ? ` ${command.args.map((arg) => `\${colors.text.usage.args("<${require_snake_case.snakeCase((arg.kind === _shell_shock_core.CommandParameterKinds.string || arg.kind === _shell_shock_core.CommandParameterKinds.number) && arg.choices && arg.choices.length > 0 ? arg.choices.join("|") : arg.kind === _shell_shock_core.CommandParameterKinds.string && arg.format ? arg.format : arg.name)}${(arg.kind === _shell_shock_core.CommandParameterKinds.string || arg.kind === _shell_shock_core.CommandParameterKinds.number) && arg.variadic ? "..." : ""}>")}`).join(" ")}` : ""}\`), { padding: ${theme.padding.app * indent} }
43
+ colors.text.body.secondary(\`\$ \${colors.text.usage.bin("${bin}")}${command.segments.length > 0 ? ` ${command.segments.map((segment) => `\${colors.text.usage.${(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment) ? "dynamic" : "command"}("${(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment) ? `[${(0, _stryke_string_format_snake_case.snakeCase)((0, _shell_shock_core_plugin_utils.getDynamicPathSegmentName)(segment))}]` : segment}")}`).join(" ")}` : ""}${Object.values(command.children).length > 0 ? ` \${colors.text.usage.dynamic("[command]")}` : ""} \${colors.text.usage.options("[options]")}${command.args.length > 0 ? ` ${command.args.map((arg) => `\${colors.text.usage.args("<${(0, _stryke_string_format_snake_case.snakeCase)((arg.kind === _shell_shock_core.CommandParameterKinds.string || arg.kind === _shell_shock_core.CommandParameterKinds.number) && arg.choices && arg.choices.length > 0 ? arg.choices.join("|") : arg.kind === _shell_shock_core.CommandParameterKinds.string && arg.format ? arg.format : arg.name)}${(arg.kind === _shell_shock_core.CommandParameterKinds.string || arg.kind === _shell_shock_core.CommandParameterKinds.number) && arg.variadic ? "..." : ""}>")}`).join(" ")}` : ""}\`), { padding: ${theme.padding.app * indent} }
44
44
  );`), (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})]
45
45
  })];
46
46
  }
@@ -64,12 +64,12 @@ function HelpOptionsDisplay(props) {
64
64
  const flags = [];
65
65
  const names = [];
66
66
  if (option.name.length === 1) flags.push(`-${option.name}`);
67
- else names.push(`--${require_kebab_case.kebabCase(option.name)}`);
67
+ else names.push(`--${(0, _stryke_string_format_kebab_case.kebabCase)(option.name)}`);
68
68
  option.alias.forEach((alias) => {
69
69
  if (alias.length === 1) flags.push(`-${alias}`);
70
- else names.push(`--${require_kebab_case.kebabCase(alias)}`);
70
+ else names.push(`--${(0, _stryke_string_format_kebab_case.kebabCase)(alias)}`);
71
71
  });
72
- return _alloy_js_core.code`[{ value: colors.text.body.primary("${flags.length > 0 ? `${flags.sort().join(", ")}${names.length > 0 ? ", " : ""}` : ""}${names.length > 0 ? names.sort().join(", ") : ""}${option.kind === _shell_shock_core.CommandParameterKinds.string ? ` <${require_snake_case.snakeCase(option.choices && option.choices.length > 0 ? option.choices.join("|") : option.format ? option.format : option.name)}${option.variadic ? "..." : ""}>` : option.kind === _shell_shock_core.CommandParameterKinds.number ? ` <${require_snake_case.snakeCase(option.choices && option.choices.length > 0 ? option.choices.join("|") : option.name)}${option.variadic ? "..." : ""}>` : ""}"), align: "right", border: "none", maxWidth: "1/3" }, { value: colors.text.body.tertiary(\`${(0, _shell_shock_core_plugin_utils.formatShortDescription)(option.description).replace(/\.+$/, "").trim()}${option.env || option.default !== void 0 ? ` (${option.env ? `env: ${context.config.appSpecificEnvPrefix}_${option.env}${option.default !== void 0 ? ", " : ""}` : ""}${option.default !== void 0 ? `default: ${JSON.stringify(option.default).replace(/"/g, "\\\"")}` : ""})` : ""}.\`), align: "left", border: "none" }], `;
72
+ return _alloy_js_core.code`[{ value: colors.text.body.primary("${flags.length > 0 ? `${flags.sort().join(", ")}${names.length > 0 ? ", " : ""}` : ""}${names.length > 0 ? names.sort().join(", ") : ""}${option.kind === _shell_shock_core.CommandParameterKinds.string ? ` <${(0, _stryke_string_format_snake_case.snakeCase)(option.choices && option.choices.length > 0 ? option.choices.join("|") : option.format ? option.format : option.name)}${option.variadic ? "..." : ""}>` : option.kind === _shell_shock_core.CommandParameterKinds.number ? ` <${(0, _stryke_string_format_snake_case.snakeCase)(option.choices && option.choices.length > 0 ? option.choices.join("|") : option.name)}${option.variadic ? "..." : ""}>` : ""}"), align: "right", border: "none", maxWidth: "1/3" }, { value: colors.text.body.tertiary(\`${(0, _shell_shock_core_plugin_utils.formatShortDescription)(option.description).replace(/\.+$/, "").trim()}${option.env || option.default !== void 0 ? ` (${option.env ? `env: ${context.config.appSpecificEnvPrefix}_${option.env}${option.default !== void 0 ? ", " : ""}` : ""}${option.default !== void 0 ? `default: ${JSON.stringify(option.default).replace(/"/g, "\\\"")}` : ""})` : ""}.\`), align: "left", border: "none" }], `;
73
73
  }
74
74
  }),
75
75
  (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
@@ -145,7 +145,7 @@ function BaseHelpDisplay(props) {
145
145
  }),
146
146
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
147
147
  get when() {
148
- return require_is_set_string.isSetString(command.reference);
148
+ return (0, _stryke_type_checks_is_set_string.isSetString)(command.reference);
149
149
  },
150
150
  get children() {
151
151
  return [
@@ -1,13 +1,13 @@
1
- import { isSetString } from "../node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-set-string.mjs";
2
- import { kebabCase } from "../node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/kebab-case.mjs";
3
- import { snakeCase } from "../node_modules/.pnpm/@stryke_string-format@0.17.6/node_modules/@stryke/string-format/dist/snake-case.mjs";
4
1
  import { createComponent, createIntrinsic, memo } from "@alloy-js/core/jsx-runtime";
5
2
  import { For, Show, code, computed } from "@alloy-js/core";
6
3
  import { formatDescription, formatShortDescription, getAppBin, getAppTitle, getDynamicPathSegmentName, isDynamicPathSegment, sortOptions } from "@shell-shock/core/plugin-utils";
4
+ import { isSetString } from "@stryke/type-checks/is-set-string";
7
5
  import { Spacing } from "@powerlines/plugin-alloy/core/components/spacing";
8
6
  import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
9
7
  import { CommandParameterKinds } from "@shell-shock/core";
10
8
  import { useTheme } from "@shell-shock/plugin-theme/contexts/theme";
9
+ import { kebabCase } from "@stryke/string-format/kebab-case";
10
+ import { snakeCase } from "@stryke/string-format/snake-case";
11
11
 
12
12
  //#region src/components/display.tsx
13
13
  /**
package/dist/index.cjs CHANGED
@@ -1,6 +1,5 @@
1
1
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
2
  const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
- const require_is_set_string = require('./node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-set-string.cjs');
4
3
  const require_components_help_builtin = require('./components/help-builtin.cjs');
5
4
  const require_components_help_command = require('./components/help-command.cjs');
6
5
  require('./components/index.cjs');
@@ -14,6 +13,7 @@ _shell_shock_plugin_console = require_runtime.__toESM(_shell_shock_plugin_consol
14
13
  let _shell_shock_plugin_theme = require("@shell-shock/plugin-theme");
15
14
  _shell_shock_plugin_theme = require_runtime.__toESM(_shell_shock_plugin_theme);
16
15
  let _stryke_path_join = require("@stryke/path/join");
16
+ let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
17
17
  let defu = require("defu");
18
18
  defu = require_runtime.__toESM(defu);
19
19
 
@@ -30,7 +30,7 @@ const plugin = (options = {}) => {
30
30
  enforce: "post",
31
31
  config() {
32
32
  this.debug("Providing default configuration for the Shell Shock `help` plugin.");
33
- return { help: (0, defu.default)({ command: options.command === false ? false : require_is_set_string.isSetString(options.command) ? options.command : "help" }, options, { builtins: true }) };
33
+ return { help: (0, defu.default)({ command: options.command === false ? false : (0, _stryke_type_checks_is_set_string.isSetString)(options.command) ? options.command : "help" }, options, { builtins: true }) };
34
34
  },
35
35
  async configResolved() {
36
36
  this.debug("Adding the Help command to the application context.");
package/dist/index.mjs CHANGED
@@ -1,4 +1,3 @@
1
- import { isSetString } from "./node_modules/.pnpm/@stryke_type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-set-string.mjs";
2
1
  import { HelpBuiltin } from "./components/help-builtin.mjs";
3
2
  import { HelpCommand } from "./components/help-command.mjs";
4
3
  import "./components/index.mjs";
@@ -10,6 +9,7 @@ import { getAppDescription, getAppName, getAppTitle, getCommandList } from "@she
10
9
  import console from "@shell-shock/plugin-console";
11
10
  import theme from "@shell-shock/plugin-theme";
12
11
  import { joinPaths } from "@stryke/path/join";
12
+ import { isSetString } from "@stryke/type-checks/is-set-string";
13
13
  import defu from "defu";
14
14
 
15
15
  //#region src/index.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shell-shock/plugin-help",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "private": false,
5
5
  "description": "A package containing a Shell Shock plugin to provide help and documentation for the local application's commands.",
6
6
  "keywords": [
@@ -52,18 +52,20 @@
52
52
  "dependencies": {
53
53
  "@alloy-js/core": "0.23.0-dev.8",
54
54
  "@alloy-js/typescript": "0.23.0-dev.4",
55
- "@powerlines/deepkit": "^0.6.148",
56
- "@powerlines/plugin-alloy": "^0.25.56",
57
- "@powerlines/plugin-plugin": "^0.12.320",
58
- "@shell-shock/core": "^0.13.7",
59
- "@shell-shock/plugin-theme": "^0.3.22",
60
- "@shell-shock/plugin-console": "^0.1.18",
61
- "@stryke/path": "^0.27.2",
55
+ "@powerlines/deepkit": "^0.6.160",
56
+ "@powerlines/plugin-alloy": "^0.25.68",
57
+ "@powerlines/plugin-plugin": "^0.12.332",
58
+ "@shell-shock/core": "^0.13.9",
59
+ "@shell-shock/plugin-theme": "^0.3.24",
60
+ "@shell-shock/plugin-console": "^0.1.20",
61
+ "@stryke/string-format": "^0.17.7",
62
+ "@stryke/type-checks": "^0.6.0",
63
+ "@stryke/path": "^0.27.3",
62
64
  "defu": "^6.1.4",
63
- "powerlines": "^0.42.10"
65
+ "powerlines": "^0.42.22"
64
66
  },
65
67
  "devDependencies": {
66
- "@powerlines/plugin-deepkit": "^0.11.248",
68
+ "@powerlines/plugin-deepkit": "^0.11.260",
67
69
  "@types/node": "^25.5.0"
68
70
  },
69
71
  "publishConfig": { "access": "public" },
@@ -168,9 +170,5 @@
168
170
  }
169
171
  }
170
172
  },
171
- "inlinedDependencies": {
172
- "@stryke/string-format": "0.17.6",
173
- "@stryke/type-checks": "0.5.41"
174
- },
175
- "gitHead": "bcec2ffe57f7284d7726461908827541dc907a23"
173
+ "gitHead": "036578a29fdeedf3a93c53a1ea4cf0a180b8f5bb"
176
174
  }
@@ -1,3 +0,0 @@
1
- import "node:module";
2
-
3
- export { };
@@ -1,17 +0,0 @@
1
-
2
- //#region ../../node_modules/.pnpm/@stryke+string-format@0.17.6/node_modules/@stryke/string-format/dist/constant-case.mjs
3
- /**
4
- * Check if the input string is in constant case.
5
- *
6
- * @remarks
7
- * Constant case is defined as all uppercase letters with underscores separating words - "THIS_IS_AN_EXAMPLE".
8
- *
9
- * @param input - The input string to check.
10
- * @returns True if the input is in constant case, false otherwise.
11
- */
12
- function isConstantCase(input) {
13
- return input ? /^[A-Z0-9_]+$/.test(input) : false;
14
- }
15
-
16
- //#endregion
17
- exports.isConstantCase = isConstantCase;
@@ -1,17 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@stryke+string-format@0.17.6/node_modules/@stryke/string-format/dist/constant-case.mjs
2
- /**
3
- * Check if the input string is in constant case.
4
- *
5
- * @remarks
6
- * Constant case is defined as all uppercase letters with underscores separating words - "THIS_IS_AN_EXAMPLE".
7
- *
8
- * @param input - The input string to check.
9
- * @returns True if the input is in constant case, false otherwise.
10
- */
11
- function isConstantCase(input) {
12
- return input ? /^[A-Z0-9_]+$/.test(input) : false;
13
- }
14
-
15
- //#endregion
16
- export { isConstantCase };
17
- //# sourceMappingURL=constant-case.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constant-case.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+string-format@0.17.6/node_modules/@stryke/string-format/dist/constant-case.mjs"],"sourcesContent":["import { getWords } from \"./get-words.mjs\";\nimport { isSnakeCase } from \"./snake-case.mjs\";\n\n//#region src/constant-case.ts\n/**\n* Check if the input string is in constant case.\n*\n* @remarks\n* Constant case is defined as all uppercase letters with underscores separating words - \"THIS_IS_AN_EXAMPLE\".\n*\n* @param input - The input string to check.\n* @returns True if the input is in constant case, false otherwise.\n*/\nfunction isConstantCase(input) {\n\treturn input ? /^[A-Z0-9_]+$/.test(input) : false;\n}\n/**\n* Convert the input string to constant case.\n*\n* @remarks\n* Constant case is defined as all uppercase letters with underscores separating words - \"THIS_IS_AN_EXAMPLE\".\n*\n* @param input - The input string.\n* @returns The constant-cased string.\n*/\nfunction constantCase(input) {\n\treturn isConstantCase(input) || input === void 0 ? input : isSnakeCase(input) ? input.toUpperCase() : getWords(input).join(\"_\").toUpperCase();\n}\n\n//#endregion\nexport { constantCase, isConstantCase };\n//# sourceMappingURL=constant-case.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AAaA,SAAS,eAAe,OAAO;AAC9B,QAAO,QAAQ,eAAe,KAAK,MAAM,GAAG"}
@@ -1,38 +0,0 @@
1
-
2
- //#region ../../node_modules/.pnpm/@stryke+string-format@0.17.6/node_modules/@stryke/string-format/dist/get-words.mjs
3
- /**
4
- * Regular expression pattern to split strings into words for various case conversions
5
- *
6
- * This pattern matches sequences of characters in a string, considering the following case:
7
- * - Sequences of two or more uppercase letters followed by an uppercase letter and lowercase letters or digits (for acronyms)
8
- * - Sequences of one uppercase letter optionally followed by lowercase letters and digits
9
- * - Single uppercase letters
10
- * - Sequences of digits
11
- *
12
- * The resulting match can be used to convert camelCase, snake_case, kebab-case, and other mixed formats into
13
- * a consistent format like snake case.
14
- *
15
- * @example
16
- * const matches = 'camelCaseHTTPRequest'.match(CASE_SPLIT_PATTERN);
17
- * // matches: ['camel', 'Case', 'HTTP', 'Request']
18
- */
19
- const CASE_SPLIT_PATTERN = /[A-Z]?[a-z]+|\d+|[A-Z]+(?![a-z])/g;
20
- const RELAXED_SPLIT_PATTERN = /[A-Z/.-]?[a-z/.-]+|\d+|[A-Z/.-]+(?![a-z/.-])/g;
21
- /**
22
- * Splits a string into words using a regular expression pattern
23
- *
24
- * @example
25
- * const words = getWords('camelCaseHTTPRequest');
26
- * // words: ['camel', 'Case', 'HTTP', 'Request']
27
- *
28
- * @param str - The string to split into words
29
- * @param options - Options for splitting the string
30
- * @returns An array of words
31
- */
32
- function getWords(str, options = {}) {
33
- if (str.length > 5e3) throw new Error("The regular expression parameter of `get-words` can't handle strings longer than 2000 characters");
34
- return [...str.match(options.split ?? (options.relaxed ? RELAXED_SPLIT_PATTERN : CASE_SPLIT_PATTERN)) ?? []];
35
- }
36
-
37
- //#endregion
38
- exports.getWords = getWords;
@@ -1,38 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@stryke+string-format@0.17.6/node_modules/@stryke/string-format/dist/get-words.mjs
2
- /**
3
- * Regular expression pattern to split strings into words for various case conversions
4
- *
5
- * This pattern matches sequences of characters in a string, considering the following case:
6
- * - Sequences of two or more uppercase letters followed by an uppercase letter and lowercase letters or digits (for acronyms)
7
- * - Sequences of one uppercase letter optionally followed by lowercase letters and digits
8
- * - Single uppercase letters
9
- * - Sequences of digits
10
- *
11
- * The resulting match can be used to convert camelCase, snake_case, kebab-case, and other mixed formats into
12
- * a consistent format like snake case.
13
- *
14
- * @example
15
- * const matches = 'camelCaseHTTPRequest'.match(CASE_SPLIT_PATTERN);
16
- * // matches: ['camel', 'Case', 'HTTP', 'Request']
17
- */
18
- const CASE_SPLIT_PATTERN = /[A-Z]?[a-z]+|\d+|[A-Z]+(?![a-z])/g;
19
- const RELAXED_SPLIT_PATTERN = /[A-Z/.-]?[a-z/.-]+|\d+|[A-Z/.-]+(?![a-z/.-])/g;
20
- /**
21
- * Splits a string into words using a regular expression pattern
22
- *
23
- * @example
24
- * const words = getWords('camelCaseHTTPRequest');
25
- * // words: ['camel', 'Case', 'HTTP', 'Request']
26
- *
27
- * @param str - The string to split into words
28
- * @param options - Options for splitting the string
29
- * @returns An array of words
30
- */
31
- function getWords(str, options = {}) {
32
- if (str.length > 5e3) throw new Error("The regular expression parameter of `get-words` can't handle strings longer than 2000 characters");
33
- return [...str.match(options.split ?? (options.relaxed ? RELAXED_SPLIT_PATTERN : CASE_SPLIT_PATTERN)) ?? []];
34
- }
35
-
36
- //#endregion
37
- export { getWords };
38
- //# sourceMappingURL=get-words.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-words.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+string-format@0.17.6/node_modules/@stryke/string-format/dist/get-words.mjs"],"sourcesContent":["//#region src/get-words.ts\n/**\n* Regular expression pattern to split strings into words for various case conversions\n*\n* This pattern matches sequences of characters in a string, considering the following case:\n* - Sequences of two or more uppercase letters followed by an uppercase letter and lowercase letters or digits (for acronyms)\n* - Sequences of one uppercase letter optionally followed by lowercase letters and digits\n* - Single uppercase letters\n* - Sequences of digits\n*\n* The resulting match can be used to convert camelCase, snake_case, kebab-case, and other mixed formats into\n* a consistent format like snake case.\n*\n* @example\n* const matches = 'camelCaseHTTPRequest'.match(CASE_SPLIT_PATTERN);\n* // matches: ['camel', 'Case', 'HTTP', 'Request']\n*/\nconst CASE_SPLIT_PATTERN = /[A-Z]?[a-z]+|\\d+|[A-Z]+(?![a-z])/g;\nconst RELAXED_SPLIT_PATTERN = /[A-Z/.-]?[a-z/.-]+|\\d+|[A-Z/.-]+(?![a-z/.-])/g;\n/**\n* Splits a string into words using a regular expression pattern\n*\n* @example\n* const words = getWords('camelCaseHTTPRequest');\n* // words: ['camel', 'Case', 'HTTP', 'Request']\n*\n* @param str - The string to split into words\n* @param options - Options for splitting the string\n* @returns An array of words\n*/\nfunction getWords(str, options = {}) {\n\tif (str.length > 5e3) throw new Error(\"The regular expression parameter of `get-words` can't handle strings longer than 2000 characters\");\n\treturn [...str.match(options.split ?? (options.relaxed ? RELAXED_SPLIT_PATTERN : CASE_SPLIT_PATTERN)) ?? []];\n}\n\n//#endregion\nexport { CASE_SPLIT_PATTERN, RELAXED_SPLIT_PATTERN, getWords };\n//# sourceMappingURL=get-words.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;AAiBA,MAAM,qBAAqB;AAC3B,MAAM,wBAAwB;;;;;;;;;;;;AAY9B,SAAS,SAAS,KAAK,UAAU,EAAE,EAAE;AACpC,KAAI,IAAI,SAAS,IAAK,OAAM,IAAI,MAAM,mGAAmG;AACzI,QAAO,CAAC,GAAG,IAAI,MAAM,QAAQ,UAAU,QAAQ,UAAU,wBAAwB,oBAAoB,IAAI,EAAE,CAAC"}
@@ -1,33 +0,0 @@
1
- const require_get_words = require('./get-words.cjs');
2
-
3
- //#region ../../node_modules/.pnpm/@stryke+string-format@0.17.6/node_modules/@stryke/string-format/dist/kebab-case.mjs
4
- /**
5
- * Check if the input string is in kebab case.
6
- *
7
- * @remarks
8
- * Kebab case is defined as all lowercase letters with hyphens separating words - "this-is-an-example".
9
- *
10
- * @param input - The input string to check.
11
- * @returns True if the input is in kebab case, false otherwise.
12
- */
13
- function isKebabCase(input) {
14
- return input ? /^[a-z]+(?:-[a-z0-9]+)*$/.test(input) : false;
15
- }
16
- /**
17
- * Convert the input string to kebab case.
18
- *
19
- * @remarks
20
- * Kebab case is defined as all lowercase letters with hyphens separating words - "this-is-an-example".
21
- *
22
- * @param input - The input string.
23
- * @returns The kebab-cased string.
24
- */
25
- function kebabCase(input) {
26
- if (isKebabCase(input) || input === void 0) return input;
27
- const parts = input ? require_get_words.getWords(input) : [];
28
- if (parts.length === 0) return "";
29
- return parts.join("-").toLowerCase();
30
- }
31
-
32
- //#endregion
33
- exports.kebabCase = kebabCase;
@@ -1,34 +0,0 @@
1
- import { getWords } from "./get-words.mjs";
2
-
3
- //#region ../../node_modules/.pnpm/@stryke+string-format@0.17.6/node_modules/@stryke/string-format/dist/kebab-case.mjs
4
- /**
5
- * Check if the input string is in kebab case.
6
- *
7
- * @remarks
8
- * Kebab case is defined as all lowercase letters with hyphens separating words - "this-is-an-example".
9
- *
10
- * @param input - The input string to check.
11
- * @returns True if the input is in kebab case, false otherwise.
12
- */
13
- function isKebabCase(input) {
14
- return input ? /^[a-z]+(?:-[a-z0-9]+)*$/.test(input) : false;
15
- }
16
- /**
17
- * Convert the input string to kebab case.
18
- *
19
- * @remarks
20
- * Kebab case is defined as all lowercase letters with hyphens separating words - "this-is-an-example".
21
- *
22
- * @param input - The input string.
23
- * @returns The kebab-cased string.
24
- */
25
- function kebabCase(input) {
26
- if (isKebabCase(input) || input === void 0) return input;
27
- const parts = input ? getWords(input) : [];
28
- if (parts.length === 0) return "";
29
- return parts.join("-").toLowerCase();
30
- }
31
-
32
- //#endregion
33
- export { kebabCase };
34
- //# sourceMappingURL=kebab-case.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"kebab-case.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+string-format@0.17.6/node_modules/@stryke/string-format/dist/kebab-case.mjs"],"sourcesContent":["import { getWords } from \"./get-words.mjs\";\n\n//#region src/kebab-case.ts\n/**\n* Check if the input string is in kebab case.\n*\n* @remarks\n* Kebab case is defined as all lowercase letters with hyphens separating words - \"this-is-an-example\".\n*\n* @param input - The input string to check.\n* @returns True if the input is in kebab case, false otherwise.\n*/\nfunction isKebabCase(input) {\n\treturn input ? /^[a-z]+(?:-[a-z0-9]+)*$/.test(input) : false;\n}\n/**\n* Convert the input string to kebab case.\n*\n* @remarks\n* Kebab case is defined as all lowercase letters with hyphens separating words - \"this-is-an-example\".\n*\n* @param input - The input string.\n* @returns The kebab-cased string.\n*/\nfunction kebabCase(input) {\n\tif (isKebabCase(input) || input === void 0) return input;\n\tconst parts = input ? getWords(input) : [];\n\tif (parts.length === 0) return \"\";\n\treturn parts.join(\"-\").toLowerCase();\n}\n\n//#endregion\nexport { isKebabCase, kebabCase };\n//# sourceMappingURL=kebab-case.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;AAYA,SAAS,YAAY,OAAO;AAC3B,QAAO,QAAQ,0BAA0B,KAAK,MAAM,GAAG;;;;;;;;;;;AAWxD,SAAS,UAAU,OAAO;AACzB,KAAI,YAAY,MAAM,IAAI,UAAU,KAAK,EAAG,QAAO;CACnD,MAAM,QAAQ,QAAQ,SAAS,MAAM,GAAG,EAAE;AAC1C,KAAI,MAAM,WAAW,EAAG,QAAO;AAC/B,QAAO,MAAM,KAAK,IAAI,CAAC,aAAa"}
@@ -1,40 +0,0 @@
1
- const require_upper_case_first = require('./upper-case-first.cjs');
2
- const require_constant_case = require('./constant-case.cjs');
3
-
4
- //#region ../../node_modules/.pnpm/@stryke+string-format@0.17.6/node_modules/@stryke/string-format/dist/snake-case.mjs
5
- /**
6
- * Check if the input string is in snake case.
7
- *
8
- * @remarks
9
- * Snake case is defined as all lowercase letters with underscores separating words - "this_is_an_example"
10
- *
11
- * @param input - The input string to check.
12
- * @returns True if the input is in snake case, false otherwise.
13
- */
14
- function isSnakeCase(input) {
15
- return input ? /^[a-z]+(?:_[a-z0-9]+)*$/.test(input) : false;
16
- }
17
- /**
18
- * Convert the input string to snake case.
19
- *
20
- * @remarks
21
- * Snake case is defined as all lowercase letters with underscores separating words - "this_is_an_example"
22
- *
23
- * @param input - The input string.
24
- * @param options - Options to control the behavior of the function.
25
- * @returns The snake-cased string.
26
- */
27
- function snakeCase(input, options) {
28
- if (isSnakeCase(input) || input === void 0) return input;
29
- if (require_constant_case.isConstantCase(input)) return input.toLowerCase();
30
- const parts = input?.replace(/[A-Z]+/g, (input$1) => require_upper_case_first.upperCaseFirst(input$1) ?? "").split(/(?=[A-Z])|[\s._-]/).map((x) => x.toLowerCase()) ?? [];
31
- if (parts.length === 0) return "";
32
- if (parts.length === 1) return parts[0];
33
- const result = parts.reduce((ret, part) => {
34
- return `${ret}_${part.toLowerCase()}`;
35
- });
36
- return options?.splitOnNumber === false ? result : result.replace(/[A-Z]\d/i, (val) => `${val[0]}_${val[1]}`);
37
- }
38
-
39
- //#endregion
40
- exports.snakeCase = snakeCase;
@@ -1,41 +0,0 @@
1
- import { upperCaseFirst } from "./upper-case-first.mjs";
2
- import { isConstantCase } from "./constant-case.mjs";
3
-
4
- //#region ../../node_modules/.pnpm/@stryke+string-format@0.17.6/node_modules/@stryke/string-format/dist/snake-case.mjs
5
- /**
6
- * Check if the input string is in snake case.
7
- *
8
- * @remarks
9
- * Snake case is defined as all lowercase letters with underscores separating words - "this_is_an_example"
10
- *
11
- * @param input - The input string to check.
12
- * @returns True if the input is in snake case, false otherwise.
13
- */
14
- function isSnakeCase(input) {
15
- return input ? /^[a-z]+(?:_[a-z0-9]+)*$/.test(input) : false;
16
- }
17
- /**
18
- * Convert the input string to snake case.
19
- *
20
- * @remarks
21
- * Snake case is defined as all lowercase letters with underscores separating words - "this_is_an_example"
22
- *
23
- * @param input - The input string.
24
- * @param options - Options to control the behavior of the function.
25
- * @returns The snake-cased string.
26
- */
27
- function snakeCase(input, options) {
28
- if (isSnakeCase(input) || input === void 0) return input;
29
- if (isConstantCase(input)) return input.toLowerCase();
30
- const parts = input?.replace(/[A-Z]+/g, (input$1) => upperCaseFirst(input$1) ?? "").split(/(?=[A-Z])|[\s._-]/).map((x) => x.toLowerCase()) ?? [];
31
- if (parts.length === 0) return "";
32
- if (parts.length === 1) return parts[0];
33
- const result = parts.reduce((ret, part) => {
34
- return `${ret}_${part.toLowerCase()}`;
35
- });
36
- return options?.splitOnNumber === false ? result : result.replace(/[A-Z]\d/i, (val) => `${val[0]}_${val[1]}`);
37
- }
38
-
39
- //#endregion
40
- export { snakeCase };
41
- //# sourceMappingURL=snake-case.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"snake-case.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+string-format@0.17.6/node_modules/@stryke/string-format/dist/snake-case.mjs"],"sourcesContent":["import { EMPTY_STRING } from \"./types/src/base.mjs\";\nimport { upperCaseFirst } from \"./upper-case-first.mjs\";\nimport { isConstantCase } from \"./constant-case.mjs\";\n\n//#region src/snake-case.ts\n/**\n* Check if the input string is in snake case.\n*\n* @remarks\n* Snake case is defined as all lowercase letters with underscores separating words - \"this_is_an_example\"\n*\n* @param input - The input string to check.\n* @returns True if the input is in snake case, false otherwise.\n*/\nfunction isSnakeCase(input) {\n\treturn input ? /^[a-z]+(?:_[a-z0-9]+)*$/.test(input) : false;\n}\n/**\n* Convert the input string to snake case.\n*\n* @remarks\n* Snake case is defined as all lowercase letters with underscores separating words - \"this_is_an_example\"\n*\n* @param input - The input string.\n* @param options - Options to control the behavior of the function.\n* @returns The snake-cased string.\n*/\nfunction snakeCase(input, options) {\n\tif (isSnakeCase(input) || input === void 0) return input;\n\tif (isConstantCase(input)) return input.toLowerCase();\n\tconst parts = input?.replace(/[A-Z]+/g, (input$1) => upperCaseFirst(input$1) ?? EMPTY_STRING).split(/(?=[A-Z])|[\\s._-]/).map((x) => x.toLowerCase()) ?? [];\n\tif (parts.length === 0) return \"\";\n\tif (parts.length === 1) return parts[0];\n\tconst result = parts.reduce((ret, part) => {\n\t\treturn `${ret}_${part.toLowerCase()}`;\n\t});\n\treturn options?.splitOnNumber === false ? result : result.replace(/[A-Z]\\d/i, (val) => `${val[0]}_${val[1]}`);\n}\n\n//#endregion\nexport { isSnakeCase, snakeCase };\n//# sourceMappingURL=snake-case.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;AAcA,SAAS,YAAY,OAAO;AAC3B,QAAO,QAAQ,0BAA0B,KAAK,MAAM,GAAG;;;;;;;;;;;;AAYxD,SAAS,UAAU,OAAO,SAAS;AAClC,KAAI,YAAY,MAAM,IAAI,UAAU,KAAK,EAAG,QAAO;AACnD,KAAI,eAAe,MAAM,CAAE,QAAO,MAAM,aAAa;CACrD,MAAM,QAAQ,OAAO,QAAQ,YAAY,YAAY,eAAe,QAAQ,OAAiB,CAAC,MAAM,oBAAoB,CAAC,KAAK,MAAM,EAAE,aAAa,CAAC,IAAI,EAAE;AAC1J,KAAI,MAAM,WAAW,EAAG,QAAO;AAC/B,KAAI,MAAM,WAAW,EAAG,QAAO,MAAM;CACrC,MAAM,SAAS,MAAM,QAAQ,KAAK,SAAS;AAC1C,SAAO,GAAG,IAAI,GAAG,KAAK,aAAa;GAClC;AACF,QAAO,SAAS,kBAAkB,QAAQ,SAAS,OAAO,QAAQ,aAAa,QAAQ,GAAG,IAAI,GAAG,GAAG,IAAI,KAAK"}
@@ -1,17 +0,0 @@
1
-
2
- //#region ../../node_modules/.pnpm/@stryke+string-format@0.17.6/node_modules/@stryke/string-format/dist/upper-case-first.mjs
3
- /**
4
- * Upper case the first character of an input string.
5
- *
6
- * @remarks
7
- * "Thisisanexample"
8
- *
9
- * @param input - The input string.
10
- * @returns The capitalized string.
11
- */
12
- function upperCaseFirst(input) {
13
- return input ? input.charAt(0).toUpperCase() + input.slice(1) : input;
14
- }
15
-
16
- //#endregion
17
- exports.upperCaseFirst = upperCaseFirst;
@@ -1,17 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@stryke+string-format@0.17.6/node_modules/@stryke/string-format/dist/upper-case-first.mjs
2
- /**
3
- * Upper case the first character of an input string.
4
- *
5
- * @remarks
6
- * "Thisisanexample"
7
- *
8
- * @param input - The input string.
9
- * @returns The capitalized string.
10
- */
11
- function upperCaseFirst(input) {
12
- return input ? input.charAt(0).toUpperCase() + input.slice(1) : input;
13
- }
14
-
15
- //#endregion
16
- export { upperCaseFirst };
17
- //# sourceMappingURL=upper-case-first.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upper-case-first.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+string-format@0.17.6/node_modules/@stryke/string-format/dist/upper-case-first.mjs"],"sourcesContent":["//#region src/upper-case-first.ts\n/**\n* Upper case the first character of an input string.\n*\n* @remarks\n* \"Thisisanexample\"\n*\n* @param input - The input string.\n* @returns The capitalized string.\n*/\nfunction upperCaseFirst(input) {\n\treturn input ? input.charAt(0).toUpperCase() + input.slice(1) : input;\n}\n\n//#endregion\nexport { upperCaseFirst };\n//# sourceMappingURL=upper-case-first.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AAUA,SAAS,eAAe,OAAO;AAC9B,QAAO,QAAQ,MAAM,OAAO,EAAE,CAAC,aAAa,GAAG,MAAM,MAAM,EAAE,GAAG"}
@@ -1,20 +0,0 @@
1
- const require_is_null = require('./is-null.cjs');
2
- const require_is_undefined = require('./is-undefined.cjs');
3
-
4
- //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-empty.mjs
5
- /**
6
- * Check if the provided value's type is `null` or `undefined`
7
- *
8
- * @param value - The value to type check
9
- * @returns An indicator specifying if the value provided is of type `null` or `undefined`
10
- */
11
- const isEmpty = (value) => {
12
- try {
13
- return require_is_undefined.isUndefined(value) || require_is_null.isNull(value);
14
- } catch {
15
- return false;
16
- }
17
- };
18
-
19
- //#endregion
20
- exports.isEmpty = isEmpty;
@@ -1,21 +0,0 @@
1
- import { isNull } from "./is-null.mjs";
2
- import { isUndefined } from "./is-undefined.mjs";
3
-
4
- //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-empty.mjs
5
- /**
6
- * Check if the provided value's type is `null` or `undefined`
7
- *
8
- * @param value - The value to type check
9
- * @returns An indicator specifying if the value provided is of type `null` or `undefined`
10
- */
11
- const isEmpty = (value) => {
12
- try {
13
- return isUndefined(value) || isNull(value);
14
- } catch {
15
- return false;
16
- }
17
- };
18
-
19
- //#endregion
20
- export { isEmpty };
21
- //# sourceMappingURL=is-empty.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-empty.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-empty.mjs"],"sourcesContent":["import { isDate } from \"./is-date.mjs\";\nimport { isFunction } from \"./is-function.mjs\";\nimport { isNull } from \"./is-null.mjs\";\nimport { isNumber } from \"./is-number.mjs\";\nimport { isSymbol } from \"./is-symbol.mjs\";\nimport { isUndefined } from \"./is-undefined.mjs\";\n\n//#region src/is-empty.ts\n/**\n* Check if the provided value's type is `null` or `undefined`\n*\n* @param value - The value to type check\n* @returns An indicator specifying if the value provided is of type `null` or `undefined`\n*/\nconst isEmpty = (value) => {\n\ttry {\n\t\treturn isUndefined(value) || isNull(value);\n\t} catch {\n\t\treturn false;\n\t}\n};\nconst isEmptyAnything = (value) => {\n\tif (value === true || value === false) return true;\n\tif (value === null || value === void 0) return true;\n\tif (isNumber(value)) return value === 0;\n\tif (isDate(value)) return Number.isNaN(value.getTime());\n\tif (isFunction(value)) return false;\n\tif (isSymbol(value)) return false;\n\tconst { length } = value;\n\tif (isNumber(length)) return length === 0;\n\tconst { size } = value;\n\tif (isNumber(size)) return size === 0;\n\treturn Object.keys(value).length === 0;\n};\n\n//#endregion\nexport { isEmpty, isEmptyAnything };\n//# sourceMappingURL=is-empty.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AAcA,MAAM,WAAW,UAAU;AAC1B,KAAI;AACH,SAAO,YAAY,MAAM,IAAI,OAAO,MAAM;SACnC;AACP,SAAO"}
@@ -1,12 +0,0 @@
1
-
2
- //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-null.mjs
3
- const isNull = (value) => {
4
- try {
5
- return value === null;
6
- } catch {
7
- return false;
8
- }
9
- };
10
-
11
- //#endregion
12
- exports.isNull = isNull;
@@ -1,12 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-null.mjs
2
- const isNull = (value) => {
3
- try {
4
- return value === null;
5
- } catch {
6
- return false;
7
- }
8
- };
9
-
10
- //#endregion
11
- export { isNull };
12
- //# sourceMappingURL=is-null.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-null.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-null.mjs"],"sourcesContent":["//#region src/is-null.ts\nconst isNull = (value) => {\n\ttry {\n\t\treturn value === null;\n\t} catch {\n\t\treturn false;\n\t}\n};\n\n//#endregion\nexport { isNull };\n//# sourceMappingURL=is-null.mjs.map"],"x_google_ignoreList":[0],"mappings":";AACA,MAAM,UAAU,UAAU;AACzB,KAAI;AACH,SAAO,UAAU;SACV;AACP,SAAO"}
@@ -1,20 +0,0 @@
1
- const require_is_string = require('./is-string.cjs');
2
- const require_is_set = require('./is-set.cjs');
3
-
4
- //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-set-string.mjs
5
- /**
6
- * Determine if the type is string and is not empty (length greater than zero)
7
- *
8
- * @param value - The value to type check
9
- * @returns An indicator specifying if the value provided is of type `string` and length greater than zero
10
- */
11
- const isSetString = (value) => {
12
- try {
13
- return require_is_set.isSet(value) && require_is_string.isString(value) && value.length > 0;
14
- } catch {
15
- return false;
16
- }
17
- };
18
-
19
- //#endregion
20
- exports.isSetString = isSetString;
@@ -1,21 +0,0 @@
1
- import { isString } from "./is-string.mjs";
2
- import { isSet } from "./is-set.mjs";
3
-
4
- //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-set-string.mjs
5
- /**
6
- * Determine if the type is string and is not empty (length greater than zero)
7
- *
8
- * @param value - The value to type check
9
- * @returns An indicator specifying if the value provided is of type `string` and length greater than zero
10
- */
11
- const isSetString = (value) => {
12
- try {
13
- return isSet(value) && isString(value) && value.length > 0;
14
- } catch {
15
- return false;
16
- }
17
- };
18
-
19
- //#endregion
20
- export { isSetString };
21
- //# sourceMappingURL=is-set-string.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-set-string.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-set-string.mjs"],"sourcesContent":["import { isString } from \"./is-string.mjs\";\nimport { isSet } from \"./is-set.mjs\";\n\n//#region src/is-set-string.ts\n/**\n* Determine if the type is string and is not empty (length greater than zero)\n*\n* @param value - The value to type check\n* @returns An indicator specifying if the value provided is of type `string` and length greater than zero\n*/\nconst isSetString = (value) => {\n\ttry {\n\t\treturn isSet(value) && isString(value) && value.length > 0;\n\t} catch {\n\t\treturn false;\n\t}\n};\n\n//#endregion\nexport { isSetString };\n//# sourceMappingURL=is-set-string.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AAUA,MAAM,eAAe,UAAU;AAC9B,KAAI;AACH,SAAO,MAAM,MAAM,IAAI,SAAS,MAAM,IAAI,MAAM,SAAS;SAClD;AACP,SAAO"}
@@ -1,19 +0,0 @@
1
- const require_is_empty = require('./is-empty.cjs');
2
-
3
- //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-set.mjs
4
- /**
5
- * The inverse of the `isEmpty` function
6
- *
7
- * @param value - The value to type check
8
- * @returns An indicator specifying if the value provided is **NOT** of type `null` or `undefined`
9
- */
10
- const isSet = (value) => {
11
- try {
12
- return !require_is_empty.isEmpty(value);
13
- } catch {
14
- return false;
15
- }
16
- };
17
-
18
- //#endregion
19
- exports.isSet = isSet;
@@ -1,20 +0,0 @@
1
- import { isEmpty } from "./is-empty.mjs";
2
-
3
- //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-set.mjs
4
- /**
5
- * The inverse of the `isEmpty` function
6
- *
7
- * @param value - The value to type check
8
- * @returns An indicator specifying if the value provided is **NOT** of type `null` or `undefined`
9
- */
10
- const isSet = (value) => {
11
- try {
12
- return !isEmpty(value);
13
- } catch {
14
- return false;
15
- }
16
- };
17
-
18
- //#endregion
19
- export { isSet };
20
- //# sourceMappingURL=is-set.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-set.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-set.mjs"],"sourcesContent":["import { isEmpty } from \"./is-empty.mjs\";\n\n//#region src/is-set.ts\n/**\n* The inverse of the `isEmpty` function\n*\n* @param value - The value to type check\n* @returns An indicator specifying if the value provided is **NOT** of type `null` or `undefined`\n*/\nconst isSet = (value) => {\n\ttry {\n\t\treturn !isEmpty(value);\n\t} catch {\n\t\treturn false;\n\t}\n};\n\n//#endregion\nexport { isSet };\n//# sourceMappingURL=is-set.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AASA,MAAM,SAAS,UAAU;AACxB,KAAI;AACH,SAAO,CAAC,QAAQ,MAAM;SACf;AACP,SAAO"}
@@ -1,12 +0,0 @@
1
-
2
- //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-string.mjs
3
- const isString = (value) => {
4
- try {
5
- return typeof value === "string";
6
- } catch {
7
- return false;
8
- }
9
- };
10
-
11
- //#endregion
12
- exports.isString = isString;
@@ -1,12 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-string.mjs
2
- const isString = (value) => {
3
- try {
4
- return typeof value === "string";
5
- } catch {
6
- return false;
7
- }
8
- };
9
-
10
- //#endregion
11
- export { isString };
12
- //# sourceMappingURL=is-string.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-string.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-string.mjs"],"sourcesContent":["//#region src/is-string.ts\nconst isString = (value) => {\n\ttry {\n\t\treturn typeof value === \"string\";\n\t} catch {\n\t\treturn false;\n\t}\n};\n\n//#endregion\nexport { isString };\n//# sourceMappingURL=is-string.mjs.map"],"x_google_ignoreList":[0],"mappings":";AACA,MAAM,YAAY,UAAU;AAC3B,KAAI;AACH,SAAO,OAAO,UAAU;SACjB;AACP,SAAO"}
@@ -1,8 +0,0 @@
1
-
2
- //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-undefined.mjs
3
- const isUndefined = (value) => {
4
- return value === void 0;
5
- };
6
-
7
- //#endregion
8
- exports.isUndefined = isUndefined;
@@ -1,8 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-undefined.mjs
2
- const isUndefined = (value) => {
3
- return value === void 0;
4
- };
5
-
6
- //#endregion
7
- export { isUndefined };
8
- //# sourceMappingURL=is-undefined.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-undefined.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+type-checks@0.5.41/node_modules/@stryke/type-checks/dist/is-undefined.mjs"],"sourcesContent":["//#region src/is-undefined.ts\nconst isUndefined = (value) => {\n\treturn value === void 0;\n};\n\n//#endregion\nexport { isUndefined };\n//# sourceMappingURL=is-undefined.mjs.map"],"x_google_ignoreList":[0],"mappings":";AACA,MAAM,eAAe,UAAU;AAC9B,QAAO,UAAU,KAAK"}