mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-24 21:15:51 +01:00
fix(deps): update all non-major linting dependencies (5.x) (#2885)
* fix(deps): update all non-major linting dependencies * fix lint issues * chore: increase timeout * chore: increase timeout Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Juan Picado <juanpicado19@gmail.com>
This commit is contained in:
parent
1ec77e7605
commit
23d0bd7056
Binary file not shown.
BIN
.yarn/cache/@humanwhocodes-config-array-npm-0.5.0-5ded120470-71e3c1fef4.zip
vendored
Normal file
BIN
.yarn/cache/@humanwhocodes-config-array-npm-0.5.0-5ded120470-71e3c1fef4.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@humanwhocodes-object-schema-npm-1.2.1-eb622b5d0e-5fc0c8672c.zip
vendored
Normal file
BIN
.yarn/cache/@humanwhocodes-object-schema-npm-1.2.1-eb622b5d0e-5fc0c8672c.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@types-json-schema-npm-7.0.9-361918cff3-3252f0faa7.zip
vendored
Normal file
BIN
.yarn/cache/@types-json-schema-npm-7.0.9-361918cff3-3252f0faa7.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-eslint-plugin-npm-4.33.0-b5d1be4879-7f0131a6c6.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-eslint-plugin-npm-4.33.0-b5d1be4879-7f0131a6c6.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-experimental-utils-npm-4.33.0-f10f287886-2911968d8b.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-experimental-utils-npm-4.33.0-f10f287886-2911968d8b.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-parser-npm-4.33.0-799c6ce8d5-08a65e3da3.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-parser-npm-4.33.0-799c6ce8d5-08a65e3da3.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-scope-manager-npm-4.33.0-28014c179d-dd3d9499cd.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-scope-manager-npm-4.33.0-28014c179d-dd3d9499cd.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-types-npm-4.33.0-9e9b956afa-179c9950d6.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-types-npm-4.33.0-9e9b956afa-179c9950d6.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-typescript-estree-npm-4.33.0-b6b79c10d0-ea55f6d264.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-typescript-estree-npm-4.33.0-b6b79c10d0-ea55f6d264.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-visitor-keys-npm-4.33.0-8b7e72a3c9-d4544518f6.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-visitor-keys-npm-4.33.0-8b7e72a3c9-d4544518f6.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/ajv-npm-7.2.1-e72dc4e752-34044f60ca.zip
vendored
BIN
.yarn/cache/ajv-npm-7.2.1-e72dc4e752-34044f60ca.zip
vendored
Binary file not shown.
BIN
.yarn/cache/ajv-npm-8.8.2-574db7fea7-1c175a7afa.zip
vendored
Normal file
BIN
.yarn/cache/ajv-npm-8.8.2-574db7fea7-1c175a7afa.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/ansi-regex-npm-5.0.1-c963a48615-c944e1229f.zip
vendored
Normal file
BIN
.yarn/cache/ansi-regex-npm-5.0.1-c963a48615-c944e1229f.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/array-includes-npm-3.1.4-79bb883109-cea4e33aa0.zip
vendored
Normal file
BIN
.yarn/cache/array-includes-npm-3.1.4-79bb883109-cea4e33aa0.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/array.prototype.flat-npm-1.2.5-6ee21996a1-2ccf448b61.zip
vendored
Normal file
BIN
.yarn/cache/array.prototype.flat-npm-1.2.5-6ee21996a1-2ccf448b61.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/debug-npm-3.2.7-754e818c7a-9fc1277e66.zip
vendored
Normal file
BIN
.yarn/cache/debug-npm-3.2.7-754e818c7a-9fc1277e66.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/doctrine-npm-2.1.0-ac15d049b7-4aa55e4675.zip
vendored
Normal file
BIN
.yarn/cache/doctrine-npm-2.1.0-ac15d049b7-4aa55e4675.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/escape-string-regexp-npm-4.0.0-4b531d8d59-c747be8d5f.zip
vendored
Normal file
BIN
.yarn/cache/escape-string-regexp-npm-4.0.0-4b531d8d59-c747be8d5f.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/eslint-import-resolver-node-npm-0.3.6-d9426786c6-92e394bf0d.zip
vendored
Normal file
BIN
.yarn/cache/eslint-import-resolver-node-npm-0.3.6-d9426786c6-92e394bf0d.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/eslint-module-utils-npm-2.7.2-eb43175cc1-1a7fe00f1c.zip
vendored
Normal file
BIN
.yarn/cache/eslint-module-utils-npm-2.7.2-eb43175cc1-1a7fe00f1c.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/eslint-npm-7.26.0-0bcc96e5d3-08f99befd7.zip → .yarn/cache/eslint-npm-7.32.0-e15cc6682f-e25f9159d3.zip
vendored
BIN
.yarn/cache/eslint-npm-7.26.0-0bcc96e5d3-08f99befd7.zip → .yarn/cache/eslint-npm-7.32.0-e15cc6682f-e25f9159d3.zip
vendored
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/eslint-plugin-import-npm-2.25.4-cd0cf8b05b-8b36bf0a84.zip
vendored
Normal file
BIN
.yarn/cache/eslint-plugin-import-npm-2.25.4-cd0cf8b05b-8b36bf0a84.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/eslint-plugin-jest-npm-24.7.0-5e69b4d54e-f74e998e46.zip
vendored
Normal file
BIN
.yarn/cache/eslint-plugin-jest-npm-24.7.0-5e69b4d54e-f74e998e46.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/eslint-utils-npm-3.0.0-630b3a4013-035451529f.zip
vendored
Normal file
BIN
.yarn/cache/eslint-utils-npm-3.0.0-630b3a4013-035451529f.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/fast-deep-equal-npm-3.1.3-790edcfcf5-451526766b.zip
vendored
Normal file
BIN
.yarn/cache/fast-deep-equal-npm-3.1.3-790edcfcf5-451526766b.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/fast-glob-npm-3.2.10-caf7a6d1fb-60c1c66df2.zip
vendored
Normal file
BIN
.yarn/cache/fast-glob-npm-3.2.10-caf7a6d1fb-60c1c66df2.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/get-symbol-description-npm-1.0.0-9c95a4bc1f-18f90e08b5.zip
vendored
Normal file
BIN
.yarn/cache/get-symbol-description-npm-1.0.0-9c95a4bc1f-18f90e08b5.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/glob-parent-npm-5.1.2-021ab32634-82fcaa4ce1.zip
vendored
Normal file
BIN
.yarn/cache/glob-parent-npm-5.1.2-021ab32634-82fcaa4ce1.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/globals-npm-13.12.0-df8e0eef2a-28d2eac21d.zip
vendored
Normal file
BIN
.yarn/cache/globals-npm-13.12.0-df8e0eef2a-28d2eac21d.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/globby-npm-11.1.0-bdcdf20c71-806edbb1ec.zip
vendored
Normal file
BIN
.yarn/cache/globby-npm-11.1.0-bdcdf20c71-806edbb1ec.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/has-tostringtag-npm-1.0.0-b1fcf3ab55-f66b738e6b.zip
vendored
Normal file
BIN
.yarn/cache/has-tostringtag-npm-1.0.0-b1fcf3ab55-f66b738e6b.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/ignore-npm-5.2.0-fc4b58a4f3-e8f0c2a258.zip
vendored
Normal file
BIN
.yarn/cache/ignore-npm-5.2.0-fc4b58a4f3-e8f0c2a258.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/internal-slot-npm-1.0.3-9e05eea002-2465f832aa.zip
vendored
Normal file
BIN
.yarn/cache/internal-slot-npm-1.0.3-9e05eea002-2465f832aa.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/is-callable-npm-1.2.4-03fc17459c-57680330ce.zip
vendored
Normal file
BIN
.yarn/cache/is-callable-npm-1.2.4-03fc17459c-57680330ce.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/is-core-module-npm-2.8.1-ce21740d1b-4b4a6a69fa.zip
vendored
Normal file
BIN
.yarn/cache/is-core-module-npm-2.8.1-ce21740d1b-4b4a6a69fa.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/is-glob-npm-4.0.3-cb87bf1bdb-8f6b4c42b7.zip
vendored
Normal file
BIN
.yarn/cache/is-glob-npm-4.0.3-cb87bf1bdb-8f6b4c42b7.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/is-regex-npm-1.1.4-cca193ef11-a9c466f931.zip
vendored
Normal file
BIN
.yarn/cache/is-regex-npm-1.1.4-cca193ef11-a9c466f931.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/is-shared-array-buffer-npm-1.0.1-84bc270861-32d25c4581.zip
vendored
Normal file
BIN
.yarn/cache/is-shared-array-buffer-npm-1.0.1-84bc270861-32d25c4581.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/is-string-npm-1.0.7-9f7066daed-29acb230cc.zip
vendored
Normal file
BIN
.yarn/cache/is-string-npm-1.0.7-9f7066daed-29acb230cc.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/is-weakref-npm-1.0.2-ff80e8c314-0d54eb2c58.zip
vendored
Normal file
BIN
.yarn/cache/is-weakref-npm-1.0.2-ff80e8c314-0d54eb2c58.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/lodash.merge-npm-4.6.2-77cb4416bf-4e2bb42a87.zip
vendored
Normal file
BIN
.yarn/cache/lodash.merge-npm-4.6.2-77cb4416bf-4e2bb42a87.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/lodash.truncate-npm-4.4.2-bc50fe1663-b1b0d7d993.zip
vendored
Normal file
BIN
.yarn/cache/lodash.truncate-npm-4.4.2-bc50fe1663-b1b0d7d993.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/object-inspect-npm-1.12.0-d064fa559a-581dd35a52.zip
vendored
Normal file
BIN
.yarn/cache/object-inspect-npm-1.12.0-d064fa559a-581dd35a52.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/object.values-npm-1.1.5-f1de7f3742-4266bd0365.zip
vendored
Normal file
BIN
.yarn/cache/object.values-npm-1.1.5-f1de7f3742-4266bd0365.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/path-parse-npm-1.0.7-09564527b7-6de0bfa37b.zip
vendored
Normal file
BIN
.yarn/cache/path-parse-npm-1.0.7-09564527b7-6de0bfa37b.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/prettier-npm-2.5.1-58b195b509-c4d3328cfd.zip
vendored
Normal file
BIN
.yarn/cache/prettier-npm-2.5.1-58b195b509-c4d3328cfd.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/resolve-npm-1.21.0-a38d7dc586-4bcddee6db.zip
vendored
Normal file
BIN
.yarn/cache/resolve-npm-1.21.0-a38d7dc586-4bcddee6db.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/resolve-patch-cae7b9a1c8-1518f340d8.zip
vendored
Normal file
BIN
.yarn/cache/resolve-patch-cae7b9a1c8-1518f340d8.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/side-channel-npm-1.0.4-e1f38b9e06-84258ce3ed.zip
vendored
Normal file
BIN
.yarn/cache/side-channel-npm-1.0.4-e1f38b9e06-84258ce3ed.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/string-width-npm-4.2.3-2c27177bae-748c979889.zip
vendored
Normal file
BIN
.yarn/cache/string-width-npm-4.2.3-2c27177bae-748c979889.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/strip-ansi-npm-6.0.1-caddc7cb40-9d3061240b.zip
vendored
Normal file
BIN
.yarn/cache/strip-ansi-npm-6.0.1-caddc7cb40-9d3061240b.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/supports-preserve-symlinks-flag-npm-1.0.0-f17c4d0028-a0f3140423.zip
vendored
Normal file
BIN
.yarn/cache/supports-preserve-symlinks-flag-npm-1.0.0-f17c4d0028-a0f3140423.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/table-npm-6.8.0-7f881347d4-734dae1588.zip
vendored
Normal file
BIN
.yarn/cache/table-npm-6.8.0-7f881347d4-734dae1588.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/tsconfig-paths-npm-3.12.0-b78aadfb3f-b4ae504cc0.zip
vendored
Normal file
BIN
.yarn/cache/tsconfig-paths-npm-3.12.0-b78aadfb3f-b4ae504cc0.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/tsutils-npm-3.21.0-347e6636c5-a10e746258.zip
vendored
Normal file
BIN
.yarn/cache/tsutils-npm-3.21.0-347e6636c5-a10e746258.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/unbox-primitive-npm-1.0.1-50b9fde246-aa944f1ecf.zip
vendored
Normal file
BIN
.yarn/cache/unbox-primitive-npm-1.0.1-50b9fde246-aa944f1ecf.zip
vendored
Normal file
Binary file not shown.
@ -49,7 +49,7 @@ module.exports = {
|
||||
"padded-blocks": "off",
|
||||
"require-jsdoc": "off",
|
||||
"valid-jsdoc": "off",
|
||||
"import/order": ["error"],
|
||||
"import/order": ["warn"],
|
||||
"eol-last": "error",
|
||||
"no-irregular-whitespace": "error",
|
||||
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
|
||||
|
14
package.json
14
package.json
@ -33,7 +33,7 @@
|
||||
"dayjs": "1.10.7",
|
||||
"debug": "^4.3.2",
|
||||
"envinfo": "7.8.1",
|
||||
"eslint-import-resolver-node": "0.3.4",
|
||||
"eslint-import-resolver-node": "0.3.6",
|
||||
"express": "4.17.2",
|
||||
"express-rate-limit": "5.5.1",
|
||||
"fast-safe-stringify": "2.0.8",
|
||||
@ -101,8 +101,8 @@
|
||||
"@types/pino": "6.3.12",
|
||||
"@types/request": "2.48.5",
|
||||
"@types/semver": "7.3.4",
|
||||
"@typescript-eslint/eslint-plugin": "4.13.0",
|
||||
"@typescript-eslint/parser": "4.13.0",
|
||||
"@typescript-eslint/eslint-plugin": "4.33.0",
|
||||
"@typescript-eslint/parser": "4.33.0",
|
||||
"@verdaccio/eslint-config": "^8.5.0",
|
||||
"@verdaccio/types": "10.2.2",
|
||||
"all-contributors-cli": "6.20.0",
|
||||
@ -112,12 +112,12 @@
|
||||
"babel-plugin-dynamic-import-node": "2.3.3",
|
||||
"cross-env": "7.0.3",
|
||||
"detect-secrets": "1.0.6",
|
||||
"eslint": "7.26.0",
|
||||
"eslint": "7.32.0",
|
||||
"eslint-config-google": "0.14.0",
|
||||
"eslint-config-prettier": "7.2.0",
|
||||
"eslint-plugin-babel": "5.3.1",
|
||||
"eslint-plugin-import": "2.22.1",
|
||||
"eslint-plugin-jest": "24.3.6",
|
||||
"eslint-plugin-import": "2.25.4",
|
||||
"eslint-plugin-jest": "24.7.0",
|
||||
"eslint-plugin-simple-import-sort": "7.0.0",
|
||||
"eslint-plugin-verdaccio": "9.6.1",
|
||||
"fs-extra": "10.0.0",
|
||||
@ -131,7 +131,7 @@
|
||||
"nock": "12.0.3",
|
||||
"node-mocks-http": "^1.10.1",
|
||||
"pinst": "2.1.6",
|
||||
"prettier": "2.3.2",
|
||||
"prettier": "2.5.1",
|
||||
"puppeteer": "5.5.0",
|
||||
"rimraf": "3.0.2",
|
||||
"selfsigned": "1.10.11",
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { $ResponseExtend, $RequestExtend, $NextFunctionVer } from '../../../types';
|
||||
import _ from 'lodash';
|
||||
import { Application } from 'express';
|
||||
import { $ResponseExtend, $RequestExtend, $NextFunctionVer } from '../../../types';
|
||||
|
||||
export default (app: Application, selfPath: string): void => {
|
||||
// Hook for tests only
|
||||
|
@ -1,8 +1,3 @@
|
||||
import mime from 'mime';
|
||||
import _ from 'lodash';
|
||||
import { Router } from 'express';
|
||||
import { VerdaccioError } from '@verdaccio/commons-api';
|
||||
import { Package } from '@verdaccio/types';
|
||||
import { media, allow } from '../../middleware';
|
||||
import {
|
||||
IAuth,
|
||||
@ -12,6 +7,11 @@ import {
|
||||
IStorageHandler
|
||||
} from '../../../../types';
|
||||
import { API_MESSAGE, HTTP_STATUS, DIST_TAGS } from '../../../lib/constants';
|
||||
import mime from 'mime';
|
||||
import _ from 'lodash';
|
||||
import { Router } from 'express';
|
||||
import { VerdaccioError } from '@verdaccio/commons-api';
|
||||
import { Package } from '@verdaccio/types';
|
||||
|
||||
export default function (route: Router, auth: IAuth, storage: IStorageHandler): void {
|
||||
const can = allow(auth);
|
||||
|
@ -1,6 +1,3 @@
|
||||
import _ from 'lodash';
|
||||
import { Router } from 'express';
|
||||
import { Config, Package } from '@verdaccio/types';
|
||||
import { allow } from '../../middleware';
|
||||
import { convertDistRemoteToLocalTarballUrls, getVersion, ErrorCode } from '../../../lib/utils';
|
||||
import { HEADERS, DIST_TAGS, API_ERROR } from '../../../lib/constants';
|
||||
@ -11,6 +8,9 @@ import {
|
||||
$NextFunctionVer,
|
||||
IStorageHandler
|
||||
} from '../../../../types';
|
||||
import { Config, Package } from '@verdaccio/types';
|
||||
import { Router } from 'express';
|
||||
import _ from 'lodash';
|
||||
|
||||
const downloadStream = (
|
||||
packageName: string,
|
||||
|
@ -3,8 +3,8 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import { Router } from 'express';
|
||||
import { $RequestExtend, $ResponseExtend, $NextFunctionVer } from '../../../../types';
|
||||
import { Router } from 'express';
|
||||
|
||||
export default function (route: Router): void {
|
||||
route.get(
|
||||
|
@ -1,10 +1,5 @@
|
||||
import Path from 'path';
|
||||
import _ from 'lodash';
|
||||
import buildDebug from 'debug';
|
||||
import mime from 'mime';
|
||||
|
||||
import { Router } from 'express';
|
||||
import { Config, Callback, MergeTags, Version, Package } from '@verdaccio/types';
|
||||
import { API_MESSAGE, HEADERS, DIST_TAGS, API_ERROR, HTTP_STATUS } from '../../../lib/constants';
|
||||
import { validateMetadata, isObject, ErrorCode, hasDiffOneKey, isRelatedToDeprecation } from '../../../lib/utils';
|
||||
import { media, expectJson, allow } from '../../middleware';
|
||||
@ -14,6 +9,11 @@ import { IAuth, $ResponseExtend, $RequestExtend, $NextFunctionVer, IStorageHandl
|
||||
import { logger } from '../../../lib/logger';
|
||||
import { isPublishablePackage } from '../../../lib/storage-utils';
|
||||
import star from './star';
|
||||
import { Config, Callback, MergeTags, Version, Package } from '@verdaccio/types';
|
||||
import { Router } from 'express';
|
||||
import mime from 'mime';
|
||||
import buildDebug from 'debug';
|
||||
import _ from 'lodash';
|
||||
|
||||
const debug = buildDebug('verdaccio:publish');
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
// @flow
|
||||
|
||||
import { Response } from 'express';
|
||||
import _ from 'lodash';
|
||||
import buildDebug from 'debug';
|
||||
import { USERS, HTTP_STATUS } from '../../../lib/constants';
|
||||
import { $RequestExtend, $NextFunctionVer, IStorageHandler } from '../../../../types';
|
||||
import { logger } from '../../../lib/logger';
|
||||
import { Response } from 'express';
|
||||
import _ from 'lodash';
|
||||
import buildDebug from 'debug';
|
||||
|
||||
const debug = buildDebug('verdaccio:star');
|
||||
export default function (storage: IStorageHandler): (req: $RequestExtend, res: Response, next: $NextFunctionVer) => void {
|
||||
|
@ -2,11 +2,11 @@
|
||||
* @prettier
|
||||
|
||||
*/
|
||||
import { USERS, HTTP_STATUS } from '../../../lib/constants';
|
||||
import { $RequestExtend, $NextFunctionVer, IStorageHandler } from '../../../../types';
|
||||
import _ from 'lodash';
|
||||
import { Response, Router } from 'express';
|
||||
import { Package } from '@verdaccio/types';
|
||||
import { USERS, HTTP_STATUS } from '../../../lib/constants';
|
||||
import { $RequestExtend, $NextFunctionVer, IStorageHandler } from '../../../../types';
|
||||
|
||||
type Packages = Package[];
|
||||
|
||||
|
@ -1,8 +1,4 @@
|
||||
import _ from 'lodash';
|
||||
import Cookies from 'cookies';
|
||||
|
||||
import { Config, RemoteUser } from '@verdaccio/types';
|
||||
import express, { Response, Router } from 'express';
|
||||
import { ErrorCode } from '../../../lib/utils';
|
||||
import { API_ERROR, API_MESSAGE, HEADERS, HTTP_STATUS } from '../../../lib/constants';
|
||||
import { createRemoteUser, createSessionToken, getApiToken, getAuthenticatedMessage, validatePassword } from '../../../lib/auth-utils';
|
||||
@ -10,6 +6,10 @@ import { logger } from '../../../lib/logger';
|
||||
|
||||
import { $RequestExtend, $ResponseExtend, $NextFunctionVer, IAuth } from '../../../../types';
|
||||
import { limiter } from '../../rate-limiter';
|
||||
import express, { Response, Router } from 'express';
|
||||
import { Config, RemoteUser } from '@verdaccio/types';
|
||||
import Cookies from 'cookies';
|
||||
import _ from 'lodash';
|
||||
|
||||
export default function (route: Router, auth: IAuth, config: Config): void {
|
||||
/* eslint new-cap:off */
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Response, Router } from 'express';
|
||||
import profile from './profile';
|
||||
import token from './token';
|
||||
import { Response, Router } from 'express';
|
||||
|
||||
export default (auth, storage, config) => {
|
||||
const route = Router(); /* eslint new-cap: 0 */
|
||||
|
@ -1,11 +1,11 @@
|
||||
import _ from 'lodash';
|
||||
import { Response, Router } from 'express';
|
||||
import { API_ERROR, APP_ERROR, HTTP_STATUS, SUPPORT_ERRORS } from '../../../../lib/constants';
|
||||
import { ErrorCode } from '../../../../lib/utils';
|
||||
import { validatePassword } from '../../../../lib/auth-utils';
|
||||
|
||||
import { $NextFunctionVer, $RequestExtend, IAuth } from '../../../../../types';
|
||||
import { limiter } from '../../../rate-limiter';
|
||||
import { Response, Router } from 'express';
|
||||
import _ from 'lodash';
|
||||
|
||||
export interface Profile {
|
||||
tfa: boolean;
|
||||
|
@ -1,8 +1,8 @@
|
||||
import { logger } from '../../../../lib/logger';
|
||||
import { HTTP_STATUS } from '../../../../lib/constants';
|
||||
import semver from 'semver';
|
||||
import _ from 'lodash';
|
||||
import { Package } from '@verdaccio/types';
|
||||
import { logger } from '../../../../lib/logger';
|
||||
import { HTTP_STATUS } from '../../../../lib/constants';
|
||||
|
||||
type PublisherMaintainer = {
|
||||
username: string;
|
||||
|
@ -1,7 +1,3 @@
|
||||
import _ from 'lodash';
|
||||
import buildDebug from 'debug';
|
||||
import { Response, Router } from 'express';
|
||||
import { Config, RemoteUser, Token } from '@verdaccio/types';
|
||||
import { HEADERS, HTTP_STATUS, SUPPORT_ERRORS } from '../../../../lib/constants';
|
||||
import { ErrorCode, mask } from '../../../../lib/utils';
|
||||
import { getApiToken } from '../../../../lib/auth-utils';
|
||||
@ -10,6 +6,10 @@ import { logger } from '../../../../lib/logger';
|
||||
|
||||
import { $NextFunctionVer, $RequestExtend, IAuth, IStorageHandler } from '../../../../../types';
|
||||
import { limiter } from '../../../rate-limiter';
|
||||
import { Config, RemoteUser, Token } from '@verdaccio/types';
|
||||
import { Response, Router } from 'express';
|
||||
import buildDebug from 'debug';
|
||||
import _ from 'lodash';
|
||||
|
||||
const debug = buildDebug('verdaccio:token');
|
||||
export type NormalizeToken = Token & {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Response, Router } from 'express';
|
||||
import { $RequestExtend, $NextFunctionVer } from '../../../../types';
|
||||
import { Response, Router } from 'express';
|
||||
|
||||
export default function (route: Router): void {
|
||||
route.get('/whoami', (req: $RequestExtend, res: Response, next: $NextFunctionVer): void => {
|
||||
|
@ -1,7 +1,3 @@
|
||||
import { Config } from '@verdaccio/types';
|
||||
import _ from 'lodash';
|
||||
import express from 'express';
|
||||
import bodyParser from 'body-parser';
|
||||
import { IAuth, IStorageHandler } from '../../../types';
|
||||
import whoami from './api/whoami';
|
||||
import ping from './api/ping';
|
||||
@ -13,6 +9,10 @@ import pkg from './api/package';
|
||||
import stars from './api/stars';
|
||||
import npmV1 from './api/v1';
|
||||
import v1Search from './api/v1/search';
|
||||
import bodyParser from 'body-parser';
|
||||
import express from 'express';
|
||||
import _ from 'lodash';
|
||||
import { Config } from '@verdaccio/types';
|
||||
|
||||
const { match, validateName, validatePackage, encodeScopePackage, antiLoop } = require('../middleware');
|
||||
|
||||
|
@ -1,9 +1,3 @@
|
||||
import _ from 'lodash';
|
||||
import express, { Application } from 'express';
|
||||
import compression from 'compression';
|
||||
import cors from 'cors';
|
||||
import { HttpError } from 'http-errors';
|
||||
import { Config as IConfig, IPluginMiddleware, IPluginStorageFilter } from '@verdaccio/types';
|
||||
import Storage from '../lib/storage';
|
||||
import loadPlugin from '../lib/plugin-loader';
|
||||
import Auth from '../lib/auth';
|
||||
@ -17,6 +11,12 @@ import web from './web';
|
||||
import apiEndpoint from './endpoint';
|
||||
import hookDebug from './debug';
|
||||
import { log, final, errorReportingMiddleware, serveFavicon } from './middleware';
|
||||
import { Config as IConfig, IPluginMiddleware, IPluginStorageFilter } from '@verdaccio/types';
|
||||
import { HttpError } from 'http-errors';
|
||||
import cors from 'cors';
|
||||
import compression from 'compression';
|
||||
import express, { Application } from 'express';
|
||||
import _ from 'lodash';
|
||||
|
||||
const defineAPI = function (config: IConfig, storage: IStorageHandler): any {
|
||||
const auth: IAuth = new Auth(config);
|
||||
|
@ -1,16 +1,16 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { validateName as utilValidateName, validatePackage as utilValidatePackage, getVersionFromTarball, isObject, ErrorCode } from '../lib/utils';
|
||||
import { API_ERROR, HEADER_TYPE, HEADERS, HTTP_STATUS, TOKEN_BASIC, TOKEN_BEARER } from '../lib/constants';
|
||||
import { stringToMD5 } from '../lib/crypto-utils';
|
||||
import { $ResponseExtend, $RequestExtend, $NextFunctionVer, IAuth } from '../../types';
|
||||
import { logger } from '../lib/logger';
|
||||
import _ from 'lodash';
|
||||
import buildDebug from 'debug';
|
||||
import validator from 'validator';
|
||||
|
||||
import { Config, Package, RemoteUser } from '@verdaccio/types';
|
||||
import { VerdaccioError } from '@verdaccio/commons-api';
|
||||
import { validateName as utilValidateName, validatePackage as utilValidatePackage, getVersionFromTarball, isObject, ErrorCode } from '../lib/utils';
|
||||
import { API_ERROR, HEADER_TYPE, HEADERS, HTTP_STATUS, TOKEN_BASIC, TOKEN_BEARER } from '../lib/constants';
|
||||
import { stringToMD5 } from '../lib/crypto-utils';
|
||||
import { $ResponseExtend, $RequestExtend, $NextFunctionVer, IAuth } from '../../types';
|
||||
import { logger } from '../lib/logger';
|
||||
|
||||
const debug = buildDebug('verdaccio');
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { Router } from 'express';
|
||||
import bodyParser from 'body-parser';
|
||||
import { Config } from '@verdaccio/types';
|
||||
import Search from '../../lib/search';
|
||||
import { match, validateName, validatePackage, setSecurityWebHeaders } from '../middleware';
|
||||
import { IAuth, IStorageHandler } from '../../../types';
|
||||
import webApi from './endpoint';
|
||||
import { Config } from '@verdaccio/types';
|
||||
import bodyParser from 'body-parser';
|
||||
import { Router } from 'express';
|
||||
|
||||
const route = Router(); /* eslint new-cap: 0 */
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
import { Response, Router } from 'express';
|
||||
import { limiter } from '../../rate-limiter';
|
||||
import packageApi from './package';
|
||||
import search from './search';
|
||||
import user from './user';
|
||||
import { Response, Router } from 'express';
|
||||
|
||||
export default (auth, storage, config) => {
|
||||
const route = Router(); /* eslint new-cap: 0 */
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user