Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@scalar/openapi-parser

Package Overview
Dependencies
Maintainers
8
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scalar/openapi-parser - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

dist/src/index.d.ts

10

CHANGELOG.md
# @scalar/openapi-parser
## 0.7.0
### Minor Changes
- ec01324: refactor!: use dedicated entrypoints for the plugins
### Patch Changes
- c6944f2: fix: ajv import broken in CJS environments
## 0.6.0

@@ -4,0 +14,0 @@

2

dist/lib/Validator/Validator.d.ts
import Ajv04 from 'ajv-draft-04';
import Ajv2020 from 'ajv/dist/2020';
import Ajv2020 from 'ajv/dist/2020.js';
import { OpenApiVersion } from '../../configuration.js';

@@ -4,0 +4,0 @@ import { AnyObject, Filesystem, ValidateResult } from '../../types/index.js';

@@ -16,4 +16,2 @@ export { openapi } from './pipeline.js';

export { load } from './utils/load/load.js';
export { fetchUrlsPlugin, fetchUrlsPluginDefaultConfiguration } from './utils/load/plugins/fetchUrlsPlugin.js';
export { readFilesPlugin } from './utils/load/plugins/readFilesPlugin.js';
export { normalize } from './utils/normalize.js';

@@ -20,0 +18,0 @@ export { toJson } from './utils/toJson.js';

import Ajv04 from 'ajv-draft-04';
import addFormats from 'ajv-formats';
import Ajv2020 from 'ajv/dist/2020';
import Ajv2020 from 'ajv/dist/2020.js';
import { ERRORS, OpenApiVersions, OpenApiSpecifications } from '../../configuration.js';

@@ -5,0 +5,0 @@ import { details } from '../../utils/details.js';

@@ -66,8 +66,6 @@ function normalizeArray(parts, allowAboveRoot) {

function filter(xs, f) {
if (xs.filter)
return xs.filter(f);
if (xs.filter) return xs.filter(f);
var res = [];
for (var i = 0; i < xs.length; i++) {
if (f(xs[i], i, xs))
res.push(xs[i]);
if (f(xs[i], i, xs)) res.push(xs[i]);
}

@@ -79,4 +77,3 @@ return res;

} : function(str, start, len) {
if (start < 0)
start = str.length + start;
if (start < 0) start = str.length + start;
return str.substr(start, len);

@@ -83,0 +80,0 @@ };

@@ -42,6 +42,5 @@ import { traverse } from './traverse.js';

if (schema.type === "object" && schema.properties !== void 0) {
for (const [_, value] of Object.entries(schema.properties)) {
if (value !== void 0 && // @ts-ignore
value.type === "string" && // @ts-ignore
value.format === "binary") {
const entries = Object.entries(schema.properties);
for (const [_, value] of entries) {
if (typeof value === "object" && value.type === "string" && value.format === "binary") {
value.contentEncoding = "application/octet-stream";

@@ -48,0 +47,0 @@ delete value.format;

@@ -1,1 +0,1 @@

{"builtAt":1717672264982,"assets":[{"name":"src/index.js","size":1587},{"name":"src/pipeline.js","size":3563},{"name":"src/lib/Validator/Validator.js","size":3166},{"name":"src/utils/resolveReferences.js","size":2951},{"name":"src/utils/dereference.js","size":566},{"name":"src/utils/details.js","size":571},{"name":"src/utils/escapeJsonPointer.js","size":122},{"name":"src/utils/filter.js","size":443},{"name":"src/utils/getEntrypoint.js","size":121},{"name":"src/utils/getListOfReferences.js","size":477},{"name":"src/utils/getSegmentsFromPath.js","size":228},{"name":"src/utils/isFilesystem.js","size":189},{"name":"src/utils/isJson.js","size":129},{"name":"src/utils/isObject.js","size":112},{"name":"src/utils/isYaml.js","size":250},{"name":"src/utils/load/load.js","size":1924},{"name":"src/utils/load/plugins/fetchUrlsPlugin.js","size":1119},{"name":"src/utils/load/plugins/readFilesPlugin.js","size":1224},{"name":"src/utils/normalize.js","size":431},{"name":"src/utils/toJson.js","size":78},{"name":"src/utils/toYaml.js","size":99},{"name":"src/utils/transformErrors.js","size":402},{"name":"src/utils/traverse.js","size":557},{"name":"src/utils/unescapeJsonPointer.js","size":136},{"name":"src/utils/upgrade.js","size":644},{"name":"src/utils/upgradeFromThreeToThreeOne.js","size":2127},{"name":"src/utils/upgradeFromTwoToThree.js","size":109},{"name":"src/utils/validate.js","size":413},{"name":"src/utils/workThroughQueue.js","size":637},{"name":"src/utils/makeFilesystem.js","size":520},{"name":"src/configuration.js","size":858},{"name":"src/utils/betterAjvErrors/index.js","size":439},{"name":"schemas/v2.0/schema.json.js","size":30949},{"name":"schemas/v3.0/schema.json.js","size":25234},{"name":"schemas/v3.1/schema.json.js","size":24839},{"name":"src/utils/betterAjvErrors/helpers.js","size":3303},{"name":"src/polyfills/path.js","size":1963},{"name":"src/utils/betterAjvErrors/utils.js","size":756},{"name":"src/utils/betterAjvErrors/validation-errors/enum.js","size":1252},{"name":"src/utils/betterAjvErrors/validation-errors/default.js","size":444},{"name":"src/utils/betterAjvErrors/validation-errors/unevaluated-prop.js","size":505},{"name":"src/utils/betterAjvErrors/validation-errors/required.js","size":384},{"name":"src/utils/betterAjvErrors/validation-errors/pattern.js","size":493},{"name":"src/utils/betterAjvErrors/validation-errors/additional-prop.js","size":501},{"name":"src/utils/betterAjvErrors/validation-errors/base.js","size":648}],"chunks":[{"id":"a1ee98a","entry":true,"initial":true,"files":["src/index.js"],"names":["src/index"]},{"id":"1610f8d","entry":false,"initial":true,"files":["src/pipeline.js"],"names":["src/pipeline"]},{"id":"a5b5029","entry":false,"initial":true,"files":["src/lib/Validator/Validator.js"],"names":["src/lib/Validator/Validator"]},{"id":"aea20c6","entry":false,"initial":true,"files":["src/utils/resolveReferences.js"],"names":["src/utils/resolveReferences"]},{"id":"f9b6a1a","entry":false,"initial":true,"files":["src/utils/dereference.js"],"names":["src/utils/dereference"]},{"id":"c64a2fa","entry":false,"initial":true,"files":["src/utils/details.js"],"names":["src/utils/details"]},{"id":"398f36d","entry":false,"initial":true,"files":["src/utils/escapeJsonPointer.js"],"names":["src/utils/escapeJsonPointer"]},{"id":"6c7ec36","entry":false,"initial":true,"files":["src/utils/filter.js"],"names":["src/utils/filter"]},{"id":"c07bf08","entry":false,"initial":true,"files":["src/utils/getEntrypoint.js"],"names":["src/utils/getEntrypoint"]},{"id":"13f9e1e","entry":false,"initial":true,"files":["src/utils/getListOfReferences.js"],"names":["src/utils/getListOfReferences"]},{"id":"b5bffbd","entry":false,"initial":true,"files":["src/utils/getSegmentsFromPath.js"],"names":["src/utils/getSegmentsFromPath"]},{"id":"8ea971a","entry":false,"initial":true,"files":["src/utils/isFilesystem.js"],"names":["src/utils/isFilesystem"]},{"id":"20e0bc7","entry":false,"initial":true,"files":["src/utils/isJson.js"],"names":["src/utils/isJson"]},{"id":"3180f00","entry":false,"initial":true,"files":["src/utils/isObject.js"],"names":["src/utils/isObject"]},{"id":"2305281","entry":false,"initial":true,"files":["src/utils/isYaml.js"],"names":["src/utils/isYaml"]},{"id":"6e9fd1a","entry":false,"initial":true,"files":["src/utils/load/load.js"],"names":["src/utils/load/load"]},{"id":"924bd2a","entry":false,"initial":true,"files":["src/utils/load/plugins/fetchUrlsPlugin.js"],"names":["src/utils/load/plugins/fetchUrlsPlugin"]},{"id":"eb4c5f3","entry":false,"initial":true,"files":["src/utils/load/plugins/readFilesPlugin.js"],"names":["src/utils/load/plugins/readFilesPlugin"]},{"id":"c62fce7","entry":false,"initial":true,"files":["src/utils/normalize.js"],"names":["src/utils/normalize"]},{"id":"ff23e2d","entry":false,"initial":true,"files":["src/utils/toJson.js"],"names":["src/utils/toJson"]},{"id":"893a485","entry":false,"initial":true,"files":["src/utils/toYaml.js"],"names":["src/utils/toYaml"]},{"id":"8d99789","entry":false,"initial":true,"files":["src/utils/transformErrors.js"],"names":["src/utils/transformErrors"]},{"id":"e6dbaad","entry":false,"initial":true,"files":["src/utils/traverse.js"],"names":["src/utils/traverse"]},{"id":"a5b1973","entry":false,"initial":true,"files":["src/utils/unescapeJsonPointer.js"],"names":["src/utils/unescapeJsonPointer"]},{"id":"7e74bc8","entry":false,"initial":true,"files":["src/utils/upgrade.js"],"names":["src/utils/upgrade"]},{"id":"acc1a8d","entry":false,"initial":true,"files":["src/utils/upgradeFromThreeToThreeOne.js"],"names":["src/utils/upgradeFromThreeToThreeOne"]},{"id":"d98a7d1","entry":false,"initial":true,"files":["src/utils/upgradeFromTwoToThree.js"],"names":["src/utils/upgradeFromTwoToThree"]},{"id":"ec25ebd","entry":false,"initial":true,"files":["src/utils/validate.js"],"names":["src/utils/validate"]},{"id":"7c18e02","entry":false,"initial":true,"files":["src/utils/workThroughQueue.js"],"names":["src/utils/workThroughQueue"]},{"id":"90e5eec","entry":false,"initial":true,"files":["src/utils/makeFilesystem.js"],"names":["src/utils/makeFilesystem"]},{"id":"1eb4908","entry":false,"initial":true,"files":["src/configuration.js"],"names":["src/configuration"]},{"id":"a7c663b","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/index.js"],"names":["src/utils/betterAjvErrors/index"]},{"id":"7d833d7","entry":false,"initial":true,"files":["schemas/v2.0/schema.json.js"],"names":["schemas/v2.0/schema.json"]},{"id":"3870082","entry":false,"initial":true,"files":["schemas/v3.0/schema.json.js"],"names":["schemas/v3.0/schema.json"]},{"id":"ba96e53","entry":false,"initial":true,"files":["schemas/v3.1/schema.json.js"],"names":["schemas/v3.1/schema.json"]},{"id":"003968b","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/helpers.js"],"names":["src/utils/betterAjvErrors/helpers"]},{"id":"20a5186","entry":false,"initial":true,"files":["src/polyfills/path.js"],"names":["src/polyfills/path"]},{"id":"8c3e592","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/utils.js"],"names":["src/utils/betterAjvErrors/utils"]},{"id":"b67304b","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/validation-errors/enum.js"],"names":["src/utils/betterAjvErrors/validation-errors/enum"]},{"id":"0587cdd","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/validation-errors/default.js"],"names":["src/utils/betterAjvErrors/validation-errors/default"]},{"id":"4f9c5a8","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/validation-errors/unevaluated-prop.js"],"names":["src/utils/betterAjvErrors/validation-errors/unevaluated-prop"]},{"id":"74cdbcb","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/validation-errors/required.js"],"names":["src/utils/betterAjvErrors/validation-errors/required"]},{"id":"8f5040f","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/validation-errors/pattern.js"],"names":["src/utils/betterAjvErrors/validation-errors/pattern"]},{"id":"7c5b700","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/validation-errors/additional-prop.js"],"names":["src/utils/betterAjvErrors/validation-errors/additional-prop"]},{"id":"372b5cd","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/validation-errors/base.js"],"names":["src/utils/betterAjvErrors/validation-errors/base"]}],"modules":[{"name":"./src/index.ts","size":0,"chunks":["a1ee98a"]},{"name":"./src/pipeline.ts","size":3047,"chunks":["1610f8d"]},{"name":"./src/lib/Validator/Validator.ts","size":2737,"chunks":["a5b5029"]},{"name":"./src/utils/resolveReferences.ts","size":2702,"chunks":["aea20c6"]},{"name":"./src/utils/dereference.ts","size":333,"chunks":["f9b6a1a"]},{"name":"./src/utils/details.ts","size":493,"chunks":["c64a2fa"]},{"name":"./src/utils/escapeJsonPointer.ts","size":90,"chunks":["398f36d"]},{"name":"./src/utils/filter.ts","size":273,"chunks":["6c7ec36"]},{"name":"./src/utils/getEntrypoint.ts","size":93,"chunks":["c07bf08"]},{"name":"./src/utils/getListOfReferences.ts","size":400,"chunks":["13f9e1e"]},{"name":"./src/utils/getSegmentsFromPath.ts","size":129,"chunks":["b5bffbd"]},{"name":"./src/utils/isFilesystem.ts","size":162,"chunks":["8ea971a"]},{"name":"./src/utils/isJson.ts","size":108,"chunks":["20e0bc7"]},{"name":"./src/utils/isObject.ts","size":89,"chunks":["3180f00"]},{"name":"./src/utils/isYaml.ts","size":198,"chunks":["2305281"]},{"name":"./src/utils/load/load.ts","size":1686,"chunks":["6e9fd1a"]},{"name":"./src/utils/load/plugins/fetchUrlsPlugin.ts","size":1052,"chunks":["924bd2a"]},{"name":"./src/utils/load/plugins/readFilesPlugin.ts","size":971,"chunks":["eb4c5f3"]},{"name":"./src/utils/normalize.ts","size":326,"chunks":["c62fce7"]},{"name":"./src/utils/toJson.ts","size":57,"chunks":["ff23e2d"]},{"name":"./src/utils/toYaml.ts","size":43,"chunks":["893a485"]},{"name":"./src/utils/transformErrors.ts","size":309,"chunks":["8d99789"]},{"name":"./src/utils/traverse.ts","size":534,"chunks":["e6dbaad"]},{"name":"./src/utils/unescapeJsonPointer.ts","size":102,"chunks":["a5b1973"]},{"name":"./src/utils/upgrade.ts","size":369,"chunks":["7e74bc8"]},{"name":"./src/utils/upgradeFromThreeToThreeOne.ts","size":2043,"chunks":["acc1a8d"]},{"name":"./src/utils/upgradeFromTwoToThree.ts","size":73,"chunks":["d98a7d1"]},{"name":"./src/utils/validate.ts","size":276,"chunks":["ec25ebd"]},{"name":"./src/utils/workThroughQueue.ts","size":606,"chunks":["7c18e02"]},{"name":"./src/utils/makeFilesystem.ts","size":332,"chunks":["90e5eec"]},{"name":"./src/configuration.ts","size":628,"chunks":["1eb4908"]},{"name":"./src/utils/betterAjvErrors/index.ts","size":371,"chunks":["a7c663b"]},{"name":"./schemas/v2.0/schema.json","size":30812,"chunks":["7d833d7"]},{"name":"./schemas/v3.0/schema.json","size":25091,"chunks":["3870082"]},{"name":"./schemas/v3.1/schema.json","size":24706,"chunks":["ba96e53"]},{"name":"./src/utils/betterAjvErrors/helpers.ts","size":2636,"chunks":["003968b"]},{"name":"./src/polyfills/path.ts","size":1912,"chunks":["20a5186"]},{"name":"./src/utils/betterAjvErrors/utils.js","size":637,"chunks":["8c3e592"]},{"name":"./src/utils/betterAjvErrors/validation-errors/enum.js","size":1099,"chunks":["b67304b"]},{"name":"./src/utils/betterAjvErrors/validation-errors/default.js","size":350,"chunks":["0587cdd"]},{"name":"./src/utils/betterAjvErrors/validation-errors/unevaluated-prop.js","size":403,"chunks":["4f9c5a8"]},{"name":"./src/utils/betterAjvErrors/validation-errors/required.js","size":289,"chunks":["74cdbcb"]},{"name":"./src/utils/betterAjvErrors/validation-errors/pattern.js","size":399,"chunks":["8f5040f"]},{"name":"./src/utils/betterAjvErrors/validation-errors/additional-prop.js","size":400,"chunks":["7c5b700"]},{"name":"./src/utils/betterAjvErrors/validation-errors/base.js","size":603,"chunks":["372b5cd"]}]}
{"builtAt":1718186238445,"assets":[{"name":"src/index.js","size":1400},{"name":"src/utils/load/plugins/readFiles.js","size":1206},{"name":"src/utils/load/plugins/fetchUrls.js","size":1077},{"name":"src/pipeline.js","size":3563},{"name":"src/lib/Validator/Validator.js","size":3169},{"name":"src/utils/resolveReferences.js","size":2951},{"name":"src/utils/dereference.js","size":566},{"name":"src/utils/details.js","size":571},{"name":"src/utils/escapeJsonPointer.js","size":122},{"name":"src/utils/filter.js","size":443},{"name":"src/utils/getEntrypoint.js","size":121},{"name":"src/utils/getListOfReferences.js","size":477},{"name":"src/utils/getSegmentsFromPath.js","size":228},{"name":"src/utils/isFilesystem.js","size":189},{"name":"src/utils/isJson.js","size":129},{"name":"src/utils/isObject.js","size":112},{"name":"src/utils/isYaml.js","size":250},{"name":"src/utils/load/load.js","size":1924},{"name":"src/utils/normalize.js","size":431},{"name":"src/utils/toJson.js","size":78},{"name":"src/utils/toYaml.js","size":99},{"name":"src/utils/transformErrors.js","size":402},{"name":"src/utils/traverse.js","size":557},{"name":"src/utils/unescapeJsonPointer.js","size":136},{"name":"src/utils/upgrade.js","size":644},{"name":"src/utils/upgradeFromThreeToThreeOne.js","size":2123},{"name":"src/utils/upgradeFromTwoToThree.js","size":109},{"name":"src/utils/validate.js","size":413},{"name":"src/configuration.js","size":858},{"name":"src/polyfills/path.js","size":1949},{"name":"src/utils/workThroughQueue.js","size":637},{"name":"schemas/v2.0/schema.json.js","size":30949},{"name":"schemas/v3.0/schema.json.js","size":25234},{"name":"schemas/v3.1/schema.json.js","size":24839},{"name":"src/utils/makeFilesystem.js","size":520},{"name":"src/utils/betterAjvErrors/index.js","size":439},{"name":"src/utils/betterAjvErrors/helpers.js","size":3303},{"name":"src/utils/betterAjvErrors/utils.js","size":756},{"name":"src/utils/betterAjvErrors/validation-errors/enum.js","size":1252},{"name":"src/utils/betterAjvErrors/validation-errors/default.js","size":444},{"name":"src/utils/betterAjvErrors/validation-errors/unevaluated-prop.js","size":505},{"name":"src/utils/betterAjvErrors/validation-errors/required.js","size":384},{"name":"src/utils/betterAjvErrors/validation-errors/pattern.js","size":493},{"name":"src/utils/betterAjvErrors/validation-errors/additional-prop.js","size":501},{"name":"src/utils/betterAjvErrors/validation-errors/base.js","size":648}],"chunks":[{"id":"a1ee98a","entry":true,"initial":true,"files":["src/index.js"],"names":["src/index"]},{"id":"28f2252","entry":true,"initial":true,"files":["src/utils/load/plugins/readFiles.js"],"names":["src/utils/load/plugins/readFiles"]},{"id":"c293ae3","entry":true,"initial":true,"files":["src/utils/load/plugins/fetchUrls.js"],"names":["src/utils/load/plugins/fetchUrls"]},{"id":"1610f8d","entry":false,"initial":true,"files":["src/pipeline.js"],"names":["src/pipeline"]},{"id":"a5b5029","entry":false,"initial":true,"files":["src/lib/Validator/Validator.js"],"names":["src/lib/Validator/Validator"]},{"id":"aea20c6","entry":false,"initial":true,"files":["src/utils/resolveReferences.js"],"names":["src/utils/resolveReferences"]},{"id":"f9b6a1a","entry":false,"initial":true,"files":["src/utils/dereference.js"],"names":["src/utils/dereference"]},{"id":"c64a2fa","entry":false,"initial":true,"files":["src/utils/details.js"],"names":["src/utils/details"]},{"id":"398f36d","entry":false,"initial":true,"files":["src/utils/escapeJsonPointer.js"],"names":["src/utils/escapeJsonPointer"]},{"id":"6c7ec36","entry":false,"initial":true,"files":["src/utils/filter.js"],"names":["src/utils/filter"]},{"id":"c07bf08","entry":false,"initial":true,"files":["src/utils/getEntrypoint.js"],"names":["src/utils/getEntrypoint"]},{"id":"13f9e1e","entry":false,"initial":true,"files":["src/utils/getListOfReferences.js"],"names":["src/utils/getListOfReferences"]},{"id":"b5bffbd","entry":false,"initial":true,"files":["src/utils/getSegmentsFromPath.js"],"names":["src/utils/getSegmentsFromPath"]},{"id":"8ea971a","entry":false,"initial":true,"files":["src/utils/isFilesystem.js"],"names":["src/utils/isFilesystem"]},{"id":"20e0bc7","entry":false,"initial":true,"files":["src/utils/isJson.js"],"names":["src/utils/isJson"]},{"id":"3180f00","entry":false,"initial":true,"files":["src/utils/isObject.js"],"names":["src/utils/isObject"]},{"id":"2305281","entry":false,"initial":true,"files":["src/utils/isYaml.js"],"names":["src/utils/isYaml"]},{"id":"6e9fd1a","entry":false,"initial":true,"files":["src/utils/load/load.js"],"names":["src/utils/load/load"]},{"id":"c62fce7","entry":false,"initial":true,"files":["src/utils/normalize.js"],"names":["src/utils/normalize"]},{"id":"ff23e2d","entry":false,"initial":true,"files":["src/utils/toJson.js"],"names":["src/utils/toJson"]},{"id":"893a485","entry":false,"initial":true,"files":["src/utils/toYaml.js"],"names":["src/utils/toYaml"]},{"id":"8d99789","entry":false,"initial":true,"files":["src/utils/transformErrors.js"],"names":["src/utils/transformErrors"]},{"id":"e6dbaad","entry":false,"initial":true,"files":["src/utils/traverse.js"],"names":["src/utils/traverse"]},{"id":"a5b1973","entry":false,"initial":true,"files":["src/utils/unescapeJsonPointer.js"],"names":["src/utils/unescapeJsonPointer"]},{"id":"7e74bc8","entry":false,"initial":true,"files":["src/utils/upgrade.js"],"names":["src/utils/upgrade"]},{"id":"acc1a8d","entry":false,"initial":true,"files":["src/utils/upgradeFromThreeToThreeOne.js"],"names":["src/utils/upgradeFromThreeToThreeOne"]},{"id":"d98a7d1","entry":false,"initial":true,"files":["src/utils/upgradeFromTwoToThree.js"],"names":["src/utils/upgradeFromTwoToThree"]},{"id":"ec25ebd","entry":false,"initial":true,"files":["src/utils/validate.js"],"names":["src/utils/validate"]},{"id":"1eb4908","entry":false,"initial":true,"files":["src/configuration.js"],"names":["src/configuration"]},{"id":"20a5186","entry":false,"initial":true,"files":["src/polyfills/path.js"],"names":["src/polyfills/path"]},{"id":"7c18e02","entry":false,"initial":true,"files":["src/utils/workThroughQueue.js"],"names":["src/utils/workThroughQueue"]},{"id":"7d833d7","entry":false,"initial":true,"files":["schemas/v2.0/schema.json.js"],"names":["schemas/v2.0/schema.json"]},{"id":"3870082","entry":false,"initial":true,"files":["schemas/v3.0/schema.json.js"],"names":["schemas/v3.0/schema.json"]},{"id":"ba96e53","entry":false,"initial":true,"files":["schemas/v3.1/schema.json.js"],"names":["schemas/v3.1/schema.json"]},{"id":"90e5eec","entry":false,"initial":true,"files":["src/utils/makeFilesystem.js"],"names":["src/utils/makeFilesystem"]},{"id":"a7c663b","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/index.js"],"names":["src/utils/betterAjvErrors/index"]},{"id":"003968b","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/helpers.js"],"names":["src/utils/betterAjvErrors/helpers"]},{"id":"8c3e592","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/utils.js"],"names":["src/utils/betterAjvErrors/utils"]},{"id":"b67304b","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/validation-errors/enum.js"],"names":["src/utils/betterAjvErrors/validation-errors/enum"]},{"id":"0587cdd","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/validation-errors/default.js"],"names":["src/utils/betterAjvErrors/validation-errors/default"]},{"id":"4f9c5a8","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/validation-errors/unevaluated-prop.js"],"names":["src/utils/betterAjvErrors/validation-errors/unevaluated-prop"]},{"id":"74cdbcb","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/validation-errors/required.js"],"names":["src/utils/betterAjvErrors/validation-errors/required"]},{"id":"8f5040f","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/validation-errors/pattern.js"],"names":["src/utils/betterAjvErrors/validation-errors/pattern"]},{"id":"7c5b700","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/validation-errors/additional-prop.js"],"names":["src/utils/betterAjvErrors/validation-errors/additional-prop"]},{"id":"372b5cd","entry":false,"initial":true,"files":["src/utils/betterAjvErrors/validation-errors/base.js"],"names":["src/utils/betterAjvErrors/validation-errors/base"]}],"modules":[{"name":"./src/index.ts","size":0,"chunks":["a1ee98a"]},{"name":"./src/utils/load/plugins/readFiles.ts","size":959,"chunks":["28f2252"]},{"name":"./src/utils/load/plugins/fetchUrls.ts","size":1022,"chunks":["c293ae3"]},{"name":"./src/pipeline.ts","size":3047,"chunks":["1610f8d"]},{"name":"./src/lib/Validator/Validator.ts","size":2737,"chunks":["a5b5029"]},{"name":"./src/utils/resolveReferences.ts","size":2702,"chunks":["aea20c6"]},{"name":"./src/utils/dereference.ts","size":333,"chunks":["f9b6a1a"]},{"name":"./src/utils/details.ts","size":493,"chunks":["c64a2fa"]},{"name":"./src/utils/escapeJsonPointer.ts","size":90,"chunks":["398f36d"]},{"name":"./src/utils/filter.ts","size":273,"chunks":["6c7ec36"]},{"name":"./src/utils/getEntrypoint.ts","size":93,"chunks":["c07bf08"]},{"name":"./src/utils/getListOfReferences.ts","size":400,"chunks":["13f9e1e"]},{"name":"./src/utils/getSegmentsFromPath.ts","size":129,"chunks":["b5bffbd"]},{"name":"./src/utils/isFilesystem.ts","size":162,"chunks":["8ea971a"]},{"name":"./src/utils/isJson.ts","size":108,"chunks":["20e0bc7"]},{"name":"./src/utils/isObject.ts","size":89,"chunks":["3180f00"]},{"name":"./src/utils/isYaml.ts","size":198,"chunks":["2305281"]},{"name":"./src/utils/load/load.ts","size":1686,"chunks":["6e9fd1a"]},{"name":"./src/utils/normalize.ts","size":326,"chunks":["c62fce7"]},{"name":"./src/utils/toJson.ts","size":57,"chunks":["ff23e2d"]},{"name":"./src/utils/toYaml.ts","size":43,"chunks":["893a485"]},{"name":"./src/utils/transformErrors.ts","size":309,"chunks":["8d99789"]},{"name":"./src/utils/traverse.ts","size":534,"chunks":["e6dbaad"]},{"name":"./src/utils/unescapeJsonPointer.ts","size":102,"chunks":["a5b1973"]},{"name":"./src/utils/upgrade.ts","size":369,"chunks":["7e74bc8"]},{"name":"./src/utils/upgradeFromThreeToThreeOne.ts","size":2039,"chunks":["acc1a8d"]},{"name":"./src/utils/upgradeFromTwoToThree.ts","size":73,"chunks":["d98a7d1"]},{"name":"./src/utils/validate.ts","size":276,"chunks":["ec25ebd"]},{"name":"./src/configuration.ts","size":628,"chunks":["1eb4908"]},{"name":"./src/polyfills/path.ts","size":1898,"chunks":["20a5186"]},{"name":"./src/utils/workThroughQueue.ts","size":606,"chunks":["7c18e02"]},{"name":"./schemas/v2.0/schema.json","size":30812,"chunks":["7d833d7"]},{"name":"./schemas/v3.0/schema.json","size":25091,"chunks":["3870082"]},{"name":"./schemas/v3.1/schema.json","size":24706,"chunks":["ba96e53"]},{"name":"./src/utils/makeFilesystem.ts","size":332,"chunks":["90e5eec"]},{"name":"./src/utils/betterAjvErrors/index.ts","size":371,"chunks":["a7c663b"]},{"name":"./src/utils/betterAjvErrors/helpers.ts","size":2636,"chunks":["003968b"]},{"name":"./src/utils/betterAjvErrors/utils.js","size":637,"chunks":["8c3e592"]},{"name":"./src/utils/betterAjvErrors/validation-errors/enum.js","size":1099,"chunks":["b67304b"]},{"name":"./src/utils/betterAjvErrors/validation-errors/default.js","size":350,"chunks":["0587cdd"]},{"name":"./src/utils/betterAjvErrors/validation-errors/unevaluated-prop.js","size":403,"chunks":["4f9c5a8"]},{"name":"./src/utils/betterAjvErrors/validation-errors/required.js","size":289,"chunks":["74cdbcb"]},{"name":"./src/utils/betterAjvErrors/validation-errors/pattern.js","size":399,"chunks":["8f5040f"]},{"name":"./src/utils/betterAjvErrors/validation-errors/additional-prop.js","size":400,"chunks":["7c5b700"]},{"name":"./src/utils/betterAjvErrors/validation-errors/base.js","size":603,"chunks":["372b5cd"]}]}

@@ -15,3 +15,3 @@ {

"bugs": "https://github.com/scalar/scalar/issues/new/choose",
"version": "0.6.0",
"version": "0.7.0",
"engines": {

@@ -28,2 +28,13 @@ "node": ">=18"

"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/src/index.js"
},
"./plugins/fetch-urls": {
"import": "./dist/src/utils/load/plugins/fetchUrls.js"
},
"./plugins/read-files": {
"import": "./dist/src/utils/load/plugins/fetchUrls.js"
}
},
"sideEffects": false,

@@ -30,0 +41,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc