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 +1 -1
- package/dist/commands/deploy.d.ts +1 -1
- package/dist/commands/deploy.js +3 -3
- package/dist/core/schemas/oas-schemas/index.d.ts +10 -0
- package/dist/core/schemas/oas-schemas/index.js +14 -0
- package/dist/core/schemas/oas-schemas/v2.0/schema.json +1607 -0
- package/dist/core/schemas/oas-schemas/v3.0/schema.json +1651 -0
- package/dist/core/schemas/oas-schemas/v3.1/schema.json +1411 -0
- package/dist/core/schemas/oas-schemas/v3.2/schema.json +1666 -0
- package/dist/definition.js +5 -6
- package/oclif.manifest.json +3 -1
- package/package.json +2 -3
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/
|
|
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
|
}
|
package/dist/commands/deploy.js
CHANGED
|
@@ -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,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
|
+
};
|