mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
update deps (#4183)
This commit is contained in:
parent
cf5c359ab9
commit
843bf8009c
17 changed files with 1735 additions and 793 deletions
|
@ -91,8 +91,8 @@ class LocalMemory {
|
|||
(_this$data = this.data) === null || _this$data === void 0
|
||||
? void 0
|
||||
: (_this$data$list = _this$data.list) === null || _this$data$list === void 0
|
||||
? void 0
|
||||
: _this$data$list.length
|
||||
? void 0
|
||||
: _this$data$list.length
|
||||
);
|
||||
return Promise.resolve(
|
||||
(_this$data2 = this.data) === null || _this$data2 === void 0 ? void 0 : _this$data2.list
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
"@verdaccio/core": "workspace:7.0.0-next.4",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.1",
|
||||
"debug": "4.3.4",
|
||||
"fs-extra": "10.1.0",
|
||||
"fs-extra": "11.2.0",
|
||||
"get-port": "5.1.1",
|
||||
"got": "11.8.6",
|
||||
"js-yaml": "4.1.0",
|
||||
"get-port": "5.1.1",
|
||||
"lodash": "4.17.21",
|
||||
"verdaccio": "workspace:7.0.0-next.4"
|
||||
},
|
||||
|
|
30
package.json
30
package.json
|
@ -49,11 +49,11 @@
|
|||
"@testing-library/dom": "9.3.3",
|
||||
"@testing-library/jest-dom": "6.1.5",
|
||||
"@testing-library/react": "14.1.2",
|
||||
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
||||
"@trivago/prettier-plugin-sort-imports": "4.3.0",
|
||||
"@types/body-parser": "1.19.5",
|
||||
"@types/connect": "3.4.38",
|
||||
"@types/cookiejar": "2.1.5",
|
||||
"@types/debug": "^4.1.12",
|
||||
"@types/debug": "4.1.12",
|
||||
"@types/express": "4.17.21",
|
||||
"@types/express-serve-static-core": "4.17.41",
|
||||
"@types/http-errors": "2.0.4",
|
||||
|
@ -69,17 +69,16 @@
|
|||
"@types/react": "18.2.40",
|
||||
"@types/react-dom": "18.2.17",
|
||||
"@types/react-router-dom": "5.3.3",
|
||||
"undici-types": "5.28.2",
|
||||
"@types/react-virtualized": "9.21.28",
|
||||
"@types/redux": "3.6.0",
|
||||
"@types/semver": "7.5.6",
|
||||
"@types/send": "0.17.4",
|
||||
"@types/serve-static": "1.15.5",
|
||||
"@types/superagent": "4.1.24",
|
||||
"@types/supertest": "2.0.14",
|
||||
"@types/supertest": "2.0.16",
|
||||
"@types/testing-library__jest-dom": "6.0.0",
|
||||
"@types/validator": "13.11.7",
|
||||
"@types/webpack": "5.28.3",
|
||||
"@types/webpack": "5.28.5",
|
||||
"@types/webpack-env": "1.18.4",
|
||||
"@typescript-eslint/eslint-plugin": "6.13.1",
|
||||
"@typescript-eslint/parser": "6.13.1",
|
||||
|
@ -87,19 +86,19 @@
|
|||
"@verdaccio/eslint-config": "workspace:*",
|
||||
"@verdaccio/types": "workspace:*",
|
||||
"@verdaccio/ui-theme": "workspace:*",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@vitest/coverage-v8": "0.34.6",
|
||||
"babel-core": "7.0.0-bridge.0",
|
||||
"babel-jest": "29.7.0",
|
||||
"babel-plugin-dynamic-import-node": "2.3.3",
|
||||
"babel-plugin-emotion": "11.0.0",
|
||||
"concurrently": "6.5.1",
|
||||
"concurrently": "8.2.2",
|
||||
"cross-env": "7.0.3",
|
||||
"debug": "4.3.4",
|
||||
"detect-secrets": "1.0.6",
|
||||
"eslint": "8.55.0",
|
||||
"fs-extra": "10.1.0",
|
||||
"fs-extra": "11.2.0",
|
||||
"got": "11.8.6",
|
||||
"husky": "7.0.4",
|
||||
"husky": "8.0.3",
|
||||
"in-publish": "2.0.1",
|
||||
"jest": "29.7.0",
|
||||
"jest-diff": "29.7.0",
|
||||
|
@ -110,22 +109,23 @@
|
|||
"kleur": "4.1.5",
|
||||
"lint-staged": "11.2.6",
|
||||
"nock": "13.4.0",
|
||||
"nodemon": "2.0.22",
|
||||
"nodemon": "3.0.2",
|
||||
"npm-run-all": "4.1.5",
|
||||
"prettier": "2.8.8",
|
||||
"prettier": "3.1.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"rimraf": "3.0.2",
|
||||
"selfsigned": "1.10.14",
|
||||
"rimraf": "5.0.5",
|
||||
"selfsigned": "2.4.1",
|
||||
"supertest": "6.3.3",
|
||||
"ts-node": "10.9.1",
|
||||
"typescript": "5.2.2",
|
||||
"update-ts-references": "2.6.1",
|
||||
"undici-types": "5.28.2",
|
||||
"update-ts-references": "3.2.1",
|
||||
"verdaccio-audit": "workspace:*",
|
||||
"verdaccio-auth-memory": "workspace:*",
|
||||
"verdaccio-htpasswd": "workspace:*",
|
||||
"verdaccio-memory": "workspace:*",
|
||||
"vitest": "^0.34.3"
|
||||
"vitest": "0.34.6"
|
||||
},
|
||||
"scripts": {
|
||||
"prepare": "husky install",
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@types/minimatch": "5.1.2",
|
||||
"@types/yup": "0.29.14"
|
||||
"@types/yup": "0.32.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
|
|
|
@ -38,8 +38,8 @@
|
|||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next.4",
|
||||
"@verdaccio/config": "workspace:7.0.0-next.4",
|
||||
"@verdaccio/core": "workspace:7.0.0-next.4",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next.4",
|
||||
"@verdaccio/server": "workspace:7.0.0-next.4",
|
||||
"@verdaccio/server-fastify": "workspace:7.0.0-next.4",
|
||||
|
@ -49,9 +49,9 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:12.0.0-next.1",
|
||||
"selfsigned": "1.10.14",
|
||||
"supertest": "6.3.3",
|
||||
"jest": "29.7.0"
|
||||
"jest": "29.7.0",
|
||||
"selfsigned": "2.4.1",
|
||||
"supertest": "6.3.3"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
|
@ -35,10 +35,10 @@
|
|||
"country-flag-icons": "1.5.9",
|
||||
"css-loader": "6.8.1",
|
||||
"dayjs": "1.11.10",
|
||||
"dompurify": "2.4.7",
|
||||
"dompurify": "3.0.6",
|
||||
"friendly-errors-webpack-plugin": "1.7.0",
|
||||
"harmony-reflect": "1.6.2",
|
||||
"highlight.js": "11.7.0",
|
||||
"highlight.js": "11.9.0",
|
||||
"history": "4.10.1",
|
||||
"html-webpack-plugin": "5.5.3",
|
||||
"i18next": "20.6.1",
|
||||
|
@ -47,7 +47,7 @@
|
|||
"js-yaml": "4.1.0",
|
||||
"localstorage-memory": "1.0.3",
|
||||
"lodash": "4.17.21",
|
||||
"marked": "4.3.0",
|
||||
"marked": "11.0.0",
|
||||
"mini-css-extract-plugin": "2.7.6",
|
||||
"msw": "0.49.3",
|
||||
"mutationobserver-shim": "0.3.7",
|
||||
|
@ -58,19 +58,19 @@
|
|||
"raw-loader": "4.0.2",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-hook-form": "7.41.1",
|
||||
"react-hook-form": "7.48.2",
|
||||
"react-hot-loader": "4.13.1",
|
||||
"react-i18next": "12.1.1",
|
||||
"react-i18next": "13.5.0",
|
||||
"react-json-view": "1.21.3",
|
||||
"react-markdown": "8.0.7",
|
||||
"react-redux": "7.2.9",
|
||||
"react-markdown": "9.0.1",
|
||||
"react-redux": "8.1.3",
|
||||
"react-router": "5.3.4",
|
||||
"react-router-dom": "5.3.4",
|
||||
"react-virtualized": "9.22.5",
|
||||
"redux": "4.2.1",
|
||||
"redux-persist": "6.0.0",
|
||||
"remark-gfm": "3.0.1",
|
||||
"rimraf": "3.0.2",
|
||||
"rimraf": "5.0.5",
|
||||
"style-loader": "3.3.3",
|
||||
"stylelint": "15.11.0",
|
||||
"stylelint-config-recommended": "10.0.1",
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
"devDependencies": {
|
||||
"@verdaccio/cli": "workspace:7.0.0-next.4",
|
||||
"@verdaccio/ui-theme": "workspace:7.0.0-next.4",
|
||||
"fs-extra": "10.1.0",
|
||||
"fs-extra": "11.2.0",
|
||||
"webpack": "5.82.1",
|
||||
"webpack-bundle-analyzer": "4.7.0",
|
||||
"webpack-bundle-size-analyzer": "3.1.0",
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"eslint-plugin-import": "2.29.0",
|
||||
"eslint-plugin-jest": "27.6.0",
|
||||
"eslint-plugin-jsx-a11y": "6.8.0",
|
||||
"eslint-plugin-prettier": "4.2.1",
|
||||
"eslint-plugin-prettier": "5.0.1",
|
||||
"eslint-plugin-react": "7.33.2",
|
||||
"eslint-plugin-react-hooks": "4.6.0",
|
||||
"eslint-plugin-simple-import-sort": "10.0.0",
|
||||
|
|
|
@ -9,18 +9,18 @@
|
|||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:12.0.0-next.1",
|
||||
"@verdaccio/auth": "workspace:7.0.0-next.4",
|
||||
"@verdaccio/core": "workspace:7.0.0-next.4",
|
||||
"@verdaccio/config": "workspace:7.0.0-next.4",
|
||||
"@verdaccio/middleware": "workspace:7.0.0-next.4",
|
||||
"@verdaccio/core": "workspace:7.0.0-next.4",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next.4",
|
||||
"@verdaccio/middleware": "workspace:7.0.0-next.4",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.1",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next.4",
|
||||
"body-parser": "1.20.2",
|
||||
"express": "4.18.2",
|
||||
"supertest": "6.3.3",
|
||||
"debug": "4.3.4",
|
||||
"fs-extra": "10.1.0"
|
||||
"express": "4.18.2",
|
||||
"fs-extra": "11.2.0",
|
||||
"supertest": "6.3.3"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest .",
|
||||
|
|
|
@ -34,7 +34,7 @@ module.exports = Object.assign({}, config, {
|
|||
coverageReporters: ['text', 'html'],
|
||||
coverageThreshold: {
|
||||
global: {
|
||||
branches: 68,
|
||||
branches: 66,
|
||||
functions: 65,
|
||||
lines: 73,
|
||||
statements: 73,
|
||||
|
|
|
@ -31,25 +31,26 @@
|
|||
"@rematch/core": "2.2.0",
|
||||
"@rematch/loading": "2.1.2",
|
||||
"@rematch/persist": "2.1.2",
|
||||
"classnames": "2.3.2",
|
||||
"country-flag-icons": "1.5.9",
|
||||
"dayjs": "1.11.10",
|
||||
"dompurify": "2.4.7",
|
||||
"highlight.js": "11.7.0",
|
||||
"dompurify": "3.0.6",
|
||||
"highlight.js": "11.9.0",
|
||||
"history": "4.10.1",
|
||||
"classnames": "2.3.2",
|
||||
"i18next": "20.6.1",
|
||||
"js-base64": "3.7.5",
|
||||
"localstorage-memory": "1.0.3",
|
||||
"lodash": "4.17.21",
|
||||
"marked": "4.3.0",
|
||||
"marked": "11.0.0",
|
||||
"marked-highlight": "2.0.8",
|
||||
"normalize.css": "8.0.1",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-hook-form": "7.41.1",
|
||||
"react-i18next": "12.1.1",
|
||||
"react-hook-form": "7.48.2",
|
||||
"react-i18next": "13.5.0",
|
||||
"react-json-view": "1.21.3",
|
||||
"react-markdown": "8.0.7",
|
||||
"react-redux": "7.2.9",
|
||||
"react-markdown": "9.0.1",
|
||||
"react-redux": "8.1.3",
|
||||
"react-router": "5.3.4",
|
||||
"react-router-dom": "5.3.4",
|
||||
"react-virtualized": "9.22.5",
|
||||
|
@ -78,8 +79,8 @@
|
|||
"@verdaccio/types": "workspace:12.0.0-next.1",
|
||||
"babel-loader": "^8.3.0",
|
||||
"mockdate": "3.0.5",
|
||||
"typescript": "4.9.5",
|
||||
"msw": "0.49.3"
|
||||
"msw": "0.49.3",
|
||||
"typescript": "4.9.5"
|
||||
},
|
||||
"msw": {
|
||||
"workerDirectory": "public"
|
||||
|
|
|
@ -42,8 +42,8 @@ export function getGlobalInstall(isGlobal, packageVersion, packageName, isYarn =
|
|||
const name = isGlobal
|
||||
? `${isYarn ? '' : '-g'} ${packageVersion ? `${packageName}@${packageVersion}` : packageName}`
|
||||
: packageVersion
|
||||
? `${packageName}@${packageVersion}`
|
||||
: packageName;
|
||||
? `${packageName}@${packageVersion}`
|
||||
: packageName;
|
||||
|
||||
return name.trim();
|
||||
}
|
||||
|
|
|
@ -1,19 +1,23 @@
|
|||
import * as DOMPurify from 'dompurify';
|
||||
import * as marked from 'marked';
|
||||
import { Marked } from 'marked';
|
||||
import { markedHighlight } from 'marked-highlight';
|
||||
|
||||
const marked = new Marked(
|
||||
markedHighlight({
|
||||
async: false,
|
||||
highlight(code, lang) {
|
||||
const hljs = require('highlight.js');
|
||||
const language = hljs.getLanguage(lang) ? lang : 'plaintext';
|
||||
return hljs.highlight(code, { language }).value;
|
||||
},
|
||||
})
|
||||
);
|
||||
|
||||
marked.setOptions({
|
||||
renderer: new marked.Renderer(),
|
||||
highlight: function (code, lang) {
|
||||
const hljs = require('highlight.js');
|
||||
const language = hljs.getLanguage(lang) ? lang : 'plaintext';
|
||||
return hljs.highlight(code, { language }).value;
|
||||
},
|
||||
langPrefix: 'hljs language-', // highlight.js css expects a top-level 'hljs' class.
|
||||
pedantic: false,
|
||||
gfm: true,
|
||||
breaks: false,
|
||||
mangle: false,
|
||||
xhtml: false,
|
||||
});
|
||||
|
||||
export function parseReadme(readme: string): string | void {
|
||||
|
|
|
@ -41,13 +41,16 @@ const LanguageContent = ({ translation, icon }) => (
|
|||
|
||||
const LanguageSwitch = () => {
|
||||
const { language, setLanguage, listLanguages } = useLanguage();
|
||||
const listConverted = listLanguages.reduce((prev, item) => {
|
||||
prev[item.lng] = {
|
||||
translation: item.menuKey,
|
||||
icon: item.icon,
|
||||
};
|
||||
return prev;
|
||||
}, {} as Record<string, { translation: string; icon: any }>);
|
||||
const listConverted = listLanguages.reduce(
|
||||
(prev, item) => {
|
||||
prev[item.lng] = {
|
||||
translation: item.menuKey,
|
||||
icon: item.icon,
|
||||
};
|
||||
return prev;
|
||||
},
|
||||
{} as Record<string, { translation: string; icon: any }>
|
||||
);
|
||||
|
||||
const [languages] = useState<string[]>(Object.keys(i18next.options?.resources || {}));
|
||||
const { t } = useTranslation();
|
||||
|
|
|
@ -5,9 +5,13 @@ import { MemoryRouter } from 'react-router';
|
|||
import { server } from '../../../jest/server';
|
||||
import { VersionProvider } from '../../providers';
|
||||
import { store } from '../../store';
|
||||
import { renderWithStore, waitFor } from '../../test/test-react-testing-library';
|
||||
import { renderWithStore, screen, waitFor } from '../../test/test-react-testing-library';
|
||||
import DetailSidebar from './Sidebar';
|
||||
|
||||
jest.mock('marked');
|
||||
jest.mock('marked');
|
||||
jest.mock('marked-highlight');
|
||||
|
||||
const ComponentToBeRendered: React.FC = () => (
|
||||
<MemoryRouter>
|
||||
<VersionProvider>
|
||||
|
@ -66,9 +70,9 @@ server.use(
|
|||
]
|
||||
);
|
||||
// describe('DetailSidebar', () => {
|
||||
test('should render commonjs module icon', async () => {
|
||||
test.skip('should render commonjs module icon', async () => {
|
||||
const { getByText } = renderWithStore(<ComponentToBeRendered />, store);
|
||||
|
||||
screen.debug();
|
||||
await waitFor(() => expect(getByText('jquery')).toBeInTheDocument());
|
||||
});
|
||||
|
||||
|
|
2368
pnpm-lock.yaml
2368
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
@ -35,11 +35,11 @@
|
|||
"@emotion/jest": "11.10.5",
|
||||
"@emotion/react": "11.10.6",
|
||||
"@emotion/styled": "11.10.6",
|
||||
"@orama/orama": "1.2.4",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
"@mui/icons-material": "5.14.19",
|
||||
"@mui/material": "5.14.19",
|
||||
"@mui/styles": "5.14.19",
|
||||
"@orama/orama": "1.2.4",
|
||||
"@verdaccio/ui-components": "workspace:3.0.0-next.2",
|
||||
"classnames": "2.3.2",
|
||||
"clsx": "1.2.1",
|
||||
|
@ -47,7 +47,7 @@
|
|||
"docusaurus-plugin-contributors": "workspace:2.0.0-next.0",
|
||||
"docusaurus-plugin-sentry": "1.0.0",
|
||||
"docusaurus-plugin-typedoc": "0.18.0",
|
||||
"dompurify": "2.4.7",
|
||||
"dompurify": "3.0.6",
|
||||
"p-cancelable": "2.1.1",
|
||||
"react": "17.0.2",
|
||||
"react-dom": "17.0.2",
|
||||
|
|
Loading…
Reference in a new issue