@scalar/openapi-parser 0.5.0 → 0.7.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.
Files changed (33) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +6 -6
  3. package/dist/lib/Validator/Validator.d.ts +1 -1
  4. package/dist/pipeline.d.ts +153 -210
  5. package/dist/src/index.d.ts +27 -0
  6. package/dist/src/index.js +0 -2
  7. package/dist/src/lib/Validator/Validator.js +1 -1
  8. package/dist/src/pipeline.js +15 -25
  9. package/dist/src/polyfills/path.js +3 -6
  10. package/dist/src/utils/filter.js +8 -3
  11. package/dist/src/utils/isYaml.js +3 -2
  12. package/dist/src/utils/load/load.js +19 -6
  13. package/dist/src/utils/load/plugins/fetchUrls.d.ts +17 -0
  14. package/dist/src/utils/load/plugins/{fetchUrlsPlugin.js → fetchUrls.js} +7 -7
  15. package/dist/src/utils/load/plugins/readFiles.d.ts +5 -0
  16. package/dist/src/utils/load/plugins/{readFilesPlugin.js → readFiles.js} +3 -3
  17. package/dist/src/utils/normalize.js +3 -1
  18. package/dist/src/utils/upgrade.js +5 -3
  19. package/dist/src/utils/upgradeFromThreeToThreeOne.js +3 -4
  20. package/dist/src/utils/workThroughQueue.js +24 -0
  21. package/dist/types/index.d.ts +23 -8
  22. package/dist/utils/dereference.d.ts +2 -2
  23. package/dist/utils/details.d.ts +2 -6
  24. package/dist/utils/filter.d.ts +2 -2
  25. package/dist/utils/load/load.d.ts +2 -2
  26. package/dist/utils/resolveReferences.d.ts +1 -1
  27. package/dist/utils/upgrade.d.ts +2 -2
  28. package/dist/webpack-stats.json +1 -1
  29. package/package.json +15 -4
  30. package/dist/index.d.ts +0 -29
  31. package/dist/utils/load/plugins/fetchUrlsPlugin.d.ts +0 -10
  32. package/dist/utils/load/plugins/readFilesPlugin.d.ts +0 -5
  33. /package/dist/types/{openapi.d.ts → openapi-types.d.ts} +0 -0
package/dist/index.d.ts DELETED
@@ -1,29 +0,0 @@
1
- export { Validator, jsonSchemaVersions } from './lib/Validator/Validator.js';
2
- export { ResolveReferencesResult, resolveReferences } from './utils/resolveReferences.js';
3
- export { AjvOptions, AnyObject, ErrorObject, Filesystem, FilesystemEntry, ResolveResult, ValidateResult } from './types/index.js';
4
- export { dereference } from './utils/dereference.js';
5
- export { details } from './utils/details.js';
6
- export { escapeJsonPointer } from './utils/escapeJsonPointer.js';
7
- export { filter } from './utils/filter.js';
8
- export { getEntrypoint } from './utils/getEntrypoint.js';
9
- export { getListOfReferences } from './utils/getListOfReferences.js';
10
- export { getSegmentsFromPath } from './utils/getSegmentsFromPath.js';
11
- export { isFilesystem } from './utils/isFilesystem.js';
12
- export { isJson } from './utils/isJson.js';
13
- export { isObject } from './utils/isObject.js';
14
- export { isYaml } from './utils/isYaml.js';
15
- export { LoadPlugin, load } from './utils/load/load.js';
16
- export { fetchUrlsPlugin, fetchUrlsPluginDefaultConfiguration } from './utils/load/plugins/fetchUrlsPlugin.js';
17
- export { readFilesPlugin } from './utils/load/plugins/readFilesPlugin.js';
18
- export { normalize } from './utils/normalize.js';
19
- export { toJson } from './utils/toJson.js';
20
- export { toYaml } from './utils/toYaml.js';
21
- export { transformErrors } from './utils/transformErrors.js';
22
- export { traverse } from './utils/traverse.js';
23
- export { unescapeJsonPointer } from './utils/unescapeJsonPointer.js';
24
- export { upgrade } from './utils/upgrade.js';
25
- export { upgradeFromThreeToThreeOne } from './utils/upgradeFromThreeToThreeOne.js';
26
- export { upgradeFromTwoToThree } from './utils/upgradeFromTwoToThree.js';
27
- export { validate } from './utils/validate.js';
28
- export { Action, AnyApiDefinitionFormat, Queue, openapi } from './pipeline.js';
29
- export { OpenAPI, OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from './types/openapi.js';
@@ -1,10 +0,0 @@
1
- import { LoadPlugin } from '../load.js';
2
-
3
- declare const fetchUrlsPluginDefaultConfiguration: {
4
- limit: number;
5
- };
6
- declare const fetchUrlsPlugin: (customConfiguration?: {
7
- limit?: number | false;
8
- }) => LoadPlugin;
9
-
10
- export { fetchUrlsPlugin, fetchUrlsPluginDefaultConfiguration };
@@ -1,5 +0,0 @@
1
- import { LoadPlugin } from '../load.js';
2
-
3
- declare const readFilesPlugin: () => LoadPlugin;
4
-
5
- export { readFilesPlugin };
File without changes