@gyeonghokim/bruno-to-openapi 1.0.1 → 1.0.2
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/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/models/bruno-collection.d.ts +1 -1
- package/dist/models/bruno-collection.d.ts.map +1 -1
- package/dist/services/conversion-service.d.ts +2 -2
- package/dist/services/conversion-service.d.ts.map +1 -1
- package/dist/services/conversion-service.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/result.d.ts +1 -1
- package/dist/types/result.d.ts.map +1 -1
- package/dist/utils/bruno-parser.d.ts +1 -1
- package/dist/utils/bruno-parser.d.ts.map +1 -1
- package/dist/utils/bruno-parser.js +1 -1
- package/dist/utils/openapi-generator.d.ts +3 -3
- package/dist/utils/openapi-generator.d.ts.map +1 -1
- package/package.json +1 -1
- package/tsconfig.json +3 -11
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConvertResult } from './types/result';
|
|
1
|
+
import type { ConvertResult } from './types/result.js';
|
|
2
2
|
/**
|
|
3
3
|
* Converts a Bruno collection to an OpenAPI 3.0 specification
|
|
4
4
|
* @param collectionPath - Path to the Bruno collection directory
|
|
@@ -19,6 +19,6 @@ export declare function convertBrunoCollectionToOpenAPISync(collectionPath: stri
|
|
|
19
19
|
* @returns Promise resolving to true if valid Bruno collection, false otherwise
|
|
20
20
|
*/
|
|
21
21
|
export declare function isValidBrunoCollection(collectionPath: string): Promise<boolean>;
|
|
22
|
-
export type { InfoObject, MediaTypeObject, OpenAPIObject, OperationObject, ParameterObject, PathItemObject, RequestBodyObject, ResponseObject, ResponsesObject, SchemaObject, } from './types/openapi';
|
|
23
|
-
export type { ConvertResult, ConvertWarning } from './types/result';
|
|
22
|
+
export type { InfoObject, MediaTypeObject, OpenAPIObject, OperationObject, ParameterObject, PathItemObject, RequestBodyObject, ResponseObject, ResponsesObject, SchemaObject, } from './types/openapi.js';
|
|
23
|
+
export type { ConvertResult, ConvertWarning } from './types/result.js';
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAItD;;;;;GAKG;AACH,wBAAsB,+BAA+B,CACnD,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,aAAa,CAAC,CAYxB;AAED;;;;;GAKG;AACH,wBAAgB,mCAAmC,CAAC,cAAc,EAAE,MAAM,GAAG,aAAa,CAqCzF;AAED;;;;GAIG;AACH,wBAAsB,sBAAsB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAOrF;AAED,YAAY,EACV,UAAU,EACV,eAAe,EACf,aAAa,EACb,eAAe,EACf,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,YAAY,GACb,MAAM,oBAAoB,CAAA;AAE3B,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BrunoParser } from './utils/bruno-parser';
|
|
2
|
-
import { OpenApiGenerator } from './utils/openapi-generator';
|
|
1
|
+
import { BrunoParser } from './utils/bruno-parser.js';
|
|
2
|
+
import { OpenApiGenerator } from './utils/openapi-generator.js';
|
|
3
3
|
/**
|
|
4
4
|
* Converts a Bruno collection to an OpenAPI 3.0 specification
|
|
5
5
|
* @param collectionPath - Path to the Bruno collection directory
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BrunoCollection, BrunoEnvironments, BrunoItem, FolderRoot, RunnerResult } from '../types';
|
|
1
|
+
import type { BrunoCollection, BrunoEnvironments, BrunoItem, FolderRoot, RunnerResult } from '../types/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* Data model representing a Bruno collection
|
|
4
4
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bruno-collection.d.ts","sourceRoot":"","sources":["../../src/models/bruno-collection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,YAAY,EACb,MAAM,
|
|
1
|
+
{"version":3,"file":"bruno-collection.d.ts","sourceRoot":"","sources":["../../src/models/bruno-collection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,YAAY,EACb,MAAM,mBAAmB,CAAA;AAE1B;;GAEG;AACH,qBAAa,oBAAqB,YAAW,eAAe;IAC1D,OAAO,EAAE,GAAG,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpC,YAAY,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IACvC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAC5C,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAA;gBAEZ,IAAI,GAAE,OAAO,CAAC,eAAe,CAAM;IAc/C;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;IAI9B;;OAEG;IACH,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;IAInD;;OAEG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE;IAI1C;;OAEG;IACH,OAAO,CAAC,WAAW;CAKpB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BrunoCollection } from '../types/bruno';
|
|
2
|
-
import type { ConvertResult } from '../types/result';
|
|
1
|
+
import type { BrunoCollection } from '../types/bruno.js';
|
|
2
|
+
import type { ConvertResult } from '../types/result.js';
|
|
3
3
|
/**
|
|
4
4
|
* Interface for the conversion service
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversion-service.d.ts","sourceRoot":"","sources":["../../src/services/conversion-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"conversion-service.d.ts","sourceRoot":"","sources":["../../src/services/conversion-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAGvD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,iBAAiB,CAAC,UAAU,EAAE,eAAe,GAAG,aAAa,CAAA;IAC7D,sBAAsB,CAAC,UAAU,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;CAC5E;AAED;;GAEG;AACH,qBAAa,iBAAkB,YAAW,kBAAkB;IAC1D,iBAAiB,CAAC,UAAU,EAAE,eAAe,GAAG,aAAa;IAKvD,sBAAsB,CAAC,UAAU,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC;CAOlF"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAGA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAGA,cAAc,YAAY,CAAA;AAE1B,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB"}
|
package/dist/types/index.js
CHANGED
package/dist/types/result.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../src/types/result.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../src/types/result.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEjD,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,aAAa,CAAA;IAEnB;;OAEG;IACH,QAAQ,EAAE,cAAc,EAAE,CAAA;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;CACjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bruno-parser.d.ts","sourceRoot":"","sources":["../../src/utils/bruno-parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAGV,eAAe,EAGf,SAAS,EAMV,MAAM,
|
|
1
|
+
{"version":3,"file":"bruno-parser.d.ts","sourceRoot":"","sources":["../../src/utils/bruno-parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAGV,eAAe,EAGf,SAAS,EAMV,MAAM,mBAAmB,CAAA;AAG1B;;GAEG;AACH,qBAAa,WAAW;IACtB;;OAEG;WACU,eAAe,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IA6F9E;;OAEG;WACU,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAiBhG;;OAEG;WACU,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAmGvF;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAkB/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAoBlC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,mBAAmB;IA0BlC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IA2BjC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAmC/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAgD/B;;OAEG;WACU,iBAAiB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAoBxE;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;CAK3B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BrunoCollection } from '../types/bruno';
|
|
2
|
-
import type { ResponsesObject, SchemaObject } from '../types/openapi';
|
|
3
|
-
import type { ConvertResult } from '../types/result';
|
|
1
|
+
import type { BrunoCollection } from '../types/bruno.js';
|
|
2
|
+
import type { ResponsesObject, SchemaObject } from '../types/openapi.js';
|
|
3
|
+
import type { ConvertResult } from '../types/result.js';
|
|
4
4
|
/**
|
|
5
5
|
* Utility functions for generating OpenAPI specifications
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi-generator.d.ts","sourceRoot":"","sources":["../../src/utils/openapi-generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,eAAe,EAKhB,MAAM,
|
|
1
|
+
{"version":3,"file":"openapi-generator.d.ts","sourceRoot":"","sources":["../../src/utils/openapi-generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,eAAe,EAKhB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAUV,eAAe,EACf,YAAY,EACb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,aAAa,EAAkB,MAAM,oBAAoB,CAAA;AAEvE;;GAEG;AACH,qBAAa,gBAAgB;IAC3B;;OAEG;IACH,MAAM,CAAC,mBAAmB,CAAC,UAAU,EAAE,eAAe,GAAG,aAAa;IAsDtE;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAiBrC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAmFjC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,0BAA0B;IAgEzC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,+BAA+B;IAsB9C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gCAAgC;IAmB/C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kCAAkC;IAwCjD;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,8BAA8B;IA6H7C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAUlC;;OAEG;IACH,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY;IAiDzD;;OAEG;IACH,MAAM,CAAC,sBAAsB,IAAI,eAAe;CA8EjD"}
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,29 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"target": "ES2022",
|
|
4
|
-
"module": "
|
|
5
|
-
"moduleResolution": "
|
|
4
|
+
"module": "NodeNext",
|
|
5
|
+
"moduleResolution": "NodeNext",
|
|
6
6
|
"esModuleInterop": false,
|
|
7
7
|
"allowSyntheticDefaultImports": true,
|
|
8
|
-
"strict": true,
|
|
9
|
-
"forceConsistentCasingInFileNames": true,
|
|
10
8
|
"skipLibCheck": true,
|
|
11
9
|
"declaration": true,
|
|
12
10
|
"declarationMap": true,
|
|
13
11
|
"outDir": "./dist",
|
|
14
12
|
"rootDir": "./src",
|
|
15
|
-
"removeComments": false,
|
|
16
|
-
"noImplicitAny": true,
|
|
17
|
-
"strictNullChecks": true,
|
|
18
|
-
"strictFunctionTypes": true,
|
|
19
|
-
"noImplicitThis": true,
|
|
20
|
-
"noImplicitReturns": true,
|
|
21
|
-
"noFallthroughCasesInSwitch": true,
|
|
22
13
|
"noUncheckedIndexedAccess": true,
|
|
23
14
|
"noImplicitOverride": true,
|
|
24
15
|
"useUnknownInCatchVariables": true,
|
|
25
16
|
"sourceMap": true,
|
|
26
17
|
"types": ["node"],
|
|
18
|
+
"strict": true,
|
|
27
19
|
"verbatimModuleSyntax": true
|
|
28
20
|
},
|
|
29
21
|
"include": [
|