Skip to content

Commit

Permalink
chore: changed the way of creating core Config for bundling definition
Browse files Browse the repository at this point in the history
  • Loading branch information
andriyl committed Apr 6, 2021
1 parent c015bfd commit 817ce3a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/components/SideMenu/styled.elements.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
5 changes: 3 additions & 2 deletions src/utils/loadAndBundleSpec.ts
Original file line number Diff line number Diff line change
@@ -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<OpenAPISpec> {
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
Expand Down

0 comments on commit 817ce3a

Please sign in to comment.