@oclif/core 4.2.9 → 4.3.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.
@@ -96,7 +96,7 @@ export declare class Config implements IConfig {
96
96
  loadTheme(): Promise<Theme | undefined>;
97
97
  protected macosCacheDir(): string | undefined;
98
98
  runCommand<T = unknown>(id: string, argv?: string[], cachedCommand?: Command.Loadable | null): Promise<T>;
99
- runHook<T extends keyof Hooks>(event: T, opts: Hooks[T]['options'], timeout?: number, captureErrors?: boolean): Promise<Hook.Result<Hooks[T]['return']>>;
99
+ runHook<T extends keyof Hooks, P extends Hooks = Hooks>(event: T, opts: P[T]['options'], timeout?: number, captureErrors?: boolean): Promise<Hook.Result<P[T]['return']>>;
100
100
  s3Key(type: keyof S3Templates, ext?: '.tar.gz' | '.tar.xz' | IConfig.s3Key.Options, options?: IConfig.s3Key.Options): string;
101
101
  s3Url(key: string): string;
102
102
  scopedEnvVar(k: string): string | undefined;
@@ -1,4 +1,5 @@
1
1
  import type { Input, OutputArgs, OutputFlags, ParserOutput } from '../interfaces/parser';
2
2
  export type { ArgInput, FlagInput, Input, OutputArgs, OutputFlags, ParserOutput } from '../interfaces/parser';
3
3
  export { flagUsages } from './help';
4
+ export { validate } from './validate';
4
5
  export declare function parse<TFlags extends OutputFlags<any>, BFlags extends OutputFlags<any>, TArgs extends OutputArgs<any>>(argv: string[], options: Input<TFlags, BFlags, TArgs>): Promise<ParserOutput<TFlags, BFlags, TArgs>>;
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.flagUsages = void 0;
3
+ exports.validate = exports.flagUsages = void 0;
4
4
  exports.parse = parse;
5
5
  const parse_1 = require("./parse");
6
6
  const validate_1 = require("./validate");
7
7
  var help_1 = require("./help");
8
8
  Object.defineProperty(exports, "flagUsages", { enumerable: true, get: function () { return help_1.flagUsages; } });
9
+ var validate_2 = require("./validate");
10
+ Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return validate_2.validate; } });
9
11
  async function parse(argv, options) {
10
12
  const input = {
11
13
  '--': options['--'],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oclif/core",
3
3
  "description": "base library for oclif CLIs",
4
- "version": "4.2.9",
4
+ "version": "4.3.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@commitlint/config-conventional": "^19",
29
- "@eslint/compat": "^1.2.7",
29
+ "@eslint/compat": "^1.2.8",
30
30
  "@oclif/plugin-help": "^6",
31
31
  "@oclif/plugin-plugins": "^5",
32
32
  "@oclif/prettier-config": "^0.2.1",
@@ -58,11 +58,11 @@
58
58
  "madge": "^6.1.0",
59
59
  "mocha": "^10.8.2",
60
60
  "nyc": "^15.1.0",
61
- "prettier": "^3.5.2",
62
- "shx": "^0.3.4",
61
+ "prettier": "^3.5.3",
62
+ "shx": "^0.4.0",
63
63
  "sinon": "^18",
64
64
  "ts-node": "^10.9.2",
65
- "tsd": "^0.31.2",
65
+ "tsd": "^0.32.0",
66
66
  "typescript": "^5"
67
67
  },
68
68
  "engines": {