diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..1f27c1a8 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,26 @@ +module.exports = { + "env": { + "es6": true, + "node": true + }, + "ignorePatterns": [ + "node_modules", + "generated", + "**/__tests__/*", + "**/__mocks__/*", + "Dangerfile.*", + ".eslintrc.js", + "*.d.ts" + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "project": "tsconfig.json", + "sourceType": "module" + }, + "extends": [ + "@pagopa/eslint-config/strong", + ], + "rules": { + + } +} diff --git a/.gitignore b/.gitignore index c0787459..19a4eb87 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,7 @@ coverage *.pem .npmrc .DS_Store + +# eslint section +!.eslintrc.js +.eslintcache diff --git a/Dangerfile.ts b/Dangerfile.ts index 5c788e25..647a9f32 100644 --- a/Dangerfile.ts +++ b/Dangerfile.ts @@ -1,7 +1,6 @@ // import custom DangerJS rules // see http://danger.systems/js // see https://github.com/teamdigitale/danger-plugin-digitalcitizenship/ -// tslint:disable-next-line:prettier import checkDangers from 'danger-plugin-digitalcitizenship'; checkDangers(); diff --git a/package.json b/package.json index bd922e34..e0ccb4ff 100644 --- a/package.json +++ b/package.json @@ -20,11 +20,12 @@ "hot-reload": "nodemon --legacy-watch --watch ./dist --inspect=0.0.0.0 --nolazy dist/example.js", "postversion": "git push && git push --tags", "test": "jest -i", - "lint": "tslint --project .", + "lint": "eslint . -c .eslintrc.js --ext .ts,.tsx", "preversion": "auto-changelog --config .auto-changelog.json --unreleased --commit-limit false --stdout --template preview.hbs", "version": "auto-changelog -p --config .auto-changelog.json --unreleased && git add CHANGELOG.md" }, "devDependencies": { + "@pagopa/eslint-config": "^1.3.1", "@types/express": "4.17.0", "@types/jest": "^24.0.13", "@types/node": "10.14.1", @@ -41,8 +42,8 @@ "auto-changelog": "^2.2.1", "danger": "^7.0.0", "danger-plugin-digitalcitizenship": "*", + "eslint-plugin-prettier": "^3.0.0", "express": "4.17.0", - "italia-tslint-rules": "*", "jest": "^24.8.0", "mock-redis-client": "^0.91.13", "nock": "^11.7.1", @@ -52,7 +53,6 @@ "shx": "^0.3.2", "supertest": "^4.0.2", "ts-jest": "^24.0.2", - "tslint": "^5.1.0", "typescript": "^3.7.0" }, "dependencies": { diff --git a/src/__mocks__/metadata.ts b/src/__mocks__/metadata.ts index 8964fdd9..c3f8333f 100644 --- a/src/__mocks__/metadata.ts +++ b/src/__mocks__/metadata.ts @@ -2,7 +2,6 @@ import { IDPEntityDescriptor } from "../types/IDPEntityDescriptor"; import { NonEmptyArray } from "fp-ts/lib/NonEmptyArray"; -// tslint:disable-next-line: no-submodule-imports import { NonEmptyString } from "@pagopa/ts-commons/lib/strings"; export const mockIdpMetadata: Record = { diff --git a/src/__mocks__/request.ts b/src/__mocks__/request.ts index 13aa2e22..9e132628 100644 --- a/src/__mocks__/request.ts +++ b/src/__mocks__/request.ts @@ -1,5 +1,3 @@ -// tslint:disable:no-any - /** * mockReq * @returns {{header, accepts, acceptsEncodings, acceptsEncoding, acceptsCharsets, acceptsCharset, acceptsLanguages, acceptsLanguage, range, param, is, reset: resetMock}} diff --git a/src/__tests__/index.test.ts b/src/__tests__/index.test.ts index 53ba8bdf..fa29fb38 100644 --- a/src/__tests__/index.test.ts +++ b/src/__tests__/index.test.ts @@ -1,4 +1,3 @@ -// tslint:disable-next-line: no-submodule-imports import { ResponsePermanentRedirect } from "@pagopa/ts-commons/lib/responses"; import * as express from "express"; import { left, right } from "fp-ts/lib/Either"; @@ -141,7 +140,6 @@ const serviceProviderConfig: IServiceProviderConfig = { } }; -// tslint:disable-next-line: no-any const mockRedisClient: RedisClient = (createMockRedis() as any).createClient(); function initMockFetchIDPMetadata(): void { @@ -174,7 +172,6 @@ describe("io-spid-commons withSpid", () => { appConfig, samlConfig, serviceProviderConfig, - // tslint:disable-next-line: object-literal-sort-keys redisClient: mockRedisClient, app, acs: async () => ResponsePermanentRedirect({ href: "/success?acs" }), @@ -217,7 +214,6 @@ describe("io-spid-commons withSpid", () => { appConfig, samlConfig, serviceProviderConfig, - // tslint:disable-next-line: object-literal-sort-keys redisClient: mockRedisClient, app, acs: async () => ResponsePermanentRedirect({ href: "/success?acs" }), diff --git a/src/bin/startup-idps-metadata.ts b/src/bin/startup-idps-metadata.ts index b6b3e00e..e861502a 100644 --- a/src/bin/startup-idps-metadata.ts +++ b/src/bin/startup-idps-metadata.ts @@ -18,34 +18,37 @@ const argv = yargs demandOption: false, description: "ENV var name containing IDP Metadata URL", normalize: true, + // eslint-disable-next-line id-blacklist string: true }) .option("testenv-metadata-url-env", { demandOption: false, description: "ENV var name containing TestEnv2 Metadata URL", normalize: true, + // eslint-disable-next-line id-blacklist string: true }) .option("cie-metadata-url-env", { demandOption: false, description: "ENV var name containing CIE Metadata URL", normalize: true, + // eslint-disable-next-line id-blacklist string: true }) .help().argv; interface IIDPSMetadataXML { - idps?: string; - xx_testenv2?: string; - xx_servizicie?: string; + readonly idps?: string; + readonly xx_testenv2?: string; + readonly xx_servizicie?: string; } -function printIdpsMetadata( +const printIdpsMetadata = ( idpsMetadataENV: string | undefined, testEnv2MetadataENV: string | undefined, cieMetadataENV: string | undefined -): Promise { - // tslint:disable: no-object-mutation no-any no-empty +): Promise => { + // eslint-disable-next-line functional/immutable-data, @typescript-eslint/no-explicit-any, @typescript-eslint/no-empty-function logger.info = (): any => {}; const maybeIdpsMetadataURL = pipe( O.fromNullable(idpsMetadataENV), @@ -89,16 +92,16 @@ function printIdpsMetadata( maybeTestEnvMetadataURL, maybeCIEMetadataURL ), - // tslint:disable-next-line: no-inferred-empty-object-type + T.map(A.reduce({}, (prev, current) => ({ ...prev, ...current }))) )(); -} +}; printIdpsMetadata( argv["idp-metadata-url-env"], argv["testenv-metadata-url-env"], argv["cie-metadata-url-env"] ) - // tslint:disable-next-line: no-console + // eslint-disable-next-line no-console .then(metadata => console.log(JSON.stringify(metadata, null, 2))) .catch(() => logger.error("Error fetching IDP metadata")); diff --git a/src/config.ts b/src/config.ts index a84a4e99..b578f368 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/naming-convention */ export const SPID_IDP_IDENTIFIERS = { "https://id.lepida.it/idp/shibboleth": "lepidaid", "https://identity.infocert.it": "infocertid", diff --git a/src/example.ts b/src/example.ts index e4677504..9ff5df3e 100644 --- a/src/example.ts +++ b/src/example.ts @@ -1,26 +1,18 @@ -// tslint:disable-next-line: no-submodule-imports +import * as fs from "fs"; import { ResponsePermanentRedirect } from "@pagopa/ts-commons/lib/responses"; import { EmailString, FiscalCode, NonEmptyString - // tslint:disable-next-line: no-submodule-imports } from "@pagopa/ts-commons/lib/strings"; import * as bodyParser from "body-parser"; import * as express from "express"; import { pipe } from "fp-ts/lib/function"; import * as T from "fp-ts/lib/Task"; -import * as fs from "fs"; import * as t from "io-ts"; import passport = require("passport"); import { SamlConfig } from "passport-saml"; import * as redis from "redis"; -import { - AssertionConsumerServiceT, - IApplicationConfig, - LogoutT, - withSpid -} from "."; import { logger } from "./utils/logger"; import { AggregatorType, @@ -28,13 +20,19 @@ import { EntityType, IServiceProviderConfig } from "./utils/middleware"; +import { + AssertionConsumerServiceT, + IApplicationConfig, + LogoutT, + withSpid +} from "."; export const SpidUser = t.intersection([ t.interface({ // the following values may be set // by the calling application: - // authnContextClassRef: SpidLevel, - // issuer: Issuer + // authnContextClassRef -> SpidLevel, + // issuer -> Issuer getAssertionXml: t.Function }), t.partial({ @@ -87,10 +85,13 @@ const serviceProviderConfig: IServiceProviderConfig = { // this line is commented due to a future refactor that enables spid-saml-check locally // spidValidatorUrl: "http://localhost:8080", strictResponseValidation: { + // eslint-disable-next-line @typescript-eslint/naming-convention "http://localhost:8080": true, + // eslint-disable-next-line @typescript-eslint/naming-convention "https://spid-testenv2:8088": true }, + // eslint-disable-next-line sort-keys contacts: [ { company: "Sogetto Aggregatore s.r.l", @@ -147,12 +148,13 @@ proxyApp.get("*", (req, res) => { }); proxyApp.listen(8080); +// eslint-disable-next-line @typescript-eslint/explicit-function-return-type const doneCb = (ip: string | null, request: string, response: string) => { - // tslint:disable-next-line: no-console + // eslint-disable-next-line no-console console.log("*************** done", ip); - // tslint:disable-next-line: no-console + // eslint-disable-next-line no-console console.log(request); - // tslint:disable-next-line: no-console + // eslint-disable-next-line no-console console.log(response); }; @@ -200,5 +202,5 @@ pipe( withSpidApp.listen(3000); }) )() - // tslint:disable-next-line: no-console + // eslint-disable-next-line no-console .catch(e => console.error("Application error: ", e)); diff --git a/src/index.ts b/src/index.ts index 64710cad..095b1329 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,7 +5,6 @@ * Setups the endpoint to generate service provider metadata * and a scheduled process to refresh IDP metadata from providers. */ -// tslint:disable-next-line: no-submodule-imports import { toExpressHandler } from "@pagopa/ts-commons/lib/express"; import { IResponseErrorForbiddenNotAuthorized, @@ -16,7 +15,6 @@ import { ResponseErrorInternal, ResponseErrorValidation, ResponseSuccessXml - // tslint:disable-next-line: no-submodule-imports } from "@pagopa/ts-commons/lib/responses"; import * as express from "express"; import { constVoid, pipe } from "fp-ts/lib/function"; @@ -53,7 +51,6 @@ import { getMetadataTamperer } from "./utils/saml"; export type AssertionConsumerServiceT = ( userPayload: unknown ) => Promise< - // tslint:disable-next-line: max-union-size | IResponseErrorInternal | IResponseErrorValidation | IResponsePermanentRedirect @@ -72,11 +69,11 @@ export type DoneCallbackT = ( ) => void; export interface IEventInfo { - name: string; - type: "ERROR" | "INFO"; - data: { - message: string; - [key: string]: string; + readonly name: string; + readonly type: "ERROR" | "INFO"; + readonly data: { + readonly [key: string]: string; + readonly message: string; }; } @@ -84,15 +81,15 @@ export type EventTracker = (params: IEventInfo) => void; // express endpoints configuration export interface IApplicationConfig { - assertionConsumerServicePath: string; - clientErrorRedirectionUrl: string; - clientLoginRedirectionUrl: string; - loginPath: string; - metadataPath: string; - sloPath: string; - spidLevelsWhitelist: ReadonlyArray; - startupIdpsMetadata?: Record; - eventTraker?: EventTracker; + readonly assertionConsumerServicePath: string; + readonly clientErrorRedirectionUrl: string; + readonly clientLoginRedirectionUrl: string; + readonly loginPath: string; + readonly metadataPath: string; + readonly sloPath: string; + readonly spidLevelsWhitelist: ReadonlyArray; + readonly startupIdpsMetadata?: Record; + readonly eventTraker?: EventTracker; } // re-export @@ -106,70 +103,64 @@ const withSpidAuthMiddleware = ( acs: AssertionConsumerServiceT, clientLoginRedirectionUrl: string, clientErrorRedirectionUrl: string -): (( +) => ( req: express.Request, res: express.Response, next: express.NextFunction -) => void) => { - return ( - req: express.Request, - res: express.Response, - next: express.NextFunction - ) => { - passport.authenticate("spid", async (err, user) => { - const maybeDoc = getXmlFromSamlResponse(req.body); - const issuer = pipe( - maybeDoc, - O.chain(getSamlIssuer), - O.getOrElse(() => "UNKNOWN") - ); - if (err) { - const redirectionUrl = - clientErrorRedirectionUrl + - pipe( - maybeDoc, - O.chain(getErrorCodeFromResponse), - O.map(errorCode => `?errorCode=${errorCode}`), - O.getOrElse(() => `?errorMessage=${err}`) - ); - logger.error( - "Spid Authentication|Authentication Error|ERROR=%s|ISSUER=%s|REDIRECT_TO=%s", - err, - issuer, - redirectionUrl - ); - return res.redirect(redirectionUrl); - } - if (!user) { - logger.error( - "Spid Authentication|Authentication Error|ERROR=user_not_found|ISSUER=%s", - issuer +): void => { + passport.authenticate("spid", async (err, user) => { + const maybeDoc = getXmlFromSamlResponse(req.body); + const issuer = pipe( + maybeDoc, + O.chain(getSamlIssuer), + O.getOrElse(() => "UNKNOWN") + ); + if (err) { + const redirectionUrl = + clientErrorRedirectionUrl + + pipe( + maybeDoc, + O.chain(getErrorCodeFromResponse), + O.map(errorCode => `?errorCode=${errorCode}`), + O.getOrElse(() => `?errorMessage=${err}`) ); - return res.redirect(clientLoginRedirectionUrl); - } - const response = await acs(user); - response.apply(res); - })(req, res, next); - }; + logger.error( + "Spid Authentication|Authentication Error|ERROR=%s|ISSUER=%s|REDIRECT_TO=%s", + err, + issuer, + redirectionUrl + ); + return res.redirect(redirectionUrl); + } + if (!user) { + logger.error( + "Spid Authentication|Authentication Error|ERROR=user_not_found|ISSUER=%s", + issuer + ); + return res.redirect(clientLoginRedirectionUrl); + } + const response = await acs(user); + response.apply(res); + })(req, res, next); }; interface IWithSpidT { - appConfig: IApplicationConfig; - samlConfig: SamlConfig; - serviceProviderConfig: IServiceProviderConfig; - redisClient: RedisClient; - app: express.Express; - acs: AssertionConsumerServiceT; - logout: LogoutT; - doneCb?: DoneCallbackT; + readonly appConfig: IApplicationConfig; + readonly samlConfig: SamlConfig; + readonly serviceProviderConfig: IServiceProviderConfig; + readonly redisClient: RedisClient; + readonly app: express.Express; + readonly acs: AssertionConsumerServiceT; + readonly logout: LogoutT; + readonly doneCb?: DoneCallbackT; } /** * Apply SPID authentication middleware * to an express application. */ -// tslint:disable-next-line: parameters-max-number -export function withSpid({ +// eslint-disable-next-line max-params +export const withSpid = ({ acs, app, appConfig, @@ -179,9 +170,9 @@ export function withSpid({ samlConfig, serviceProviderConfig }: IWithSpidT): T.Task<{ - app: express.Express; - idpMetadataRefresher: () => T.Task; -}> { + readonly app: express.Express; + readonly idpMetadataRefresher: () => T.Task; +}> => { const loadSpidStrategyOptions = getSpidStrategyOptionsUpdater( samlConfig, serviceProviderConfig @@ -247,7 +238,7 @@ export function withSpid({ }) ); // Fetch IDPs metadata from remote URL and update SPID passport strategy options - const idpMetadataRefresher = () => + const idpMetadataRefresher = (): T.Task => pipe( loadSpidStrategyOptions(), T.map(opts => upsertSpidStrategyOption(app, opts)) @@ -340,4 +331,4 @@ export function withSpid({ return { app, idpMetadataRefresher }; }) ); -} +}; diff --git a/src/strategy/__mocks__/passport-saml.ts b/src/strategy/__mocks__/passport-saml.ts index 1c1cec9e..5dc52d67 100644 --- a/src/strategy/__mocks__/passport-saml.ts +++ b/src/strategy/__mocks__/passport-saml.ts @@ -1,19 +1,17 @@ -// tslint:disable: no-any import * as express from "express"; import { SamlConfig } from "passport-saml"; -// tslint:disable-next-line: no-var-requires + const OriginalSAML = require("passport-saml").SAML; export const mockWrapCallback = jest.fn(); -// tslint:disable: max-classes-per-file export class SAML { public options: any; public cacheProvider: any; private initialize = OriginalSAML.prototype.initialize; constructor(samlConfig: SamlConfig) { - // tslint:disable-next-line: no-string-literal + this.options = this.initialize(samlConfig); this.cacheProvider = this.options.cacheProvider; } @@ -23,7 +21,7 @@ export class SAML { callback: ( err: Error | null, profile?: unknown, - // tslint:disable-next-line: bool-param-default + loggedOut?: boolean ) => void ): void { @@ -42,7 +40,6 @@ export class SAML { export class Strategy { constructor() { - // tslint:disable-next-line: no-console console.log("Mock Strategy: constructor was called"); } } diff --git a/src/strategy/__tests__/redis_cache_provider.test.ts b/src/strategy/__tests__/redis_cache_provider.test.ts index 4ad5ffa2..45ee34e4 100644 --- a/src/strategy/__tests__/redis_cache_provider.test.ts +++ b/src/strategy/__tests__/redis_cache_provider.test.ts @@ -1,4 +1,3 @@ -// tslint:disable: no-object-mutation import { isLeft, isRight } from "fp-ts/lib/Either"; import { createMockRedis } from "mock-redis-client"; import { SamlConfig } from "passport-saml"; @@ -13,7 +12,6 @@ const mockSet = jest.fn(); const mockGet = jest.fn(); const mockDel = jest.fn(); -// tslint:disable-next-line: no-any const mockRedisClient: RedisClient = (createMockRedis() as any).createClient(); mockRedisClient.set = mockSet; mockRedisClient.get = mockGet; @@ -145,7 +143,6 @@ describe("getExtendedRedisCacheProvider#save", () => { const expectedRequestData: SAMLRequestCacheItem = { RequestXML: SAMLRequest, createdAt: new Date(), - // tslint:disable-next-line: no-useless-cast idpIssuer: samlConfig.idpIssuer as string }; mockGet.mockImplementation((_, callback) => diff --git a/src/strategy/__tests__/saml_client.test.ts b/src/strategy/__tests__/saml_client.test.ts index 60e72759..70c5936d 100644 --- a/src/strategy/__tests__/saml_client.test.ts +++ b/src/strategy/__tests__/saml_client.test.ts @@ -1,4 +1,3 @@ -// tslint:disable: no-object-mutation import { left, right } from "fp-ts/lib/Either"; import { fromEither } from "fp-ts/lib/TaskEither"; import { createMockRedis } from "mock-redis-client"; @@ -16,7 +15,6 @@ const mockSet = jest.fn(); const mockGet = jest.fn(); const mockDel = jest.fn(); -// tslint:disable-next-line: no-any const mockRedisClient: RedisClient = (createMockRedis() as any).createClient(); mockRedisClient.set = mockSet; mockRedisClient.get = mockGet; @@ -72,7 +70,6 @@ const authReqTampener = getAuthorizeRequestTamperer( const mockedCallback = jest.fn(); describe("SAML prototype arguments check", () => { - // tslint:disable-next-line: no-let no-any let OriginalPassportSaml: any; beforeAll(() => { OriginalPassportSaml = jest.requireActual("passport-saml"); @@ -107,7 +104,7 @@ describe("CustomSamlClient#constructor", () => { redisCacheProvider ); expect(customSamlClient).toBeTruthy(); - // tslint:disable-next-line: no-string-literal + expect(customSamlClient["options"]).toHaveProperty( "validateInResponseTo", false diff --git a/src/strategy/__tests__/spid.test.ts b/src/strategy/__tests__/spid.test.ts index c3d192dc..c9dd31e1 100644 --- a/src/strategy/__tests__/spid.test.ts +++ b/src/strategy/__tests__/spid.test.ts @@ -7,11 +7,9 @@ import { getSamlOptions } from "../../utils/saml"; import * as redisCacheProvider from "../redis_cache_provider"; import { SpidStrategy } from "../spid"; -// tslint:disable-next-line: no-any const mockRedisClient: RedisClient = (createMockRedis() as any).createClient(); describe("SamlStrategy prototype arguments check", () => { - // tslint:disable-next-line: no-let no-any let OriginalPassportSaml: any; beforeAll(() => { OriginalPassportSaml = jest.requireActual("passport-saml").Strategy; @@ -30,7 +28,6 @@ describe("SamlStrategy#constructor", () => { }); it("should SamlStrategy constructor has 2 parameters", () => { const expectedNoopCacheProvider = { - // tslint:disable-next-line: no-empty get: () => () => { return; }, @@ -54,18 +51,18 @@ describe("SamlStrategy#constructor", () => { }, mockRedisClient ); - // tslint:disable-next-line: no-string-literal + expect(spidStrategy["options"]).toHaveProperty( "requestIdExpirationPeriodMs", 900000 ); - // tslint:disable-next-line: no-string-literal + expect(spidStrategy["options"]).toHaveProperty( "cacheProvider", expectedNoopCacheProvider ); expect(mockNoopCacheProvider).toBeCalledTimes(1); - // tslint:disable-next-line: no-string-literal + expect(spidStrategy["extendedRedisCacheProvider"]).toBeTruthy(); }); }); diff --git a/src/strategy/redis_cache_provider.ts b/src/strategy/redis_cache_provider.ts index 7263f848..984c515b 100644 --- a/src/strategy/redis_cache_provider.ts +++ b/src/strategy/redis_cache_provider.ts @@ -1,8 +1,5 @@ -// tslint:disable-next-line: no-submodule-imports import { UTCISODateFromString } from "@pagopa/ts-commons/lib/dates"; -// tslint:disable-next-line: no-submodule-imports import { readableReport } from "@pagopa/ts-commons/lib/reporters"; -// tslint:disable-next-line: no-submodule-imports import { Second } from "@pagopa/ts-commons/lib/units"; import * as E from "fp-ts/lib/Either"; import { pipe } from "fp-ts/lib/function"; @@ -22,154 +19,145 @@ const SAMLRequestCacheItem = t.interface({ }); export interface IExtendedCacheProvider { - save: ( + readonly save: ( RequestXML: string, samlConfig: SamlConfig ) => TaskEither; - get: (AuthnRequestID: string) => TaskEither; - remove: (AuthnRequestID: string) => TaskEither; + readonly get: ( + AuthnRequestID: string + ) => TaskEither; + readonly remove: (AuthnRequestID: string) => TaskEither; } // those methods must never fail since there's // practically no error handling in passport-saml // (a very bad lot of spaghetti code) -export const noopCacheProvider = (): CacheProvider => { - return { - // saves the key with the optional value - // invokes the callback with the value saved - save(_, value, callback): void { - const v = { - createdAt: new Date(), - value - }; - callback(null, v); - }, - // invokes 'callback' and passes the value if found, null otherwise - get(_, callback): void { - callback(null, {}); - }, - // removes the key from the cache, invokes `callback` with the - // key removed, null if no key is removed - remove(key, callback): void { - callback(null, key); - } - }; -}; +export const noopCacheProvider = (): CacheProvider => ({ + // invokes 'callback' and passes the value if found, null otherwise + get: (_, callback): void => { + callback(null, {}); + }, + + // removes the key from the cache, invokes `callback` with the + // key removed, null if no key is removed + remove: (key, callback): void => { + callback(null, key); + }, + + // saves the key with the optional value + // invokes the callback with the value saved + save: (_, value, callback): void => { + const v = { + createdAt: new Date(), + value + }; + callback(null, v); + } +}); export const getExtendedRedisCacheProvider = ( redisClient: redis.RedisClient, // 1 hour by default keyExpirationPeriodSeconds: Second = 3600 as Second, keyPrefix: string = "SAML-EXT-" -): IExtendedCacheProvider => { - return { - save( - RequestXML: string, - samlConfig: SamlConfig - ): TaskEither { - return pipe( +): IExtendedCacheProvider => ({ + get: (AuthnRequestID: string): TaskEither => + pipe( + TE.taskify( + (key: string, callback: (e: Error | null, value?: string) => void) => { + redisClient.get(key, (e, v) => + // redis callbacks consider empty value as null instead of undefined, + // hence the need for the following wrapper to convert nulls to undefined + callback(e, v === null ? undefined : v) + ); + } + )(`${keyPrefix}${AuthnRequestID}`), + TE.mapLeft( + err => new Error(`SAML#ExtendedRedisCacheProvider: get() error ${err}`) + ), + TE.chain(value => TE.fromEither( - E.fromOption( - () => - new Error( - `SAML#ExtendedRedisCacheProvider: missing AuthnRequest ID` - ) - )(getIDFromRequest(RequestXML)) - ), - TE.chain(AuthnRequestID => pipe( - TE.fromEither( - E.fromOption( - () => new Error("Missing idpIssuer inside configuration") - )(O.fromNullable(samlConfig.idpIssuer)) - ), - TE.map(idpIssuer => ({ idpIssuer, AuthnRequestID })) - ) - ), - TE.chain(_ => { - const v: SAMLRequestCacheItem = { - RequestXML, - createdAt: new Date(), - idpIssuer: _.idpIssuer - }; - return pipe( - TE.taskify( - ( - key: string, - data: string, - flag: "EX", - expiration: number, - callback: (err: Error | null, value: unknown) => void - ) => redisClient.set(key, data, flag, expiration, callback) - )( - `${keyPrefix}${_.AuthnRequestID}`, - JSON.stringify(v), - "EX", - keyExpirationPeriodSeconds - ), - TE.mapLeft( - err => - new Error(`SAML#ExtendedRedisCacheProvider: set() error ${err}`) - ), - TE.map(() => v) - ); - }) - ); - }, - get(AuthnRequestID: string): TaskEither { - return pipe( - TE.taskify( - ( - key: string, - callback: (e: Error | null, value?: string) => void - ) => { - redisClient.get(key, (e, v) => - // redis callbacks consider empty value as null instead of undefined, - // hence the need for the following wrapper to convert nulls to undefined - callback(e, v === null ? undefined : v) - ); - } - )(`${keyPrefix}${AuthnRequestID}`), - TE.mapLeft( - err => - new Error(`SAML#ExtendedRedisCacheProvider: get() error ${err}`) - ), - TE.chain(value => - TE.fromEither( - pipe( - E.parseJSON(value, E.toError), - E.chain(_ => - pipe( - SAMLRequestCacheItem.decode(_), - E.mapLeft( - __ => - new Error( - `SAML#ExtendedRedisCacheProvider: get() error ${readableReport( - __ - )}` - ) - ) + E.parseJSON(value, E.toError), + E.chain(_ => + pipe( + SAMLRequestCacheItem.decode(_), + E.mapLeft( + __ => + new Error( + `SAML#ExtendedRedisCacheProvider: get() error ${readableReport( + __ + )}` + ) ) ) ) ) ) - ); - }, - remove(AuthnRequestID): TaskEither { - return pipe( - TE.taskify( - ( - key: string, - callback: (err: Error | null, value?: unknown) => void - ) => redisClient.del(key, callback) - )(`${keyPrefix}${AuthnRequestID}`), - TE.mapLeft( - err => - new Error(`SAML#ExtendedRedisCacheProvider: remove() error ${err}`) - ), - TE.map(() => AuthnRequestID) - ); - } - }; -}; + ) + ), + remove: (AuthnRequestID): TaskEither => + pipe( + TE.taskify( + (key: string, callback: (err: Error | null, value?: unknown) => void) => + redisClient.del(key, callback) + )(`${keyPrefix}${AuthnRequestID}`), + TE.mapLeft( + err => + new Error(`SAML#ExtendedRedisCacheProvider: remove() error ${err}`) + ), + TE.map(() => AuthnRequestID) + ), + save: ( + RequestXML: string, + samlConfig: SamlConfig + ): TaskEither => + pipe( + TE.fromEither( + E.fromOption( + () => + new Error( + `SAML#ExtendedRedisCacheProvider: missing AuthnRequest ID` + ) + )(getIDFromRequest(RequestXML)) + ), + TE.chain(AuthnRequestID => + pipe( + TE.fromEither( + E.fromOption( + () => new Error("Missing idpIssuer inside configuration") + )(O.fromNullable(samlConfig.idpIssuer)) + ), + TE.map(idpIssuer => ({ AuthnRequestID, idpIssuer })) + ) + ), + TE.chain(_ => { + const v: SAMLRequestCacheItem = { + RequestXML, + createdAt: new Date(), + idpIssuer: _.idpIssuer + }; + return pipe( + TE.taskify( + ( + key: string, + data: string, + flag: "EX", + expiration: number, + callback: (err: Error | null, value: unknown) => void + ) => redisClient.set(key, data, flag, expiration, callback) + )( + `${keyPrefix}${_.AuthnRequestID}`, + JSON.stringify(v), + "EX", + keyExpirationPeriodSeconds + ), + TE.mapLeft( + err => + new Error(`SAML#ExtendedRedisCacheProvider: set() error ${err}`) + ), + TE.map(() => v) + ); + }) + ) +}); diff --git a/src/strategy/saml_client.ts b/src/strategy/saml_client.ts index aedd3864..2eed8f67 100644 --- a/src/strategy/saml_client.ts +++ b/src/strategy/saml_client.ts @@ -13,11 +13,11 @@ import { export class CustomSamlClient extends PassportSaml.SAML { constructor( - private config: SamlConfig, - private extededCacheProvider: IExtendedCacheProvider, - private tamperAuthorizeRequest?: XmlTamperer, - private preValidateResponse?: PreValidateResponseT, - private doneCb?: PreValidateResponseDoneCallbackT + private readonly config: SamlConfig, + private readonly extededCacheProvider: IExtendedCacheProvider, + private readonly tamperAuthorizeRequest?: XmlTamperer, + private readonly preValidateResponse?: PreValidateResponseT, + private readonly doneCb?: PreValidateResponseDoneCallbackT ) { // validateInResponseTo must be set to false to disable // internal cacheProvider of passport-saml @@ -32,8 +32,8 @@ export class CustomSamlClient extends PassportSaml.SAML { * the response XML to satisfy SPID protocol constrains */ public validatePostResponse( - body: { SAMLResponse: string }, - // tslint:disable-next-line: bool-param-default + body: { readonly SAMLResponse: string }, + callback: (err: Error, profile?: unknown, loggedOut?: boolean) => void ): void { if (this.preValidateResponse) { @@ -49,7 +49,7 @@ export class CustomSamlClient extends PassportSaml.SAML { // go on with checks in case no error is found return super.validatePostResponse(body, (error, __, ___) => { if (!error && isValid && AuthnRequestID) { - // tslint:disable-next-line: no-floating-promises + // eslint-disable-next-line @typescript-eslint/no-floating-promises pipe( this.extededCacheProvider.remove(AuthnRequestID), TE.map(_ => callback(error, __, ___)), @@ -77,7 +77,8 @@ export class CustomSamlClient extends PassportSaml.SAML { ): void { const newCallback = pipe( O.fromNullable(this.tamperAuthorizeRequest), - O.map(tamperAuthorizeRequest => (e: Error, xml?: string) => { + O.map(tamperAuthorizeRequest => (e: Error, xml?: string): void => { + // eslint-disable-next-line @typescript-eslint/no-floating-promises, @typescript-eslint/no-unused-expressions xml ? pipe( tamperAuthorizeRequest(xml), diff --git a/src/strategy/spid.ts b/src/strategy/spid.ts index f10451db..69b74225 100644 --- a/src/strategy/spid.ts +++ b/src/strategy/spid.ts @@ -11,10 +11,8 @@ import { import { Strategy as SamlStrategy } from "passport-saml"; import { RedisClient } from "redis"; -// tslint:disable-next-line: no-submodule-imports import { MultiSamlConfig } from "passport-saml/multiSamlStrategy"; -// tslint:disable-next-line: no-submodule-imports import { Second } from "@pagopa/ts-commons/lib/units"; import { pipe } from "fp-ts/lib/function"; import { DoneCallbackT } from ".."; @@ -37,27 +35,28 @@ export type PreValidateResponseT = ( body: unknown, extendedRedisCacheProvider: IExtendedCacheProvider, doneCb: PreValidateResponseDoneCallbackT | undefined, - // tslint:disable-next-line: bool-param-default + callback: ( err: Error | null, - // tslint:disable-next-line: bool-param-default + isValid?: boolean, InResponseTo?: string ) => void ) => void; export class SpidStrategy extends SamlStrategy { - private extendedRedisCacheProvider: IExtendedCacheProvider; + private readonly extendedRedisCacheProvider: IExtendedCacheProvider; + // eslint-disable-next-line max-params constructor( - private options: SamlConfig, - private getSamlOptions: MultiSamlConfig["getSamlOptions"], + private readonly options: SamlConfig, + private readonly getSamlOptions: MultiSamlConfig["getSamlOptions"], verify: VerifyWithRequest | VerifyWithoutRequest, - private redisClient: RedisClient, - private tamperAuthorizeRequest?: XmlTamperer, - private tamperMetadata?: XmlTamperer, - private preValidateResponse?: PreValidateResponseT, - private doneCb?: DoneCallbackT + private readonly redisClient: RedisClient, + private readonly tamperAuthorizeRequest?: XmlTamperer, + private readonly tamperMetadata?: XmlTamperer, + private readonly preValidateResponse?: PreValidateResponseT, + private readonly doneCb?: DoneCallbackT ) { super(options, verify); if (!options.requestIdExpirationPeriodMs) { diff --git a/src/types/IDPEntityDescriptor.ts b/src/types/IDPEntityDescriptor.ts index 964f3561..32773d71 100644 --- a/src/types/IDPEntityDescriptor.ts +++ b/src/types/IDPEntityDescriptor.ts @@ -1,7 +1,5 @@ -// tslint:disable-next-line: no-submodule-imports import { NonEmptyString } from "@pagopa/ts-commons/lib/strings"; import * as t from "io-ts"; -// tslint:disable-next-line: no-submodule-imports import { nonEmptyArray as createNonEmptyArrayFromArray } from "io-ts-types/nonEmptyArray"; export const IDPEntityDescriptor = t.interface({ diff --git a/src/utils/__mocks__/saml.ts b/src/utils/__mocks__/saml.ts index 42db2fa2..b7334c1d 100644 --- a/src/utils/__mocks__/saml.ts +++ b/src/utils/__mocks__/saml.ts @@ -137,7 +137,7 @@ export const getSamlResponse: (params?: IGetSAMLResponseParams) => string = ( ${ hasResponseSignature !== false - ? // tslint:disable-next-line: no-nested-template-literals + ? ` diff --git a/src/utils/__tests__/metadata.test.ts b/src/utils/__tests__/metadata.test.ts index dde5e5ed..d4e5e074 100644 --- a/src/utils/__tests__/metadata.test.ts +++ b/src/utils/__tests__/metadata.test.ts @@ -1,5 +1,4 @@ import { isLeft, isRight, left } from "fp-ts/lib/Either"; -// tslint:disable-next-line: no-submodule-imports import * as nock from "nock"; import { CIE_IDP_IDENTIFIERS, SPID_IDP_IDENTIFIERS } from "../../config"; import cieIdpMetadata from "../__mocks__/cie-idp-metadata"; diff --git a/src/utils/__tests__/middleware.test.ts b/src/utils/__tests__/middleware.test.ts index f38ab0af..9fd0a2f9 100644 --- a/src/utils/__tests__/middleware.test.ts +++ b/src/utils/__tests__/middleware.test.ts @@ -1,4 +1,3 @@ -// tslint:disable-next-line: ordered-imports import { left, right } from "fp-ts/lib/Either"; import { fromEither } from "fp-ts/lib/TaskEither"; import { SamlConfig } from "passport-saml"; @@ -125,13 +124,11 @@ describe("getSpidStrategyOptionsUpdater", () => { left>(expectedFetchError) ); }); - // tslint:disable-next-line: no-identical-functions mockFetchIdpsMetadata.mockImplementationOnce(() => { return fromEither( right>(mockCIEIdpMetadata) ); }); - // tslint:disable-next-line: no-identical-functions mockFetchIdpsMetadata.mockImplementationOnce(() => { return fromEither( right>( @@ -189,7 +186,6 @@ describe("getSpidStrategyOptionsUpdater", () => { name: "Required attrs" } }; - // tslint:disable-next-line: no-identical-functions mockFetchIdpsMetadata.mockImplementationOnce(() => { return fromEither( right>(mockIdpMetadata) diff --git a/src/utils/__tests__/saml.test.ts b/src/utils/__tests__/saml.test.ts index 3a103d88..a807eb95 100644 --- a/src/utils/__tests__/saml.test.ts +++ b/src/utils/__tests__/saml.test.ts @@ -53,7 +53,6 @@ describe("getXmlFromSamlResponse", () => { }); }); -// tslint:disable-next-line: no-big-function describe("preValidateResponse", () => { const mockCallback = jest.fn(); const mockGetXmlFromSamlResponse = jest @@ -440,7 +439,6 @@ describe("preValidateResponse", () => { mockGetXmlFromSamlResponse.mockImplementationOnce(() => tryCatch(() => new DOMParser().parseFromString(samlResponseCIE)) ); - // tslint:disable-next-line: no-identical-functions mockGet.mockImplementation(() => { return fromEither( right({ diff --git a/src/utils/logger.ts b/src/utils/logger.ts index 6424fd0b..7e8272e8 100644 --- a/src/utils/logger.ts +++ b/src/utils/logger.ts @@ -6,9 +6,9 @@ export const logger = createLogger({ label({ label: "io-spid-commons" }), timestamp(), format.splat(), - printf(info => { - return `${info.timestamp} [${info.label}] ${info.level}: ${info.message}`; - }) + printf( + info => `${info.timestamp} [${info.label}] ${info.level}: ${info.message}` + ) ), level: process.env.NODE_ENV !== "production" ? "debug" : "info", transports: [new transports.Console()] diff --git a/src/utils/metadata.ts b/src/utils/metadata.ts index b3d969c1..c6a00770 100644 --- a/src/utils/metadata.ts +++ b/src/utils/metadata.ts @@ -1,7 +1,6 @@ /** * Methods to fetch and parse Identity service providers metadata. */ -// tslint:disable-next-line: no-submodule-imports import { errorsToReadableMessages } from "@pagopa/ts-commons/lib/reporters"; import * as E from "fp-ts/lib/Either"; import { Either } from "fp-ts/lib/Either"; @@ -35,10 +34,10 @@ const METADATA_NAMESPACES = { * * An example file is provided in /test_idps/spid-entities-idps.xml of this project. */ -export function parseIdpMetadata( +export const parseIdpMetadata = ( ipdMetadataPage: string -): Either> { - return pipe( +): Either> => + pipe( E.right(new DOMParser().parseFromString(ipdMetadataPage)), E.chain( E.fromPredicate( @@ -112,7 +111,6 @@ export function parseIdpMetadata( ); }) ); -} /** * Map provided idpMetadata into an object with idp key whitelisted in ipdIds. @@ -136,20 +134,17 @@ export const mapIpdMetadata = ( /** * Lazy version of mapIpdMetadata() */ -export const mapIpdMetadataL = ( - idpIds: Record -): (( +export const mapIpdMetadataL = (idpIds: Record) => ( idpMetadata: ReadonlyArray -) => Record) => idpMetadata => - mapIpdMetadata(idpMetadata, idpIds); +): Record => mapIpdMetadata(idpMetadata, idpIds); /** * Fetch an XML from a remote URL */ -export function fetchMetadataXML( +export const fetchMetadataXML = ( idpMetadataUrl: string -): TaskEither { - return pipe( +): TaskEither => + pipe( TE.tryCatch(() => { logger.info("Fetching SPID metadata from [%s]...", idpMetadataUrl); return nodeFetch(idpMetadataUrl); @@ -165,17 +160,16 @@ export function fetchMetadataXML( ), TE.chain(p => TE.tryCatch(() => p.text(), E.toError)) ); -} /** * Load idp Metadata from a remote url, parse infos and return a mapped and whitelisted idp options * for spidStrategy object. */ -export function fetchIdpsMetadata( +export const fetchIdpsMetadata = ( idpMetadataUrl: string, idpIds: Record -): TaskEither> { - return pipe( +): TaskEither> => + pipe( fetchMetadataXML(idpMetadataUrl), TE.chain(idpMetadataXML => { logger.info("Parsing SPID metadata for %s", idpMetadataUrl); @@ -198,17 +192,16 @@ export function fetchIdpsMetadata( return mapIpdMetadata(idpMetadata, idpIds); }) ); -} /** * This method expects in input a Record where key are idp identifier * and values are an XML string (idp metadata). * Provided metadata are parsed and converted into IDP Entity Descriptor objects. */ -export function parseStartupIdpsMetadata( +export const parseStartupIdpsMetadata = ( idpsMetadata: Record -): Record { - return pipe( +): Record => + pipe( idpsMetadata, R.reduce(Ord)( [] as ReadonlyArray, @@ -222,4 +215,3 @@ export function parseStartupIdpsMetadata( ), mapIpdMetadataL({ ...SPID_IDP_IDENTIFIERS, ...CIE_IDP_IDENTIFIERS }) ); -} diff --git a/src/utils/middleware.ts b/src/utils/middleware.ts index b3106773..88a4654b 100644 --- a/src/utils/middleware.ts +++ b/src/utils/middleware.ts @@ -1,7 +1,6 @@ /** * SPID Passport strategy */ -// tslint:disable-next-line: no-submodule-imports import { EmailString, NonEmptyString } from "@pagopa/ts-commons/lib/strings"; import * as express from "express"; import * as A from "fp-ts/lib/Array"; @@ -23,9 +22,9 @@ import { fetchIdpsMetadata } from "./metadata"; import { logSamlCertExpiration, SamlAttributeT } from "./saml"; interface IServiceProviderOrganization { - URL: string; - displayName: string; - name: string; + readonly URL: string; + readonly displayName: string; + readonly name: string; } export enum ContactType { @@ -69,18 +68,18 @@ const ContactPerson = t.intersection([ ]); type ContactPerson = t.TypeOf; export interface IServiceProviderConfig { - requiredAttributes: { - attributes: ReadonlyArray; - name: string; + readonly requiredAttributes: { + readonly attributes: ReadonlyArray; + readonly name: string; }; - spidCieUrl?: string; - spidTestEnvUrl?: string; - spidValidatorUrl?: string; - IDPMetadataUrl: string; - organization: IServiceProviderOrganization; - contacts?: ReadonlyArray; - publicCert: string; - strictResponseValidation?: StrictResponseValidationOptions; + readonly spidCieUrl?: string; + readonly spidTestEnvUrl?: string; + readonly spidValidatorUrl?: string; + readonly IDPMetadataUrl: string; + readonly organization: IServiceProviderOrganization; + readonly contacts?: ReadonlyArray; + readonly publicCert: string; + readonly strictResponseValidation?: StrictResponseValidationOptions; } export type StrictResponseValidationOptions = Record< @@ -89,18 +88,17 @@ export type StrictResponseValidationOptions = Record< >; export interface ISpidStrategyOptions { - idp: { [key: string]: IDPEntityDescriptor | undefined }; - // tslint:disable-next-line: no-any - sp: SamlConfig & { - attributes: { - attributes: { - attributes: ReadonlyArray; - name: string; + readonly idp: { readonly [key: string]: IDPEntityDescriptor | undefined }; + readonly sp: SamlConfig & { + readonly attributes: { + readonly attributes: { + readonly attributes: ReadonlyArray; + readonly name: string; }; - name: string; + readonly name: string; }; } & { - organization: IServiceProviderOrganization; + readonly organization: IServiceProviderOrganization; }; } @@ -109,25 +107,23 @@ export interface ISpidStrategyOptions { * extending the provided SamlOption with the service provider configuration * and the idps Options */ -export function makeSpidStrategyOptions( +export const makeSpidStrategyOptions = ( samlConfig: SamlConfig, serviceProviderConfig: IServiceProviderConfig, idpOptionsRecord: Record -): ISpidStrategyOptions { - return { - idp: idpOptionsRecord, - sp: { - ...samlConfig, - attributes: { - attributes: serviceProviderConfig.requiredAttributes, - name: serviceProviderConfig.requiredAttributes.name - }, - identifierFormat: "urn:oasis:names:tc:SAML:2.0:nameid-format:transient", - organization: serviceProviderConfig.organization, - signatureAlgorithm: "sha256" - } - }; -} +): ISpidStrategyOptions => ({ + idp: idpOptionsRecord, + sp: { + ...samlConfig, + attributes: { + attributes: serviceProviderConfig.requiredAttributes, + name: serviceProviderConfig.requiredAttributes.name + }, + identifierFormat: "urn:oasis:names:tc:SAML:2.0:nameid-format:transient", + organization: serviceProviderConfig.organization, + signatureAlgorithm: "sha256" + } +}); /** * Merge strategy configuration with metadata from IDP. @@ -138,7 +134,7 @@ export function makeSpidStrategyOptions( export const getSpidStrategyOptionsUpdater = ( samlConfig: SamlConfig, serviceProviderConfig: IServiceProviderConfig -): (() => T.Task) => () => { +) => (): T.Task => { const idpOptionsTasks = [ pipe( fetchIdpsMetadata( @@ -196,7 +192,7 @@ export const getSpidStrategyOptionsUpdater = ( ); return pipe( A.sequence(T.ApplicativePar)(idpOptionsTasks), - // tslint:disable-next-line: no-inferred-empty-object-type + T.map(A.reduce({}, (prev, current) => ({ ...prev, ...current }))), T.map(idpOptionsRecord => { logSamlCertExpiration(serviceProviderConfig.publicCert); @@ -218,9 +214,7 @@ const SPID_STRATEGY_OPTIONS_KEY = "spidStrategyOptions"; */ export const getSpidStrategyOption = ( app: express.Application -): ISpidStrategyOptions | undefined => { - return app.get(SPID_STRATEGY_OPTIONS_KEY); -}; +): ISpidStrategyOptions | undefined => app.get(SPID_STRATEGY_OPTIONS_KEY); /** * This method is called to set or update Spid Strategy Options. @@ -230,7 +224,7 @@ export const getSpidStrategyOption = ( export const upsertSpidStrategyOption = ( app: express.Application, newSpidStrategyOpts: ISpidStrategyOptions -) => { +): void => { const spidStrategyOptions = getSpidStrategyOption(app); app.set( SPID_STRATEGY_OPTIONS_KEY, @@ -249,7 +243,7 @@ export const upsertSpidStrategyOption = ( /** * SPID strategy factory function. */ -export function makeSpidStrategy( +export const makeSpidStrategy = ( options: ISpidStrategyOptions, getSamlOptions: SpidStrategy["getSamlOptions"], redisClient: RedisClient, @@ -257,8 +251,9 @@ export function makeSpidStrategy( tamperMetadata?: XmlTamperer, preValidateResponse?: PreValidateResponseT, doneCb?: DoneCallbackT -): SpidStrategy { - return new SpidStrategy( + // eslint-disable-next-line max-params +): SpidStrategy => + new SpidStrategy( { ...options, passReqToCallback: true }, getSamlOptions, (_: express.Request, profile: Profile, done: VerifiedCallback) => { @@ -272,4 +267,3 @@ export function makeSpidStrategy( preValidateResponse, doneCb ); -} diff --git a/src/utils/response.ts b/src/utils/response.ts index a3717383..5e7cffa5 100644 --- a/src/utils/response.ts +++ b/src/utils/response.ts @@ -1,6 +1,5 @@ import { DOMParser } from "xmldom"; -// tslint:disable-next-line: no-submodule-imports import { ResponseErrorInternal } from "@pagopa/ts-commons/lib/responses"; import { NextFunction, Request, Response } from "express"; import { pipe } from "fp-ts/lib/function"; @@ -14,8 +13,8 @@ import { SAML_NAMESPACE } from "./saml"; * ie. for https://www.spid.gov.it/SpidL2 * returns "https://www.spid.gov.it/SpidL2" */ -export function getAuthnContextFromResponse(xml: string): Option { - return pipe( +export const getAuthnContextFromResponse = (xml: string): Option => + pipe( O.fromNullable(xml), O.chain(xmlStr => O.tryCatch(() => new DOMParser().parseFromString(xmlStr)) @@ -31,27 +30,22 @@ export function getAuthnContextFromResponse(xml: string): Option { : O.none ), O.chain(responseAuthLevelEl => - responseAuthLevelEl && - responseAuthLevelEl[0] && - responseAuthLevelEl[0].textContent + responseAuthLevelEl?.[0]?.textContent ? O.some(responseAuthLevelEl[0].textContent.trim()) : O.none ) ); -} -export function middlewareCatchAsInternalError( +export const middlewareCatchAsInternalError = ( f: (req: Request, res: Response, next: NextFunction) => unknown, message: string = "Exception while calling express middleware" -): (req: Request, res: Response, next: NextFunction) => void { - return (req: Request, res: Response, next: NextFunction) => { - try { - f(req, res, next); - } catch (_) { - // Send a ResponseErrorInternal only if a response was not already sent to the client - if (!res.headersSent) { - return ResponseErrorInternal(`${message} [${_}]`).apply(res); - } +) => (req: Request, res: Response, next: NextFunction): void => { + try { + f(req, res, next); + } catch (_) { + // Send a ResponseErrorInternal only if a response was not already sent to the client + if (!res.headersSent) { + return ResponseErrorInternal(`${message} [${_}]`).apply(res); } - }; -} + } +}; diff --git a/src/utils/saml.ts b/src/utils/saml.ts index 39965df0..e3ecf947 100644 --- a/src/utils/saml.ts +++ b/src/utils/saml.ts @@ -4,9 +4,7 @@ * SPID protocol has some peculiarities that need to be addressed * to make request, metadata and responses compliant. */ -// tslint:disable-next-line: no-submodule-imports import { UTCISODateFromString } from "@pagopa/ts-commons/lib/dates"; -// tslint:disable-next-line: no-submodule-imports import { NonEmptyString } from "@pagopa/ts-commons/lib/strings"; import { predicate as PR } from "fp-ts"; import { difference } from "fp-ts/lib/Array"; @@ -58,18 +56,19 @@ export { export type SamlAttributeT = keyof typeof SPID_USER_ATTRIBUTES; +// eslint-disable-next-line max-lines-per-function export const getPreValidateResponse = ( strictValidationOptions?: StrictResponseValidationOptions, eventHandler?: EventTracker - // tslint:disable-next-line: no-big-function + // eslint-disable-next-line max-lines-per-function ): PreValidateResponseT => ( samlConfig, body, extendedCacheProvider, doneCb, callback - // tslint:disable-next-line: no-big-function -) => { + // eslint-disable-next-line sonarjs/cognitive-complexity +): Promise | E.Right> => { const maybeDoc = getXmlFromSamlResponse(body); if (O.isNone(maybeDoc)) { @@ -94,38 +93,38 @@ export const getPreValidateResponse = ( ); interface IBaseOutput { - InResponseTo: NonEmptyString; - Assertion: Element; - IssueInstant: Date; - Response: Element; - AssertionIssueInstant: Date; + readonly InResponseTo: NonEmptyString; + readonly Assertion: Element; + readonly IssueInstant: Date; + readonly Response: Element; + readonly AssertionIssueInstant: Date; } interface ISamlCacheType { - RequestXML: string; - createdAt: Date; - idpIssuer: string; + readonly RequestXML: string; + readonly createdAt: Date; + readonly idpIssuer: string; } type IRequestAndResponseStep = IBaseOutput & { - SAMLRequestCache: ISamlCacheType; + readonly SAMLRequestCache: ISamlCacheType; }; - type ISAMLRequest = IRequestAndResponseStep & { Request: Document }; + type ISAMLRequest = IRequestAndResponseStep & { readonly Request: Document }; type IIssueInstant = ISAMLRequest & { - RequestIssueInstant: Date; - RequestAuthnRequest: Element; + readonly RequestIssueInstant: Date; + readonly RequestAuthnRequest: Element; }; type IIssueInstantWithAuthnContextCR = IIssueInstant & { - RequestAuthnContextClassRef: NonEmptyString; + readonly RequestAuthnContextClassRef: NonEmptyString; }; interface ITransformValidation { - idpIssuer: string; - message: string; - numberOfTransforms: number; + readonly idpIssuer: string; + readonly message: string; + readonly numberOfTransforms: number; } const responseElementValidationStep: TaskEither< @@ -205,9 +204,9 @@ export const getPreValidateResponse = ( E.fromOption( () => new Error("StatusCode must contain a non empty Value") )(O.fromNullable(StatusCode.getAttribute("Value"))), - E.chain(statusCode => { + E.chain(statusCode => // TODO: Must show an error page to the user (26) - return pipe( + pipe( statusCode, E.fromPredicate( Value => @@ -218,8 +217,8 @@ export const getPreValidateResponse = ( `Value attribute of StatusCode is invalid: ${statusCode}` ) ) - ); - }), + ) + ), E.map(() => _) ) ) @@ -465,7 +464,7 @@ export const getPreValidateResponse = ( return TE.right(Attributes); } const missingAttributes = difference(Eq)( - // tslint:disable-next-line: no-any + // eslint-disable-next-line @typescript-eslint/no-explicit-any (samlConfig as any).attributes?.attributes?.attributes || [ "Request attributes must be defined" ], @@ -567,6 +566,7 @@ export const getPreValidateResponse = ( const validationFailure = (error: Error | ITransformValidation): void => { if (eventHandler) { + // eslint-disable-next-line @typescript-eslint/no-unused-expressions TransformError.is(error) ? eventHandler({ data: { diff --git a/src/utils/samlUtils.ts b/src/utils/samlUtils.ts index 63a73d90..4332514b 100644 --- a/src/utils/samlUtils.ts +++ b/src/utils/samlUtils.ts @@ -4,9 +4,7 @@ * SPID protocol has some peculiarities that need to be addressed * to make request, metadata and responses compliant. */ -// tslint:disable-next-line: no-submodule-imports import { UTCISODateFromString } from "@pagopa/ts-commons/lib/dates"; -// tslint:disable-next-line: no-submodule-imports import { NonEmptyString } from "@pagopa/ts-commons/lib/strings"; import { distanceInWordsToNow, isAfter, subDays } from "date-fns"; import { Request as ExpressRequest } from "express"; @@ -21,7 +19,6 @@ import * as TE from "fp-ts/lib/TaskEither"; import * as t from "io-ts"; import { pki } from "node-forge"; import { SamlConfig } from "passport-saml"; -// tslint:disable-next-line: no-submodule-imports import { MultiSamlConfig } from "passport-saml/multiSamlStrategy"; import * as xmlCrypto from "xml-crypto"; import { Builder, parseStringPromise } from "xml2js"; @@ -39,10 +36,9 @@ import { export type SamlAttributeT = keyof typeof SPID_USER_ATTRIBUTES; interface IEntrypointCerts { - // tslint:disable-next-line: readonly-array - cert: NonEmptyString[]; - entryPoint?: string; - idpIssuer?: string; + readonly cert: ReadonlyArray; + readonly entryPoint?: string; + readonly idpIssuer?: string; } export const SAML_NAMESPACE = { @@ -52,14 +48,26 @@ export const SAML_NAMESPACE = { XMLDSIG: "http://www.w3.org/2000/09/xmldsig#" }; +export const XML_TAGS = { + LANG: "xml:lang" +}; + +export const SPID_TAGS = { + ENTITY_TYPE: "spid:EntityType", + FISCAL_CODE: "spid:FiscalCode", + IPA_CODE: "spid:IPACode", + VAT_NUMBER: "spid:VATNumber" +}; + export const ISSUER_FORMAT = "urn:oasis:names:tc:SAML:2.0:nameid-format:entity"; -const decodeBase64 = (s: string) => Buffer.from(s, "base64").toString("utf8"); +const decodeBase64 = (s: string): string => + Buffer.from(s, "base64").toString("utf8"); /** * Remove prefix and suffix from x509 certificate. */ -const cleanCert = (cert: string) => +const cleanCert = (cert: string): string => cert .replace(/-+BEGIN CERTIFICATE-+\r?\n?/, "") .replace(/-+END CERTIFICATE-+\r?\n?/, "") @@ -71,6 +79,7 @@ const SAMLResponse = t.type({ /** * True if the element contains at least one element signed using hamc + * * @param e */ const isSignedWithHmac = (e: Element): boolean => { @@ -105,18 +114,16 @@ export const getXmlFromSamlResponse = (body: unknown): O.Option => * ie. for ErrorCode nr22 * returns "22" */ -export function getErrorCodeFromResponse(doc: Document): O.Option { - return pipe( +export const getErrorCodeFromResponse = (doc: Document): O.Option => + pipe( O.fromNullable( doc.getElementsByTagNameNS(SAML_NAMESPACE.PROTOCOL, "StatusMessage") ), - O.chain(responseStatusMessageEl => { - return responseStatusMessageEl && - responseStatusMessageEl[0] && - responseStatusMessageEl[0].textContent + O.chain(responseStatusMessageEl => + responseStatusMessageEl?.[0]?.textContent ? O.some(responseStatusMessageEl[0].textContent.trim()) - : O.none; - }), + : O.none + ), O.chain(errorString => { const indexString = "ErrorCode nr"; const errorCode = errorString.slice( @@ -125,19 +132,17 @@ export function getErrorCodeFromResponse(doc: Document): O.Option { return errorCode !== "" ? O.some(errorCode) : O.none; }) ); -} /** * Extracts the issuer field from the response body. */ -export const getSamlIssuer = (doc: Document): O.Option => { - return pipe( +export const getSamlIssuer = (doc: Document): O.Option => + pipe( O.fromNullable( doc.getElementsByTagNameNS(SAML_NAMESPACE.ASSERTION, "Issuer").item(0) ), O.chainNullableK(_ => _.textContent?.trim()) ); -}; /** * Extracts IDP entityID from query parameter (if any). @@ -150,8 +155,8 @@ export const getSamlIssuer = (doc: Document): O.Option => { const getEntrypointCerts = ( req: ExpressRequest, idps: ISpidStrategyOptions["idp"] -): O.Option => { - return pipe( +): O.Option => + pipe( O.fromNullable(req), O.chainNullableK(r => r.query), O.chainNullableK(q => q.entityID), @@ -177,7 +182,7 @@ const getEntrypointCerts = ( O.some({ cert: pipe( idps, - collect(Ord)((_, idp) => (idp && idp.cert ? idp.cert : [])), + collect(Ord)((_, idp) => idp?.cert || []), flatten ), // TODO: leave entryPoint undefined when this gets fixed @@ -186,7 +191,6 @@ const getEntrypointCerts = ( } as IEntrypointCerts) ) ); -}; export const getIDFromRequest = (requestXML: string): O.Option => { const xmlRequest = new DOMParser().parseFromString(requestXML, "text/xml"); @@ -211,7 +215,7 @@ const getAuthnContextValueFromResponse = ( SAML_NAMESPACE.ASSERTION, "AuthnContextClassRef" ); - return responseAuthLevelEl[0] && responseAuthLevelEl[0].textContent + return responseAuthLevelEl[0]?.textContent ? O.some(responseAuthLevelEl[0].textContent.trim()) : O.none; }; @@ -222,8 +226,8 @@ const getAuthnContextValueFromResponse = ( const getAuthSalmOptions = ( req: ExpressRequest, decodedResponse?: string -): O.Option> => { - return pipe( +): O.Option> => + pipe( O.fromNullable(req), O.chainNullableK(r => r.query), O.chainNullableK(q => q.authLevel), @@ -255,12 +259,10 @@ const getAuthSalmOptions = ( pipe( lookup(authnContext, SPID_URLS), // check if the parsed value is a valid SPID AuthLevel - O.map(authLevel => { - return { - authnContext, - forceAuthn: authLevel !== "SpidL1" - }; - }), + O.map(authLevel => ({ + authnContext, + forceAuthn: authLevel !== "SpidL1" + })), O.altW(() => { logger.error( "SPID cannot find a valid authLevel for given authnContext: %s", @@ -273,7 +275,6 @@ const getAuthSalmOptions = ( ) ) ); -}; /** * Reads dates information in x509 certificate @@ -281,7 +282,7 @@ const getAuthSalmOptions = ( * * @param samlCert x509 certificate as string */ -export function logSamlCertExpiration(samlCert: string): void { +export const logSamlCertExpiration = (samlCert: string): void => { try { const out = pki.certificateFromPem(samlCert); if (out.validity.notAfter) { @@ -300,7 +301,7 @@ export function logSamlCertExpiration(samlCert: string): void { } catch (e) { logger.error("Error calculating saml cert expiration: %s", e); } -} +}; /** * This method extracts the correct IDP metadata @@ -316,10 +317,9 @@ export const getSamlOptions: MultiSamlConfig["getSamlOptions"] = ( ) => { try { // Get decoded response - const decodedResponse = - req.body && req.body.SAMLResponse - ? decodeBase64(req.body.SAMLResponse) - : undefined; + const decodedResponse = req.body?.SAMLResponse + ? decodeBase64(req.body.SAMLResponse) + : undefined; // Get SPID strategy options with IDPs metadata const maybeSpidStrategyOptions = O.fromNullable( @@ -345,7 +345,7 @@ export const getSamlOptions: MultiSamlConfig["getSamlOptions"] = ( } const entrypointCerts = pipe( maybeEntrypointCerts, - O.getOrElse(() => ({} as IEntrypointCerts)) + O.getOrElse((): IEntrypointCerts => ({ cert: [] })) ); // Get authnContext (SPID level) and forceAuthn from request payload @@ -363,7 +363,8 @@ export const getSamlOptions: MultiSamlConfig["getSamlOptions"] = ( const options = { ...maybeSpidStrategyOptions.value.sp, ...authOptions, - ...entrypointCerts + ...entrypointCerts, + cert: Array.from(entrypointCerts.cert) }; return done(null, options); } catch (e) { @@ -375,10 +376,11 @@ export const getSamlOptions: MultiSamlConfig["getSamlOptions"] = ( // Service Provider Metadata // +// eslint-disable-next-line @typescript-eslint/explicit-function-return-type const getSpidAttributesMetadata = ( serviceProviderConfig: IServiceProviderConfig -) => { - return serviceProviderConfig.requiredAttributes +) => + serviceProviderConfig.requiredAttributes ? serviceProviderConfig.requiredAttributes.attributes.map(item => ({ $: { FriendlyName: SPID_USER_ATTRIBUTES[item] || "", @@ -387,37 +389,38 @@ const getSpidAttributesMetadata = ( } })) : []; -}; +// eslint-disable-next-line @typescript-eslint/explicit-function-return-type const getSpidOrganizationMetadata = ( serviceProviderConfig: IServiceProviderConfig -) => { - return serviceProviderConfig.organization +) => + serviceProviderConfig.organization ? { Organization: { OrganizationName: { - $: { "xml:lang": "it" }, + $: { [XML_TAGS.LANG]: "it" }, _: serviceProviderConfig.organization.name }, // must appear after organization name - // tslint:disable-next-line: object-literal-sort-keys + // eslint-disable-next-line sort-keys OrganizationDisplayName: { - $: { "xml:lang": "it" }, + $: { [XML_TAGS.LANG]: "it" }, _: serviceProviderConfig.organization.displayName }, OrganizationURL: { - $: { "xml:lang": "it" }, + $: { [XML_TAGS.LANG]: "it" }, _: serviceProviderConfig.organization.URL } } } : {}; -}; +// eslint-disable-next-line @typescript-eslint/explicit-function-return-type const getSpidContactPersonMetadata = ( serviceProviderConfig: IServiceProviderConfig -) => { - return serviceProviderConfig.contacts + // eslint-disable-next-line sonarjs/cognitive-complexity +) => + serviceProviderConfig.contacts ? serviceProviderConfig.contacts .map(item => { const contact = { @@ -432,13 +435,13 @@ const getSpidContactPersonMetadata = ( return { Extensions: { ...(item.extensions.IPACode - ? { "spid:IPACode": item.extensions.IPACode } + ? { [SPID_TAGS.IPA_CODE]: item.extensions.IPACode } : {}), ...(item.extensions.VATNumber - ? { "spid:VATNumber": item.extensions.VATNumber } + ? { [SPID_TAGS.VAT_NUMBER]: item.extensions.VATNumber } : {}), ...(item.extensions?.FiscalCode - ? { "spid:FiscalCode": item.extensions.FiscalCode } + ? { [SPID_TAGS.FISCAL_CODE]: item.extensions.FiscalCode } : {}), ...(item.entityType === EntityType.AGGREGATOR ? { [`spid:${item.extensions.aggregatorType}`]: {} } @@ -447,7 +450,7 @@ const getSpidContactPersonMetadata = ( ...contact, $: { ...contact.$, - "spid:entityType": item.entityType + [SPID_TAGS.ENTITY_TYPE]: item.entityType } }; } @@ -456,12 +459,12 @@ const getSpidContactPersonMetadata = ( // Contacts array is limited to 3 elements .slice(0, 3) : {}; -}; +// eslint-disable-next-line @typescript-eslint/explicit-function-return-type const getKeyInfoForMetadata = (publicCert: string, privateKey: string) => ({ file: privateKey, - getKey: () => Buffer.from(privateKey), - getKeyInfo: () => + getKey: (): Buffer => Buffer.from(privateKey), + getKeyInfo: (): string => `${publicCert}` }); @@ -469,51 +472,52 @@ export const getMetadataTamperer = ( xmlBuilder: Builder, serviceProviderConfig: IServiceProviderConfig, samlConfig: SamlConfig -) => (generateXml: string): TE.TaskEither => { - return pipe( +) => (generateXml: string): TE.TaskEither => + pipe( TE.tryCatch(() => parseStringPromise(generateXml), E.toError), TE.chain(o => TE.tryCatch(async () => { // it is safe to mutate object here since it is // deserialized and serialized locally in this method const sso = o.EntityDescriptor.SPSSODescriptor[0]; - // tslint:disable-next-line: no-object-mutation + // eslint-disable-next-line functional/immutable-data sso.$ = { ...sso.$, AuthnRequestsSigned: true, WantAssertionsSigned: true }; - // tslint:disable-next-line: no-object-mutation + // eslint-disable-next-line functional/immutable-data sso.AssertionConsumerService[0].$.index = 0; - // tslint:disable-next-line: no-object-mutation + // eslint-disable-next-line functional/immutable-data sso.AttributeConsumingService = { $: { index: samlConfig.attributeConsumingServiceIndex }, ServiceName: { $: { - "xml:lang": "it" + [XML_TAGS.LANG]: "it" }, _: serviceProviderConfig.requiredAttributes.name }, // must appear after attributes - // tslint:disable-next-line: object-literal-sort-keys + // eslint-disable-next-line sort-keys RequestedAttribute: getSpidAttributesMetadata(serviceProviderConfig) }; - // tslint:disable-next-line: no-object-mutation + // eslint-disable-next-line functional/immutable-data o.EntityDescriptor = { ...o.EntityDescriptor, ...getSpidOrganizationMetadata(serviceProviderConfig) }; if (serviceProviderConfig.contacts) { - // tslint:disable-next-line: no-object-mutation + // eslint-disable-next-line functional/immutable-data o.EntityDescriptor = { ...o.EntityDescriptor, $: { ...o.EntityDescriptor.$, + // eslint-disable-next-line @typescript-eslint/naming-convention "xmlns:spid": SAML_NAMESPACE.SPID }, - // tslint:disable-next-line: no-inferred-empty-object-type + ContactPerson: getSpidContactPersonMetadata(serviceProviderConfig) }; } @@ -533,15 +537,15 @@ export const getMetadataTamperer = ( } const sig = new xmlCrypto.SignedXml(); const publicCert = cleanCert(serviceProviderConfig.publicCert); - // tslint:disable-next-line: no-object-mutation + // eslint-disable-next-line functional/immutable-data sig.keyInfoProvider = getKeyInfoForMetadata( publicCert, samlConfig.privateCert ); - // tslint:disable-next-line: no-object-mutation + // eslint-disable-next-line functional/immutable-data sig.signatureAlgorithm = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"; - // tslint:disable-next-line: no-object-mutation + // eslint-disable-next-line functional/immutable-data sig.signingKey = samlConfig.privateCert; sig.addReference( "//*[local-name(.)='EntityDescriptor']", @@ -553,13 +557,13 @@ export const getMetadataTamperer = ( ); sig.computeSignature(xml, { // Place the signature tag before all other tags + // eslint-disable-next-line sort-keys location: { reference: "", action: "prepend" } }); return sig.getSignedXml(); }, E.toError) ) ); -}; // // Authorize request @@ -569,20 +573,19 @@ export const getAuthorizeRequestTamperer = ( xmlBuilder: Builder, _: IServiceProviderConfig, samlConfig: SamlConfig -) => (generateXml: string): TE.TaskEither => { - return pipe( +) => (generateXml: string): TE.TaskEither => + pipe( TE.tryCatch(() => parseStringPromise(generateXml), E.toError), TE.chain(o => TE.tryCatch(async () => { // it is safe to mutate object here since it is // deserialized and serialized locally in this method - // tslint:disable-next-line: no-any const authnRequest = o["samlp:AuthnRequest"]; - // tslint:disable-next-line: no-object-mutation no-delete + // eslint-disable-next-line fp/no-delete, functional/immutable-data delete authnRequest["samlp:NameIDPolicy"][0].$.AllowCreate; - // tslint:disable-next-line: no-object-mutation + // eslint-disable-next-line functional/immutable-data authnRequest["saml:Issuer"][0].$.NameQualifier = samlConfig.issuer; - // tslint:disable-next-line: no-object-mutation + // eslint-disable-next-line functional/immutable-data authnRequest["saml:Issuer"][0].$.Format = ISSUER_FORMAT; return o; }, E.toError) @@ -591,7 +594,6 @@ export const getAuthorizeRequestTamperer = ( TE.tryCatch(async () => xmlBuilder.buildObject(obj), E.toError) ) ); -}; // // Validate response @@ -621,9 +623,7 @@ export const validateIssuer = ( E.mapLeft(() => new Error("Issuer element must be not empty")), E.chain( E.fromPredicate( - IssuerTextContent => { - return IssuerTextContent === idpIssuer; - }, + IssuerTextContent => IssuerTextContent === idpIssuer, () => new Error(`Invalid Issuer. Expected value is ${idpIssuer}`) ) ), @@ -635,8 +635,8 @@ export const validateIssuer = ( export const mainAttributeValidation = ( requestOrAssertion: Element, acceptedClockSkewMs: number = 0 -): E.Either => { - return pipe( +): E.Either => + pipe( NonEmptyString.decode(requestOrAssertion.getAttribute("ID")), E.mapLeft(() => new Error("Assertion must contain a non empty ID")), E.map(() => requestOrAssertion.getAttribute("Version")), @@ -663,7 +663,6 @@ export const mainAttributeValidation = ( ) ) ); -}; export const isEmptyNode = (element: Element): boolean => { if (element.childNodes.length > 1) { @@ -671,11 +670,14 @@ export const isEmptyNode = (element: Element): boolean => { } else if ( element.firstChild && element.firstChild.nodeType === element.ELEMENT_NODE + // eslint-disable-next-line sonarjs/no-duplicated-branches ) { return false; } else if ( element.textContent && + // eslint-disable-next-line no-useless-escape element.textContent.replace(/[\r\n\ ]+/g, "") !== "" + // eslint-disable-next-line sonarjs/no-duplicated-branches ) { return false; } @@ -683,7 +685,7 @@ export const isEmptyNode = (element: Element): boolean => { }; const isOverflowNumberOf = ( - elemArray: readonly Element[], + elemArray: ReadonlyArray, maxNumberOfChildren: number ): boolean => elemArray.filter(e => e.nodeType === e.ELEMENT_NODE).length > @@ -699,9 +701,9 @@ export type TransformError = t.TypeOf; export const transformsValidation = ( targetElement: Element, idpIssuer: string -): E.Either => { - return pipe( - O.fromPredicate((elements: readonly Element[]) => elements.length > 0)( +): E.Either => + pipe( + O.fromPredicate((elements: ReadonlyArray) => elements.length > 0)( Array.from( targetElement.getElementsByTagNameNS( SAML_NAMESPACE.XMLDSIG, @@ -714,7 +716,7 @@ export const transformsValidation = ( transformElements => pipe( E.fromPredicate( - (_: readonly Element[]) => !isOverflowNumberOf(_, 4), + (_: ReadonlyArray) => !isOverflowNumberOf(_, 4), _ => TransformError.encode({ idpIssuer, @@ -726,13 +728,12 @@ export const transformsValidation = ( ) ) ); -}; const notOnOrAfterValidation = ( element: Element, acceptedClockSkewMs: number = 0 -) => { - return pipe( +): E.Either => + pipe( NonEmptyString.decode(element.getAttribute("NotOnOrAfter")), E.mapLeft( () => new Error("NotOnOrAfter attribute must be a non empty string") @@ -749,14 +750,13 @@ const notOnOrAfterValidation = ( ) ) ); -}; +// eslint-disable-next-line max-lines-per-function export const assertionValidation = ( Assertion: Element, samlConfig: SamlConfig, InResponseTo: string, requestAuthnContextClassRef: string - // tslint:disable-next-line: no-big-function ): E.Either> => { const acceptedClockSkewMs = samlConfig.acceptedClockSkewMs || 0; return pipe( @@ -769,7 +769,7 @@ export const assertionValidation = ( ) ), E.chain(notSignedWithHmacPredicate), - // tslint:disable-next-line: no-big-function + // eslint-disable-next-line max-lines-per-function, sonarjs/cognitive-complexity E.chain(() => pipe( E.fromOption(() => new Error("Subject element must be present"))( @@ -952,7 +952,7 @@ export const assertionValidation = ( ) ) ), - // tslint:disable-next-line: no-big-function + // eslint-disable-next-line max-lines-per-function E.chain(() => pipe( E.fromOption( @@ -1015,6 +1015,7 @@ export const assertionValidation = ( E.chain( E.fromPredicate( PR.not(isEmptyNode), + // eslint-disable-next-line sonarjs/no-identical-functions () => new Error( "AudienceRestriction element must be present and not empty" @@ -1107,19 +1108,17 @@ export const assertionValidation = ( ), E.chain( E.fromPredicate( - AuthnContextClassRef => { - return requestAuthnContextClassRef === - SPID_LEVELS.SpidL2 + AuthnContextClassRef => + requestAuthnContextClassRef === SPID_LEVELS.SpidL2 ? AuthnContextClassRef === SPID_LEVELS.SpidL2 || - AuthnContextClassRef === SPID_LEVELS.SpidL3 + AuthnContextClassRef === SPID_LEVELS.SpidL3 : requestAuthnContextClassRef === SPID_LEVELS.SpidL1 ? AuthnContextClassRef === SPID_LEVELS.SpidL1 || AuthnContextClassRef === SPID_LEVELS.SpidL2 || AuthnContextClassRef === SPID_LEVELS.SpidL3 : requestAuthnContextClassRef === - AuthnContextClassRef; - }, + AuthnContextClassRef, () => new Error( "AuthnContextClassRef value not expected" diff --git a/tslint.json b/tslint.json deleted file mode 100644 index 51398f0a..00000000 --- a/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "defaultSeverity": "error", - "extends": [ - "italia-tslint-rules/strong" - ], - "jsRules": {}, - "rules": {}, - "rulesDirectory": [] -} diff --git a/yarn.lock b/yarn.lock index a41a9721..6a56a4cd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,13 @@ # yarn lockfile v1 +"@babel/code-frame@7.12.11": + version "7.12.11" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" + integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw== + dependencies: + "@babel/highlight" "^7.10.4" + "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.14.5.tgz#23b08d740e83f49c5e59945fbf1b43e80bbf4edb" @@ -146,6 +153,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.9.tgz#6654d171b2024f6d8ee151bf2509699919131d48" integrity sha512-pQYxPY0UP6IHISRitNe8bsijHex4TWZXi2HwKVsjPiltzlhse2znVcm9Ace510VT1kxIHjGJCZZQBX2gJDbo0g== +"@babel/helper-validator-identifier@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz#e8c602438c4a8195751243da9031d1607d247cad" + integrity sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw== + "@babel/helper-validator-option@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz#6e72a1fff18d5dfcb878e1e62f1a021c4b72d5a3" @@ -160,6 +172,15 @@ "@babel/traverse" "^7.15.0" "@babel/types" "^7.15.0" +"@babel/highlight@^7.10.4": + version "7.17.12" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.17.12.tgz#257de56ee5afbd20451ac0a75686b6b404257351" + integrity sha512-7yykMVF3hfZY2jsHZEEgLc+3x4o1O+fYyULu11GynEUQNwB6lua+IIQn1FiJxNucd5UlyJryrwsOh8PL9Sn8Qg== + dependencies: + "@babel/helper-validator-identifier" "^7.16.7" + chalk "^2.0.0" + js-tokens "^4.0.0" + "@babel/highlight@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.14.5.tgz#6861a52f03966405001f6aa534a01a24d99e8cd9" @@ -238,6 +259,35 @@ enabled "2.0.x" kuler "^2.0.0" +"@eslint/eslintrc@^0.4.3": + version "0.4.3" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c" + integrity sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw== + dependencies: + ajv "^6.12.4" + debug "^4.1.1" + espree "^7.3.0" + globals "^13.9.0" + ignore "^4.0.6" + import-fresh "^3.2.1" + js-yaml "^3.13.1" + minimatch "^3.0.4" + strip-json-comments "^3.1.1" + +"@humanwhocodes/config-array@^0.5.0": + version "0.5.0" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.5.0.tgz#1407967d4c6eecd7388f83acf1eaf4d0c6e58ef9" + integrity sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg== + dependencies: + "@humanwhocodes/object-schema" "^1.2.0" + debug "^4.1.1" + minimatch "^3.0.4" + +"@humanwhocodes/object-schema@^1.2.0": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" + integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== + "@jest/console@^24.7.1", "@jest/console@^24.9.0": version "24.9.0" resolved "https://registry.yarnpkg.com/@jest/console/-/console-24.9.0.tgz#79b1bc06fb74a8cfb01cbdedf945584b1b9707f0" @@ -386,6 +436,27 @@ "@types/istanbul-reports" "^1.1.1" "@types/yargs" "^13.0.0" +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + dependencies: + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== + +"@nodelib/fs.walk@^1.2.3": + version "1.2.8" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== + dependencies: + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" + "@octokit/auth-token@^2.4.0": version "2.4.5" resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-2.4.5.tgz#568ccfb8cb46f36441fac094ce34f7a875b197f3" @@ -493,6 +564,28 @@ dependencies: "@octokit/openapi-types" "^9.5.0" +"@pagopa/eslint-config@^1.3.1": + version "1.3.1" + resolved "https://registry.yarnpkg.com/@pagopa/eslint-config/-/eslint-config-1.3.1.tgz#0c41ae939aa6d740fbc8d8dbe2c4395aa2ceaf95" + integrity sha512-UZvYeN1ivU5qMZDGXI/JlEoQ+2SMZfTjOeoZBd6Wm5UC98b6bYBG4ov3QmluM6TxsLLMyBALgP55lkg56+VjRw== + dependencies: + "@typescript-eslint/eslint-plugin" "^4.10.0" + "@typescript-eslint/eslint-plugin-tslint" "^4.10.0" + "@typescript-eslint/parser" "^4.10.0" + eslint "^7.15.0" + eslint-config-prettier "^7.0.0" + eslint-plugin-extra-rules "^0.0.0-development" + eslint-plugin-fp "^2.3.0" + eslint-plugin-functional "^2.0.0" + eslint-plugin-import "^2.22.1" + eslint-plugin-jsdoc "^30.6.1" + eslint-plugin-no-credentials "^2.0.9" + eslint-plugin-prefer-arrow "^1.2.2" + eslint-plugin-prettier "^3.3.0" + eslint-plugin-react "^7.21.5" + eslint-plugin-sonarjs "^0.5.0" + prettier "^2.1.2" + "@pagopa/ts-commons@^10.0.0": version "10.0.0" resolved "https://registry.yarnpkg.com/@pagopa/ts-commons/-/ts-commons-10.0.0.tgz#20b5f5c9940019c697c87f652619a4ebc5c4193b" @@ -627,6 +720,16 @@ dependencies: jest-diff "^24.3.0" +"@types/json-schema@^7.0.3", "@types/json-schema@^7.0.7": + version "7.0.11" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" + integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== + +"@types/json5@^0.0.29": + version "0.0.29" + resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" + integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== + "@types/mime@^1": version "1.3.2" resolved "https://registry.yarnpkg.com/@types/mime/-/mime-1.3.2.tgz#93e25bf9ee75fe0fd80b594bc4feb0e862111b5a" @@ -763,6 +866,101 @@ dependencies: "@types/yargs-parser" "*" +"@typescript-eslint/eslint-plugin-tslint@^4.10.0": + version "4.33.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin-tslint/-/eslint-plugin-tslint-4.33.0.tgz#c0f2a5a8a53a915d6c24983888013b7e78e75b44" + integrity sha512-o3ujMErtZJPgiNRETRJefo1bFNrloocOa5dMU49OW/G+Rq92IbXTY6FSF5MOwrdQK1X+VBEcA8y6PhUPWGlYqA== + dependencies: + "@typescript-eslint/experimental-utils" "4.33.0" + lodash "^4.17.21" + +"@typescript-eslint/eslint-plugin@^4.10.0": + version "4.33.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.33.0.tgz#c24dc7c8069c7706bc40d99f6fa87edcb2005276" + integrity sha512-aINiAxGVdOl1eJyVjaWn/YcVAq4Gi/Yo35qHGCnqbWVz61g39D0h23veY/MA0rFFGfxK7TySg2uwDeNv+JgVpg== + dependencies: + "@typescript-eslint/experimental-utils" "4.33.0" + "@typescript-eslint/scope-manager" "4.33.0" + debug "^4.3.1" + functional-red-black-tree "^1.0.1" + ignore "^5.1.8" + regexpp "^3.1.0" + semver "^7.3.5" + tsutils "^3.21.0" + +"@typescript-eslint/experimental-utils@4.33.0": + version "4.33.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.33.0.tgz#6f2a786a4209fa2222989e9380b5331b2810f7fd" + integrity sha512-zeQjOoES5JFjTnAhI5QY7ZviczMzDptls15GFsI6jyUOq0kOf9+WonkhtlIhh0RgHRnqj5gdNxW5j1EvAyYg6Q== + dependencies: + "@types/json-schema" "^7.0.7" + "@typescript-eslint/scope-manager" "4.33.0" + "@typescript-eslint/types" "4.33.0" + "@typescript-eslint/typescript-estree" "4.33.0" + eslint-scope "^5.1.1" + eslint-utils "^3.0.0" + +"@typescript-eslint/experimental-utils@^1.11.0": + version "1.13.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-1.13.0.tgz#b08c60d780c0067de2fb44b04b432f540138301e" + integrity sha512-zmpS6SyqG4ZF64ffaJ6uah6tWWWgZ8m+c54XXgwFtUv0jNz8aJAVx8chMCvnk7yl6xwn8d+d96+tWp7fXzTuDg== + dependencies: + "@types/json-schema" "^7.0.3" + "@typescript-eslint/typescript-estree" "1.13.0" + eslint-scope "^4.0.0" + +"@typescript-eslint/parser@^4.10.0": + version "4.33.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.33.0.tgz#dfe797570d9694e560528d18eecad86c8c744899" + integrity sha512-ZohdsbXadjGBSK0/r+d87X0SBmKzOq4/S5nzK6SBgJspFo9/CUDJ7hjayuze+JK7CZQLDMroqytp7pOcFKTxZA== + dependencies: + "@typescript-eslint/scope-manager" "4.33.0" + "@typescript-eslint/types" "4.33.0" + "@typescript-eslint/typescript-estree" "4.33.0" + debug "^4.3.1" + +"@typescript-eslint/scope-manager@4.33.0": + version "4.33.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.33.0.tgz#d38e49280d983e8772e29121cf8c6e9221f280a3" + integrity sha512-5IfJHpgTsTZuONKbODctL4kKuQje/bzBRkwHE8UOZ4f89Zeddg+EGZs8PD8NcN4LdM3ygHWYB3ukPAYjvl/qbQ== + dependencies: + "@typescript-eslint/types" "4.33.0" + "@typescript-eslint/visitor-keys" "4.33.0" + +"@typescript-eslint/types@4.33.0": + version "4.33.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.33.0.tgz#a1e59036a3b53ae8430ceebf2a919dc7f9af6d72" + integrity sha512-zKp7CjQzLQImXEpLt2BUw1tvOMPfNoTAfb8l51evhYbOEEzdWyQNmHWWGPR6hwKJDAi+1VXSBmnhL9kyVTTOuQ== + +"@typescript-eslint/typescript-estree@1.13.0": + version "1.13.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-1.13.0.tgz#8140f17d0f60c03619798f1d628b8434913dc32e" + integrity sha512-b5rCmd2e6DCC6tCTN9GSUAuxdYwCM/k/2wdjHGrIRGPSJotWMCe/dGpi66u42bhuh8q3QBzqM4TMA1GUUCJvdw== + dependencies: + lodash.unescape "4.0.1" + semver "5.5.0" + +"@typescript-eslint/typescript-estree@4.33.0": + version "4.33.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.33.0.tgz#0dfb51c2908f68c5c08d82aefeaf166a17c24609" + integrity sha512-rkWRY1MPFzjwnEVHsxGemDzqqddw2QbTJlICPD9p9I9LfsO8fdmfQPOX3uKfUaGRDFJbfrtm/sXhVXN4E+bzCA== + dependencies: + "@typescript-eslint/types" "4.33.0" + "@typescript-eslint/visitor-keys" "4.33.0" + debug "^4.3.1" + globby "^11.0.3" + is-glob "^4.0.1" + semver "^7.3.5" + tsutils "^3.21.0" + +"@typescript-eslint/visitor-keys@4.33.0": + version "4.33.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.33.0.tgz#2a22f77a41604289b7a186586e9ec48ca92ef1dd" + integrity sha512-uqi/2aSz9g2ftcHWf8uLPJA70rUv6yuMW5Bohw+bwcuzaxQIHaKFZCKGoGXIrc9vkTJ3+0txM73K0Hq3d5wgIg== + dependencies: + "@typescript-eslint/types" "4.33.0" + eslint-visitor-keys "^2.0.0" + abab@^2.0.0: version "2.0.5" resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a" @@ -796,11 +994,28 @@ acorn-globals@^4.1.0: acorn "^6.0.1" acorn-walk "^6.0.1" +acorn-jsx@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-2.0.1.tgz#0edf9878a5866bca625f52955a1ed9e7d8c5117e" + integrity sha512-rbNtu2WkMJAZNnw2rh35whZO2e2N8Q1Dp4PBf/pKJAals6uFbPvVgVcKZ8poUnrkF50thOea1ApmF8W56apnwA== + dependencies: + acorn "^2.0.1" + +acorn-jsx@^5.3.1: + version "5.3.2" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" + integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== + acorn-walk@^6.0.1: version "6.2.0" resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-6.2.0.tgz#123cb8f3b84c2171f1f7fb252615b1c78a6b1a8c" integrity sha512-7evsyfH1cLOCdAzZAd43Cic04yKydNx0cF+7tiA19p1XnLLPU4dpCQOqpjqwokFe//vS0QqfqqjCS2JkiIs0cA== +acorn@^2.0.1, acorn@^2.6.4: + version "2.7.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-2.7.0.tgz#ab6e7d9d886aaca8b085bc3312b79a198433f0e7" + integrity sha512-pXK8ez/pVjqFdAgBkF1YPVRacuLQ9EXBKaKWaeh58WNfMkCmZhOZzu+NtKSPD5PHmCCHheQ5cD29qM1K4QTxIg== + acorn@^5.5.3: version "5.7.4" resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.4.tgz#3e8d8a9947d0599a1796d10225d7432f4a4acf5e" @@ -811,6 +1026,11 @@ acorn@^6.0.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.2.tgz#35866fd710528e92de10cf06016498e47e39e1e6" integrity sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ== +acorn@^7.4.0: + version "7.4.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" + integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== + agent-base@4, agent-base@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.3.0.tgz#8165f01c436009bccad0b1d122f05ed770efc6ee" @@ -822,16 +1042,30 @@ agentkeepalive@^4.1.4: version "4.1.4" resolved "https://registry.yarnpkg.com/agentkeepalive/-/agentkeepalive-4.1.4.tgz#d928028a4862cb11718e55227872e842a44c945b" integrity sha512-+V/rGa3EuU74H6wR04plBb7Ks10FbtUQgRj/FQOG7uUIEuaINI+AiqJR1k6t3SVNs7o7ZjIdus6706qqzVq8jQ== + dependencies: + debug "^4.1.0" + depd "^1.1.2" + humanize-ms "^1.2.1" + +ajv@^6.10.0, ajv@^6.12.3, ajv@^6.12.4: + version "6.12.6" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== dependencies: fast-deep-equal "^3.1.1" fast-json-stable-stringify "^2.0.0" json-schema-traverse "^0.4.1" uri-js "^4.2.2" -ajv@^6.12.3: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== +ajv@^8.0.1: + version "8.11.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.11.0.tgz#977e91dd96ca669f54a11e23e378e33b884a565f" + integrity sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg== + dependencies: + fast-deep-equal "^3.1.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.2.2" ansi-align@^3.0.0: version "3.0.0" @@ -840,6 +1074,11 @@ ansi-align@^3.0.0: dependencies: string-width "^3.0.0" +ansi-colors@^4.1.1: + version "4.1.3" + resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" + integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== + ansi-escapes@^3.0.0: version "3.2.0" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" @@ -865,6 +1104,11 @@ ansi-regex@^5.0.0: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== +ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + ansi-styles@^3.2.0, ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" @@ -937,11 +1181,47 @@ array-flatten@1.1.1: resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= +array-includes@^3.1.4, array-includes@^3.1.5: + version "3.1.5" + resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.5.tgz#2c320010db8d31031fd2a5f6b3bbd4b1aad31bdb" + integrity sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.19.5" + get-intrinsic "^1.1.1" + is-string "^1.0.7" + +array-union@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" + integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== + array-unique@^0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= +array.prototype.flat@^1.2.5: + version "1.3.0" + resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.0.tgz#0b0c1567bf57b38b56b4c97b8aa72ab45e4adc7b" + integrity sha512-12IUEkHsAhA4DY5s0FPgNXIdc8VRSqD9Zp78a5au9abH/SOBrsp082JOWFNTjkMozh8mqcdiKuaLGhPeYztxSw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.2" + es-shim-unscopables "^1.0.0" + +array.prototype.flatmap@^1.2.1, array.prototype.flatmap@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.0.tgz#a7e8ed4225f4788a70cd910abcf0791e76a5534f" + integrity sha512-PZC9/8TKAIxcWKdyeb77EzULHPrIX/tIZebLJUQOMR1OwYosT8yggdfWScfTBCDj5utONvOuPQQumYsU2ULbkg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.2" + es-shim-unscopables "^1.0.0" + asn1@~0.2.3: version "0.2.4" resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" @@ -964,6 +1244,11 @@ astral-regex@^1.0.0: resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== +astral-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" + integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== + async-hook-jl@^1.7.6: version "1.7.6" resolved "https://registry.yarnpkg.com/async-hook-jl/-/async-hook-jl-1.7.6.tgz#4fd25c2f864dbaf279c610d73bf97b1b28595e68" @@ -1159,7 +1444,7 @@ braces@^2.3.1: split-string "^3.0.2" to-regex "^3.0.1" -braces@~3.0.2: +braces@^3.0.2, braces@~3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== @@ -1218,11 +1503,6 @@ buffer-from@1.x, buffer-from@^1.0.0: resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== -builtin-modules@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" - integrity sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8= - bytes@3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6" @@ -1313,6 +1593,14 @@ chalk@^3.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" +chalk@^4.0.0: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + chokidar@^3.2.2: version "3.5.2" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.2.tgz#dba3976fcadb016f66fd365021d91600d01c1e75" @@ -1474,7 +1762,7 @@ combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: dependencies: delayed-stream "~1.0.0" -commander@^2.12.1, commander@^2.18.0: +commander@^2.18.0: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== @@ -1484,6 +1772,11 @@ commander@^5.0.0: resolved "https://registry.yarnpkg.com/commander/-/commander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae" integrity sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg== +comment-parser@^0.7.6: + version "0.7.6" + resolved "https://registry.yarnpkg.com/comment-parser/-/comment-parser-0.7.6.tgz#0e743a53c8e646c899a1323db31f6cd337b10f12" + integrity sha512-GKNxVA7/iuTnAqGADlTWX4tkhzxZKXp5fLJqKTlQLHkE65XDUKutZ3BHaJC5IGcper2tT3QRD1xr4o3jNpgXXg== + component-emitter@^1.2.0, component-emitter@^1.2.1: version "1.3.0" resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" @@ -1506,6 +1799,11 @@ configstore@^5.0.1: write-file-atomic "^3.0.0" xdg-basedir "^4.0.0" +console-assert@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/console-assert/-/console-assert-1.0.0.tgz#70167028ef08ec1667a0c687205a8360eb117367" + integrity sha1-cBZwKO8I7BZnoMaHIFqDYOsRc2c= + content-disposition@0.5.3: version "0.5.3" resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.3.tgz#e130caf7e7279087c5616c2007d0485698984fbd" @@ -1563,6 +1861,13 @@ core-util-is@1.0.2, core-util-is@~1.0.0: resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= +create-eslint-index@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/create-eslint-index/-/create-eslint-index-1.0.0.tgz#d954372d86d5792fcd67e9f2b791b1ab162411bb" + integrity sha1-2VQ3LYbVeS/NZ+nyt5GxqxYkEbs= + dependencies: + lodash.get "^4.3.0" + cross-spawn@^6.0.0: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" @@ -1574,6 +1879,15 @@ cross-spawn@^6.0.0: shebang-command "^1.2.0" which "^1.2.9" +cross-spawn@^7.0.2: + version "7.0.3" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + crypto-random-string@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5" @@ -1671,7 +1985,7 @@ date-fns@^1.28.5, date-fns@^1.30.1: resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-1.30.1.tgz#2e71bf0b119153dbb4cc4e88d9ea5acfb50dc05c" integrity sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw== -debug@2.6.9, debug@^2.2.0, debug@^2.3.3: +debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.9: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== @@ -1685,13 +1999,20 @@ debug@3.1.0: dependencies: ms "2.0.0" -debug@^3.1.0, debug@^3.2.6: +debug@^3.1.0, debug@^3.2.6, debug@^3.2.7: version "3.2.7" resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== dependencies: ms "^2.1.1" +debug@^4.0.1, debug@^4.3.1: + version "4.3.4" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== + dependencies: + ms "2.1.2" + debug@^4.1.0, debug@^4.1.1: version "4.3.2" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" @@ -1721,11 +2042,21 @@ deep-extend@^0.6.0: resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== +deep-is@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" + integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== + deep-is@~0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= +deepmerge@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-3.3.0.tgz#d3c47fd6f3a93d517b14426b0628a17b0125f5f7" + integrity sha512-GRQOafGHwMHpjPx9iCvTgpu9NojZ49q794EEL94JVEw6VaeA8XTUyBKvAkOOjBX9oJNiV6G3P+T+tihFjo2TqA== + defer-to-connect@^1.0.1: version "1.1.3" resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.1.3.tgz#331ae050c08dcf789f8c83a7b81f0ed94f4ac591" @@ -1738,6 +2069,14 @@ define-properties@^1.1.3: dependencies: object-keys "^1.0.12" +define-properties@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.4.tgz#0b14d7bd7fbeb2f3572c3a7eda80ea5d57fb05b1" + integrity sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA== + dependencies: + has-property-descriptors "^1.0.0" + object-keys "^1.1.1" + define-property@^0.2.5: version "0.2.5" resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" @@ -1765,7 +2104,7 @@ delayed-stream@~1.0.0: resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= -depd@~1.1.2: +depd@^1.1.2, depd@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak= @@ -1802,18 +2141,26 @@ diff-sequences@^24.9.0: resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-24.9.0.tgz#5715d6244e2aa65f48bba0bc972db0b0b11e95b5" integrity sha512-Dj6Wk3tWyTE+Fo1rW8v0Xhwk80um6yFYKbuAxc9c3EZxIHFDYwbi34Uk42u1CdnIiVorvt4RmlSDjIPyzGC2ew== -diff@^4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" - integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" + integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== + dependencies: + path-type "^4.0.0" + +doctrine@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" + integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== + dependencies: + esutils "^2.0.2" -doctrine@0.7.2: - version "0.7.2" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-0.7.2.tgz#7cb860359ba3be90e040b26b729ce4bfa654c523" - integrity sha1-fLhgNZujvpDgQLJrcpzkv6ZUxSM= +doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== dependencies: - esutils "^1.1.6" - isarray "0.0.1" + esutils "^2.0.2" domexception@^1.0.1: version "1.0.1" @@ -1905,6 +2252,13 @@ end-of-stream@^1.1.0: dependencies: once "^1.4.0" +enquirer@^2.3.5: + version "2.3.6" + resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" + integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== + dependencies: + ansi-colors "^4.1.1" + error-ex@^1.3.1: version "1.3.2" resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" @@ -1935,6 +2289,42 @@ es-abstract@^1.18.0-next.2: string.prototype.trimstart "^1.0.4" unbox-primitive "^1.0.1" +es-abstract@^1.19.0, es-abstract@^1.19.1, es-abstract@^1.19.2, es-abstract@^1.19.5: + version "1.20.0" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.20.0.tgz#b2d526489cceca004588296334726329e0a6bfb6" + integrity sha512-URbD8tgRthKD3YcC39vbvSDrX23upXnPcnGAjQfgxXF5ID75YcENawc9ZX/9iTP9ptUyfCLIxTTuMYoRfiOVKA== + dependencies: + call-bind "^1.0.2" + es-to-primitive "^1.2.1" + function-bind "^1.1.1" + function.prototype.name "^1.1.5" + get-intrinsic "^1.1.1" + get-symbol-description "^1.0.0" + has "^1.0.3" + has-property-descriptors "^1.0.0" + has-symbols "^1.0.3" + internal-slot "^1.0.3" + is-callable "^1.2.4" + is-negative-zero "^2.0.2" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.2" + is-string "^1.0.7" + is-weakref "^1.0.2" + object-inspect "^1.12.0" + object-keys "^1.1.1" + object.assign "^4.1.2" + regexp.prototype.flags "^1.4.1" + string.prototype.trimend "^1.0.5" + string.prototype.trimstart "^1.0.5" + unbox-primitive "^1.0.2" + +es-shim-unscopables@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz#702e632193201e3edf8713635d083d378e510241" + integrity sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w== + dependencies: + has "^1.0.3" + es-to-primitive@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" @@ -1981,6 +2371,11 @@ escape-string-regexp@^2.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + escodegen@^1.9.1: version "1.14.3" resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503" @@ -1993,28 +2388,271 @@ escodegen@^1.9.1: optionalDependencies: source-map "~0.6.1" -eslint-plugin-prettier@^2.2.0: - version "2.7.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.7.0.tgz#b4312dcf2c1d965379d7f9d5b5f8aaadc6a45904" - integrity sha512-CStQYJgALoQBw3FsBzH0VOVDRnJ/ZimUlpLm226U8qgqYJfPOY/CPK6wyRInMxh73HSKg5wyRwdS4BVYYHwokA== +eslint-ast-utils@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/eslint-ast-utils/-/eslint-ast-utils-1.1.0.tgz#3d58ba557801cfb1c941d68131ee9f8c34bd1586" + integrity sha512-otzzTim2/1+lVrlH19EfQQJEhVJSu0zOb9ygb3iapN6UlyaDtyRq4b5U1FuW0v1lRa9Fp/GJyHkSwm6NqABgCA== + dependencies: + lodash.get "^4.4.2" + lodash.zip "^4.2.0" + +eslint-config-prettier@^7.0.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.2.0.tgz#f4a4bd2832e810e8cc7c1411ec85b3e85c0c53f9" + integrity sha512-rV4Qu0C3nfJKPOAhFujFxB7RMP+URFyQqqOZW9DMRD7ZDTFyjaIlETU3xzHELt++4ugC0+Jm084HQYkkJe+Ivg== + +eslint-import-resolver-node@^0.3.6: + version "0.3.6" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz#4048b958395da89668252001dbd9eca6b83bacbd" + integrity sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw== + dependencies: + debug "^3.2.7" + resolve "^1.20.0" + +eslint-module-utils@^2.7.3: + version "2.7.3" + resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.7.3.tgz#ad7e3a10552fdd0642e1e55292781bd6e34876ee" + integrity sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ== + dependencies: + debug "^3.2.7" + find-up "^2.1.0" + +eslint-plugin-extra-rules@^0.0.0-development: + version "0.0.0-development" + resolved "https://registry.yarnpkg.com/eslint-plugin-extra-rules/-/eslint-plugin-extra-rules-0.0.0-development.tgz#c3c1aed3086c39fd83c1b7a4fa3df9884b4abb48" + integrity sha1-w8Gu0whsOf2Dwbek+j35iEtKu0g= + dependencies: + console-assert "1.0.0" + espree "3.0.0-alpha-1" + quote "0.4.0" + +eslint-plugin-fp@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-fp/-/eslint-plugin-fp-2.3.0.tgz#376d2a108710e981980bdc3875e3b9920da0489c" + integrity sha1-N20qEIcQ6YGYC9w4deO5kg2gSJw= + dependencies: + create-eslint-index "^1.0.0" + eslint-ast-utils "^1.0.0" + lodash "^4.13.1" + req-all "^0.1.0" + +eslint-plugin-functional@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-functional/-/eslint-plugin-functional-2.0.0.tgz#7f3a8fb4182319cddf11c3b8615f8095b2c740c5" + integrity sha512-8IV3wyYFGWvrx2klByu5O3qG7fo9/tedBaagPssv9MWmOTGVnCdk7r7DCDbVe8VTZe9Mz7r6KS+1tdkgQAqc9A== + dependencies: + "@typescript-eslint/experimental-utils" "^1.11.0" + array.prototype.flatmap "^1.2.1" + deepmerge "^3.3.0" + escape-string-regexp "^2.0.0" + +eslint-plugin-import@^2.22.1: + version "2.26.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz#f812dc47be4f2b72b478a021605a59fc6fe8b88b" + integrity sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA== + dependencies: + array-includes "^3.1.4" + array.prototype.flat "^1.2.5" + debug "^2.6.9" + doctrine "^2.1.0" + eslint-import-resolver-node "^0.3.6" + eslint-module-utils "^2.7.3" + has "^1.0.3" + is-core-module "^2.8.1" + is-glob "^4.0.3" + minimatch "^3.1.2" + object.values "^1.1.5" + resolve "^1.22.0" + tsconfig-paths "^3.14.1" + +eslint-plugin-jsdoc@^30.6.1: + version "30.7.13" + resolved "https://registry.yarnpkg.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-30.7.13.tgz#52e5c74fb806d3bbeb51d04a0c829508c3c6b563" + integrity sha512-YM4WIsmurrp0rHX6XiXQppqKB8Ne5ATiZLJe2+/fkp9l9ExXFr43BbAbjZaVrpCT+tuPYOZ8k1MICARHnURUNQ== + dependencies: + comment-parser "^0.7.6" + debug "^4.3.1" + jsdoctypeparser "^9.0.0" + lodash "^4.17.20" + regextras "^0.7.1" + semver "^7.3.4" + spdx-expression-parse "^3.0.1" + +eslint-plugin-no-credentials@^2.0.9: + version "2.1.10" + resolved "https://registry.yarnpkg.com/eslint-plugin-no-credentials/-/eslint-plugin-no-credentials-2.1.10.tgz#1a2b10858fed59cca3515eac3ee6f8d9219f1513" + integrity sha512-JxV9jxj6dlyBwhrR8yqpcsdfaER4V6p4itQgmkoCEBltsz0HCLTd9T66XPduznK4lKN/9BqblKBYokGoWxvpGA== + dependencies: + lodash "^4.17.21" + +eslint-plugin-prefer-arrow@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/eslint-plugin-prefer-arrow/-/eslint-plugin-prefer-arrow-1.2.3.tgz#e7fbb3fa4cd84ff1015b9c51ad86550e55041041" + integrity sha512-J9I5PKCOJretVuiZRGvPQxCbllxGAV/viI20JO3LYblAodofBxyMnZAJ+WGeClHgANnSJberTNoFWWjrWKBuXQ== + +eslint-plugin-prettier@^3.0.0, eslint-plugin-prettier@^3.3.0: + version "3.4.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz#e9ddb200efb6f3d05ffe83b1665a716af4a387e5" + integrity sha512-htg25EUYUeIhKHXjOinK4BgCcDwtLHjqaxCDsMy5nbnUMkKFvIhMVCp+5GFUXQ4Nr8lBsPqtGAqBenbpFqAA2g== + dependencies: + prettier-linter-helpers "^1.0.0" + +eslint-plugin-react@^7.21.5: + version "7.30.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.30.0.tgz#8e7b1b2934b8426ac067a0febade1b13bd7064e3" + integrity sha512-RgwH7hjW48BleKsYyHK5vUAvxtE9SMPDKmcPRQgtRCYaZA0XQPt5FSkrU3nhz5ifzMZcA8opwmRJ2cmOO8tr5A== + dependencies: + array-includes "^3.1.5" + array.prototype.flatmap "^1.3.0" + doctrine "^2.1.0" + estraverse "^5.3.0" + jsx-ast-utils "^2.4.1 || ^3.0.0" + minimatch "^3.1.2" + object.entries "^1.1.5" + object.fromentries "^2.0.5" + object.hasown "^1.1.1" + object.values "^1.1.5" + prop-types "^15.8.1" + resolve "^2.0.0-next.3" + semver "^6.3.0" + string.prototype.matchall "^4.0.7" + +eslint-plugin-sonarjs@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.5.0.tgz#ce17b2daba65a874c2862213a9e38e8986ad7d7d" + integrity sha512-XW5MnzlRjhXpIdbULC/qAdJYHWw3rRLws/DyawdlPU/IdVr9AmRK1r2LaCvabwKOAW2XYYSo3kDX58E4MrB7PQ== + +eslint-scope@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.3.tgz#ca03833310f6889a3264781aa82e63eb9cfe7848" + integrity sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg== + dependencies: + esrecurse "^4.1.0" + estraverse "^4.1.1" + +eslint-scope@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" + integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== + dependencies: + esrecurse "^4.3.0" + estraverse "^4.1.1" + +eslint-utils@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" + integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== + dependencies: + eslint-visitor-keys "^1.1.0" + +eslint-utils@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" + integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== + dependencies: + eslint-visitor-keys "^2.0.0" + +eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" + integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== + +eslint-visitor-keys@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" + integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== + +eslint@^7.15.0: + version "7.32.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d" + integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA== + dependencies: + "@babel/code-frame" "7.12.11" + "@eslint/eslintrc" "^0.4.3" + "@humanwhocodes/config-array" "^0.5.0" + ajv "^6.10.0" + chalk "^4.0.0" + cross-spawn "^7.0.2" + debug "^4.0.1" + doctrine "^3.0.0" + enquirer "^2.3.5" + escape-string-regexp "^4.0.0" + eslint-scope "^5.1.1" + eslint-utils "^2.1.0" + eslint-visitor-keys "^2.0.0" + espree "^7.3.1" + esquery "^1.4.0" + esutils "^2.0.2" + fast-deep-equal "^3.1.3" + file-entry-cache "^6.0.1" + functional-red-black-tree "^1.0.1" + glob-parent "^5.1.2" + globals "^13.6.0" + ignore "^4.0.6" + import-fresh "^3.0.0" + imurmurhash "^0.1.4" + is-glob "^4.0.0" + js-yaml "^3.13.1" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.4.1" + lodash.merge "^4.6.2" + minimatch "^3.0.4" + natural-compare "^1.4.0" + optionator "^0.9.1" + progress "^2.0.0" + regexpp "^3.1.0" + semver "^7.2.1" + strip-ansi "^6.0.0" + strip-json-comments "^3.1.0" + table "^6.0.9" + text-table "^0.2.0" + v8-compile-cache "^2.0.3" + +espree@3.0.0-alpha-1: + version "3.0.0-alpha-1" + resolved "https://registry.yarnpkg.com/espree/-/espree-3.0.0-alpha-1.tgz#ca1380bd81f2fae94b2638ae7cc449b71f91eaa3" + integrity sha1-yhOAvYHy+ulLJjiufMRJtx+R6qM= + dependencies: + acorn "^2.6.4" + acorn-jsx "^2.0.1" + +espree@^7.3.0, espree@^7.3.1: + version "7.3.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-7.3.1.tgz#f2df330b752c6f55019f8bd89b7660039c1bbbb6" + integrity sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g== dependencies: - fast-diff "^1.1.1" - jest-docblock "^21.0.0" + acorn "^7.4.0" + acorn-jsx "^5.3.1" + eslint-visitor-keys "^1.3.0" esprima@^4.0.0, esprima@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== -estraverse@^4.2.0: +esquery@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" + integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== + dependencies: + estraverse "^5.1.0" + +esrecurse@^4.1.0, esrecurse@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" + integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== + dependencies: + estraverse "^5.2.0" + +estraverse@^4.1.1, estraverse@^4.2.0: version "4.3.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== -esutils@^1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-1.1.6.tgz#c01ccaa9ae4b897c6d0c3e210ae52f3c7a844375" - integrity sha1-wBzKqa5LiXxtDD4hCuUvPHqEQ3U= +estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" + integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== esutils@^2.0.2: version "2.0.3" @@ -2166,22 +2804,33 @@ extsprintf@^1.2.0: resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= -fast-deep-equal@^3.1.1: +fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== -fast-diff@^1.1.1: +fast-diff@^1.1.2: version "1.2.0" resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== +fast-glob@^3.2.9: + version "3.2.11" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9" + integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== -fast-levenshtein@~2.0.6: +fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= @@ -2191,6 +2840,13 @@ fast-safe-stringify@^2.0.4: resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.0.8.tgz#dc2af48c46cf712b683e849b2bbd446b32de936f" integrity sha512-lXatBjf3WPjmWD6DpIZxkeSsCOwqI0maYMpgDlx8g4U2qi4lbjA9oH/HD2a87G+KfsUmo5WbJFmqBZlPxtptag== +fastq@^1.6.0: + version "1.13.0" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.13.0.tgz#616760f88a7526bdfc596b7cab8c18938c36b98c" + integrity sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw== + dependencies: + reusify "^1.0.4" + fb-watchman@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.1.tgz#fc84fb39d2709cf3ff6d743706157bb5708a8a85" @@ -2203,6 +2859,13 @@ fecha@^4.2.0: resolved "https://registry.yarnpkg.com/fecha/-/fecha-4.2.1.tgz#0a83ad8f86ef62a091e22bb5a039cd03d23eecce" integrity sha512-MMMQ0ludy/nBs1/o0zVOiKTpG7qMbonKUzjJgQFEuvq6INZ1OraKPRAWkBq5vlKLOUMpmNYG1JoN3oDPUQ9m3Q== +file-entry-cache@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" + integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== + dependencies: + flat-cache "^3.0.4" + file-uri-to-path@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" @@ -2260,6 +2923,19 @@ find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" +flat-cache@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" + integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== + dependencies: + flatted "^3.1.0" + rimraf "^3.0.2" + +flatted@^3.1.0: + version "3.2.5" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.5.tgz#76c8584f4fc843db64702a6bd04ab7a8bd666da3" + integrity sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg== + fn.name@1.x.x: version "1.1.0" resolved "https://registry.yarnpkg.com/fn.name/-/fn.name-1.1.0.tgz#26cad8017967aea8731bc42961d04a3d5988accc" @@ -2364,6 +3040,26 @@ function-bind@^1.1.1: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +function.prototype.name@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621" + integrity sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.0" + functions-have-names "^1.2.2" + +functional-red-black-tree@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" + integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= + +functions-have-names@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" + integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== + gensync@^1.0.0-beta.2: version "1.0.0-beta.2" resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" @@ -2407,6 +3103,14 @@ get-stream@^5.1.0: dependencies: pump "^3.0.0" +get-symbol-description@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6" + integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.1" + get-value@^2.0.3, get-value@^2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" @@ -2428,7 +3132,7 @@ git-config-path@^1.0.1: fs-exists-sync "^0.1.0" homedir-polyfill "^1.0.0" -glob-parent@~5.1.2: +glob-parent@^5.1.2, glob-parent@~5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== @@ -2459,6 +3163,25 @@ globals@^11.1.0: resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== +globals@^13.6.0, globals@^13.9.0: + version "13.15.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.15.0.tgz#38113218c907d2f7e98658af246cef8b77e90bac" + integrity sha512-bpzcOlgDhMG070Av0Vy5Owklpv1I6+j96GhUI7Rh7IzDCKLzboflLrrfqMu8NquDbiR4EOQk7XzJwqVJxicxog== + dependencies: + type-fest "^0.20.2" + +globby@^11.0.3: + version "11.1.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" + integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== + dependencies: + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.2.9" + ignore "^5.2.0" + merge2 "^1.4.1" + slash "^3.0.0" + got@^9.6.0: version "9.6.0" resolved "https://registry.yarnpkg.com/got/-/got-9.6.0.tgz#edf45e7d67f99545705de1f7bbeeeb121765ed85" @@ -2516,6 +3239,11 @@ has-bigints@^1.0.1: resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.1.tgz#64fe6acb020673e3b78db035a5af69aa9d07b113" integrity sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA== +has-bigints@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" + integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== + has-flag@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" @@ -2531,11 +3259,23 @@ has-flag@^4.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== +has-property-descriptors@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz#610708600606d36961ed04c196193b6a607fa861" + integrity sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ== + dependencies: + get-intrinsic "^1.1.1" + has-symbols@^1.0.1, has-symbols@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.2.tgz#165d3070c00309752a1236a479331e3ac56f1423" integrity sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw== +has-symbols@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" + integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== + has-tostringtag@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25" @@ -2662,6 +3402,13 @@ https-proxy-agent@^2.2.1: agent-base "^4.3.0" debug "^3.1.0" +humanize-ms@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/humanize-ms/-/humanize-ms-1.2.1.tgz#c46e3159a293f6b896da29316d8b6fe8bb79bbed" + integrity sha1-xG4xWaKT9riW2ikxbYtv6Lt5u+0= + dependencies: + ms "^2.0.0" + hyperlinker@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/hyperlinker/-/hyperlinker-1.0.0.tgz#23dc9e38a206b208ee49bc2d6c8ef47027df0c0e" @@ -2686,10 +3433,23 @@ ignore-by-default@^1.0.1: resolved "https://registry.yarnpkg.com/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09" integrity sha1-SMptcvbGo68Aqa1K5odr44ieKwk= -immutable@^3.8.2: - version "3.8.2" - resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.2.tgz#c2439951455bb39913daf281376f1530e104adf3" - integrity sha1-wkOZUUVbs5kT2vKBN28VMOEErfM= +ignore@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" + integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== + +ignore@^5.1.8, ignore@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" + integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ== + +import-fresh@^3.0.0, import-fresh@^3.2.1: + version "3.3.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" + integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" import-lazy@^2.1.0: version "2.1.0" @@ -2829,7 +3589,7 @@ is-buffer@^1.1.5: resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== -is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.3: +is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.3, is-callable@^1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.4.tgz#47301d58dd0259407865547853df6d61fe471945" integrity sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w== @@ -2848,6 +3608,13 @@ is-core-module@^2.2.0: dependencies: has "^1.0.3" +is-core-module@^2.8.1: + version "2.9.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.9.0.tgz#e1c34429cd51c6dd9e09e0799e396e27b19a9c69" + integrity sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A== + dependencies: + has "^1.0.3" + is-data-descriptor@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" @@ -2926,6 +3693,13 @@ is-generator-fn@^2.0.0: resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== +is-glob@^4.0.0, is-glob@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" + is-glob@^4.0.1, is-glob@~4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" @@ -2946,6 +3720,11 @@ is-negative-zero@^2.0.1: resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.1.tgz#3de746c18dda2319241a53675908d8f766f11c24" integrity sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w== +is-negative-zero@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" + integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== + is-npm@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-4.0.0.tgz#c90dd8380696df87a7a6d823c20d0b12bbe3c84d" @@ -2992,7 +3771,7 @@ is-plain-object@^5.0.0: resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344" integrity sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q== -is-regex@^1.1.3: +is-regex@^1.1.3, is-regex@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== @@ -3000,6 +3779,13 @@ is-regex@^1.1.3: call-bind "^1.0.2" has-tostringtag "^1.0.0" +is-shared-array-buffer@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz#8f259c573b60b6a32d4058a1a07430c0a7344c79" + integrity sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA== + dependencies: + call-bind "^1.0.2" + is-stream@^1.0.1, is-stream@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" @@ -3010,7 +3796,7 @@ is-stream@^2.0.0: resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== -is-string@^1.0.5, is-string@^1.0.6: +is-string@^1.0.5, is-string@^1.0.6, is-string@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd" integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg== @@ -3029,6 +3815,13 @@ is-typedarray@^1.0.0, is-typedarray@~1.0.0: resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= +is-weakref@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" + integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== + dependencies: + call-bind "^1.0.2" + is-windows@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" @@ -3049,11 +3842,6 @@ is_js@^0.9.0: resolved "https://registry.yarnpkg.com/is_js/-/is_js-0.9.0.tgz#0ab94540502ba7afa24c856aa985561669e9c52d" integrity sha1-CrlFQFArp6+iTIVqqYVWFmnpxS0= -isarray@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" - integrity sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8= - isarray@1.0.0, isarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" @@ -3126,19 +3914,6 @@ istanbul-reports@^2.2.6: dependencies: html-escaper "^2.0.0" -italia-tslint-rules@*: - version "1.1.3" - resolved "https://registry.yarnpkg.com/italia-tslint-rules/-/italia-tslint-rules-1.1.3.tgz#efac0c9638d14cef6cc907be74f0799b8bab0976" - integrity sha512-vu1LsSPaAnreitYlFnMFzKvZvXJz1M6B2AeY8CsGZ1DGHG5gJhiTKdyOR86I3q5TjegEYbi3nLLieJV0uKDKcA== - dependencies: - tslint-config-prettier "^1.18.0" - tslint-eslint-rules "^5.4.0" - tslint-immutable "^5.5.2" - tslint-plugin-prettier "^2.0.1" - tslint-react "^4.0.0" - tslint-sonarts "^1.9.0" - typestrict "^1.0.2" - jest-changed-files@^24.9.0: version "24.9.0" resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-24.9.0.tgz#08d8c15eb79a7fa3fc98269bc14b451ee82f8039" @@ -3200,11 +3975,6 @@ jest-diff@^24.3.0, jest-diff@^24.9.0: jest-get-type "^24.9.0" pretty-format "^24.9.0" -jest-docblock@^21.0.0: - version "21.2.0" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-21.2.0.tgz#51529c3b30d5fd159da60c27ceedc195faf8d414" - integrity sha512-5IZ7sY9dBAYSV+YjQ0Ovb540Ku7AO9Z5o2Cg789xj167iQuZ2cG+z0f3Uct6WeYLbU6aQiM2pCs7sZ+4dotydw== - jest-docblock@^24.3.0: version "24.9.0" resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-24.9.0.tgz#7970201802ba560e1c4092cc25cbedf5af5a8ce2" @@ -3516,6 +4286,11 @@ jsbn@~0.1.0: resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= +jsdoctypeparser@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/jsdoctypeparser/-/jsdoctypeparser-9.0.0.tgz#8c97e2fb69315eb274b0f01377eaa5c940bd7b26" + integrity sha512-jrTA2jJIL6/DAEILBEh2/w9QxCuwmvNXIry39Ay/HVfhE3o2yVV0U44blYkqdHA/OKloJEqvJy0xU+GSdE2SIw== + jsdom@^11.5.1: version "11.12.0" resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-11.12.0.tgz#1a80d40ddd378a1de59656e9e6dc5a3ba8657bc8" @@ -3577,6 +4352,11 @@ json-schema-traverse@^0.4.1: resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + json-schema@0.2.3: version "0.2.3" resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" @@ -3587,6 +4367,11 @@ json-set-map@^1.1.2: resolved "https://registry.yarnpkg.com/json-set-map/-/json-set-map-1.1.2.tgz#536cbc6549d06e8af11f76cb4fbd441ed2389e6e" integrity sha512-x0TGwgcOG21jOa8wV1PWXDpSXUAKa1WuhMSHPBQhXU5Pb+4DdMrxOw5HMAWztVLP8KhSG5Kl5BoAOVF0aW63wA== +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= + json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" @@ -3599,6 +4384,13 @@ json5@2.x, json5@^2.1.0, json5@^2.1.2: dependencies: minimist "^1.2.5" +json5@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe" + integrity sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow== + dependencies: + minimist "^1.2.0" + jsonpointer@^4.0.1: version "4.1.0" resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.1.0.tgz#501fb89986a2389765ba09e6053299ceb4f2c2cc" @@ -3630,6 +4422,14 @@ jsprim@^1.2.2: json-schema "0.2.3" verror "1.10.0" +"jsx-ast-utils@^2.4.1 || ^3.0.0": + version "3.3.0" + resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.0.tgz#e624f259143b9062c92b6413ff92a164c80d3ccb" + integrity sha512-XzO9luP6L0xkxwhIJMTJQpZo/eeN60K08jHdexfD569AGxeNug6UketeHXEhROoM8aR7EcUoOQmIhcJQjcuq8Q== + dependencies: + array-includes "^3.1.4" + object.assign "^4.1.2" + jwa@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/jwa/-/jwa-1.4.1.tgz#743c32985cb9e98655530d53641b66c8645b039a" @@ -3712,6 +4512,14 @@ leven@^3.1.0: resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== +levn@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== + dependencies: + prelude-ls "^1.2.1" + type-check "~0.4.0" + levn@~0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" @@ -3720,11 +4528,6 @@ levn@~0.3.0: prelude-ls "~1.1.2" type-check "~0.3.2" -lines-and-columns@^1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" - integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= - load-json-file@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b" @@ -3768,7 +4571,7 @@ lodash.flatten@^4.4.0: resolved "https://registry.yarnpkg.com/lodash.flatten/-/lodash.flatten-4.4.0.tgz#f31c22225a9632d2bbf8e4addbef240aa765a61f" integrity sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8= -lodash.get@^4.4.2: +lodash.get@^4.3.0, lodash.get@^4.4.2: version "4.4.2" resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk= @@ -3823,6 +4626,11 @@ lodash.memoize@4.x, lodash.memoize@^4.1.2: resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== + lodash.once@^4.0.0: version "4.1.1" resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" @@ -3838,12 +4646,27 @@ lodash.sortby@^4.7.0: resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg= +lodash.truncate@^4.4.2: + version "4.4.2" + resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" + integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== + +lodash.unescape@4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/lodash.unescape/-/lodash.unescape-4.0.1.tgz#bf2249886ce514cda112fae9218cdc065211fc9c" + integrity sha512-DhhGRshNS1aX6s5YdBE3njCCouPgnG29ebyHvImlZzXZf2SHgt+J08DHgytTPnpywNbO1Y8mNUFyQuIDBq2JZg== + lodash.uniq@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= -lodash@^4.17.13, lodash@^4.17.19, lodash@^4.5.0: +lodash.zip@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/lodash.zip/-/lodash.zip-4.2.0.tgz#ec6662e4896408ed4ab6c542a3990b72cc080020" + integrity sha1-7GZi5IlkCO1KtsVCo5kLcswIACA= + +lodash@^4.13.1, lodash@^4.17.13, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.5.0: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -3859,7 +4682,7 @@ logform@^2.2.0: ms "^2.1.1" triple-beam "^1.3.0" -loose-envify@^1.0.0: +loose-envify@^1.0.0, loose-envify@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== @@ -3876,6 +4699,13 @@ lowercase-keys@^2.0.0: resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479" integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA== +lru-cache@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" + integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== + dependencies: + yallist "^4.0.0" + macos-release@^2.2.0: version "2.5.0" resolved "https://registry.yarnpkg.com/macos-release/-/macos-release-2.5.0.tgz#067c2c88b5f3fb3c56a375b2ec93826220fa1ff2" @@ -3958,6 +4788,11 @@ merge-stream@^2.0.0: resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== +merge2@^1.3.0, merge2@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + methods@^1.1.1, methods@^1.1.2, methods@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" @@ -3982,6 +4817,14 @@ micromatch@^3.1.10, micromatch@^3.1.4: snapdragon "^0.8.1" to-regex "^3.0.2" +micromatch@^4.0.4: + version "4.0.5" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" + integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== + dependencies: + braces "^3.0.2" + picomatch "^2.3.1" + mime-db@1.49.0: version "1.49.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.49.0.tgz#f3dfde60c99e9cf3bc9701d687778f537001cbed" @@ -4016,11 +4859,23 @@ minimatch@^3.0.4: dependencies: brace-expansion "^1.1.7" +minimatch@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.3, minimist@^1.2.5: version "1.2.5" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== +minimist@^1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44" + integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q== + mixin-deep@^1.2.0: version "1.3.2" resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" @@ -4059,7 +4914,7 @@ ms@2.1.2: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== -ms@^2.1.1: +ms@^2.0.0, ms@^2.1.1: version "2.1.3" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== @@ -4248,6 +5103,11 @@ oauth-sign@~0.9.0: resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== +object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= + object-copy@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" @@ -4262,6 +5122,11 @@ object-inspect@^1.11.0, object-inspect@^1.9.0: resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.11.0.tgz#9dceb146cedd4148a0d9e51ab88d34cf509922b1" integrity sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg== +object-inspect@^1.12.0: + version "1.12.0" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.0.tgz#6e2c120e868fd1fd18cb4f18c31741d0d6e776f0" + integrity sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g== + object-keys@^1.0.12, object-keys@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" @@ -4284,6 +5149,24 @@ object.assign@^4.1.2: has-symbols "^1.0.1" object-keys "^1.1.1" +object.entries@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861" + integrity sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.1" + +object.fromentries@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.5.tgz#7b37b205109c21e741e605727fe8b0ad5fa08251" + integrity sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.1" + object.getownpropertydescriptors@^2.1.1: version "2.1.2" resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.2.tgz#1bd63aeacf0d5d2d2f31b5e393b03a7c601a23f7" @@ -4293,6 +5176,14 @@ object.getownpropertydescriptors@^2.1.1: define-properties "^1.1.3" es-abstract "^1.18.0-next.2" +object.hasown@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.1.tgz#ad1eecc60d03f49460600430d97f23882cf592a3" + integrity sha512-LYLe4tivNQzq4JdaWW6WO3HMZZJWzkkH8fnI6EebWl0VZth2wL2Lovm74ep2/gZzlaTdV62JZHEqHQ2yVn8Q/A== + dependencies: + define-properties "^1.1.4" + es-abstract "^1.19.5" + object.pick@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" @@ -4300,6 +5191,15 @@ object.pick@^1.3.0: dependencies: isobject "^3.0.1" +object.values@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.5.tgz#959f63e3ce9ef108720333082131e4a459b716ac" + integrity sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.1" + octokit-pagination-methods@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz#cf472edc9d551055f9ef73f6e42b4dbb4c80bea4" @@ -4338,6 +5238,18 @@ optionator@^0.8.1: type-check "~0.3.2" word-wrap "~1.2.3" +optionator@^0.9.1: + version "0.9.1" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" + integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== + dependencies: + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + word-wrap "^1.2.3" + os-locale@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-3.1.0.tgz#a802a6ee17f24c10483ab9935719cef4ed16bf1a" @@ -4447,6 +5359,13 @@ package-json@^6.3.0: registry-url "^5.0.0" semver "^6.2.0" +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== + dependencies: + callsites "^3.0.0" + parse-diff@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/parse-diff/-/parse-diff-0.5.1.tgz#18b3e82a0765ac1c8796e3854e475073a691c4fb" @@ -4548,7 +5467,12 @@ path-key@^2.0.0, path-key@^2.0.1: resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= -path-parse@^1.0.6: +path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + +path-parse@^1.0.6, path-parse@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== @@ -4565,6 +5489,11 @@ path-type@^3.0.0: dependencies: pify "^3.0.0" +path-type@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" + integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== + pause@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/pause/-/pause-0.0.1.tgz#1d408b3fdb76923b9543d96fb4c9dfd535d9cb5d" @@ -4580,6 +5509,11 @@ picomatch@^2.0.4, picomatch@^2.2.1: resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw== +picomatch@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + pify@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" @@ -4627,6 +5561,11 @@ posix-character-classes@^0.1.0: resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= +prelude-ls@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" + integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== + prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" @@ -4637,11 +5576,23 @@ prepend-http@^2.0.0: resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc= +prettier-linter-helpers@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" + integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== + dependencies: + fast-diff "^1.1.2" + prettier@^1.12.1: version "1.19.1" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew== +prettier@^2.1.2: + version "2.6.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.6.2.tgz#e26d71a18a74c3d0f0597f55f01fb6c06c206032" + integrity sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew== + pretty-format@^24.9.0: version "24.9.0" resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.9.0.tgz#12fac31b37019a4eea3c11aa9a959eb7628aa7c9" @@ -4657,6 +5608,11 @@ process-nextick-args@~2.0.0: resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== +progress@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" + integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== + prompts@^2.0.1: version "2.4.1" resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.1.tgz#befd3b1195ba052f9fd2fde8a486c4e82ee77f61" @@ -4665,6 +5621,15 @@ prompts@^2.0.1: kleur "^3.0.3" sisteransi "^1.0.5" +prop-types@^15.8.1: + version "15.8.1" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" + integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg== + dependencies: + loose-envify "^1.4.0" + object-assign "^4.1.1" + react-is "^16.13.1" + propagate@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/propagate/-/propagate-2.0.1.tgz#40cdedab18085c792334e64f0ac17256d38f9a45" @@ -4730,6 +5695,16 @@ qs@~6.5.2: resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + +quote@0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/quote/-/quote-0.4.0.tgz#10839217f6c1362b89194044d29b233fd7f32f01" + integrity sha1-EIOSF/bBNiuJGUBE0psjP9fzLwE= + range-parser@~1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" @@ -4755,7 +5730,7 @@ rc@^1.2.8: minimist "^1.2.0" strip-json-comments "~2.0.1" -react-is@^16.8.4: +react-is@^16.13.1, react-is@^16.8.4: version "16.13.1" resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== @@ -4857,6 +5832,25 @@ regex-not@^1.0.0, regex-not@^1.0.2: extend-shallow "^3.0.2" safe-regex "^1.1.0" +regexp.prototype.flags@^1.4.1: + version "1.4.3" + resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac" + integrity sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + functions-have-names "^1.2.2" + +regexpp@^3.1.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" + integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== + +regextras@^0.7.1: + version "0.7.1" + resolved "https://registry.yarnpkg.com/regextras/-/regextras-0.7.1.tgz#be95719d5f43f9ef0b9fa07ad89b7c606995a3b2" + integrity sha512-9YXf6xtW+qzQ+hcMQXx95MOvfqXFgsKDZodX3qZB0x2n5Z94ioetIITsBtvJbiOyxa/6s9AtyweBLCdPmPko/w== + registry-auth-token@^4.0.0: version "4.2.1" resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-4.2.1.tgz#6d7b4006441918972ccd5fedcd41dc322c79b250" @@ -4886,6 +5880,11 @@ repeat-string@^1.6.1: resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= +req-all@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/req-all/-/req-all-0.1.0.tgz#130051e2ace58a02eacbfc9d448577a736a9273a" + integrity sha1-EwBR4qzligLqy/ydRIV3pzapJzo= + request-ip@^2.1.3: version "2.1.3" resolved "https://registry.yarnpkg.com/request-ip/-/request-ip-2.1.3.tgz#99ab2bafdeaf2002626e28083cb10597511d9e14" @@ -4967,6 +5966,11 @@ resolve-from@^3.0.0: resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" integrity sha1-six699nWiBvItuZTM17rywoYh0g= +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== + resolve-url@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" @@ -4977,7 +5981,7 @@ resolve@1.1.7: resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" integrity sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs= -resolve@1.x, resolve@^1.1.6, resolve@^1.10.0, resolve@^1.3.2: +resolve@1.x, resolve@^1.1.6, resolve@^1.10.0: version "1.20.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A== @@ -4985,6 +5989,23 @@ resolve@1.x, resolve@^1.1.6, resolve@^1.10.0, resolve@^1.3.2: is-core-module "^2.2.0" path-parse "^1.0.6" +resolve@^1.20.0, resolve@^1.22.0: + version "1.22.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.0.tgz#5e0b8c67c15df57a89bdbabe603a002f21731198" + integrity sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw== + dependencies: + is-core-module "^2.8.1" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + +resolve@^2.0.0-next.3: + version "2.0.0-next.3" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.3.tgz#d41016293d4a8586a39ca5d9b5f15cbea1f55e46" + integrity sha512-W8LucSynKUIDu9ylraa7ueVZ7hc0uAgJBxVsQSKOXOyle8a93qXhcz+XAXZ8bIq2d6i4Ehddn6Evt+0/UwKk6Q== + dependencies: + is-core-module "^2.2.0" + path-parse "^1.0.6" + responselike@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7" @@ -4997,6 +6018,11 @@ ret@~0.1.10: resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + rfc6902@^3.0.1: version "3.1.1" resolved "https://registry.yarnpkg.com/rfc6902/-/rfc6902-3.1.1.tgz#24fc3b2568496100ac507c2e27e61ec5a1c134dd" @@ -5009,11 +6035,25 @@ rimraf@^2.5.4, rimraf@^2.6.3: dependencies: glob "^7.1.3" +rimraf@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + rsvp@^4.8.4: version "4.8.5" resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734" integrity sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA== +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== + dependencies: + queue-microtask "^1.2.2" + safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" @@ -5068,11 +6108,23 @@ semver-diff@^3.1.1: resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== +semver@5.5.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" + integrity sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA== + semver@^6.0.0, semver@^6.2.0, semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== +semver@^7.2.1, semver@^7.3.4, semver@^7.3.5: + version "7.3.7" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f" + integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g== + dependencies: + lru-cache "^6.0.0" + send@0.17.1: version "0.17.1" resolved "https://registry.yarnpkg.com/send/-/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8" @@ -5129,11 +6181,23 @@ shebang-command@^1.2.0: dependencies: shebang-regex "^1.0.0" +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + shebang-regex@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== + shelljs@^0.8.4: version "0.8.4" resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.4.tgz#de7684feeb767f8716b326078a8a00875890e3c2" @@ -5192,6 +6256,20 @@ slash@^2.0.0: resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44" integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A== +slash@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" + integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== + +slice-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" + integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== + dependencies: + ansi-styles "^4.0.0" + astral-regex "^2.0.0" + is-fullwidth-code-point "^3.0.0" + snapdragon-node@^2.0.1: version "2.1.1" resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" @@ -5269,7 +6347,7 @@ spdx-exceptions@^2.1.0: resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz#3f28ce1a77a00372683eade4a433183527a2163d" integrity sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A== -spdx-expression-parse@^3.0.0: +spdx-expression-parse@^3.0.0, spdx-expression-parse@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679" integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q== @@ -5387,6 +6465,29 @@ string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.0" +string-width@^4.2.3: + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string.prototype.matchall@^4.0.7: + version "4.0.7" + resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.7.tgz#8e6ecb0d8a1fb1fda470d81acecb2dba057a481d" + integrity sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.1" + get-intrinsic "^1.1.1" + has-symbols "^1.0.3" + internal-slot "^1.0.3" + regexp.prototype.flags "^1.4.1" + side-channel "^1.0.4" + string.prototype.trimend@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz#e75ae90c2942c63504686c18b287b4a0b1a45f80" @@ -5395,6 +6496,15 @@ string.prototype.trimend@^1.0.4: call-bind "^1.0.2" define-properties "^1.1.3" +string.prototype.trimend@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz#914a65baaab25fbdd4ee291ca7dde57e869cb8d0" + integrity sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.19.5" + string.prototype.trimstart@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz#b36399af4ab2999b4c9c648bd7a3fb2bb26feeed" @@ -5403,6 +6513,15 @@ string.prototype.trimstart@^1.0.4: call-bind "^1.0.2" define-properties "^1.1.3" +string.prototype.trimstart@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz#5466d93ba58cfa2134839f81d7f42437e8c01fef" + integrity sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.19.5" + string_decoder@^1.1.1: version "1.3.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" @@ -5445,6 +6564,13 @@ strip-ansi@^6.0.0: dependencies: ansi-regex "^5.0.0" +strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + strip-bom@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" @@ -5455,6 +6581,11 @@ strip-eof@^1.0.0: resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= +strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" + integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== + strip-json-comments@~2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" @@ -5513,11 +6644,27 @@ supports-hyperlinks@^1.0.1: has-flag "^2.0.0" supports-color "^5.0.0" +supports-preserve-symlinks-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" + integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== + symbol-tree@^3.2.2: version "3.2.4" resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== +table@^6.0.9: + version "6.8.0" + resolved "https://registry.yarnpkg.com/table/-/table-6.8.0.tgz#87e28f14fa4321c3377ba286f07b79b281a3b3ca" + integrity sha512-s/fitrbVeEyHKFa7mFdkuQMWlH1Wgw/yEXMt5xACT4ZpzWFluehAxRtUUQKPuWhaLAWhFcVx6w3oC8VKaUfPGA== + dependencies: + ajv "^8.0.1" + lodash.truncate "^4.4.2" + slice-ansi "^4.0.0" + string-width "^4.2.3" + strip-ansi "^6.0.1" + term-size@^2.1.0: version "2.2.1" resolved "https://registry.yarnpkg.com/term-size/-/term-size-2.2.1.tgz#2a6a54840432c2fb6320fea0f415531e90189f54" @@ -5538,6 +6685,11 @@ text-hex@1.0.x: resolved "https://registry.yarnpkg.com/text-hex/-/text-hex-1.0.0.tgz#69dc9c1b17446ee79a92bf5b884bb4b9127506f5" integrity sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg== +text-table@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= + throat@^4.0.0: version "4.1.0" resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a" @@ -5638,107 +6790,28 @@ ts-jest@^24.0.2: semver "^5.5" yargs-parser "10.x" -tslib@1.9.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8" - integrity sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ== +tsconfig-paths@^3.14.1: + version "3.14.1" + resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz#ba0734599e8ea36c862798e920bcf163277b137a" + integrity sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ== + dependencies: + "@types/json5" "^0.0.29" + json5 "^1.0.1" + minimist "^1.2.6" + strip-bom "^3.0.0" -tslib@^1.7.1, tslib@^1.8.0, tslib@^1.8.1: +tslib@^1.8.1: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslint-config-prettier@^1.18.0: - version "1.18.0" - resolved "https://registry.yarnpkg.com/tslint-config-prettier/-/tslint-config-prettier-1.18.0.tgz#75f140bde947d35d8f0d238e0ebf809d64592c37" - integrity sha512-xPw9PgNPLG3iKRxmK7DWr+Ea/SzrvfHtjFt5LBl61gk2UBG/DB9kCXRjv+xyIU1rUtnayLeMUVJBcMX8Z17nDg== - -tslint-eslint-rules@^5.4.0: - version "5.4.0" - resolved "https://registry.yarnpkg.com/tslint-eslint-rules/-/tslint-eslint-rules-5.4.0.tgz#e488cc9181bf193fe5cd7bfca213a7695f1737b5" - integrity sha512-WlSXE+J2vY/VPgIcqQuijMQiel+UtmXS+4nvK4ZzlDiqBfXse8FAvkNnTcYhnQyOTW5KFM+uRRGXxYhFpuBc6w== - dependencies: - doctrine "0.7.2" - tslib "1.9.0" - tsutils "^3.0.0" - -tslint-immutable@^5.5.2: - version "5.5.2" - resolved "https://registry.yarnpkg.com/tslint-immutable/-/tslint-immutable-5.5.2.tgz#57331f6100156fa7ac4503e121cd2616df5bab8a" - integrity sha512-+dSMhEeUyRMrBe9XcjfRXT/FmqWKXsSdxttWoDzhUFSNCg8wfXx29M/ClQ78HhmdTaK+DDQsNS3wTGpSIhOv3g== - dependencies: - tsutils "^2.28.0 || ^3.0.0" - -tslint-microsoft-contrib@^5.0.3: - version "5.2.1" - resolved "https://registry.yarnpkg.com/tslint-microsoft-contrib/-/tslint-microsoft-contrib-5.2.1.tgz#a6286839f800e2591d041ea2800c77487844ad81" - integrity sha512-PDYjvpo0gN9IfMULwKk0KpVOPMhU6cNoT9VwCOLeDl/QS8v8W2yspRpFFuUS7/c5EIH/n8ApMi8TxJAz1tfFUA== - dependencies: - tsutils "^2.27.2 <2.29.0" - -tslint-plugin-prettier@^2.0.1: - version "2.3.0" - resolved "https://registry.yarnpkg.com/tslint-plugin-prettier/-/tslint-plugin-prettier-2.3.0.tgz#73fe71bf9f03842ac48c104122ca9b1de012ecf4" - integrity sha512-F9e4K03yc9xuvv+A0v1EmjcnDwpz8SpCD8HzqSDe0eyg34cBinwn9JjmnnRrNAs4HdleRQj7qijp+P/JTxt4vA== - dependencies: - eslint-plugin-prettier "^2.2.0" - lines-and-columns "^1.1.6" - tslib "^1.7.1" - -tslint-react@^4.0.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/tslint-react/-/tslint-react-4.2.0.tgz#41b16e0438365f8d3ed4120501f02cabff9fd1e4" - integrity sha512-lO22+FKr9ZZGueGiuALzvZE/8ANoDoCHGCknX1Ge3ALrfcLQHQ1VGdyb1scZXQFdEQEfwBTIU40r5BUlJpn0JA== - dependencies: - tsutils "^3.9.1" - -tslint-sonarts@^1.8.0, tslint-sonarts@^1.9.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/tslint-sonarts/-/tslint-sonarts-1.9.0.tgz#feb593e92db328c0328b430b838adbe65d504de9" - integrity sha512-CJWt+IiYI8qggb2O/JPkS6CkC5DY1IcqRsm9EHJ+AxoWK70lvtP7jguochyNDMP2vIz/giGdWCfEM39x/I/Vnw== - dependencies: - immutable "^3.8.2" - -tslint@^5.1.0: - version "5.20.1" - resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.20.1.tgz#e401e8aeda0152bc44dd07e614034f3f80c67b7d" - integrity sha512-EcMxhzCFt8k+/UP5r8waCf/lzmeSyVlqxqMEDQE7rWYiQky8KpIBz1JAoYXfROHrPZ1XXd43q8yQnULOLiBRQg== - dependencies: - "@babel/code-frame" "^7.0.0" - builtin-modules "^1.1.1" - chalk "^2.3.0" - commander "^2.12.1" - diff "^4.0.1" - glob "^7.1.1" - js-yaml "^3.13.1" - minimatch "^3.0.4" - mkdirp "^0.5.1" - resolve "^1.3.2" - semver "^5.3.0" - tslib "^1.8.0" - tsutils "^2.29.0" - -"tsutils@^2.27.2 <2.29.0": - version "2.28.0" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.28.0.tgz#6bd71e160828f9d019b6f4e844742228f85169a1" - integrity sha512-bh5nAtW0tuhvOJnx1GLRn5ScraRLICGyJV5wJhtRWOLsxW70Kk5tZtpK3O/hW6LDnqKS9mlUMPZj9fEMJ0gxqA== - dependencies: - tslib "^1.8.1" - -"tsutils@^2.28.0 || ^3.0.0", tsutils@^3.0.0, tsutils@^3.9.1: +tsutils@^3.21.0: version "3.21.0" resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== dependencies: tslib "^1.8.1" -tsutils@^2.29.0: - version "2.29.0" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.29.0.tgz#32b488501467acbedd4b85498673a0812aca0b99" - integrity sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA== - dependencies: - tslib "^1.8.1" - tunnel-agent@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" @@ -5751,6 +6824,13 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0: resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q= +type-check@^0.4.0, type-check@~0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" + integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== + dependencies: + prelude-ls "^1.2.1" + type-check@~0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" @@ -5758,6 +6838,11 @@ type-check@~0.3.2: dependencies: prelude-ls "~1.1.2" +type-fest@^0.20.2: + version "0.20.2" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" + integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== + type-fest@^0.8.1: version "0.8.1" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" @@ -5783,14 +6868,6 @@ typescript@^3.7.0: resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8" integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q== -typestrict@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/typestrict/-/typestrict-1.0.2.tgz#7167559a128508162920614ce58af6ac6b5ba29a" - integrity sha512-4wEr84NPc0ldINrgwgSBTmbWPiGVbwO3c9xumM0ujp0DlzhTs3jUT0NtVBOd5UXneSXcStNJWj80zerbW2YR6Q== - dependencies: - tslint-microsoft-contrib "^5.0.3" - tslint-sonarts "^1.8.0" - uglify-js@^3.1.4: version "3.14.1" resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.14.1.tgz#e2cb9fe34db9cb4cf7e35d1d26dfea28e09a7d06" @@ -5806,6 +6883,16 @@ unbox-primitive@^1.0.1: has-symbols "^1.0.2" which-boxed-primitive "^1.0.2" +unbox-primitive@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e" + integrity sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw== + dependencies: + call-bind "^1.0.2" + has-bigints "^1.0.2" + has-symbols "^1.0.3" + which-boxed-primitive "^1.0.2" + undefsafe@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/undefsafe/-/undefsafe-2.0.3.tgz#6b166e7094ad46313b2202da7ecc2cd7cc6e7aae" @@ -5929,6 +7016,11 @@ uuid@^3.3.2: resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== +v8-compile-cache@^2.0.3: + version "2.3.0" + resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" + integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== + validate-npm-package-license@^3.0.1: version "3.0.4" resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" @@ -6028,6 +7120,13 @@ which@^1.2.9, which@^1.3.0: dependencies: isexe "^2.0.0" +which@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" + widest-line@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-3.1.0.tgz#8292333bbf66cb45ff0de1603b136b7ae1496eca" @@ -6065,7 +7164,7 @@ winston@^3.0.0: triple-beam "^1.3.0" winston-transport "^4.4.0" -word-wrap@~1.2.3: +word-wrap@^1.2.3, word-wrap@~1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== @@ -6203,6 +7302,11 @@ y18n@^4.0.0: resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== +yallist@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" + integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== + yargs-parser@10.x: version "10.1.0" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-10.1.0.tgz#7202265b89f7e9e9f2e5765e0fe735a905edbaa8"