diff --git a/package-lock.json b/package-lock.json index 9aaca33a..7a639360 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1222,9 +1222,9 @@ } }, "@redocly/openapi-core": { - "version": "1.0.0-beta.41", - "resolved": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-1.0.0-beta.41.tgz", - "integrity": "sha512-jNQY1xVG6+S2XcxvlJhrDWbhyc5Yuh8R9ntduab5CtH1+ReSGmkGB+QhwkZ+ZO1E1le3kUR6cWJXM/loc2uW3A==", + "version": "1.0.0-beta.42", + "resolved": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-1.0.0-beta.42.tgz", + "integrity": "sha512-DKy/eJNAoN94TmZSVnkn4f4IDasmFUZqSSRRBX6eU//2MSMazY0u3XaFY7Bis28uCxJhwBVcDpT/qMwiX2PI1Q==", "requires": { "@redocly/ajv": "^6.12.3", "@types/node": "^14.11.8", @@ -2596,9 +2596,9 @@ } }, "balanced-match": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.1.tgz", - "integrity": "sha512-qyTw2VPYRg31SlVU5WDdvCSyMTJ3YSP4Kz2CidWZFPFawCiHJdCyKyZeXIGMJ5ebMQYXEI56kDR8tcnDkbZstg==" + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, "base": { "version": "0.11.2", diff --git a/package.json b/package.json index 08c3864f..384a4d11 100644 --- a/package.json +++ b/package.json @@ -134,7 +134,7 @@ "styled-components": "^4.1.1 || ^5.1.1" }, "dependencies": { - "@redocly/openapi-core": "^1.0.0-beta.41", + "@redocly/openapi-core": "^1.0.0-beta.42", "@redocly/react-dropdown-aria": "^2.0.11", "@types/node": "^13.11.1", "classnames": "^2.2.6", diff --git a/src/components/SideMenu/styled.elements.ts b/src/components/SideMenu/styled.elements.ts index 55846434..e95c1d95 100644 --- a/src/components/SideMenu/styled.elements.ts +++ b/src/components/SideMenu/styled.elements.ts @@ -1,4 +1,4 @@ -import * as classnames from 'classnames'; +import { default as classnames } from 'classnames'; import { darken } from 'polished'; import { deprecatedCss, ShelfIcon } from '../../common-elements'; diff --git a/src/utils/loadAndBundleSpec.ts b/src/utils/loadAndBundleSpec.ts index 46918c3a..71ad72a8 100644 --- a/src/utils/loadAndBundleSpec.ts +++ b/src/utils/loadAndBundleSpec.ts @@ -1,11 +1,12 @@ /* tslint:disable-next-line:no-implicit-dependencies */ import { convertObj } from 'swagger2openapi'; import { OpenAPISpec } from '../types'; -import { Source, Document, bundle, loadConfig } from '@redocly/openapi-core'; +import { Source, Document, bundle, Config, RawConfig } from '@redocly/openapi-core'; export async function loadAndBundleSpec(specUrlOrObject: object | string): Promise { const isNode = typeof process !== 'undefined' && process.versions != null && process.versions.node != null; - const config = await loadConfig(); + const rawConfig: RawConfig = {}; + const config = new Config(rawConfig); const bundleOpts = { config, base: isNode ? process.cwd() : window.location.href