mirror of
https://github.com/Redocly/redoc.git
synced 2025-07-11 08:42:24 +03:00
chore: upgrade deps
This commit is contained in:
parent
6aeb0bf68d
commit
4bb59d5d4d
99
package.json
99
package.json
|
@ -52,75 +52,74 @@
|
||||||
"docker:build": "docker build -f config/docker/Dockerfile -t redoc ."
|
"docker:build": "docker build -f config/docker/Dockerfile -t redoc ."
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "7.6.2",
|
"@babel/core": "7.7.5",
|
||||||
"@babel/plugin-syntax-decorators": "7.2.0",
|
"@babel/plugin-syntax-decorators": "7.7.4",
|
||||||
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
|
||||||
"@babel/plugin-syntax-jsx": "7.2.0",
|
"@babel/plugin-syntax-jsx": "7.7.4",
|
||||||
"@babel/plugin-syntax-typescript": "7.3.3",
|
"@babel/plugin-syntax-typescript": "7.7.4",
|
||||||
"@cypress/webpack-preprocessor": "4.1.0",
|
"@cypress/webpack-preprocessor": "4.1.1",
|
||||||
"@hot-loader/react-dom": "^16.9.0",
|
"@hot-loader/react-dom": "^16.11.0",
|
||||||
"@types/chai": "4.2.3",
|
"@types/chai": "4.2.7",
|
||||||
"@types/dompurify": "^0.0.33",
|
"@types/dompurify": "^2.0.0",
|
||||||
"@types/enzyme": "^3.10.3",
|
"@types/enzyme": "^3.10.4",
|
||||||
"@types/enzyme-to-json": "^1.5.3",
|
"@types/enzyme-to-json": "^1.5.3",
|
||||||
"@types/jest": "^24.0.18",
|
"@types/jest": "^24.0.23",
|
||||||
"@types/json-pointer": "^1.0.30",
|
"@types/json-pointer": "^1.0.30",
|
||||||
"@types/lodash": "^4.14.141",
|
"@types/lodash": "^4.14.149",
|
||||||
"@types/lunr": "^2.3.2",
|
"@types/lunr": "^2.3.2",
|
||||||
"@types/mark.js": "^8.11.4",
|
"@types/mark.js": "^8.11.5",
|
||||||
"@types/marked": "^0.6.5",
|
"@types/marked": "^0.7.2",
|
||||||
"@types/prismjs": "^1.16.0",
|
"@types/prismjs": "^1.16.0",
|
||||||
"@types/prop-types": "^15.7.3",
|
"@types/prop-types": "^15.7.3",
|
||||||
"@types/react": "^16.9.3",
|
"@types/react": "^16.9.16",
|
||||||
"@types/react-dom": "^16.9.1",
|
"@types/react-dom": "^16.9.4",
|
||||||
"@types/react-hot-loader": "^4.1.0",
|
|
||||||
"@types/react-tabs": "^2.3.1",
|
"@types/react-tabs": "^2.3.1",
|
||||||
"@types/styled-components": "^4.1.19",
|
"@types/styled-components": "^4.4.1",
|
||||||
"@types/tapable": "1.0.4",
|
"@types/tapable": "1.0.4",
|
||||||
"@types/webpack": "^4.39.2",
|
"@types/webpack": "^4.41.0",
|
||||||
"@types/webpack-env": "^1.14.0",
|
"@types/webpack-env": "^1.14.1",
|
||||||
"@types/yargs": "^13.0.3",
|
"@types/yargs": "^13.0.3",
|
||||||
"babel-loader": "8.0.6",
|
"babel-loader": "8.0.6",
|
||||||
"babel-plugin-styled-components": "^1.10.6",
|
"babel-plugin-styled-components": "^1.10.6",
|
||||||
"beautify-benchmark": "^0.2.4",
|
"beautify-benchmark": "^0.2.4",
|
||||||
"bundlesize": "^0.18.0",
|
"bundlesize": "^0.18.0",
|
||||||
"conventional-changelog-cli": "^2.0.23",
|
"conventional-changelog-cli": "^2.0.28",
|
||||||
"copy-webpack-plugin": "^5.0.4",
|
"copy-webpack-plugin": "^5.1.1",
|
||||||
"core-js": "^3.2.1",
|
"core-js": "^3.5.0",
|
||||||
"coveralls": "^3.0.6",
|
"coveralls": "^3.0.9",
|
||||||
"css-loader": "^3.2.0",
|
"css-loader": "^3.3.0",
|
||||||
"cypress": "~3.4.1",
|
"cypress": "~3.7.0",
|
||||||
"deploy-to-gh-pages": "^1.3.7",
|
"deploy-to-gh-pages": "^1.3.7",
|
||||||
"enzyme": "^3.10.0",
|
"enzyme": "^3.10.0",
|
||||||
"enzyme-adapter-react-16": "^1.14.0",
|
"enzyme-adapter-react-16": "^1.15.1",
|
||||||
"enzyme-to-json": "^3.4.0",
|
"enzyme-to-json": "^3.4.3",
|
||||||
"fork-ts-checker-webpack-plugin": "1.5.0",
|
"fork-ts-checker-webpack-plugin": "3.1.1",
|
||||||
"html-webpack-plugin": "^3.1.0",
|
"html-webpack-plugin": "^3.1.0",
|
||||||
"jest": "^24.9.0",
|
"jest": "^24.9.0",
|
||||||
"license-checker": "^25.0.1",
|
"license-checker": "^25.0.1",
|
||||||
"lodash": "^4.17.15",
|
"lodash": "^4.17.15",
|
||||||
"mobx": "^4.3.1",
|
"mobx": "^4.3.1",
|
||||||
"prettier": "^1.18.2",
|
"prettier": "^1.19.1",
|
||||||
"prettier-eslint": "^9.0.0",
|
"prettier-eslint": "^9.0.1",
|
||||||
"raf": "^3.4.1",
|
"raf": "^3.4.1",
|
||||||
"react": "^16.10.1",
|
"react": "^16.12.0",
|
||||||
"react-dom": "^16.10.1",
|
"react-dom": "^16.12.0",
|
||||||
"rimraf": "^3.0.0",
|
"rimraf": "^3.0.0",
|
||||||
"shelljs": "^0.8.3",
|
"shelljs": "^0.8.3",
|
||||||
"source-map-loader": "^0.2.4",
|
"source-map-loader": "^0.2.4",
|
||||||
"style-loader": "^1.0.0",
|
"style-loader": "^1.0.1",
|
||||||
"styled-components": "^4.4.0",
|
"styled-components": "^4.4.1",
|
||||||
"ts-jest": "24.1.0",
|
"ts-jest": "24.2.0",
|
||||||
"ts-loader": "6.2.0",
|
"ts-loader": "6.2.1",
|
||||||
"ts-node": "^8.4.1",
|
"ts-node": "^8.5.4",
|
||||||
"tslint": "^5.20.0",
|
"tslint": "^5.20.1",
|
||||||
"tslint-react": "^4.1.0",
|
"tslint-react": "^4.1.0",
|
||||||
"typescript": "^3.6.3",
|
"typescript": "^3.7.3",
|
||||||
"unfetch": "^4.1.0",
|
"unfetch": "^4.1.0",
|
||||||
"url-polyfill": "^1.1.7",
|
"url-polyfill": "^1.1.7",
|
||||||
"webpack": "^4.41.0",
|
"webpack": "^4.41.2",
|
||||||
"webpack-cli": "^3.3.9",
|
"webpack-cli": "^3.3.10",
|
||||||
"webpack-dev-server": "^3.8.1",
|
"webpack-dev-server": "^3.9.0",
|
||||||
"webpack-node-externals": "^1.6.0",
|
"webpack-node-externals": "^1.6.0",
|
||||||
"workerize-loader": "^1.1.0",
|
"workerize-loader": "^1.1.0",
|
||||||
"yaml-js": "^0.2.3"
|
"yaml-js": "^0.2.3"
|
||||||
|
@ -135,24 +134,24 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
"decko": "^1.2.0",
|
"decko": "^1.2.0",
|
||||||
"dompurify": "^2.0.3",
|
"dompurify": "^2.0.7",
|
||||||
"eventemitter3": "^4.0.0",
|
"eventemitter3": "^4.0.0",
|
||||||
"json-pointer": "^0.6.0",
|
"json-pointer": "^0.6.0",
|
||||||
"json-schema-ref-parser": "^6.1.0",
|
"json-schema-ref-parser": "^6.1.0",
|
||||||
"lunr": "2.3.6",
|
"lunr": "2.3.8",
|
||||||
"mark.js": "^8.11.1",
|
"mark.js": "^8.11.1",
|
||||||
"marked": "^0.7.0",
|
"marked": "^0.7.0",
|
||||||
"memoize-one": "~5.0.5",
|
"memoize-one": "~5.1.1",
|
||||||
"mobx-react": "^6.1.3",
|
"mobx-react": "^6.1.4",
|
||||||
"openapi-sampler": "1.0.0-beta.15",
|
"openapi-sampler": "1.0.0-beta.15",
|
||||||
"perfect-scrollbar": "^1.4.0",
|
"perfect-scrollbar": "^1.4.0",
|
||||||
"polished": "^3.4.1",
|
"polished": "^3.4.2",
|
||||||
"prismjs": "^1.17.1",
|
"prismjs": "^1.17.1",
|
||||||
"prop-types": "^15.7.2",
|
"prop-types": "^15.7.2",
|
||||||
"react-dropdown": "^1.6.4",
|
"react-dropdown": "^1.6.4",
|
||||||
"react-hot-loader": "^4.12.14",
|
"react-hot-loader": "^4.12.18",
|
||||||
"react-tabs": "^3.0.0",
|
"react-tabs": "^3.0.0",
|
||||||
"slugify": "^1.3.5",
|
"slugify": "^1.3.6",
|
||||||
"stickyfill": "^1.1.1",
|
"stickyfill": "^1.1.1",
|
||||||
"swagger2openapi": "^5.3.1",
|
"swagger2openapi": "^5.3.1",
|
||||||
"tslib": "^1.10.0",
|
"tslib": "^1.10.0",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import memoize from 'memoize-one';
|
import * as memoize from 'memoize-one/dist/memoize-one.cjs'; // fixme: https://github.com/alexreardon/memoize-one/issues/37
|
||||||
import { Component, createContext } from 'react';
|
import { Component, createContext } from 'react';
|
||||||
|
|
||||||
import { AppStore } from '../services/';
|
import { AppStore } from '../services/';
|
||||||
|
|
|
@ -119,7 +119,12 @@ export class MarkdownRenderer {
|
||||||
.trim();
|
.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
headingRule = (text: string, level: number, raw: string, slugger: marked.Slugger) => {
|
headingRule = (
|
||||||
|
text: string,
|
||||||
|
level: 1 | 2 | 3 | 4 | 5 | 6,
|
||||||
|
raw: string,
|
||||||
|
slugger: marked.Slugger,
|
||||||
|
) => {
|
||||||
if (level === 1) {
|
if (level === 1) {
|
||||||
this.currentTopHeading = this.saveHeading(text, level);
|
this.currentTopHeading = this.saveHeading(text, level);
|
||||||
} else if (level === 2) {
|
} else if (level === 2) {
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
"quotemark": [true, "single", "avoid-template", "jsx-double"],
|
"quotemark": [true, "single", "avoid-template", "jsx-double"],
|
||||||
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-pascal-case"],
|
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-pascal-case"],
|
||||||
"arrow-parens": [true, "ban-single-arg-parens"],
|
"arrow-parens": [true, "ban-single-arg-parens"],
|
||||||
"no-submodule-imports": [true, "prismjs", "perfect-scrollbar", "react-dom", "core-js"],
|
"no-submodule-imports": [true, "prismjs", "perfect-scrollbar", "react-dom", "core-js", "memoize-one"],
|
||||||
"object-literal-key-quotes": [true, "as-needed"],
|
"object-literal-key-quotes": [true, "as-needed"],
|
||||||
"no-unused-expression": [true, "allow-tagged-template"],
|
"no-unused-expression": [true, "allow-tagged-template"],
|
||||||
"semicolon": [true, "always", "ignore-bound-class-methods"],
|
"semicolon": [true, "always", "ignore-bound-class-methods"],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user