diff --git a/packages/spec-parser/config/webpack.test.cjs b/packages/spec-parser/config/webpack.test.cjs index b108c85891..16ac21e302 100644 --- a/packages/spec-parser/config/webpack.test.cjs +++ b/packages/spec-parser/config/webpack.test.cjs @@ -39,6 +39,7 @@ module.exports = { buffer: require.resolve("buffer"), "process/browser": require.resolve("process/browser"), util: false, + path: require.resolve("path-browserify"), }, }, plugins: [ diff --git a/packages/spec-parser/package.json b/packages/spec-parser/package.json index ebbd5cebe4..04dd32b524 100644 --- a/packages/spec-parser/package.json +++ b/packages/spec-parser/package.json @@ -49,7 +49,7 @@ "access": "public" }, "devDependencies": { - "@apidevtools/json-schema-ref-parser": "^9.0.6", + "@apidevtools/swagger-parser": "^10.1.1", "@apidevtools/openapi-schemas": "2.1.0", "@apidevtools/swagger-methods": "3.0.2", "@istanbuljs/nyc-config-typescript": "^1.0.2", @@ -118,6 +118,7 @@ "nise": "^5.1.4", "nyc": "^15.1.0", "object-inspect": "1.13.1", + "path-browserify": "^1.0.1", "pathval": "^2.0.0", "prettier": "^2.4.1", "process": "^0.11.10", diff --git a/packages/spec-parser/pnpm-lock.yaml b/packages/spec-parser/pnpm-lock.yaml index dfde37b5ba..d96e105df5 100644 --- a/packages/spec-parser/pnpm-lock.yaml +++ b/packages/spec-parser/pnpm-lock.yaml @@ -25,9 +25,6 @@ dependencies: version: 7.0.8 devDependencies: - '@apidevtools/json-schema-ref-parser': - specifier: ^9.0.6 - version: 9.0.6 '@apidevtools/openapi-schemas': specifier: 2.1.0 version: 2.1.0 @@ -232,6 +229,9 @@ devDependencies: object-inspect: specifier: 1.13.1 version: 1.13.1 + path-browserify: + specifier: ^1.0.1 + version: 1.0.1 pathval: specifier: ^2.0.0 version: 2.0.0 @@ -323,6 +323,7 @@ packages: '@jsdevtools/ono': 7.1.3 call-me-maybe: 1.0.2 js-yaml: 3.14.1 + dev: false /@apidevtools/openapi-schemas@2.1.0: resolution: {integrity: sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ==} @@ -4224,6 +4225,10 @@ packages: engines: {node: '>= 0.8'} dev: true + /path-browserify@1.0.1: + resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} + dev: true + /path-exists@2.1.0: resolution: {integrity: sha512-yTltuKuhtNeFJKa1PiRzfLAU5182q1y4Eb4XCJ3PBqyzEDkAZRzBrKKBct682ls9reBVHf9udYLN5Nd+K1B9BQ==} engines: {node: '>=0.10.0'}