chore: update dev deps

This commit is contained in:
Roman Hotsiy 2018-10-18 11:27:28 +03:00
parent 70cf29328e
commit 00846e1f55
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
7 changed files with 1843 additions and 1859 deletions

View File

@ -97,7 +97,7 @@ export default (env: { playground?: boolean; bench?: boolean } = {}, { mode }) =
{
test: /\.tsx?$/,
use: [tsLoader(env), babelLoader(mode)],
exclude: ['node_modules'],
exclude: [/node_modules/],
},
{
test: /\.css$/,

View File

@ -51,75 +51,75 @@
"license-check": "license-checker --production --onlyAllow 'MIT;ISC;Apache-2.0;BSD;BSD-2-Clause;BSD-3-Clause' --summary"
},
"devDependencies": {
"@babel/core": "7.0.0-rc.2",
"@babel/plugin-syntax-decorators": "7.0.0-rc.2",
"@babel/core": "7.1.2",
"@babel/plugin-syntax-decorators": "7.1.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-jsx": "7.0.0-rc.2",
"@babel/plugin-syntax-typescript": "7.0.0-rc.2",
"@cypress/webpack-preprocessor": "2.0.1",
"@types/chai": "4.1.4",
"@babel/plugin-syntax-jsx": "7.0.0",
"@babel/plugin-syntax-typescript": "7.0.0",
"@cypress/webpack-preprocessor": "3.0.0",
"@types/chai": "4.1.6",
"@types/dompurify": "^0.0.31",
"@types/enzyme": "^3.1.13",
"@types/enzyme": "^3.1.14",
"@types/enzyme-to-json": "^1.5.2",
"@types/jest": "^23.3.1",
"@types/jest": "^23.3.5",
"@types/json-pointer": "^1.0.30",
"@types/lodash": "^4.14.116",
"@types/lodash": "^4.14.117",
"@types/lunr": "^2.1.6",
"@types/mark.js": "^8.11.1",
"@types/marked": "^0.4.1",
"@types/marked": "^0.4.2",
"@types/prismjs": "^1.6.4",
"@types/prop-types": "^15.5.5",
"@types/react": "^16.4.11",
"@types/react-dom": "^16.0.7",
"@types/prop-types": "^15.5.6",
"@types/react": "^16.4.18",
"@types/react-dom": "^16.0.9",
"@types/react-hot-loader": "^4.1.0",
"@types/react-tabs": "^1.0.5",
"@types/react-tabs": "^2.3.0",
"@types/tapable": "1.0.4",
"@types/webpack": "^4.4.11",
"@types/webpack": "^4.4.17",
"@types/webpack-env": "^1.13.0",
"@types/yargs": "^11.1.1",
"babel-loader": "8.0.0-beta.2",
"babel-plugin-styled-components": "^1.5.1",
"@types/yargs": "^12.0.1",
"babel-loader": "8.0.4",
"babel-plugin-styled-components": "^1.8.0",
"beautify-benchmark": "^0.2.4",
"bundlesize": "^0.17.0",
"conventional-changelog-cli": "^2.0.5",
"copy-webpack-plugin": "^4.5.2",
"copy-webpack-plugin": "^4.5.3",
"core-js": "^2.5.7",
"coveralls": "^3.0.2",
"css-loader": "^1.0.0",
"cypress": "~3.1.0",
"deploy-to-gh-pages": "^1.3.6",
"enzyme": "^3.4.4",
"enzyme-adapter-react-16": "^1.2.0",
"enzyme": "^3.7.0",
"enzyme-adapter-react-16": "^1.6.0",
"enzyme-to-json": "^3.3.4",
"fork-ts-checker-webpack-plugin": "0.4.3",
"fork-ts-checker-webpack-plugin": "0.4.10",
"html-webpack-plugin": "^3.1.0",
"jest": "^23.5.0",
"license-checker": "^20.2.0",
"lodash": "^4.17.10",
"jest": "^23.6.0",
"license-checker": "^24.0.1",
"lodash": "^4.17.11",
"mobx": "^4.3.1",
"prettier": "^1.14.2",
"prettier": "^1.14.3",
"prettier-eslint": "^8.8.2",
"puppeteer": "^1.7.0",
"puppeteer": "^1.9.0",
"raf": "^3.4.0",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"rimraf": "^2.6.2",
"shelljs": "^0.8.1",
"source-map-loader": "^0.2.4",
"style-loader": "^0.22.1",
"style-loader": "^0.23.1",
"styled-components": "^3.4.5",
"swagger2openapi": "^3.2.8",
"ts-jest": "23.0.1",
"ts-loader": "4.5.0",
"ts-jest": "23.10.4",
"ts-loader": "5.2.2",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"tslint-react": "^3.4.0",
"typescript": "^3.0.1",
"webpack": "^4.17.1",
"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.5",
"typescript": "^3.1.3",
"webpack": "^4.21.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.9",
"webpack-node-externals": "^1.6.0",
"workerize-loader": "^1.0.3",
"workerize-loader": "^1.0.4",
"yaml-js": "^0.2.3"
},
"peerDependencies": {
@ -152,10 +152,6 @@
"stickyfill": "^1.1.1",
"tslib": "^1.9.3"
},
"resolutions": {
"@types/chai": "4.0.8",
"@types/tapable": "1.0.0"
},
"bundlesize": [
{
"path": "./bundles/redoc.standalone.js",
@ -163,30 +159,8 @@
}
],
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"setupTestFrameworkScriptFile": "<rootDir>/src/setupTests.ts",
"testPathIgnorePatterns": [
"/node_modules/",
"/benchmark/"
],
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
],
"moduleNameMapper": {
"\\.(css|less)$": "<rootDir>/src/empty.js"
},
"globals": {
"ts-jest": {
"skipBabel": true
}
},
"preset": "ts-jest",
"collectCoverageFrom": [
"src/**/*.{ts,tsx}"
],
@ -196,8 +170,16 @@
"text-summary"
],
"coveragePathIgnorePatterns": [
"\\.d\\.ts$"
]
"\\.d\\.ts$",
"/benchmark/",
"/node_modules/"
],
"modulePathIgnorePatterns": [
"/benchmark/"
],
"moduleNameMapper": {
"\\.(css|less)$": "<rootDir>/src/empty.js"
}
},
"prettier": {
"singleQuote": true,

View File

@ -80,20 +80,14 @@ export class MenuItem extends React.Component<MenuItemProps> {
export interface OperationMenuItemContentProps {
item: OperationModel;
className?: string;
}
@observer
class OperationMenuItemContent extends React.Component<OperationMenuItemContentProps> {
render() {
const { item, className } = this.props;
const { item } = this.props;
return (
<MenuItemLabel
className={className}
depth={item.depth}
active={item.active}
deprecated={item.deprecated}
>
<MenuItemLabel depth={item.depth} active={item.active} deprecated={item.deprecated}>
<OperationBadge type={item.httpVerb}>{shortenHTTPVerb(item.httpVerb)}</OperationBadge>
<MenuItemTitle width="calc(100% - 38px)">
{item.name}

View File

@ -116,15 +116,13 @@ export const MenuItemLabel = withProps<{
active: boolean;
deprecated?: boolean;
type?: string;
}>(
styled.label.attrs({
role: 'menuitem',
className: props =>
classnames('-depth' + props.depth, {
active: props.active,
}),
}),
)`
}>(styled.label).attrs({
role: 'menuitem',
className: props =>
classnames('-depth' + props.depth, {
active: props.active,
}),
})`
cursor: pointer;
color: ${props =>
props.active ? props.theme.colors.primary.main : props.theme.colors.text.primary};

View File

@ -21,15 +21,15 @@ describe('Models', () => {
parser = new OpenAPIParser(spec, undefined, opts);
const schema = new SchemaModel(parser, spec.components.schemas.Test, '', opts);
expect(schema.fields).toHaveLength(3);
const oneOfField = schema.fields[0];
const oneOfField = schema.fields![0];
expect(oneOfField.schema.displayType).toBe('Foo (object) or Bar (object)');
expect(oneOfField.schema.oneOf[0].title).toBe('Foo');
expect(oneOfField.schema.oneOf[1].title).toBe('Bar');
expect(oneOfField.schema.oneOf![0].title).toBe('Foo');
expect(oneOfField.schema.oneOf![1].title).toBe('Bar');
const anyOfField = schema.fields[1];
const anyOfField = schema.fields![1];
expect(anyOfField.schema.displayType).toBe('Foo (object) or Bar (object)');
expect(anyOfField.schema.oneOf[0].title).toBe('Foo');
expect(anyOfField.schema.oneOf[1].title).toBe('Bar');
expect(anyOfField.schema.oneOf![0].title).toBe('Foo');
expect(anyOfField.schema.oneOf![1].title).toBe('Bar');
});
test('oneOf/allOf schema complex displayType', () => {

View File

@ -106,7 +106,7 @@ export default (env: { standalone?: boolean } = {}, { mode }) => ({
},
},
],
exclude: ['node_modules'],
exclude: [/node_modules/],
},
{
test: /node_modules\/(swagger2openapi|reftools|oas-resolver|oas-kit-common|oas-schema-walker)\/.*\.js$/,

3550
yarn.lock

File diff suppressed because it is too large Load Diff