diff --git a/package.json b/package.json index 7e3478497..58cae3d58 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "@verdaccio/local-storage": "9.7.4", "@verdaccio/readme": "9.7.3", "@verdaccio/streams": "9.7.2", - "@verdaccio/ui-theme": "1.14.0", + "@verdaccio/ui-theme": "1.15.0", "JSONStream": "1.3.5", "async": "3.2.0", "body-parser": "1.19.0", @@ -31,52 +31,52 @@ "compression": "1.7.4", "cookies": "0.8.0", "cors": "2.8.5", - "dayjs": "1.9.6", + "dayjs": "1.9.7", "envinfo": "7.7.3", "express": "4.17.1", "handlebars": "4.7.6", "http-errors": "1.8.0", - "js-yaml": "3.14.0", + "js-yaml": "3.14.1", "jsonwebtoken": "8.5.1", "kleur": "4.1.3", "lodash": "4.17.20", "lunr-mutable-indexes": "2.3.2", - "marked": "1.2.5", + "marked": "1.2.6", "mime": "2.4.6", "minimatch": "3.0.4", "mkdirp": "0.5.5", "mv": "2.1.1", "pkginfo": "0.4.1", "request": "2.88.0", - "semver": "6.3.0", + "semver": "7.3.4", "verdaccio-audit": "9.7.3", "verdaccio-htpasswd": "9.7.2" }, "devDependencies": { - "@babel/cli": "7.12.1", - "@babel/core": "7.12.3", - "@babel/node": "7.12.6", + "@babel/cli": "7.12.10", + "@babel/core": "7.12.10", + "@babel/node": "7.12.10", "@babel/plugin-proposal-class-properties": "7.12.1", "@babel/plugin-proposal-decorators": "7.12.1", "@babel/plugin-proposal-export-namespace-from": "7.12.1", "@babel/plugin-proposal-function-sent": "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-throw-expressions": "7.12.1", "@babel/plugin-syntax-dynamic-import": "7.8.3", "@babel/plugin-syntax-import-meta": "7.10.4", "@babel/plugin-transform-async-to-generator": "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/preset-env": "7.12.1", - "@babel/preset-typescript": "7.12.1", - "@babel/register": "7.12.1", + "@babel/preset-env": "7.12.10", + "@babel/preset-typescript": "7.12.7", + "@babel/register": "7.12.10", "@babel/runtime": "7.12.5", "@commitlint/cli": "8.3.5", "@commitlint/config-conventional": "8.3.4", - "@octokit/rest": "16.36.0", + "@octokit/rest": "16.43.2", "@types/async": "3.2.4", "@types/bunyan": "1.8.6", "@types/express": "4.17.1", @@ -91,33 +91,33 @@ "@typescript-eslint/eslint-plugin": "2.12.0", "@verdaccio/eslint-config": "^8.5.0", "@verdaccio/types": "^9.7.2", - "all-contributors-cli": "6.16.0", + "all-contributors-cli": "6.19.0", "babel-eslint": "10.1.0", "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-emotion": "10.0.33", - "codecov": "3.7.1", - "cross-env": "7.0.2", + "codecov": "3.8.1", + "cross-env": "7.0.3", "detect-secrets": "1.0.6", "eslint": "6.8.0", - "fs-extra": "8.1.0", + "fs-extra": "9.0.1", "get-stdin": "7.0.0", "husky": "2.7.0", "in-publish": "2.0.1", - "jest": "25.3.0", - "jest-environment-node": "25.3.0", + "jest": "25.5.4", + "jest-environment-node": "25.5.0", "jest-junit": "9.0.0", "lint-staged": "8.2.1", - "lockfile-lint": "4.2.2", - "nock": "11.9.1", + "lockfile-lint": "4.3.7", + "nock": "12.0.3", "prettier": "1.19.1", - "puppeteer": "5.4.1", + "puppeteer": "5.5.0", "rimraf": "3.0.2", - "selfsigned": "1.10.7", - "standard-version": "8.0.2", - "supertest": "4.0.2", - "typescript": "3.7.5", + "selfsigned": "1.10.8", + "standard-version": "9.0.0", + "supertest": "6.0.1", + "typescript": "3.9.7", "verdaccio": "^4.5.1", "verdaccio-auth-memory": "^9.7.2", "verdaccio-memory": "^9.7.2" diff --git a/test/unit/modules/api/api.spec.ts b/test/unit/modules/api/api.spec.ts index 1304b85e7..f6001cc8d 100644 --- a/test/unit/modules/api/api.spec.ts +++ b/test/unit/modules/api/api.spec.ts @@ -34,10 +34,10 @@ import { generateVersion, } from '../../__helper/utils'; -const sleep = (delay) => { - return new Promise(resolve => { - setTimeout(resolve, delay) - }); +const sleep = (delay) => { + return new Promise(resolve => { + setTimeout(resolve, delay) + }); } require('../../../../src/lib/logger').setup([ @@ -63,7 +63,7 @@ describe('endpoint unit test', () => { let mockRegistry; 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 () => { const configForTest = configDefault({ auth: { @@ -388,7 +388,7 @@ describe('endpoint unit test', () => { .reply(200); nock('http://some.registry.timeout.com') .get('/timeout/-/timeout-1.5.1.tgz') - .reply(200, () => readable); + .reply(200, () => readable); const agent = request.agent(app); await agent .get('/timeout/-/timeout-1.5.1.tgz') @@ -398,12 +398,12 @@ describe('endpoint unit test', () => { .get('/timeout/-/timeout-1.5.1.tgz') .expect(HEADER_TYPE.CONTENT_TYPE, HEADERS.OCTET_STREAM) .expect(HTTP_STATUS.INTERNAL_ERROR); - await sleep(2000); - // await agent + await sleep(2000); + // await agent await agent .get('/timeout/-/timeout-1.5.1.tgz') .expect(HEADER_TYPE.CONTENT_TYPE, HEADERS.OCTET_STREAM) - .expect(HTTP_STATUS.OK); + .expect(HTTP_STATUS.OK); }, 10000); test('should fetch jquery specific version package from remote uplink', (done) => { diff --git a/test/unit/modules/uplinks/headers.auth.spec.ts b/test/unit/modules/uplinks/headers.auth.spec.ts index 6ae91a171..fadffbc45 100644 --- a/test/unit/modules/uplinks/headers.auth.spec.ts +++ b/test/unit/modules/uplinks/headers.auth.spec.ts @@ -16,6 +16,7 @@ function createUplink(config) { function setHeaders(config: unknown = {}, headers: unknown = {}) { const uplink = createUplink(config); + // @ts-ignore return uplink._setHeaders({ headers }); diff --git a/yarn.lock b/yarn.lock index d854fb89f..c44deb00a 100644 Binary files a/yarn.lock and b/yarn.lock differ