0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-13 22:48:31 -05:00

feat: update @verdaccio/ui-theme (#2026)

* feat: add deprecated support on User Interface
* chore: update key dependencies
This commit is contained in:
Juan Picado 2020-12-13 21:29:00 +01:00 committed by GitHub
parent d775e3fd75
commit 2ea17ced2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 782 additions and 668 deletions

View file

@ -22,7 +22,7 @@
"@verdaccio/local-storage": "9.7.4", "@verdaccio/local-storage": "9.7.4",
"@verdaccio/readme": "9.7.3", "@verdaccio/readme": "9.7.3",
"@verdaccio/streams": "9.7.2", "@verdaccio/streams": "9.7.2",
"@verdaccio/ui-theme": "1.14.0", "@verdaccio/ui-theme": "1.15.0",
"JSONStream": "1.3.5", "JSONStream": "1.3.5",
"async": "3.2.0", "async": "3.2.0",
"body-parser": "1.19.0", "body-parser": "1.19.0",
@ -31,52 +31,52 @@
"compression": "1.7.4", "compression": "1.7.4",
"cookies": "0.8.0", "cookies": "0.8.0",
"cors": "2.8.5", "cors": "2.8.5",
"dayjs": "1.9.6", "dayjs": "1.9.7",
"envinfo": "7.7.3", "envinfo": "7.7.3",
"express": "4.17.1", "express": "4.17.1",
"handlebars": "4.7.6", "handlebars": "4.7.6",
"http-errors": "1.8.0", "http-errors": "1.8.0",
"js-yaml": "3.14.0", "js-yaml": "3.14.1",
"jsonwebtoken": "8.5.1", "jsonwebtoken": "8.5.1",
"kleur": "4.1.3", "kleur": "4.1.3",
"lodash": "4.17.20", "lodash": "4.17.20",
"lunr-mutable-indexes": "2.3.2", "lunr-mutable-indexes": "2.3.2",
"marked": "1.2.5", "marked": "1.2.6",
"mime": "2.4.6", "mime": "2.4.6",
"minimatch": "3.0.4", "minimatch": "3.0.4",
"mkdirp": "0.5.5", "mkdirp": "0.5.5",
"mv": "2.1.1", "mv": "2.1.1",
"pkginfo": "0.4.1", "pkginfo": "0.4.1",
"request": "2.88.0", "request": "2.88.0",
"semver": "6.3.0", "semver": "7.3.4",
"verdaccio-audit": "9.7.3", "verdaccio-audit": "9.7.3",
"verdaccio-htpasswd": "9.7.2" "verdaccio-htpasswd": "9.7.2"
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "7.12.1", "@babel/cli": "7.12.10",
"@babel/core": "7.12.3", "@babel/core": "7.12.10",
"@babel/node": "7.12.6", "@babel/node": "7.12.10",
"@babel/plugin-proposal-class-properties": "7.12.1", "@babel/plugin-proposal-class-properties": "7.12.1",
"@babel/plugin-proposal-decorators": "7.12.1", "@babel/plugin-proposal-decorators": "7.12.1",
"@babel/plugin-proposal-export-namespace-from": "7.12.1", "@babel/plugin-proposal-export-namespace-from": "7.12.1",
"@babel/plugin-proposal-function-sent": "7.12.1", "@babel/plugin-proposal-function-sent": "7.12.1",
"@babel/plugin-proposal-json-strings": "7.12.1", "@babel/plugin-proposal-json-strings": "7.12.1",
"@babel/plugin-proposal-numeric-separator": "7.12.5", "@babel/plugin-proposal-numeric-separator": "7.12.7",
"@babel/plugin-proposal-object-rest-spread": "7.12.1", "@babel/plugin-proposal-object-rest-spread": "7.12.1",
"@babel/plugin-proposal-throw-expressions": "7.12.1", "@babel/plugin-proposal-throw-expressions": "7.12.1",
"@babel/plugin-syntax-dynamic-import": "7.8.3", "@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/plugin-syntax-import-meta": "7.10.4", "@babel/plugin-syntax-import-meta": "7.10.4",
"@babel/plugin-transform-async-to-generator": "7.12.1", "@babel/plugin-transform-async-to-generator": "7.12.1",
"@babel/plugin-transform-classes": "7.12.1", "@babel/plugin-transform-classes": "7.12.1",
"@babel/plugin-transform-runtime": "7.12.1", "@babel/plugin-transform-runtime": "7.12.10",
"@babel/polyfill": "^7.12.1", "@babel/polyfill": "^7.12.1",
"@babel/preset-env": "7.12.1", "@babel/preset-env": "7.12.10",
"@babel/preset-typescript": "7.12.1", "@babel/preset-typescript": "7.12.7",
"@babel/register": "7.12.1", "@babel/register": "7.12.10",
"@babel/runtime": "7.12.5", "@babel/runtime": "7.12.5",
"@commitlint/cli": "8.3.5", "@commitlint/cli": "8.3.5",
"@commitlint/config-conventional": "8.3.4", "@commitlint/config-conventional": "8.3.4",
"@octokit/rest": "16.36.0", "@octokit/rest": "16.43.2",
"@types/async": "3.2.4", "@types/async": "3.2.4",
"@types/bunyan": "1.8.6", "@types/bunyan": "1.8.6",
"@types/express": "4.17.1", "@types/express": "4.17.1",
@ -91,33 +91,33 @@
"@typescript-eslint/eslint-plugin": "2.12.0", "@typescript-eslint/eslint-plugin": "2.12.0",
"@verdaccio/eslint-config": "^8.5.0", "@verdaccio/eslint-config": "^8.5.0",
"@verdaccio/types": "^9.7.2", "@verdaccio/types": "^9.7.2",
"all-contributors-cli": "6.16.0", "all-contributors-cli": "6.19.0",
"babel-eslint": "10.1.0", "babel-eslint": "10.1.0",
"babel-jest": "26.6.3", "babel-jest": "26.6.3",
"babel-loader": "^8.2.1", "babel-loader": "^8.2.2",
"babel-plugin-dynamic-import-node": "2.3.3", "babel-plugin-dynamic-import-node": "2.3.3",
"babel-plugin-emotion": "10.0.33", "babel-plugin-emotion": "10.0.33",
"codecov": "3.7.1", "codecov": "3.8.1",
"cross-env": "7.0.2", "cross-env": "7.0.3",
"detect-secrets": "1.0.6", "detect-secrets": "1.0.6",
"eslint": "6.8.0", "eslint": "6.8.0",
"fs-extra": "8.1.0", "fs-extra": "9.0.1",
"get-stdin": "7.0.0", "get-stdin": "7.0.0",
"husky": "2.7.0", "husky": "2.7.0",
"in-publish": "2.0.1", "in-publish": "2.0.1",
"jest": "25.3.0", "jest": "25.5.4",
"jest-environment-node": "25.3.0", "jest-environment-node": "25.5.0",
"jest-junit": "9.0.0", "jest-junit": "9.0.0",
"lint-staged": "8.2.1", "lint-staged": "8.2.1",
"lockfile-lint": "4.2.2", "lockfile-lint": "4.3.7",
"nock": "11.9.1", "nock": "12.0.3",
"prettier": "1.19.1", "prettier": "1.19.1",
"puppeteer": "5.4.1", "puppeteer": "5.5.0",
"rimraf": "3.0.2", "rimraf": "3.0.2",
"selfsigned": "1.10.7", "selfsigned": "1.10.8",
"standard-version": "8.0.2", "standard-version": "9.0.0",
"supertest": "4.0.2", "supertest": "6.0.1",
"typescript": "3.7.5", "typescript": "3.9.7",
"verdaccio": "^4.5.1", "verdaccio": "^4.5.1",
"verdaccio-auth-memory": "^9.7.2", "verdaccio-auth-memory": "^9.7.2",
"verdaccio-memory": "^9.7.2" "verdaccio-memory": "^9.7.2"

View file

@ -34,10 +34,10 @@ import {
generateVersion, generateVersion,
} from '../../__helper/utils'; } from '../../__helper/utils';
const sleep = (delay) => { const sleep = (delay) => {
return new Promise(resolve => { return new Promise(resolve => {
setTimeout(resolve, delay) setTimeout(resolve, delay)
}); });
} }
require('../../../../src/lib/logger').setup([ require('../../../../src/lib/logger').setup([
@ -63,7 +63,7 @@ describe('endpoint unit test', () => {
let mockRegistry; let mockRegistry;
beforeAll(function(done) { beforeAll(function(done) {
const store = path.join(__dirname, '../../partials/store/test-storage-api-spec'); const store = path.join(__dirname, '../../partials/store/test-storage-api-spec');
rimraf(store, async () => { rimraf(store, async () => {
const configForTest = configDefault({ const configForTest = configDefault({
auth: { auth: {
@ -388,7 +388,7 @@ describe('endpoint unit test', () => {
.reply(200); .reply(200);
nock('http://some.registry.timeout.com') nock('http://some.registry.timeout.com')
.get('/timeout/-/timeout-1.5.1.tgz') .get('/timeout/-/timeout-1.5.1.tgz')
.reply(200, () => readable); .reply(200, () => readable);
const agent = request.agent(app); const agent = request.agent(app);
await agent await agent
.get('/timeout/-/timeout-1.5.1.tgz') .get('/timeout/-/timeout-1.5.1.tgz')
@ -398,12 +398,12 @@ describe('endpoint unit test', () => {
.get('/timeout/-/timeout-1.5.1.tgz') .get('/timeout/-/timeout-1.5.1.tgz')
.expect(HEADER_TYPE.CONTENT_TYPE, HEADERS.OCTET_STREAM) .expect(HEADER_TYPE.CONTENT_TYPE, HEADERS.OCTET_STREAM)
.expect(HTTP_STATUS.INTERNAL_ERROR); .expect(HTTP_STATUS.INTERNAL_ERROR);
await sleep(2000); await sleep(2000);
// await agent // await agent
await agent await agent
.get('/timeout/-/timeout-1.5.1.tgz') .get('/timeout/-/timeout-1.5.1.tgz')
.expect(HEADER_TYPE.CONTENT_TYPE, HEADERS.OCTET_STREAM) .expect(HEADER_TYPE.CONTENT_TYPE, HEADERS.OCTET_STREAM)
.expect(HTTP_STATUS.OK); .expect(HTTP_STATUS.OK);
}, 10000); }, 10000);
test('should fetch jquery specific version package from remote uplink', (done) => { test('should fetch jquery specific version package from remote uplink', (done) => {

View file

@ -16,6 +16,7 @@ function createUplink(config) {
function setHeaders(config: unknown = {}, headers: unknown = {}) { function setHeaders(config: unknown = {}, headers: unknown = {}) {
const uplink = createUplink(config); const uplink = createUplink(config);
// @ts-ignore
return uplink._setHeaders({ return uplink._setHeaders({
headers headers
}); });

1375
yarn.lock

File diff suppressed because it is too large Load diff