bump-cli 2.9.8 → 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.
@@ -3,11 +3,9 @@ import asyncapi from '@asyncapi/specs';
3
3
  import { CLIError } from '@oclif/core/errors';
4
4
  import { parseWithPointers, safeStringify } from '@stoplight/yaml';
5
5
  import debug from 'debug';
6
- import { createRequire } from 'node:module';
7
6
  import { default as nodePath } from 'node:path';
8
- // Used to require JSON files
9
- const require = createRequire(import.meta.url);
10
7
  import { Overlay } from './core/overlay.js';
8
+ import openapiSchemas from './core/schemas/oas-schemas/index.js';
11
9
  class SupportedFormat {
12
10
  static asyncapi = {
13
11
  '2.0': asyncapi.schemas['2.0.0'],
@@ -19,9 +17,10 @@ class SupportedFormat {
19
17
  '2.6': asyncapi.schemas['2.6.0'],
20
18
  };
21
19
  static openapi = {
22
- '2.0': require('oas-schemas/schemas/v2.0/schema.json'),
23
- '3.0': require('oas-schemas/schemas/v3.0/schema.json'),
24
- '3.1': require('oas-schemas/schemas/v3.1/schema.json'),
20
+ '2.0': openapiSchemas.schemas['2.0'],
21
+ '3.0': openapiSchemas.schemas['3.0'],
22
+ '3.1': openapiSchemas.schemas['3.1'],
23
+ '3.2': openapiSchemas.schemas['3.2'],
25
24
  };
26
25
  }
27
26
  class UnsupportedFormat extends CLIError {
@@ -104,6 +104,7 @@
104
104
  "description": "Documentation or Hub token. Can be provided via BUMP_TOKEN environment variable",
105
105
  "name": "token",
106
106
  "required": true,
107
+ "default": "99f52837852249b328c0a00249f846a3",
107
108
  "hasDynamicHelp": false,
108
109
  "multiple": false,
109
110
  "type": "option"
@@ -205,6 +206,7 @@
205
206
  "description": "Documentation or Hub token. Can be provided via BUMP_TOKEN environment variable",
206
207
  "name": "token",
207
208
  "required": false,
209
+ "default": "99f52837852249b328c0a00249f846a3",
208
210
  "hasDynamicHelp": false,
209
211
  "multiple": false,
210
212
  "type": "option"
@@ -292,5 +294,5 @@
292
294
  "strict": true
293
295
  }
294
296
  },
295
- "version": "2.9.8"
297
+ "version": "2.9.9"
296
298
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bump-cli",
3
3
  "description": "The Bump CLI is used to interact with your API documentation hosted on Bump.sh by using the API of developers.bump.sh",
4
- "version": "2.9.8",
4
+ "version": "2.9.9",
5
5
  "author": "Paul Bonaud <paulr@bump.sh>",
6
6
  "bin": {
7
7
  "bump": "./bin/run.js"
@@ -14,7 +14,7 @@
14
14
  "@types/debug": "^4.1.12",
15
15
  "@types/jsonpath": "^0.2.4",
16
16
  "@types/mocha": "^10",
17
- "@types/node": "^22",
17
+ "@types/node": "^24",
18
18
  "@types/sinon": "^17.0.3",
19
19
  "@typescript-eslint/eslint-plugin": "^8.13.0",
20
20
  "chai": "^5.1.2",
@@ -103,7 +103,6 @@
103
103
  "debug": "^4.3.7",
104
104
  "jsonpathly": "^2.0.2",
105
105
  "mergician": "^2.0.2",
106
- "oas-schemas": "git+https://git@github.com/OAI/OpenAPI-Specification.git#882d1caedb0bff825a1fd10728e7e3dc43912d37",
107
106
  "open": "^10.1.0"
108
107
  }
109
108
  }