bump-cli 2.9.7 → 2.9.9

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/README.md CHANGED
@@ -88,7 +88,7 @@ $ bump --help
88
88
  The Bump.sh CLI is used to interact with your API documentation hosted on Bump.sh by using the API of developers.bump.sh
89
89
 
90
90
  VERSION
91
- bump-cli/2.9.5 linux-x64 node-v20.18.1
91
+ bump-cli/x.y.z linux-x64 node-v20+
92
92
 
93
93
  USAGE
94
94
  $ bump [COMMAND]
@@ -19,7 +19,7 @@ export default class Deploy extends BaseCommand<typeof Deploy> {
19
19
  preview: import("@oclif/core/interfaces").BooleanFlag<boolean>;
20
20
  token: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
21
21
  };
22
- protected deployDirectory(dir: string, dryRun: boolean, token: string, hub: string, autoCreate: boolean, interactive: boolean, filenamePattern: string, documentationName: string | undefined, branch: string | undefined): Promise<void>;
22
+ protected deployDirectory(dir: string, dryRun: boolean, token: string, hub: string, autoCreate: boolean, interactive: boolean, filenamePattern: string, documentationName: string | undefined, branch: string | undefined, overlays?: string[] | undefined): Promise<void>;
23
23
  protected deploySingleFile(api: API, dryRun: boolean, documentation: string, token: string, hub: string | undefined, autoCreate: boolean, documentationName: string | undefined, branch: string | undefined, overlay?: string[] | undefined, temporary?: boolean | undefined): Promise<void>;
24
24
  run(): Promise<void>;
25
25
  }
@@ -61,7 +61,7 @@ ${chalk.dim('$ bump deploy FILE --dry-run --doc <doc_slug> --token <your_doc_tok
61
61
  preview: flagsBuilder.preview(),
62
62
  token: flagsBuilder.token(),
63
63
  };
64
- async deployDirectory(dir, dryRun, token, hub, autoCreate, interactive, filenamePattern, documentationName, branch) {
64
+ async deployDirectory(dir, dryRun, token, hub, autoCreate, interactive, filenamePattern, documentationName, branch, overlays) {
65
65
  const definitionDirectory = new DefinitionDirectory(dir, filenamePattern);
66
66
  await definitionDirectory.readDefinitions();
67
67
  await ux.action.pauseAsync(async () => {
@@ -92,7 +92,7 @@ ${chalk.dim('$ bump deploy FILE --dry-run --doc <doc_slug> --token <your_doc_tok
92
92
  });
93
93
  ux.action.status = `...to your ${hub} hub on Bump.sh`;
94
94
  await definitionDirectory.sequentialMap(async (definition) => {
95
- await this.deploySingleFile(definition.definition, dryRun, definition.slug, token, hub, autoCreate, definition.slug || documentationName, branch);
95
+ await this.deploySingleFile(definition.definition, dryRun, definition.slug, token, hub, autoCreate, definition.slug || documentationName, branch, overlays);
96
96
  });
97
97
  }
98
98
  else {
@@ -142,7 +142,7 @@ ${chalk.dim('$ bump deploy FILE --dry-run --doc <doc_slug> --token <your_doc_tok
142
142
  ux.action.start(`Let's ${action} on Bump.sh`);
143
143
  if (isDir(args.file)) {
144
144
  if (hub) {
145
- await this.deployDirectory(args.file, dryRun, token, hub, autoCreate, interactive, filenamePattern, documentationName, branch);
145
+ await this.deployDirectory(args.file, dryRun, token, hub, autoCreate, interactive, filenamePattern, documentationName, branch, overlay);
146
146
  }
147
147
  else {
148
148
  throw new CLIError('Missing required flag --hub when deploying an entire directory');
@@ -0,0 +1,10 @@
1
+ import type { JSONSchema4, JSONSchema7 } from 'json-schema';
2
+ declare const _default: {
3
+ schemas: {
4
+ '2.0': JSONSchema4;
5
+ '3.0': JSONSchema4;
6
+ '3.1': JSONSchema7;
7
+ '3.2': JSONSchema7;
8
+ };
9
+ };
10
+ export default _default;
@@ -0,0 +1,14 @@
1
+ // All spec version definitions are copied from the official
2
+ // spec repo https://spec.openapis.org/oas/
3
+ import schemaV20 from './v2.0/schema.json' with { type: 'json' };
4
+ import schemaV30 from './v3.0/schema.json' with { type: 'json' };
5
+ import schemaV31 from './v3.1/schema.json' with { type: 'json' };
6
+ import schemaV32 from './v3.2/schema.json' with { type: 'json' };
7
+ export default {
8
+ schemas: {
9
+ '2.0': schemaV20,
10
+ '3.0': schemaV30,
11
+ '3.1': schemaV31,
12
+ '3.2': schemaV32,
13
+ },
14
+ };