diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 770bf6da02..0000000000 --- a/.editorconfig +++ /dev/null @@ -1,11 +0,0 @@ -# http://editorconfig.org - -root = true - -[*.ts] -charset = utf-8 -indent_style = space -indent_size = 4 -end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000000..abf261680c --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,33 @@ +module.exports = { + root: true, + env: { + node: true + }, + parser: "@typescript-eslint/parser", + parserOptions: { + project: ['./tsconfig.json'] + }, + plugins: [ + "@typescript-eslint" + ], + extends: [ + "eslint:recommended", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended", + "plugin:@typescript-eslint/recommended-requiring-type-checking" + ], + ignorePatterns: ["**/*.js"], + rules: { + "no-case-declarations": "off", + "no-prototype-builtins": "off", + "@typescript-eslint/no-inferrable-types": "off", + "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/no-unused-vars": "off", + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/member-delimiter-style": "off", + "@typescript-eslint/member-ordering": "error", + "@typescript-eslint/unbound-method": ["error", { + "ignoreStatic": true + }] + } +}; diff --git a/codecov.yml b/codecov.yml deleted file mode 100644 index db2472009c..0000000000 --- a/codecov.yml +++ /dev/null @@ -1 +0,0 @@ -comment: off diff --git a/gulpfile.ts b/gulpfile.ts deleted file mode 100644 index e418ac16c9..0000000000 --- a/gulpfile.ts +++ /dev/null @@ -1,226 +0,0 @@ -import { Gulpclass, Task, SequenceTask, MergedTask } from "gulpclass"; -import * as gulp from "gulp"; -import * as del from "del"; -import * as shell from "gulp-shell"; -import * as replace from "gulp-replace"; -import * as mocha from "gulp-mocha"; -import * as chai from "chai"; -import tslintPlugin from "gulp-tslint"; -import * as ts from "gulp-typescript"; -import * as sourcemaps from "gulp-sourcemaps"; -import * as istanbul from "gulp-istanbul"; - -const conventionalChangelog = require("gulp-conventional-changelog"); -const remapIstanbul = require("remap-istanbul/lib/gulpRemapIstanbul"); - -@Gulpclass() -export class Gulpfile { - - // ------------------------------------------------------------------------- - // General tasks - // ------------------------------------------------------------------------- - - /** - * Cleans build folder. - */ - @Task() - clean() { - return del([ - "build/**", - "!build", - "!build/package", - "!build/package/node_modules", - "!build/package/node_modules/**" - ]); - } - - /** - * Runs typescript files compilation. - */ - @Task() - compile() { - return gulp.src("*.ts", { read: false }) - .pipe(shell(["tsc"])); - } - - // ------------------------------------------------------------------------- - // Packaging and Publishing tasks - // ------------------------------------------------------------------------- - - @Task() - changelog() { - return gulp.src("CHANGELOG.md") - .pipe(conventionalChangelog({ - // conventional-changelog options go here - preset: "angular" - }, { - // context goes here - }, { - // git-raw-commits options go here - }, { - // conventional-commits-parser options go here - }, { - // conventional-changelog-writer options go here - })) - .pipe(gulp.dest("./")); - } - - /** - * Publishes a package to npm from ./build/package directory. - */ - @Task() - npmPublish() { - return gulp.src("*.js", { read: false }) - .pipe(shell([ - "cd ./build/package && npm publish" - ])); - } - - /** - * Copies all sources to the package directory. - */ - @MergedTask() - packageCompile() { - const tsProject = ts.createProject("tsconfig.json"); - const tsResult = gulp.src(["./src/**/*.ts"]) - .pipe(sourcemaps.init()) - .pipe(tsProject()); - - return [ - tsResult.dts.pipe(gulp.dest("./build/package")), - tsResult.js - .pipe(sourcemaps.write(".", { sourceRoot: "", includeContent: true })) - .pipe(gulp.dest("./build/package")) - ]; - } - - /** - * Moves all compiled files to the final package directory. - */ - @Task() - packageMoveCompiledFiles() { - return gulp.src("./build/package/src/**/*") - .pipe(gulp.dest("./build/package")); - } - - /** - * Moves all compiled files to the final package directory. - */ - @Task() - packageClearCompileDirectory(cb: Function) { - return del([ - "build/package/src/**" - ]); - } - - /** - * Change the "private" state of the packaged package.json file to public. - */ - @Task() - packagePreparePackageFile() { - return gulp.src("./package.json") - .pipe(replace("\"private\": true,", "\"private\": false,")) - .pipe(gulp.dest("./build/package")); - } - - /** - * This task will replace all typescript code blocks in the README (since npm does not support typescript syntax - * highlighting) and copy this README file into the package folder. - */ - @Task() - packageReadmeFile() { - return gulp.src("./README.md") - .pipe(replace(/```typescript([\s\S]*?)```/g, "```javascript$1```")) - .pipe(gulp.dest("./build/package")); - } - - /** - * Creates a package that can be published to npm. - */ - @SequenceTask() - package() { - return [ - "clean", - "packageCompile", - "packageMoveCompiledFiles", - "packageClearCompileDirectory", - ["packagePreparePackageFile", "packageReadmeFile"] - ]; - } - - /** - * Creates a package and publishes it to npm. - */ - @SequenceTask() - publish() { - return ["package", "npmPublish"]; - } - - // ------------------------------------------------------------------------- - // Run tests tasks - // ------------------------------------------------------------------------- - - /** - * Runs ts linting to validate source code. - */ - @Task() - tslint() { - return gulp.src(["./src/**/*.ts", "./test/**/*.ts", "./sample/**/*.ts"]) - .pipe(tslintPlugin()) - .pipe(tslintPlugin.report({ - emitError: true - })); - } - - /** - * Runs unit-tests. - */ - @Task() - unit() { - chai.should(); - chai.use(require("sinon-chai")); - chai.use(require("chai-as-promised")); - return gulp.src("./build/compiled/test/**/*.js") - .pipe(mocha()); - } - - /** - * Runs before test coverage, required step to perform a test coverage. - */ - @Task() - coveragePre() { - return gulp.src(["./build/compiled/src/**/*.js"]) - .pipe(istanbul()) - .pipe(istanbul.hookRequire()); - } - - /** - * Runs post coverage operations. - */ - @Task("coveragePost") - coveragePost() { - chai.should(); - chai.use(require("sinon-chai")); - chai.use(require("chai-as-promised")); - - return gulp.src(["./build/compiled/test/**/*.js"]) - .pipe(mocha()) - .pipe(istanbul.writeReports()); - } - - @Task() - coverageRemap() { - return gulp.src("./coverage/coverage-final.json") - .pipe(remapIstanbul()) - .pipe(gulp.dest("./coverage")); - } - - /** - * Compiles the code and runs tests. - */ - @SequenceTask() - tests() { - return ["compile", "tslint", "coveragePre", "coveragePost", "coverageRemap"]; - } - -} diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000000..54ad0dbdd6 --- /dev/null +++ b/jest.config.js @@ -0,0 +1,24 @@ +module.exports = { + modulePaths: ["/node_modules"], + transform: { + "^.+\\.tsx?$": "ts-jest" + }, + testRegex: "(/__test__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", + testEnvironment: "node", + moduleFileExtensions: [ + "ts", + "tsx", + "js", + "jsx", + "json", + "node" + ], + modulePathIgnorePatterns: [ + "/build/" + ], + coverageReporters: [ + // "html", + // "lcov", + "text-summary" + ] +}; diff --git a/package-lock.json b/package-lock.json index 5f65de05f4..f218fcc1b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,450 +1,812 @@ { "name": "class-validator", - "version": "0.11.0", + "version": "0.12.0", "lockfileVersion": 1, "requires": true, "dependencies": { - "@gulp-sourcemaps/identity-map": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@gulp-sourcemaps/identity-map/-/identity-map-1.0.2.tgz", - "integrity": "sha512-ciiioYMLdo16ShmfHBXJBOFm3xPC4AuwO4xeRpFeHz7WK9PYsWCmigagG2XyzZpubK4a3qNKoUBDhbzHfa50LQ==", + "@babel/code-frame": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", + "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "dev": true, + "requires": { + "@babel/highlight": "^7.8.3" + } + }, + "@babel/core": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.9.0.tgz", + "integrity": "sha512-kWc7L0fw1xwvI0zi8OKVBuxRVefwGOrKSQMvrQ3dW+bIIavBY3/NpXmpjMy7bQnLgwgzWQZ8TlM57YHpHNHz4w==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.8.3", + "@babel/generator": "^7.9.0", + "@babel/helper-module-transforms": "^7.9.0", + "@babel/helpers": "^7.9.0", + "@babel/parser": "^7.9.0", + "@babel/template": "^7.8.6", + "@babel/traverse": "^7.9.0", + "@babel/types": "^7.9.0", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.1", + "json5": "^2.1.2", + "lodash": "^4.17.13", + "resolve": "^1.3.2", + "semver": "^5.4.1", + "source-map": "^0.5.0" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "@babel/generator": { + "version": "7.9.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.9.4.tgz", + "integrity": "sha512-rjP8ahaDy/ouhrvCoU1E5mqaitWrxwuNGU+dy1EpaoK48jZay4MdkskKGIMHLZNewg8sAsqpGSREJwP0zH3YQA==", "dev": true, "requires": { - "acorn": "^5.0.3", - "css": "^2.2.1", - "normalize-path": "^2.1.1", - "source-map": "^0.6.0", - "through2": "^2.0.3" + "@babel/types": "^7.9.0", + "jsesc": "^2.5.1", + "lodash": "^4.17.13", + "source-map": "^0.5.0" }, "dependencies": { "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", "dev": true } } }, - "@gulp-sourcemaps/map-sources": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@gulp-sourcemaps/map-sources/-/map-sources-1.0.0.tgz", - "integrity": "sha1-iQrnxdjId/bThIYCFazp1+yUW9o=", + "@babel/helper-function-name": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz", + "integrity": "sha512-BCxgX1BC2hD/oBlIFUgOCQDOPV8nSINxCwM3o93xP4P9Fq6aV5sgv2cOOITDMtCfQ+3PvHp3l689XZvAM9QyOA==", "dev": true, "requires": { - "normalize-path": "^2.0.1", - "through2": "^2.0.3" + "@babel/helper-get-function-arity": "^7.8.3", + "@babel/template": "^7.8.3", + "@babel/types": "^7.8.3" } }, - "@nodelib/fs.scandir": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.1.tgz", - "integrity": "sha512-NT/skIZjgotDSiXs0WqYhgcuBKhUMgfekCmCGtkUAiLqZdOnrdjmZr9wRl3ll64J9NF79uZ4fk16Dx0yMc/Xbg==", + "@babel/helper-get-function-arity": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", + "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", "dev": true, "requires": { - "@nodelib/fs.stat": "2.0.1", - "run-parallel": "^1.1.9" + "@babel/types": "^7.8.3" } }, - "@nodelib/fs.stat": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.1.tgz", - "integrity": "sha512-+RqhBlLn6YRBGOIoVYthsG0J9dfpO79eJyN7BYBkZJtfqrBwf2KK+rD/M/yjZR6WBmIhAgOV7S60eCgaSWtbFw==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.2.tgz", - "integrity": "sha512-J/DR3+W12uCzAJkw7niXDcqcKBg6+5G5Q/ZpThpGNzAUz70eOR6RV4XnnSN01qHZiVl0eavoxJsBypQoKsV2QQ==", + "@babel/helper-member-expression-to-functions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.8.3.tgz", + "integrity": "sha512-fO4Egq88utkQFjbPrSHGmGLFqmrshs11d46WI+WZDESt7Wu7wN2G2Iu+NMMZJFDOVRHAMIkB5SNh30NtwCA7RA==", "dev": true, "requires": { - "@nodelib/fs.scandir": "2.1.1", - "fastq": "^1.6.0" + "@babel/types": "^7.8.3" } }, - "@sinonjs/commons": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.7.0.tgz", - "integrity": "sha512-qbk9AP+cZUsKdW1GJsBpxPKFmCJ0T8swwzVje3qFd+AkQb74Q/tiuzrdfFg8AD2g5HH/XbE/I8Uc1KYHVYWfhg==", + "@babel/helper-module-imports": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz", + "integrity": "sha512-R0Bx3jippsbAEtzkpZ/6FIiuzOURPcMjHp+Z6xPe6DtApDJx+w7UYyOLanZqO8+wKR9G10s/FmHXvxaMd9s6Kg==", "dev": true, "requires": { - "type-detect": "4.0.8" + "@babel/types": "^7.8.3" } }, - "@sinonjs/formatio": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-4.0.1.tgz", - "integrity": "sha512-asIdlLFrla/WZybhm0C8eEzaDNNrzymiTqHMeJl6zPW2881l3uuVRpm0QlRQEjqYWv6CcKMGYME3LbrLJsORBw==", + "@babel/helper-module-transforms": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.9.0.tgz", + "integrity": "sha512-0FvKyu0gpPfIQ8EkxlrAydOWROdHpBmiCiRwLkUiBGhCUPRRbVD2/tm3sFr/c/GWFrQ/ffutGUAnx7V0FzT2wA==", "dev": true, "requires": { - "@sinonjs/commons": "^1", - "@sinonjs/samsam": "^4.2.0" + "@babel/helper-module-imports": "^7.8.3", + "@babel/helper-replace-supers": "^7.8.6", + "@babel/helper-simple-access": "^7.8.3", + "@babel/helper-split-export-declaration": "^7.8.3", + "@babel/template": "^7.8.6", + "@babel/types": "^7.9.0", + "lodash": "^4.17.13" } }, - "@sinonjs/samsam": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-4.2.0.tgz", - "integrity": "sha512-yG7QbUz38ZPIegfuSMEcbOo0kkLGmPa8a0Qlz4dk7+cXYALDScWjIZzAm/u2+Frh+bcdZF6wZJZwwuJjY0WAjA==", + "@babel/helper-optimise-call-expression": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.8.3.tgz", + "integrity": "sha512-Kag20n86cbO2AvHca6EJsvqAd82gc6VMGule4HwebwMlwkpXuVqrNRj6CkCV2sKxgi9MyAUnZVnZ6lJ1/vKhHQ==", "dev": true, "requires": { - "@sinonjs/commons": "^1.6.0", - "array-from": "^2.1.1", - "lodash.get": "^4.4.2" + "@babel/types": "^7.8.3" } }, - "@sinonjs/text-encoding": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz", - "integrity": "sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==", + "@babel/helper-plugin-utils": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz", + "integrity": "sha512-j+fq49Xds2smCUNYmEHF9kGNkhbet6yVIBp4e6oeQpH1RUs/Ir06xUKzDjDkGcaaokPiTNs2JBWHjaE4csUkZQ==", "dev": true }, - "@types/chai": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.2.0.tgz", - "integrity": "sha512-zw8UvoBEImn392tLjxoavuonblX/4Yb9ha4KBU10FirCfwgzhKO0dvyJSF9ByxV1xK1r2AgnAi/tvQaLgxQqxA==", - "dev": true + "@babel/helper-replace-supers": { + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.8.6.tgz", + "integrity": "sha512-PeMArdA4Sv/Wf4zXwBKPqVj7n9UF/xg6slNRtZW84FM7JpE1CbG8B612FyM4cxrf4fMAMGO0kR7voy1ForHHFA==", + "dev": true, + "requires": { + "@babel/helper-member-expression-to-functions": "^7.8.3", + "@babel/helper-optimise-call-expression": "^7.8.3", + "@babel/traverse": "^7.8.6", + "@babel/types": "^7.8.6" + } }, - "@types/chai-as-promised": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/@types/chai-as-promised/-/chai-as-promised-7.1.2.tgz", - "integrity": "sha512-PO2gcfR3Oxa+u0QvECLe1xKXOqYTzCmWf0FhLhjREoW3fPAVamjihL7v1MOVLJLsnAMdLcjkfrs01yvDMwVK4Q==", + "@babel/helper-simple-access": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.8.3.tgz", + "integrity": "sha512-VNGUDjx5cCWg4vvCTR8qQ7YJYZ+HBjxOgXEl7ounz+4Sn7+LMD3CFrCTEU6/qXKbA2nKg21CwhhBzO0RpRbdCw==", "dev": true, "requires": { - "@types/chai": "*" + "@babel/template": "^7.8.3", + "@babel/types": "^7.8.3" } }, - "@types/chokidar": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/@types/chokidar/-/chokidar-1.7.5.tgz", - "integrity": "sha512-PDkSRY7KltW3M60hSBlerxI8SFPXsO3AL/aRVsO4Kh9IHRW74Ih75gUuTd/aE4LSSFqypb10UIX3QzOJwBQMGQ==", + "@babel/helper-split-export-declaration": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz", + "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==", "dev": true, "requires": { - "@types/events": "*", - "@types/node": "*" + "@babel/types": "^7.8.3" } }, - "@types/color-name": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", - "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", + "@babel/helper-validator-identifier": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.0.tgz", + "integrity": "sha512-6G8bQKjOh+of4PV/ThDm/rRqlU7+IGoJuofpagU5GlEl29Vv0RGqqt86ZGRV8ZuSOY3o+8yXl5y782SMcG7SHw==", "dev": true }, - "@types/del": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/del/-/del-4.0.0.tgz", - "integrity": "sha512-LDE5atstX5kKnTobWknpmGHC52DH/tp8pIVsD2SSxaOFqW3AQr0EpdzYIfkZ331xe7l9Vn9NlJsBG6viU3mjBA==", + "@babel/helpers": { + "version": "7.9.2", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.9.2.tgz", + "integrity": "sha512-JwLvzlXVPjO8eU9c/wF9/zOIN7X6h8DYf7mG4CiFRZRvZNKEF5dQ3H3V+ASkHoIB3mWhatgl5ONhyqHRI6MppA==", "dev": true, "requires": { - "del": "*" + "@babel/template": "^7.8.3", + "@babel/traverse": "^7.9.0", + "@babel/types": "^7.9.0" } }, - "@types/events": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@types/events/-/events-1.2.0.tgz", - "integrity": "sha512-KEIlhXnIutzKwRbQkGWb/I4HFqBuUykAdHgDED6xqwXJfONCjF5VoE0cXEiurh3XauygxzeDzgtXUqvLkxFzzA==", - "dev": true + "@babel/highlight": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", + "integrity": "sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.9.0", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } }, - "@types/fancy-log": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@types/fancy-log/-/fancy-log-1.3.0.tgz", - "integrity": "sha512-mQjDxyOM1Cpocd+vm1kZBP7smwKZ4TNokFeds9LV7OZibmPJFEzY3+xZMrKfUdNT71lv8GoCPD6upKwHxubClw==", + "@babel/parser": { + "version": "7.9.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.9.4.tgz", + "integrity": "sha512-bC49otXX6N0/VYhgOMh4gnP26E9xnDZK3TmbNpxYzzz9BQLBosQwfyOe9/cXUU3txYhTzLCbcqd5c8y/OmCjHA==", "dev": true }, - "@types/glob": { - "version": "5.0.35", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-5.0.35.tgz", - "integrity": "sha512-wc+VveszMLyMWFvXLkloixT4n0harUIVZjnpzztaZ0nKLuul7Z32iMt2fUFGAaZ4y1XWjFRMtCI5ewvyh4aIeg==", + "@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, "requires": { - "@types/events": "*", - "@types/minimatch": "*", - "@types/node": "*" + "@babel/helper-plugin-utils": "^7.8.0" } }, - "@types/glob-stream": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/@types/glob-stream/-/glob-stream-6.1.0.tgz", - "integrity": "sha512-RHv6ZQjcTncXo3thYZrsbAVwoy4vSKosSWhuhuQxLOTv74OJuFQxXkmUuZCr3q9uNBEVCvIzmZL/FeRNbHZGUg==", + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, "requires": { - "@types/glob": "*", - "@types/node": "*" + "@babel/helper-plugin-utils": "^7.8.0" } }, - "@types/gulp": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@types/gulp/-/gulp-4.0.5.tgz", - "integrity": "sha512-nx1QjPTiRpvLfYsZ7MBu7bT6Cm7tAXyLbY0xbdx2IEMxCK2v2urIhJMQZHW0iV1TskM71Xl6p2uRRuWDbk+/7g==", + "@babel/template": { + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", + "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==", "dev": true, "requires": { - "@types/chokidar": "*", - "@types/undertaker": "*", - "@types/vinyl-fs": "*" + "@babel/code-frame": "^7.8.3", + "@babel/parser": "^7.8.6", + "@babel/types": "^7.8.6" } }, - "@types/gulp-istanbul": { - "version": "0.9.32", - "resolved": "https://registry.npmjs.org/@types/gulp-istanbul/-/gulp-istanbul-0.9.32.tgz", - "integrity": "sha512-/up/FZZPsIw6VwsR6ONqZfhRt8Qq6T3W2ufrEZQIlTvTdfzByHWxmuO9zKLBqIBlNj0rfQgp9lxheJ+003qDRw==", + "@babel/traverse": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.9.0.tgz", + "integrity": "sha512-jAZQj0+kn4WTHO5dUZkZKhbFrqZE7K5LAQ5JysMnmvGij+wOdr+8lWqPeW0BcF4wFwrEXXtdGO7wcV6YPJcf3w==", "dev": true, "requires": { - "@types/node": "*" + "@babel/code-frame": "^7.8.3", + "@babel/generator": "^7.9.0", + "@babel/helper-function-name": "^7.8.3", + "@babel/helper-split-export-declaration": "^7.8.3", + "@babel/parser": "^7.9.0", + "@babel/types": "^7.9.0", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.13" } }, - "@types/gulp-mocha": { - "version": "0.0.32", - "resolved": "https://registry.npmjs.org/@types/gulp-mocha/-/gulp-mocha-0.0.32.tgz", - "integrity": "sha512-30OJubm6wl7oVFR7ibaaTl0h52sRQDJwB0h7SXm8KbPG7TN3Bb8QqNI7ObfGFjCoBCk9tr55R4278ckLMFzNcw==", + "@babel/types": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.0.tgz", + "integrity": "sha512-BS9JKfXkzzJl8RluW4JGknzpiUV7ZrvTayM6yfqLTVBEnFtyowVIOu6rqxRd5cVO6yGoWf4T8u8dgK9oB+GCng==", "dev": true, "requires": { - "@types/mocha": "*", - "@types/node": "*" + "@babel/helper-validator-identifier": "^7.9.0", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" } }, - "@types/gulp-replace": { - "version": "0.0.31", - "resolved": "https://registry.npmjs.org/@types/gulp-replace/-/gulp-replace-0.0.31.tgz", - "integrity": "sha512-dbgQ1u0N9ShXrzahBgQfMSu6qUh8nlTLt7whhQ0S0sEUHhV3scysppJ1UX0fl53PJENgAL99ueykddyrCaDt7g==", + "@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "@cnakazawa/watch": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz", + "integrity": "sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==", "dev": true, "requires": { - "@types/node": "*" + "exec-sh": "^0.3.2", + "minimist": "^1.2.0" } }, - "@types/gulp-sourcemaps": { - "version": "0.0.32", - "resolved": "https://registry.npmjs.org/@types/gulp-sourcemaps/-/gulp-sourcemaps-0.0.32.tgz", - "integrity": "sha512-+7BAmptW2bxyJnJcCEuie7vLoop3FwWgCdBMzyv7MYXED/HeNMeQuX7uPCkp4vfU1TTu4CYFH0IckNPvo0VePA==", + "@istanbuljs/load-nyc-config": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.0.0.tgz", + "integrity": "sha512-ZR0rq/f/E4f4XcgnDvtMWXCUJpi8eO0rssVhmztsZqLIEFA9UUP9zmpE0VxlM+kv/E1ul2I876Fwil2ayptDVg==", "dev": true, "requires": { - "@types/node": "*" + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" } }, - "@types/merge2": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/@types/merge2/-/merge2-1.1.4.tgz", - "integrity": "sha512-GjaXY4OultxbaOOk7lCLO7xvEcFpdjExC605YmfI6X29vhHKpJfMWKCDZd3x+BITrZaXKg97DgV/SdGVSwdzxA==", + "@istanbuljs/schema": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz", + "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==", + "dev": true + }, + "@jest/console": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-25.2.6.tgz", + "integrity": "sha512-bGp+0PicZVCEhb+ifnW9wpKWONNdkhtJsRE7ap729hiAfTvCN6VhGx0s/l/V/skA2pnyqq+N/7xl9ZWfykDpsg==", "dev": true, "requires": { - "@types/node": "*" + "@jest/source-map": "^25.2.6", + "chalk": "^3.0.0", + "jest-util": "^25.2.6", + "slash": "^3.0.0" } }, - "@types/minimatch": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", - "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==", - "dev": true + "@jest/core": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-25.2.6.tgz", + "integrity": "sha512-uMwUtpS4CWc7SadHcHEQ3VdrZ8A5u+UVbHIVUqhXcxlQ/bBC5+/T9IJGSu0o8e+/EXmFrTtl4zGr1nRPFq0Wlg==", + "dev": true, + "requires": { + "@jest/console": "^25.2.6", + "@jest/reporters": "^25.2.6", + "@jest/test-result": "^25.2.6", + "@jest/transform": "^25.2.6", + "@jest/types": "^25.2.6", + "ansi-escapes": "^4.2.1", + "chalk": "^3.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.3", + "jest-changed-files": "^25.2.6", + "jest-config": "^25.2.6", + "jest-haste-map": "^25.2.6", + "jest-message-util": "^25.2.6", + "jest-regex-util": "^25.2.6", + "jest-resolve": "^25.2.6", + "jest-resolve-dependencies": "^25.2.6", + "jest-runner": "^25.2.6", + "jest-runtime": "^25.2.6", + "jest-snapshot": "^25.2.6", + "jest-util": "^25.2.6", + "jest-validate": "^25.2.6", + "jest-watcher": "^25.2.6", + "micromatch": "^4.0.2", + "p-each-series": "^2.1.0", + "realpath-native": "^2.0.0", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + } + }, + "@jest/environment": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-25.2.6.tgz", + "integrity": "sha512-17WIw+wCb9drRNFw1hi8CHah38dXVdOk7ga9exThhGtXlZ9mK8xH4DjSB9uGDGXIWYSHmrxoyS6KJ7ywGr7bzg==", + "dev": true, + "requires": { + "@jest/fake-timers": "^25.2.6", + "@jest/types": "^25.2.6", + "jest-mock": "^25.2.6" + } + }, + "@jest/fake-timers": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-25.2.6.tgz", + "integrity": "sha512-A6qtDIA2zg/hVgUJJYzQSHFBIp25vHdSxW/s4XmTJAYxER6eL0NQdQhe4+232uUSviKitubHGXXirt5M7blPiA==", + "dev": true, + "requires": { + "@jest/types": "^25.2.6", + "jest-message-util": "^25.2.6", + "jest-mock": "^25.2.6", + "jest-util": "^25.2.6", + "lolex": "^5.0.0" + } + }, + "@jest/reporters": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-25.2.6.tgz", + "integrity": "sha512-DRMyjaxcd6ZKctiXNcuVObnPwB1eUs7xrUVu0J2V0p5/aZJei5UM9GL3s/bmN4hRV8Mt3zXh+/9X2o0Q4ClZIA==", + "dev": true, + "requires": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^25.2.6", + "@jest/test-result": "^25.2.6", + "@jest/transform": "^25.2.6", + "@jest/types": "^25.2.6", + "chalk": "^3.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^4.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.0.0", + "jest-haste-map": "^25.2.6", + "jest-resolve": "^25.2.6", + "jest-util": "^25.2.6", + "jest-worker": "^25.2.6", + "node-notifier": "^6.0.0", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^3.1.0", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^4.0.1" + } }, - "@types/mocha": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-7.0.0.tgz", - "integrity": "sha512-6mh1VlA343Ax31blo37+KZ0DxDOA8b6cL963xPOOt7fMYtG07aJJ+0FRLvcDO4KrL45faOS104G7kwAjZc9l4w==", - "dev": true + "@jest/source-map": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-25.2.6.tgz", + "integrity": "sha512-VuIRZF8M2zxYFGTEhkNSvQkUKafQro4y+mwUxy5ewRqs5N/ynSFUODYp3fy1zCnbCMy1pz3k+u57uCqx8QRSQQ==", + "dev": true, + "requires": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.3", + "source-map": "^0.6.0" + } }, - "@types/node": { - "version": "12.7.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.1.tgz", - "integrity": "sha512-aK9jxMypeSrhiYofWWBf/T7O+KwaiAHzM4sveCdWPn71lzUSMimRnKzhXDKfKwV1kWoBo2P1aGgaIYGLf9/ljw==", - "dev": true + "@jest/test-result": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-25.2.6.tgz", + "integrity": "sha512-gmGgcF4qz/pkBzyfJuVHo2DA24kIgVQ5Pf/VpW4QbyMLSegi8z+9foSZABfIt5se6k0fFj/3p/vrQXdaOgit0w==", + "dev": true, + "requires": { + "@jest/console": "^25.2.6", + "@jest/types": "^25.2.6", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + } }, - "@types/sinon": { - "version": "7.0.13", - "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-7.0.13.tgz", - "integrity": "sha512-d7c/C/+H/knZ3L8/cxhicHUiTDxdgap0b/aNJfsmLwFu/iOP17mdgbQsbHA3SJmrzsjD0l3UEE5SN4xxuz5ung==", - "dev": true + "@jest/test-sequencer": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-25.2.6.tgz", + "integrity": "sha512-6sHqVeXbEapfxoGb77NKCywNn9jc4WlIPtFqhwCKGhigGnpl42AuyLxclRWxbFx+V63ozzfjnemYxqHlkcoikQ==", + "dev": true, + "requires": { + "@jest/test-result": "^25.2.6", + "jest-haste-map": "^25.2.6", + "jest-runner": "^25.2.6", + "jest-runtime": "^25.2.6" + } }, - "@types/undertaker": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@types/undertaker/-/undertaker-1.2.0.tgz", - "integrity": "sha512-bx/5nZCGkasXs6qaA3B6SVDjBZqdyk04UO12e0uEPSzjt5H8jEJw0DKe7O7IM0hM2bVHRh70pmOH7PEHqXwzOw==", + "@jest/transform": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-25.2.6.tgz", + "integrity": "sha512-rZnjCjZf9avPOf9q/w9RUZ9Uc29JmB53uIXNJmNz04QbDMD5cR/VjfikiMKajBsXe2vnFl5sJ4RTt+9HPicauQ==", "dev": true, "requires": { - "@types/events": "*", - "@types/undertaker-registry": "*" + "@babel/core": "^7.1.0", + "@jest/types": "^25.2.6", + "babel-plugin-istanbul": "^6.0.0", + "chalk": "^3.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.3", + "jest-haste-map": "^25.2.6", + "jest-regex-util": "^25.2.6", + "jest-util": "^25.2.6", + "micromatch": "^4.0.2", + "pirates": "^4.0.1", + "realpath-native": "^2.0.0", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" } }, - "@types/undertaker-registry": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@types/undertaker-registry/-/undertaker-registry-1.0.1.tgz", - "integrity": "sha512-Z4TYuEKn9+RbNVk1Ll2SS4x1JeLHecolIbM/a8gveaHsW0Hr+RQMraZACwTO2VD7JvepgA6UO1A1VrbktQrIbQ==", - "dev": true + "@jest/types": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.2.6.tgz", + "integrity": "sha512-myJTTV37bxK7+3NgKc4Y/DlQ5q92/NOwZsZ+Uch7OXdElxOg61QYc72fPYNAjlvbnJ2YvbXLamIsa9tj48BmyQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^1.1.1", + "@types/yargs": "^15.0.0", + "chalk": "^3.0.0" + } }, - "@types/validator": { - "version": "10.11.3", - "resolved": "https://registry.npmjs.org/@types/validator/-/validator-10.11.3.tgz", - "integrity": "sha512-GKF2VnEkMmEeEGvoo03ocrP9ySMuX1ypKazIYMlsjfslfBMhOAtC5dmEWKdJioW4lJN7MZRS88kalTsVClyQ9w==" + "@sinonjs/commons": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.7.1.tgz", + "integrity": "sha512-Debi3Baff1Qu1Unc3mjJ96MgpbwTn43S1+9yJ0llWygPwDNu2aaWBD6yc9y/Z8XDRNhx7U+u2UDg2OGQXkclUQ==", + "dev": true, + "requires": { + "type-detect": "4.0.8" + } }, - "@types/vinyl": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@types/vinyl/-/vinyl-2.0.2.tgz", - "integrity": "sha512-2iYpNuOl98SrLPBZfEN9Mh2JCJ2EI9HU35SfgBEb51DcmaHkhp8cKMblYeBqMQiwXMgAD3W60DbQ4i/UdLiXhw==", + "@types/babel__core": { + "version": "7.1.7", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.7.tgz", + "integrity": "sha512-RL62NqSFPCDK2FM1pSDH0scHpJvsXtZNiYlMB73DgPBaG1E38ZYVL+ei5EkWRbr+KC4YNiAUNBnRj+bgwpgjMw==", "dev": true, "requires": { - "@types/node": "*" + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" } }, - "@types/vinyl-fs": { - "version": "2.4.8", - "resolved": "https://registry.npmjs.org/@types/vinyl-fs/-/vinyl-fs-2.4.8.tgz", - "integrity": "sha512-yE2pN9OOrxJVeO7IZLHAHrh5R4Q0osbn5WQRuQU6GdXoK7dNFrMK3K7YhATkzf3z0yQBkol3+gafs7Rp0s7dDg==", + "@types/babel__generator": { + "version": "7.6.1", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.1.tgz", + "integrity": "sha512-bBKm+2VPJcMRVwNhxKu8W+5/zT7pwNEqeokFOmbvVSqGzFneNxYcEBro9Ac7/N9tlsaPYnZLK8J1LWKkMsLAew==", "dev": true, "requires": { - "@types/glob-stream": "*", - "@types/node": "*", - "@types/vinyl": "*" + "@babel/types": "^7.0.0" } }, - "JSONStream": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", - "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", + "@types/babel__template": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.0.2.tgz", + "integrity": "sha512-/K6zCpeW7Imzgab2bLkLEbz0+1JlFSrUMdw7KoIIu+IUdu51GWaBZpd3y1VXGVXzynvGa4DaIaxNZHiON3GXUg==", "dev": true, "requires": { - "jsonparse": "^1.2.0", - "through": ">=2.2.7 <3" + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" } }, - "abbrev": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.9.tgz", - "integrity": "sha1-kbR5JYinc4wl813W9jdSovh3YTU=", - "dev": true + "@types/babel__traverse": { + "version": "7.0.9", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.0.9.tgz", + "integrity": "sha512-jEFQ8L1tuvPjOI8lnpaf73oCJe+aoxL6ygqSy6c8LcW98zaC+4mzWuQIRCEvKeCOu+lbqdXcg4Uqmm1S8AP1tw==", + "dev": true, + "requires": { + "@babel/types": "^7.3.0" + } }, - "acorn": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.1.tgz", - "integrity": "sha512-d+nbxBUGKg7Arpsvbnlq61mc12ek3EY8EQldM3GPAhWJ1UVxC6TDGbIvUMNU6obBX3i1+ptCIzV4vq0gFPEGVQ==", + "@types/color-name": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", + "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", "dev": true }, - "add-stream": { + "@types/eslint-visitor-keys": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/add-stream/-/add-stream-1.0.0.tgz", - "integrity": "sha1-anmQQ3ynNtXhKI25K9MmbV9csqo=", + "resolved": "https://registry.npmjs.org/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz", + "integrity": "sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==", "dev": true }, - "ajv": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", - "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", + "@types/istanbul-lib-coverage": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz", + "integrity": "sha512-hRJD2ahnnpLgsj6KWMYSrmXkM3rm2Dl1qkx6IOFD5FnuNPXJIG5L0dhgKXCYTRMGzU4n0wImQ/xfmRc4POUFlg==", + "dev": true + }, + "@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", "dev": true, "requires": { - "co": "^4.6.0", - "fast-deep-equal": "^1.0.0", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.3.0" + "@types/istanbul-lib-coverage": "*" } }, - "align-text": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", - "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", + "@types/istanbul-reports": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.1.tgz", + "integrity": "sha512-UpYjBi8xefVChsCoBpKShdxTllC9pwISirfoZsUa2AAdQg/Jd2KQGtSbw+ya7GPo7x/wAPlH6JBhKhAsXUEZNA==", "dev": true, - "optional": true, "requires": { - "kind-of": "^3.0.2", - "longest": "^1.0.1", - "repeat-string": "^1.5.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "optional": true, - "requires": { - "is-buffer": "^1.1.5" - } - } + "@types/istanbul-lib-coverage": "*", + "@types/istanbul-lib-report": "*" + } + }, + "@types/jest": { + "version": "25.1.5", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-25.1.5.tgz", + "integrity": "sha512-FBmb9YZHoEOH56Xo/PIYtfuyTL0IzJLM3Hy0Sqc82nn5eqqXgefKcl/eMgChM8eSGVfoDee8cdlj7K74T8a6Yg==", + "dev": true, + "requires": { + "jest-diff": "25.1.0", + "pretty-format": "25.1.0" } }, - "amdefine": { + "@types/json-schema": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.4.tgz", + "integrity": "sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA==", + "dev": true + }, + "@types/node": { + "version": "13.11.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-13.11.0.tgz", + "integrity": "sha512-uM4mnmsIIPK/yeO+42F2RQhGUIs39K2RFmugcJANppXe6J1nvH87PvzPZYpza7Xhhs8Yn9yIAVdLZ84z61+0xQ==", + "dev": true + }, + "@types/prettier": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-1.19.1.tgz", + "integrity": "sha512-5qOlnZscTn4xxM5MeGXAMOsIOIKIbh9e85zJWfBRVPlRMEVawzoPhINYbRGkBZCI8LxvBe7tJCdWiarA99OZfQ==", + "dev": true + }, + "@types/stack-utils": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", - "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-1.0.1.tgz", + "integrity": "sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==", "dev": true }, - "ansi-colors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz", - "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", + "@types/validator": { + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/@types/validator/-/validator-12.0.1.tgz", + "integrity": "sha512-l57fIANZLMe8DArz+SDb+7ATXnDm15P7u2wHBw5mb0aSMd+UuvmvhouBF2hdLgQPDMJ39sh9g2MJO4GkZ0VAdQ==" + }, + "@types/yargs": { + "version": "15.0.4", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.4.tgz", + "integrity": "sha512-9T1auFmbPZoxHz0enUFlUuKRy3it01R+hlggyVUMtnCTQRunsQYifnSGb8hET4Xo8yiC0o0r1paW3ud5+rbURg==", "dev": true, "requires": { - "ansi-wrap": "^0.1.0" + "@types/yargs-parser": "*" } }, - "ansi-cyan": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-cyan/-/ansi-cyan-0.1.1.tgz", - "integrity": "sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM=", + "@types/yargs-parser": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-15.0.0.tgz", + "integrity": "sha512-FA/BWv8t8ZWJ+gEOnLLd8ygxH/2UFbAvgEonyfN6yWGLKc7zVjbpl2Y4CTjid9h2RfgPP6SEt6uHwEOply00yw==", + "dev": true + }, + "@typescript-eslint/eslint-plugin": { + "version": "2.26.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.26.0.tgz", + "integrity": "sha512-4yUnLv40bzfzsXcTAtZyTjbiGUXMrcIJcIMioI22tSOyAxpdXiZ4r7YQUU8Jj6XXrLz9d5aMHPQf5JFR7h27Nw==", "dev": true, "requires": { - "ansi-wrap": "0.1.0" + "@typescript-eslint/experimental-utils": "2.26.0", + "functional-red-black-tree": "^1.0.1", + "regexpp": "^3.0.0", + "tsutils": "^3.17.1" } }, - "ansi-gray": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz", - "integrity": "sha1-KWLPVOyXksSFEKPetSRDaGHvclE=", + "@typescript-eslint/experimental-utils": { + "version": "2.26.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.26.0.tgz", + "integrity": "sha512-RELVoH5EYd+JlGprEyojUv9HeKcZqF7nZUGSblyAw1FwOGNnmQIU8kxJ69fttQvEwCsX5D6ECJT8GTozxrDKVQ==", "dev": true, "requires": { - "ansi-wrap": "0.1.0" + "@types/json-schema": "^7.0.3", + "@typescript-eslint/typescript-estree": "2.26.0", + "eslint-scope": "^5.0.0", + "eslint-utils": "^2.0.0" } }, - "ansi-red": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", - "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", + "@typescript-eslint/parser": { + "version": "2.26.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.26.0.tgz", + "integrity": "sha512-+Xj5fucDtdKEVGSh9353wcnseMRkPpEAOY96EEenN7kJVrLqy/EVwtIh3mxcUz8lsFXW1mT5nN5vvEam/a5HiQ==", "dev": true, "requires": { - "ansi-wrap": "0.1.0" + "@types/eslint-visitor-keys": "^1.0.0", + "@typescript-eslint/experimental-utils": "2.26.0", + "@typescript-eslint/typescript-estree": "2.26.0", + "eslint-visitor-keys": "^1.1.0" } }, - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "@typescript-eslint/typescript-estree": { + "version": "2.26.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.26.0.tgz", + "integrity": "sha512-3x4SyZCLB4zsKsjuhxDLeVJN6W29VwBnYpCsZ7vIdPel9ZqLfIZJgJXO47MNUkurGpQuIBALdPQKtsSnWpE1Yg==", + "dev": true, + "requires": { + "debug": "^4.1.1", + "eslint-visitor-keys": "^1.1.0", + "glob": "^7.1.6", + "is-glob": "^4.0.1", + "lodash": "^4.17.15", + "semver": "^6.3.0", + "tsutils": "^3.17.1" + } + }, + "abab": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.3.tgz", + "integrity": "sha512-tsFzPpcttalNjFBCFMqsKYQcWxxen1pgJR56by//QwvJc4/OUS3kPOOttx2tSIfjsylB0pYu7f5D3K1RCxUnUg==", "dev": true }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "acorn": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz", + "integrity": "sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg==", "dev": true }, - "ansi-wrap": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", - "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", + "acorn-globals": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.3.4.tgz", + "integrity": "sha512-clfQEh21R+D0leSbUdWf3OcfqyaCSAQ8Ryq00bofSekfr9W8u1jyYZo6ir0xu9Gtcf7BjcHJpnbZH7JOCpP60A==", + "dev": true, + "requires": { + "acorn": "^6.0.1", + "acorn-walk": "^6.0.1" + }, + "dependencies": { + "acorn": { + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.1.tgz", + "integrity": "sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA==", + "dev": true + } + } + }, + "acorn-jsx": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.2.0.tgz", + "integrity": "sha512-HiUX/+K2YpkpJ+SzBffkM/AQ2YE03S0U1kjTLVpoJdhZMOWy8qvXVN9JdLqv2QsaQ6MPYQIuNmwD8zOiYUofLQ==", "dev": true }, - "anymatch": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", - "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "acorn-walk": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-6.2.0.tgz", + "integrity": "sha512-7evsyfH1cLOCdAzZAd43Cic04yKydNx0cF+7tiA19p1XnLLPU4dpCQOqpjqwokFe//vS0QqfqqjCS2JkiIs0cA==", + "dev": true + }, + "ajv": { + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.0.tgz", + "integrity": "sha512-D6gFiFA0RRLyUbvijN74DWAjXSFxWKaWP7mldxkVhyhAV3+SWA9HEJPHQ2c9soIeTFJqcSdFDGFgdqs1iUU2Hw==", "dev": true, "requires": { - "micromatch": "^3.1.4", - "normalize-path": "^2.1.1" + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" } }, - "append-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/append-buffer/-/append-buffer-1.0.2.tgz", - "integrity": "sha1-2CIM9GYIFSXv6lBhTz3mUU36WPE=", + "ansi-escapes": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz", + "integrity": "sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==", "dev": true, "requires": { - "buffer-equal": "^1.0.0" + "type-fest": "^0.11.0" } }, - "archy": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", - "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", + "ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", "dev": true }, + "ansi-styles": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", + "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", + "dev": true, + "requires": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + } + }, + "anymatch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", + "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", + "dev": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, "arg": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.1.tgz", - "integrity": "sha512-SlmP3fEA88MBv0PypnXZ8ZfJhwmDeIE3SP71j37AiXQBXYosPV0x6uISAaHYSlSVhmHOVkomen0tbGk6Anlebw==", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", "dev": true }, "argparse": { @@ -456,166 +818,49 @@ "sprintf-js": "~1.0.2" } }, - "argv": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/argv/-/argv-0.0.2.tgz", - "integrity": "sha1-7L0W+JSbFXGDcRsb2jNPN4QBhas=", - "dev": true - }, "arr-diff": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", "dev": true }, - "arr-filter": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/arr-filter/-/arr-filter-1.1.2.tgz", - "integrity": "sha1-Q/3d0JHo7xGqTEXZzcGOLf8XEe4=", - "dev": true, - "requires": { - "make-iterator": "^1.0.0" - } - }, "arr-flatten": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", "dev": true }, - "arr-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/arr-map/-/arr-map-2.0.2.tgz", - "integrity": "sha1-Onc0X/wc814qkYJWAfnljy4kysQ=", - "dev": true, - "requires": { - "make-iterator": "^1.0.0" - } - }, "arr-union": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", "dev": true }, - "array-each": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz", - "integrity": "sha1-p5SvDAWrF1KEbudTofIRoFugxE8=", + "array-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz", + "integrity": "sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=", "dev": true }, - "array-find-index": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", - "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", "dev": true }, - "array-from": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/array-from/-/array-from-2.1.1.tgz", - "integrity": "sha1-z+nYwmYoudxa7MYqn12PHzUsEZU=", - "dev": true + "asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "dev": true, + "requires": { + "safer-buffer": "~2.1.0" + } }, - "array-ify": { + "assert-plus": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", - "integrity": "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=", - "dev": true - }, - "array-initial": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/array-initial/-/array-initial-1.1.0.tgz", - "integrity": "sha1-L6dLJnOTccOUe9enrcc74zSz15U=", - "dev": true, - "requires": { - "array-slice": "^1.0.0", - "is-number": "^4.0.0" - }, - "dependencies": { - "is-number": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", - "dev": true - } - } - }, - "array-last": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/array-last/-/array-last-1.3.0.tgz", - "integrity": "sha512-eOCut5rXlI6aCOS7Z7kCplKRKyiFQ6dHFBem4PwlwKeNFk2/XxTrhRh5T9PyaEWGy/NHTZWbY+nsZlNFJu9rYg==", - "dev": true, - "requires": { - "is-number": "^4.0.0" - }, - "dependencies": { - "is-number": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", - "dev": true - } - } - }, - "array-slice": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-1.1.0.tgz", - "integrity": "sha512-B1qMD3RBP7O8o0H2KbrXDyB0IccejMF15+87Lvlor12ONPRHP6gTjXMNkt/d3ZuOGbAe66hFmaCfECI24Ufp6w==", - "dev": true - }, - "array-sort": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-sort/-/array-sort-1.0.0.tgz", - "integrity": "sha512-ihLeJkonmdiAsD7vpgN3CRcx2J2S0TiYW+IS/5zHBI7mKUq3ySvBdzzBfD236ubDBQFiiyG3SWCPc+msQ9KoYg==", - "dev": true, - "requires": { - "default-compare": "^1.0.0", - "get-value": "^2.0.6", - "kind-of": "^5.0.2" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } - } - }, - "array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true - }, - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", - "dev": true - }, - "asn1": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", - "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=", - "dev": true - }, - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true - }, - "assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", "dev": true }, "assign-symbols": { @@ -624,38 +869,11 @@ "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", "dev": true }, - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", - "dev": true - }, - "async-done": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/async-done/-/async-done-1.3.2.tgz", - "integrity": "sha512-uYkTP8dw2og1tu1nmza1n1CMW0qb8gWWlwqMmLb7MhBVs4BXrFziT6HXUd+/RlRA/i4H9AkofYloUbs1fwMqlw==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.2", - "process-nextick-args": "^2.0.0", - "stream-exhaust": "^1.0.1" - } - }, - "async-each": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz", - "integrity": "sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ==", - "dev": true - }, - "async-settle": { + "astral-regex": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/async-settle/-/async-settle-1.0.0.tgz", - "integrity": "sha1-HQqRS7Aldb7IqPOnTlCA9yssDGs=", - "dev": true, - "requires": { - "async-done": "^1.2.2" - } + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", + "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", + "dev": true }, "asynckit": { "version": "0.4.0", @@ -664,9 +882,9 @@ "dev": true }, "atob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.1.tgz", - "integrity": "sha1-ri1acpR38onWDdf5amMUoi3Wwio=", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", "dev": true }, "aws-sign2": { @@ -676,37 +894,57 @@ "dev": true }, "aws4": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.7.0.tgz", - "integrity": "sha512-32NDda82rhwD9/JBCCkB+MRYDp0oSvlo2IL6rQWA10PQi7tDUM3eqMSltXmY+Oyl/7N3P3qNtAlv7X0d9bI28w==", + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.1.tgz", + "integrity": "sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug==", "dev": true }, - "babel-code-frame": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", - "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "babel-jest": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-25.2.6.tgz", + "integrity": "sha512-MDJOAlwtIeIQiGshyX0d2PxTbV73xZMpNji40ivVTPQOm59OdRR9nYCkffqI7ugtsK4JR98HgNKbDbuVf4k5QQ==", "dev": true, "requires": { - "chalk": "^1.1.3", - "esutils": "^2.0.2", - "js-tokens": "^3.0.2" + "@jest/transform": "^25.2.6", + "@jest/types": "^25.2.6", + "@types/babel__core": "^7.1.0", + "babel-plugin-istanbul": "^6.0.0", + "babel-preset-jest": "^25.2.6", + "chalk": "^3.0.0", + "slash": "^3.0.0" } }, - "bach": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/bach/-/bach-1.2.0.tgz", - "integrity": "sha1-Szzpa/JxNPeaG0FKUcFONMO9mIA=", + "babel-plugin-istanbul": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.0.0.tgz", + "integrity": "sha512-AF55rZXpe7trmEylbaE1Gv54wn6rwU03aptvRoVIGP8YykoSxqdVLV1TfwflBCE/QtHmqtP8SWlTENqbK8GCSQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^4.0.0", + "test-exclude": "^6.0.0" + } + }, + "babel-plugin-jest-hoist": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-25.2.6.tgz", + "integrity": "sha512-qE2xjMathybYxjiGFJg0mLFrz0qNp83aNZycWDY/SuHiZNq+vQfRQtuINqyXyue1ELd8Rd+1OhFSLjms8msMbw==", "dev": true, "requires": { - "arr-filter": "^1.1.1", - "arr-flatten": "^1.0.1", - "arr-map": "^2.0.0", - "array-each": "^1.0.0", - "array-initial": "^1.0.0", - "array-last": "^1.1.1", - "async-done": "^1.2.2", - "async-settle": "^1.0.0", - "now-and-later": "^2.0.0" + "@types/babel__traverse": "^7.0.6" + } + }, + "babel-preset-jest": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-25.2.6.tgz", + "integrity": "sha512-Xh2eEAwaLY9+SyMt/xmGZDnXTW/7pSaBPG0EMo7EuhvosFKVWYB6CqwYD31DaEQuoTL090oDZ0FEqygffGRaSQ==", + "dev": true, + "requires": { + "@babel/plugin-syntax-bigint": "^7.0.0", + "@babel/plugin-syntax-object-rest-spread": "^7.0.0", + "babel-plugin-jest-hoist": "^25.2.6" } }, "balanced-match": { @@ -775,23 +1013,10 @@ "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", "dev": true, - "optional": true, "requires": { "tweetnacl": "^0.14.3" } }, - "binary-extensions": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", - "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", - "dev": true - }, - "binaryextensions": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/binaryextensions/-/binaryextensions-2.1.1.tgz", - "integrity": "sha512-XBaoWE9RW8pPdPQNibZsW2zh8TW6gcarXp1FZPwT8Uop8ScSNldJEWf2k9l3HeTqdrEwsOsFcq74RiJECW34yA==", - "dev": true - }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -803,56 +1028,59 @@ } }, "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" + "fill-range": "^7.0.1" + } + }, + "browser-process-hrtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", + "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", + "dev": true + }, + "browser-resolve": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", + "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", + "dev": true, + "requires": { + "resolve": "1.1.7" }, "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } + "resolve": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", + "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", + "dev": true } } }, - "browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true + "bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "requires": { + "fast-json-stable-stringify": "2.x" + } }, - "buffer-equal": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.0.tgz", - "integrity": "sha1-WWFrSYME1Var1GaWayLu2j7KX74=", - "dev": true + "bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "requires": { + "node-int64": "^0.4.0" + } }, "buffer-from": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.0.tgz", - "integrity": "sha512-c5mRlguI/Pe2dSZmpER62rSCu0ryKmWddzRYsuXc50U2/g8jMOulc31VZMa4mYx31U5xsmSOpDCgH88Vl9cDGQ==", - "dev": true - }, - "builtin-modules": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", "dev": true }, "cache-base": { @@ -872,30 +1100,25 @@ "unset-value": "^1.0.0" } }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, "camelcase": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", - "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", - "dev": true, - "optional": true + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true }, - "camelcase-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", - "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", + "capture-exit": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz", + "integrity": "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==", "dev": true, "requires": { - "camelcase": "^4.1.0", - "map-obj": "^2.0.0", - "quick-lru": "^1.0.0" - }, - "dependencies": { - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - } + "rsvp": "^4.8.4" } }, "caseless": { @@ -904,95 +1127,27 @@ "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", "dev": true }, - "center-align": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", - "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", - "dev": true, - "optional": true, - "requires": { - "align-text": "^0.1.3", - "lazy-cache": "^1.0.3" - } - }, - "chai": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.2.0.tgz", - "integrity": "sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw==", - "dev": true, - "requires": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.2", - "deep-eql": "^3.0.1", - "get-func-name": "^2.0.0", - "pathval": "^1.1.0", - "type-detect": "^4.0.5" - } - }, - "chai-as-promised": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/chai-as-promised/-/chai-as-promised-7.1.1.tgz", - "integrity": "sha512-azL6xMoi+uxu6z4rhWQ1jbdUhOMhis2PvscD/xjLqNMkv3BPPp2JyyuTHOrf9BOosGpNQ11v6BKv/g57RXbiaA==", - "dev": true, - "requires": { - "check-error": "^1.0.2" - } - }, "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", "dev": true, "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" } }, - "check-error": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", - "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", + "chardet": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", "dev": true }, - "chokidar": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.6.tgz", - "integrity": "sha512-V2jUo67OKkc6ySiRpJrjlpJKl9kDuG+Xb8VgsGzb+aEouhgS1D0weyPU4lEzdAcsCAvrih2J2BqyXqHWvVLw5g==", - "dev": true, - "requires": { - "anymatch": "^2.0.0", - "async-each": "^1.0.1", - "braces": "^2.3.2", - "fsevents": "^1.2.7", - "glob-parent": "^3.1.0", - "inherits": "^2.0.3", - "is-binary-path": "^1.0.0", - "is-glob": "^4.0.0", - "normalize-path": "^3.0.0", - "path-is-absolute": "^1.0.0", - "readdirp": "^2.2.1", - "upath": "^1.1.1" - }, - "dependencies": { - "is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - } - } + "ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true }, "class-utils": { "version": "0.3.6", @@ -1017,86 +1172,30 @@ } } }, - "cliui": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", - "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", + "cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", "dev": true, - "optional": true, "requires": { - "center-align": "^0.1.1", - "right-align": "^0.1.1", - "wordwrap": "0.0.2" - }, - "dependencies": { - "wordwrap": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", - "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", - "dev": true, - "optional": true - } + "restore-cursor": "^3.1.0" } }, - "clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", - "dev": true - }, - "clone-buffer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz", - "integrity": "sha1-4+JbIHrE5wGvch4staFnksrD3Fg=", - "dev": true - }, - "clone-stats": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", - "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", + "cli-width": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", + "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", "dev": true }, - "cloneable-readable": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.1.2.tgz", - "integrity": "sha512-Bq6+4t+lbM8vhTs/Bef5c5AdEMtapp/iFb6+s4/Hh9MVTt8OLKH7ZOOZSCT+Ys7hsHvqv0GuMPJ1lnQJVHvxpg==", + "cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", "dev": true, "requires": { - "inherits": "^2.0.1", - "process-nextick-args": "^2.0.0", - "readable-stream": "^2.3.5" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" } }, "co": { @@ -1105,35 +1204,12 @@ "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", "dev": true }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "collect-v8-coverage": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", + "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", "dev": true }, - "codecov": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/codecov/-/codecov-3.0.4.tgz", - "integrity": "sha512-KJyzHdg9B8U9LxXa7hS6jnEW5b1cNckLYc2YpnJ1nEFiOW+/iSzDHp+5MYEIQd9fN3/tC6WmGZmYiwxzkuGp/A==", - "dev": true, - "requires": { - "argv": "^0.0.2", - "ignore-walk": "^3.0.1", - "request": "^2.87.0", - "urlgrey": "^0.4.4" - } - }, - "collection-map": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/collection-map/-/collection-map-1.0.0.tgz", - "integrity": "sha1-rqDwb40mx4DCt1SUOFVEsiVa8Yw=", - "dev": true, - "requires": { - "arr-map": "^2.0.2", - "for-own": "^1.0.0", - "make-iterator": "^1.0.0" - } - }, "collection-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", @@ -1145,51 +1221,29 @@ } }, "color-convert": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.2.tgz", - "integrity": "sha512-3NUJZdhMhcdPn8vJ9v2UQJoH0qqoGUkYTgFEPZaPjEtwmmKUfNV46zZmgB2M5M4DCEQHMaCfWHCxiBflLm04Tg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { - "color-name": "1.1.1" + "color-name": "~1.1.4" } }, "color-name": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.1.tgz", - "integrity": "sha1-SxQVMEz1ACjqgWQ2Q72C6gWANok=", - "dev": true - }, - "color-support": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", - "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "combined-stream": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", - "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dev": true, "requires": { "delayed-stream": "~1.0.0" } }, - "commander": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", - "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", - "dev": true - }, - "compare-func": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz", - "integrity": "sha1-md0LpFfh+bxyKxLAjsM+6rMfpkg=", - "dev": true, - "requires": { - "array-ify": "^1.0.0", - "dot-prop": "^3.0.0" - } - }, "component-emitter": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", @@ -1202,440 +1256,192 @@ "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "dev": true }, - "concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "conventional-changelog": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-3.1.8.tgz", - "integrity": "sha512-fb3/DOLLrQdNqN0yYn/lT6HcNsAa9A+VTDBqlZBMQcEPPIeJIMI+DBs3yu+eiYOLi22w9oShq3nn/zN6qm1Hmw==", - "dev": true, - "requires": { - "conventional-changelog-angular": "^5.0.3", - "conventional-changelog-atom": "^2.0.1", - "conventional-changelog-codemirror": "^2.0.1", - "conventional-changelog-conventionalcommits": "^3.0.2", - "conventional-changelog-core": "^3.2.2", - "conventional-changelog-ember": "^2.0.2", - "conventional-changelog-eslint": "^3.0.2", - "conventional-changelog-express": "^2.0.1", - "conventional-changelog-jquery": "^3.0.4", - "conventional-changelog-jshint": "^2.0.1", - "conventional-changelog-preset-loader": "^2.1.1" - } - }, - "conventional-changelog-angular": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.3.tgz", - "integrity": "sha512-YD1xzH7r9yXQte/HF9JBuEDfvjxxwDGGwZU1+ndanbY0oFgA+Po1T9JDSpPLdP0pZT6MhCAsdvFKC4TJ4MTJTA==", - "dev": true, - "requires": { - "compare-func": "^1.3.1", - "q": "^1.5.1" - } - }, - "conventional-changelog-atom": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/conventional-changelog-atom/-/conventional-changelog-atom-2.0.1.tgz", - "integrity": "sha512-9BniJa4gLwL20Sm7HWSNXd0gd9c5qo49gCi8nylLFpqAHhkFTj7NQfROq3f1VpffRtzfTQp4VKU5nxbe2v+eZQ==", - "dev": true, - "requires": { - "q": "^1.5.1" - } - }, - "conventional-changelog-cli": { - "version": "2.0.21", - "resolved": "https://registry.npmjs.org/conventional-changelog-cli/-/conventional-changelog-cli-2.0.21.tgz", - "integrity": "sha512-gMT1XvSVmo9Np1WUXz8Mvt3K+OtzR+Xu13z0jq/3qsXBbLuYc2/oaUXVr68r3fYOL8E9dN2uvX7Hc7RkeWvRVA==", - "dev": true, - "requires": { - "add-stream": "^1.0.0", - "conventional-changelog": "^3.1.8", - "lodash": "^4.2.1", - "meow": "^4.0.0", - "tempfile": "^1.1.1" - } - }, - "conventional-changelog-codemirror": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/conventional-changelog-codemirror/-/conventional-changelog-codemirror-2.0.1.tgz", - "integrity": "sha512-23kT5IZWa+oNoUaDUzVXMYn60MCdOygTA2I+UjnOMiYVhZgmVwNd6ri/yDlmQGXHqbKhNR5NoXdBzSOSGxsgIQ==", + "convert-source-map": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", + "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", "dev": true, "requires": { - "q": "^1.5.1" + "safe-buffer": "~5.1.1" } }, - "conventional-changelog-conventionalcommits": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-3.0.2.tgz", - "integrity": "sha512-w1+fQSDnm/7+sPKIYC5nfRVYDszt+6HdWizrigSqWFVIiiBVzkHGeqDLMSHc+Qq9qssHVAxAak5206epZyK87A==", - "dev": true, - "requires": { - "compare-func": "^1.3.1", - "q": "^1.5.1" - } + "copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", + "dev": true }, - "conventional-changelog-core": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/conventional-changelog-core/-/conventional-changelog-core-3.2.2.tgz", - "integrity": "sha512-cssjAKajxaOX5LNAJLB+UOcoWjAIBvXtDMedv/58G+YEmAXMNfC16mmPl0JDOuVJVfIqM0nqQiZ8UCm8IXbE0g==", + "copyfiles": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/copyfiles/-/copyfiles-2.2.0.tgz", + "integrity": "sha512-iJbHJI+8OKqsq+4JF0rqgRkZzo++jqO6Wf4FUU1JM41cJF6JcY5968XyF4tm3Kkm7ZOMrqlljdm8N9oyY5raGw==", "dev": true, "requires": { - "conventional-changelog-writer": "^4.0.5", - "conventional-commits-parser": "^3.0.2", - "dateformat": "^3.0.0", - "get-pkg-repo": "^1.0.0", - "git-raw-commits": "2.0.0", - "git-remote-origin-url": "^2.0.0", - "git-semver-tags": "^2.0.2", - "lodash": "^4.2.1", - "normalize-package-data": "^2.3.5", - "q": "^1.5.1", - "read-pkg": "^3.0.0", - "read-pkg-up": "^3.0.0", - "through2": "^3.0.0" + "glob": "^7.0.5", + "minimatch": "^3.0.3", + "mkdirp": "^0.5.1", + "noms": "0.0.0", + "through2": "^2.0.1", + "yargs": "^13.2.4" }, "dependencies": { - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true }, - "load-json-file": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^4.0.0", - "pify": "^3.0.0", - "strip-bom": "^3.0.0" + "color-convert": "^1.9.0" } }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "cliui": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", + "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", "dev": true, "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" + "string-width": "^3.1.0", + "strip-ansi": "^5.2.0", + "wrap-ansi": "^5.1.0" } }, - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, "requires": { - "p-try": "^1.0.0" + "color-name": "1.1.3" } }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "requires": { - "p-limit": "^1.1.0" - } + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", "dev": true }, - "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", "dev": true, "requires": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" + "locate-path": "^3.0.0" } }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", "dev": true }, - "path-type": { + "locate-path": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", "dev": true, "requires": { - "pify": "^3.0.0" + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" } }, - "read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "mkdirp": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.4.tgz", + "integrity": "sha512-iG9AK/dJLtJ0XNgTuDbSyNS3zECqDlAhnQW4CsNxBG3LQJBbHmRX1egw39DmtOdCAqY+dKXV+sgPgilNWUKMVw==", "dev": true, "requires": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" + "minimist": "^1.2.5" } }, - "read-pkg-up": { + "p-locate": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", - "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", "dev": true, "requires": { - "find-up": "^2.0.0", - "read-pkg": "^3.0.0" + "p-limit": "^2.0.0" } }, - "strip-bom": { + "path-exists": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", "dev": true }, - "through2": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", - "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", "dev": true, "requires": { - "readable-stream": "2 || 3" + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" } - } - } - }, - "conventional-changelog-ember": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/conventional-changelog-ember/-/conventional-changelog-ember-2.0.2.tgz", - "integrity": "sha512-qtZbA3XefO/n6DDmkYywDYi6wDKNNc98MMl2F9PKSaheJ25Trpi3336W8fDlBhq0X+EJRuseceAdKLEMmuX2tg==", - "dev": true, - "requires": { - "q": "^1.5.1" - } - }, - "conventional-changelog-eslint": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/conventional-changelog-eslint/-/conventional-changelog-eslint-3.0.2.tgz", - "integrity": "sha512-Yi7tOnxjZLXlCYBHArbIAm8vZ68QUSygFS7PgumPRiEk+9NPUeucy5Wg9AAyKoBprSV3o6P7Oghh4IZSLtKCvQ==", - "dev": true, - "requires": { - "q": "^1.5.1" - } - }, - "conventional-changelog-express": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/conventional-changelog-express/-/conventional-changelog-express-2.0.1.tgz", - "integrity": "sha512-G6uCuCaQhLxdb4eEfAIHpcfcJ2+ao3hJkbLrw/jSK/eROeNfnxCJasaWdDAfFkxsbpzvQT4W01iSynU3OoPLIw==", - "dev": true, - "requires": { - "q": "^1.5.1" - } - }, - "conventional-changelog-jquery": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/conventional-changelog-jquery/-/conventional-changelog-jquery-3.0.4.tgz", - "integrity": "sha512-IVJGI3MseYoY6eybknnTf9WzeQIKZv7aNTm2KQsiFVJH21bfP2q7XVjfoMibdCg95GmgeFlaygMdeoDDa+ZbEQ==", - "dev": true, - "requires": { - "q": "^1.5.1" - } - }, - "conventional-changelog-jshint": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/conventional-changelog-jshint/-/conventional-changelog-jshint-2.0.1.tgz", - "integrity": "sha512-kRFJsCOZzPFm2tzRHULWP4tauGMvccOlXYf3zGeuSW4U0mZhk5NsjnRZ7xFWrTFPlCLV+PNmHMuXp5atdoZmEg==", - "dev": true, - "requires": { - "compare-func": "^1.3.1", - "q": "^1.5.1" - } - }, - "conventional-changelog-preset-loader": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-2.1.1.tgz", - "integrity": "sha512-K4avzGMLm5Xw0Ek/6eE3vdOXkqnpf9ydb68XYmCc16cJ99XMMbc2oaNMuPwAsxVK6CC1yA4/I90EhmWNj0Q6HA==", - "dev": true - }, - "conventional-changelog-writer": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.0.6.tgz", - "integrity": "sha512-ou/sbrplJMM6KQpR5rKFYNVQYesFjN7WpNGdudQSWNi6X+RgyFUcSv871YBYkrUYV9EX8ijMohYVzn9RUb+4ag==", - "dev": true, - "requires": { - "compare-func": "^1.3.1", - "conventional-commits-filter": "^2.0.2", - "dateformat": "^3.0.0", - "handlebars": "^4.1.0", - "json-stringify-safe": "^5.0.1", - "lodash": "^4.2.1", - "meow": "^4.0.0", - "semver": "^6.0.0", - "split": "^1.0.0", - "through2": "^3.0.0" - }, - "dependencies": { - "commander": { - "version": "2.20.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz", - "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==", - "dev": true, - "optional": true }, - "handlebars": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.1.2.tgz", - "integrity": "sha512-nvfrjqvt9xQ8Z/w0ijewdD/vvWDTOweBUm96NTr66Wfvo1mJenBLwcYmPs3TIBP5ruzYGD7Hx/DaM9RmhroGPw==", + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dev": true, "requires": { - "neo-async": "^2.6.0", - "optimist": "^0.6.1", - "source-map": "^0.6.1", - "uglify-js": "^3.1.4" + "ansi-regex": "^4.1.0" } }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "through2": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", - "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", + "wrap-ansi": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", + "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", "dev": true, "requires": { - "readable-stream": "2 || 3" + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" } }, - "uglify-js": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.6.0.tgz", - "integrity": "sha512-W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+yg==", + "yargs": { + "version": "13.3.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", + "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", "dev": true, - "optional": true, "requires": { - "commander": "~2.20.0", - "source-map": "~0.6.1" + "cliui": "^5.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.1.2" } - } - } - }, - "conventional-commits-filter": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.2.tgz", - "integrity": "sha512-WpGKsMeXfs21m1zIw4s9H5sys2+9JccTzpN6toXtxhpw2VNF2JUXwIakthKBy+LN4DvJm+TzWhxOMWOs1OFCFQ==", - "dev": true, - "requires": { - "lodash.ismatch": "^4.4.0", - "modify-values": "^1.0.0" - } - }, - "conventional-commits-parser": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.0.3.tgz", - "integrity": "sha512-KaA/2EeUkO4bKjinNfGUyqPTX/6w9JGshuQRik4r/wJz7rUw3+D3fDG6sZSEqJvKILzKXFQuFkpPLclcsAuZcg==", - "dev": true, - "requires": { - "JSONStream": "^1.0.4", - "is-text-path": "^2.0.0", - "lodash": "^4.2.1", - "meow": "^4.0.0", - "split2": "^2.0.0", - "through2": "^3.0.0", - "trim-off-newlines": "^1.0.0" - }, - "dependencies": { - "through2": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", - "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", + }, + "yargs-parser": { + "version": "13.1.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", + "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", "dev": true, "requires": { - "readable-stream": "2 || 3" + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" } } } }, - "convert-source-map": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz", - "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", - "dev": true - }, - "copy-descriptor": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", - "dev": true - }, - "copy-props": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/copy-props/-/copy-props-2.0.4.tgz", - "integrity": "sha512-7cjuUME+p+S3HZlbllgsn2CDwS+5eCCX16qBgNC4jgSTf49qR1VKy/Zhl400m0IQXl/bPGEVqncgUUMjrr4s8A==", - "dev": true, - "requires": { - "each-props": "^1.3.0", - "is-plain-object": "^2.0.1" - } - }, "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", @@ -1656,60 +1462,45 @@ }, "dependencies": { "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", "dev": true - } - } - }, - "css": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/css/-/css-2.2.3.tgz", - "integrity": "sha512-0W171WccAjQGGTKLhw4m2nnl0zPHUlTO/I8td4XzJgIB8Hg3ZZx71qT4G4eX8OVsSiaAKiUMy73E3nsbPlg2DQ==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "source-map": "^0.1.38", - "source-map-resolve": "^0.5.1", - "urix": "^0.1.0" - }, - "dependencies": { - "source-map": { - "version": "0.1.43", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", - "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "dev": true, "requires": { - "amdefine": ">=0.0.4" + "isexe": "^2.0.0" } } } }, - "currently-unhandled": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", - "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", - "dev": true, - "requires": { - "array-find-index": "^1.0.1" - } + "cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", + "dev": true }, - "d": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", - "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", + "cssstyle": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.2.0.tgz", + "integrity": "sha512-sEb3XFPx3jNnCAMtqrXPDeSgQr+jojtCeNf8cvMNMh1cG970+lljssvQDzPq6lmmJu2Vhqood/gtEomBiHOGnA==", "dev": true, "requires": { - "es5-ext": "^0.10.9" + "cssom": "~0.3.6" + }, + "dependencies": { + "cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "dev": true + } } }, - "dargs": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/dargs/-/dargs-7.0.0.tgz", - "integrity": "sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg==", - "dev": true - }, "dashdash": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", @@ -1719,41 +1510,24 @@ "assert-plus": "^1.0.0" } }, - "dateformat": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", - "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==", - "dev": true - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "data-urls": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-1.1.0.tgz", + "integrity": "sha512-YTWYI9se1P55u58gL5GkQHW4P6VJBJ5iBT+B5a7i2Tjadhv52paJG0qHX4A0OR6/t52odI64KP2YvFpkDOi3eQ==", "dev": true, "requires": { - "ms": "2.0.0" + "abab": "^2.0.0", + "whatwg-mimetype": "^2.2.0", + "whatwg-url": "^7.0.0" } }, - "debug-fabulous": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/debug-fabulous/-/debug-fabulous-1.1.0.tgz", - "integrity": "sha512-GZqvGIgKNlUnHUPQhepnUZFIMoi3dgZKQBzKDeL2g7oJF9SNAji/AAu36dusFUas0O+pae74lNeoIPHqXWDkLg==", + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", "dev": true, "requires": { - "debug": "3.X", - "memoizee": "0.4.X", - "object-assign": "4.X" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } + "ms": "^2.1.1" } }, "decamelize": { @@ -1762,78 +1536,24 @@ "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", "dev": true }, - "decamelize-keys": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", - "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", - "dev": true, - "requires": { - "decamelize": "^1.1.0", - "map-obj": "^1.0.0" - }, - "dependencies": { - "map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", - "dev": true - } - } - }, "decode-uri-component": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", "dev": true }, - "deep-eql": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", - "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", - "dev": true, - "requires": { - "type-detect": "^4.0.0" - } - }, "deep-is": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", "dev": true }, - "default-compare": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/default-compare/-/default-compare-1.0.0.tgz", - "integrity": "sha512-QWfXlM0EkAbqOCbD/6HjdwT19j7WCkMyiRhWilc4H9/5h/RzTF9gv5LYh1+CmDV5d1rki6KAWLtQale0xt20eQ==", - "dev": true, - "requires": { - "kind-of": "^5.0.2" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } - } - }, - "default-resolution": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/default-resolution/-/default-resolution-2.0.0.tgz", - "integrity": "sha1-vLgrqnKtebQmp2cy8aga1t8m1oQ=", + "deepmerge": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", "dev": true }, - "define-properties": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz", - "integrity": "sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=", - "dev": true, - "requires": { - "foreach": "^2.0.5", - "object-keys": "^1.0.8" - } - }, "define-property": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", @@ -1875,352 +1595,359 @@ } } }, - "del": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/del/-/del-5.0.0.tgz", - "integrity": "sha512-TfU3nUY0WDIhN18eq+pgpbLY9AfL5RfiE9czKaTSolc6aK7qASXfDErvYgjV1UqCR4sNXDoxO0/idPmhDUt2Sg==", - "dev": true, - "requires": { - "globby": "^10.0.0", - "is-path-cwd": "^2.0.0", - "is-path-in-cwd": "^2.0.0", - "p-map": "^2.0.0", - "rimraf": "^2.6.3" - } - }, "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", "dev": true }, - "detect-file": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz", - "integrity": "sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=", - "dev": true - }, "detect-newline": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz", - "integrity": "sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true }, "diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", "dev": true }, - "dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "requires": { - "path-type": "^4.0.0" - }, - "dependencies": { - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true - } - } + "diff-sequences": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-25.2.6.tgz", + "integrity": "sha512-Hq8o7+6GaZeoFjtpgvRBUknSXNeJiCx7V9Fr94ZMljNiCr9n9L8H8aJqgWOQiDDGdyn29fRNcDdRVJ5fdyihfg==", + "dev": true }, - "dot-prop": { + "doctrine": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz", - "integrity": "sha1-G3CK8JSknJoOfbyteQq6U52sEXc=", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, "requires": { - "is-obj": "^1.0.0" - } - }, - "duplexify": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.6.0.tgz", - "integrity": "sha512-fO3Di4tBKJpYTFHAxTU00BcfWMY9w24r/x21a6rZRbsD/ToUgGxsMbiGRmB7uVAXeGKXD9MwiLZa5E97EVgIRQ==", - "dev": true, - "requires": { - "end-of-stream": "^1.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.0.0", - "stream-shift": "^1.0.0" - }, - "dependencies": { - "end-of-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", - "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", - "dev": true, - "requires": { - "once": "^1.4.0" - } - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } + "esutils": "^2.0.2" } }, - "each-props": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/each-props/-/each-props-1.3.2.tgz", - "integrity": "sha512-vV0Hem3zAGkJAyU7JSjixeU66rwdynTAa1vofCrSA5fEln+m67Az9CcnkVD776/fsN/UjIWmBDoNRS6t6G9RfA==", + "domexception": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-1.0.1.tgz", + "integrity": "sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug==", "dev": true, "requires": { - "is-plain-object": "^2.0.1", - "object.defaults": "^1.1.0" + "webidl-conversions": "^4.0.2" } }, "ecc-jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", - "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", "dev": true, - "optional": true, "requires": { - "jsbn": "~0.1.0" + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" } }, - "editions": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/editions/-/editions-1.3.4.tgz", - "integrity": "sha512-gzao+mxnYDzIysXKMQi/+M1mjy/rjestjg6OPoYTtI+3Izp23oiGZitsl9lPDPiTGXbcSIk1iJWhliSaglxnUg==", - "dev": true - }, "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, "end-of-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", - "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "dev": true, "requires": { "once": "^1.4.0" } }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "escodegen": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.1.tgz", + "integrity": "sha512-Bmt7NcRySdIfNPfU2ZoXDrrXsG9ZjvDxcAlMfDUgRBjLOWTuIACXPBFJH7Z+cLb40JeQco5toikyc9t9P8E9SQ==", "dev": true, "requires": { - "is-arrayish": "^0.2.1" + "esprima": "^4.0.1", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.6.1" } }, - "es-abstract": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.13.0.tgz", - "integrity": "sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==", + "eslint": { + "version": "6.8.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz", + "integrity": "sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==", "dev": true, "requires": { - "es-to-primitive": "^1.2.0", - "function-bind": "^1.1.1", - "has": "^1.0.3", - "is-callable": "^1.1.4", - "is-regex": "^1.0.4", - "object-keys": "^1.0.12" + "@babel/code-frame": "^7.0.0", + "ajv": "^6.10.0", + "chalk": "^2.1.0", + "cross-spawn": "^6.0.5", + "debug": "^4.0.1", + "doctrine": "^3.0.0", + "eslint-scope": "^5.0.0", + "eslint-utils": "^1.4.3", + "eslint-visitor-keys": "^1.1.0", + "espree": "^6.1.2", + "esquery": "^1.0.1", + "esutils": "^2.0.2", + "file-entry-cache": "^5.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^5.0.0", + "globals": "^12.1.0", + "ignore": "^4.0.6", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "inquirer": "^7.0.0", + "is-glob": "^4.0.0", + "js-yaml": "^3.13.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.3.0", + "lodash": "^4.17.14", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "natural-compare": "^1.4.0", + "optionator": "^0.8.3", + "progress": "^2.0.0", + "regexpp": "^2.0.1", + "semver": "^6.1.2", + "strip-ansi": "^5.2.0", + "strip-json-comments": "^3.0.1", + "table": "^5.2.3", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "eslint-utils": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz", + "integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^1.1.0" + } + }, + "globals": { + "version": "12.4.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", + "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", + "dev": true, + "requires": { + "type-fest": "^0.8.1" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.4.tgz", + "integrity": "sha512-iG9AK/dJLtJ0XNgTuDbSyNS3zECqDlAhnQW4CsNxBG3LQJBbHmRX1egw39DmtOdCAqY+dKXV+sgPgilNWUKMVw==", + "dev": true, + "requires": { + "minimist": "^1.2.5" + } + }, + "regexpp": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", + "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", + "dev": true + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true + } } }, - "es-to-primitive": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", - "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", + "eslint-plugin-jest": { + "version": "23.8.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-23.8.2.tgz", + "integrity": "sha512-xwbnvOsotSV27MtAe7s8uGWOori0nUsrXh2f1EnpmXua8sDfY6VZhHAhHg2sqK7HBNycRQExF074XSZ7DvfoFg==", "dev": true, "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" + "@typescript-eslint/experimental-utils": "^2.5.0" } }, - "es5-ext": { - "version": "0.10.45", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.45.tgz", - "integrity": "sha512-FkfM6Vxxfmztilbxxz5UKSD4ICMf5tSpRFtDNtkAhOxZ0EKtX6qwmXNyH/sFyIbX2P/nU5AMiA9jilWsUGJzCQ==", + "eslint-scope": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.0.0.tgz", + "integrity": "sha512-oYrhJW7S0bxAFDvWqzvMPRm6pcgcnWc4QnofCAqRTRfQC0JcwenzGglTtsLyIuuWFfkqDG9vz67cnttSd53djw==", "dev": true, "requires": { - "es6-iterator": "~2.0.3", - "es6-symbol": "~3.1.1", - "next-tick": "1" + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" } }, - "es6-iterator": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", - "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", + "eslint-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.0.0.tgz", + "integrity": "sha512-0HCPuJv+7Wv1bACm8y5/ECVfYdfsAm9xmVb7saeFlxjPYALefjhbYoCkBjPdPzGH8wWyTpAez82Fh3VKYEZ8OA==", "dev": true, "requires": { - "d": "1", - "es5-ext": "^0.10.35", - "es6-symbol": "^3.1.1" + "eslint-visitor-keys": "^1.1.0" } }, - "es6-shim": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/es6-shim/-/es6-shim-0.35.3.tgz", - "integrity": "sha1-m/tzY/7//4emzbbNk+QF7DxLbyY=", + "eslint-visitor-keys": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz", + "integrity": "sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A==", "dev": true }, - "es6-symbol": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz", - "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "~0.10.14" - } - }, - "es6-weak-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.2.tgz", - "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", + "espree": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-6.2.1.tgz", + "integrity": "sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw==", "dev": true, "requires": { - "d": "1", - "es5-ext": "^0.10.14", - "es6-iterator": "^2.0.1", - "es6-symbol": "^3.1.1" + "acorn": "^7.1.1", + "acorn-jsx": "^5.2.0", + "eslint-visitor-keys": "^1.1.0" } }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true }, - "escodegen": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.8.1.tgz", - "integrity": "sha1-WltTr0aTEQvrsIZ6o0MN07cKEBg=", + "esquery": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.2.0.tgz", + "integrity": "sha512-weltsSqdeWIX9G2qQZz7KlTRJdkkOCTPgLYJUz1Hacf48R4YOwGPHO3+ORfWedqJKbq5WQmsgK90n+pFLIKt/Q==", "dev": true, "requires": { - "esprima": "^2.7.1", - "estraverse": "^1.9.1", - "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.2.0" + "estraverse": "^5.0.0" }, "dependencies": { - "source-map": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.2.0.tgz", - "integrity": "sha1-2rc/vPwrqBm03gO9b26qSBZLP50=", - "dev": true, - "optional": true, - "requires": { - "amdefine": ">=0.0.4" - } + "estraverse": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.0.0.tgz", + "integrity": "sha512-j3acdrMzqrxmJTNj5dbr1YbjacrYgAxVMeF0gK16E3j494mOe7xygM/ZLIguEQ0ETwAg2hlJCtHRGav+y0Ny5A==", + "dev": true } } }, - "esprima": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", - "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=", - "dev": true + "esrecurse": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", + "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", + "dev": true, + "requires": { + "estraverse": "^4.1.0" + } }, "estraverse": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.9.3.tgz", - "integrity": "sha1-r2fy3JIlgkFZUJJgkaQAXSnJu0Q=", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", "dev": true }, "esutils": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true }, - "event-emitter": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", - "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "~0.10.14" - } + "exec-sh": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.4.tgz", + "integrity": "sha512-sEFIkc61v75sWeOe72qyrqg2Qg0OuLESziUDk/O/z2qgS15y2gWVFrI6f2Qn/qw/0/NCfCEsmNA4zOjkwEZT1A==", + "dev": true }, "execa": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/execa/-/execa-2.0.4.tgz", - "integrity": "sha512-VcQfhuGD51vQUQtKIq2fjGDLDbL6N1DTQVpYzxZ7LPIXw3HqTuIz6uxRmpV1qf8i31LHf2kjiaGI+GdHwRgbnQ==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", "dev": true, "requires": { - "cross-spawn": "^6.0.5", - "get-stream": "^5.0.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^3.0.0", - "onetime": "^5.1.0", - "p-finally": "^2.0.0", - "signal-exit": "^3.0.2", - "strip-final-newline": "^2.0.0" - }, - "dependencies": { - "is-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", - "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", - "dev": true - }, - "npm-run-path": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-3.1.0.tgz", - "integrity": "sha512-Dbl4A/VfiVGLgQv29URL9xshU8XDY1GeLy+fsaZ1AA8JDSfjvr5P5+pzRbWqRSBxk6/DW7MIh8lTM/PaGnP2kg==", - "dev": true, - "requires": { - "path-key": "^3.0.0" - } - }, - "p-finally": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-2.0.1.tgz", - "integrity": "sha512-vpm09aKwq6H9phqRQzecoDpD8TmVyGw70qmWlyq5onxY7tqyTTFVvxMykxQSQKILBSFlbXpypIw2T1Ml7+DDtw==", - "dev": true - }, - "path-key": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.0.tgz", - "integrity": "sha512-8cChqz0RP6SHJkMt48FW0A7+qUOn+OsnOsVtzI59tZ8m+5bCSk7hzwET0pulwOM2YMn9J1efb07KB9l9f30SGg==", - "dev": true - } + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" } }, + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "dev": true + }, "expand-brackets": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", @@ -2236,6 +1963,15 @@ "to-regex": "^3.0.1" }, "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, "define-property": { "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", @@ -2253,22 +1989,33 @@ "requires": { "is-extendable": "^0.1.0" } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true } } }, - "expand-tilde": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz", - "integrity": "sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=", + "expect": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/expect/-/expect-25.2.6.tgz", + "integrity": "sha512-hMqqX3OX5Erw7CLoXXcawqi6xThhz/rYk+vEufhoCAyzDC2PW99ypYc/pvcgKjyuwbOB1wjqqClmwvlOL36Inw==", "dev": true, "requires": { - "homedir-polyfill": "^1.0.1" + "@jest/types": "^25.2.6", + "ansi-styles": "^4.0.0", + "jest-get-type": "^25.2.6", + "jest-matcher-utils": "^25.2.6", + "jest-message-util": "^25.2.6", + "jest-regex-util": "^25.2.6" } }, "extend": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", - "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", "dev": true }, "extend-shallow": { @@ -2292,6 +2039,17 @@ } } }, + "external-editor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", + "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", + "dev": true, + "requires": { + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" + } + }, "extglob": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", @@ -2363,104 +2121,16 @@ "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", "dev": true }, - "fancy-log": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.2.tgz", - "integrity": "sha1-9BEl49hPLn2JpD0G2VjI94vha+E=", - "dev": true, - "requires": { - "ansi-gray": "^0.1.1", - "color-support": "^1.1.3", - "time-stamp": "^1.0.0" - } - }, "fast-deep-equal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", - "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", + "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==", "dev": true }, - "fast-glob": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.0.4.tgz", - "integrity": "sha512-wkIbV6qg37xTJwqSsdnIphL1e+LaGz4AIQqr00mIubMaEhv1/HEmJ0uuCGZRNRUkZZmOB5mJKO0ZUTVq+SxMQg==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "^2.0.1", - "@nodelib/fs.walk": "^1.2.1", - "glob-parent": "^5.0.0", - "is-glob": "^4.0.1", - "merge2": "^1.2.3", - "micromatch": "^4.0.2" - }, - "dependencies": { - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "requires": { - "fill-range": "^7.0.1" - } - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "glob-parent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.0.0.tgz", - "integrity": "sha512-Z2RwiujPRGluePM6j699ktJYxmPpJKCfpGA13jz2hmFZC7gKetzrWvg5KN3+OsIFmydGyZ1AVwERCq1w/ZZwRg==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - }, - "is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "micromatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", - "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", - "dev": true, - "requires": { - "braces": "^3.0.1", - "picomatch": "^2.0.5" - } - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - } - } - }, "fast-json-stable-stringify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true }, "fast-levenshtein": { @@ -2469,170 +2139,86 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, - "fastq": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.6.0.tgz", - "integrity": "sha512-jmxqQ3Z/nXoeyDmWAzF9kH1aGZSis6e/SbfPmJpUnyZ0ogr6iscHQaml4wsEepEWSdtmpy+eVXmCRIMpxaXqOA==", - "dev": true, - "requires": { - "reusify": "^1.0.0" - } - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "fb-watchman": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz", + "integrity": "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==", "dev": true, "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } + "bser": "2.1.1" } }, - "find-up": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "figures": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", "dev": true, "requires": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" + "escape-string-regexp": "^1.0.5" } }, - "findup-sync": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-3.0.0.tgz", - "integrity": "sha512-YbffarhcicEhOrm4CtrwdKBdCuz576RLdhJDsIfvNtxUuhdRet1qZcsMjqbePtAseKdAnDyM/IyXbu7PRPRLYg==", + "file-entry-cache": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", + "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", "dev": true, "requires": { - "detect-file": "^1.0.0", - "is-glob": "^4.0.0", - "micromatch": "^3.0.4", - "resolve-dir": "^1.0.1" - }, - "dependencies": { - "is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - } + "flat-cache": "^2.0.1" } }, - "fined": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fined/-/fined-1.2.0.tgz", - "integrity": "sha512-ZYDqPLGxDkDhDZBjZBb+oD1+j0rA4E0pXY50eplAAOPg2N/gUBSSk5IM1/QhPfyVo19lJ+CvXpqfvk+b2p/8Ng==", + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "dev": true, "requires": { - "expand-tilde": "^2.0.2", - "is-plain-object": "^2.0.3", - "object.defaults": "^1.1.0", - "object.pick": "^1.2.0", - "parse-filepath": "^1.0.1" + "to-regex-range": "^5.0.1" } }, - "flagged-respawn": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/flagged-respawn/-/flagged-respawn-1.0.1.tgz", - "integrity": "sha512-lNaHNVymajmk0OJMBn8fVUAU1BtDeKIqKoVhk4xAALB57aALg6b4W0MfJ/cUE0g9YBXy5XhSlPIpYIJ7HaY/3Q==", - "dev": true - }, - "flat": { + "find-up": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.0.tgz", - "integrity": "sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw==", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "requires": { - "is-buffer": "~2.0.3" - }, - "dependencies": { - "is-buffer": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.3.tgz", - "integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==", - "dev": true - } + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" } }, - "flush-write-stream": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.0.3.tgz", - "integrity": "sha512-calZMC10u0FMUqoiunI2AiGIIUtUIvifNwkHhNupZH4cbNnW1Itkoh/Nf5HFYmDrwWPjrUxpkZT0KhuCq0jmGw==", + "flat-cache": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", + "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", "dev": true, "requires": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.4" + "flatted": "^2.0.0", + "rimraf": "2.6.3", + "write": "1.0.3" }, "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "rimraf": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", "dev": true, "requires": { - "safe-buffer": "~5.1.0" + "glob": "^7.1.3" } } } }, + "flatted": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.2.tgz", + "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==", + "dev": true + }, "for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", "dev": true }, - "for-own": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz", - "integrity": "sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs=", - "dev": true, - "requires": { - "for-in": "^1.0.1" - } - }, - "foreach": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", - "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=", - "dev": true - }, "forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", @@ -2640,13 +2226,13 @@ "dev": true }, "form-data": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", - "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", "dev": true, "requires": { "asynckit": "^0.4.0", - "combined-stream": "1.0.6", + "combined-stream": "^1.0.6", "mime-types": "^2.1.12" } }, @@ -2659,24 +2245,6 @@ "map-cache": "^0.2.2" } }, - "fs-mkdirp-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-mkdirp-stream/-/fs-mkdirp-stream-1.0.0.tgz", - "integrity": "sha1-C3gV/DIBxqaeFNuYzgmMFpNSWes=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.11", - "through2": "^2.0.3" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - } - } - }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -2684,3587 +2252,1440 @@ "dev": true }, "fsevents": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.9.tgz", - "integrity": "sha512-oeyj2H3EjjonWcFjD5NvZNE9Rqe4UW+nQBU2HNeKw0koVLEFIhtyETyAakeAM3de7Z/SW5kcA+fZUait9EApnw==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.2.tgz", + "integrity": "sha512-R4wDiBwZ0KzpgOWetKDug1FZcYhqYnUYKtfZYt4mD5SBz76q0KR4Q9o7GIPamsVPGmW3EYPPJ0dOOjvx32ldZA==", + "dev": true, + "optional": true + }, + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "dev": true + }, + "gensync": { + "version": "1.0.0-beta.1", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.1.tgz", + "integrity": "sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==", + "dev": true + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", "dev": true, - "optional": true, "requires": { - "nan": "^2.12.1", - "node-pre-gyp": "^0.12.0" - }, - "dependencies": { - "abbrev": { - "version": "1.1.1", - "resolved": false, - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "dev": true, - "optional": true - }, - "ansi-regex": { - "version": "2.1.1", - "resolved": false, - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true, - "optional": true - }, - "aproba": { - "version": "1.2.0", - "resolved": false, - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "dev": true, - "optional": true - }, - "are-we-there-yet": { - "version": "1.1.5", - "resolved": false, - "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", - "dev": true, - "optional": true, - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "balanced-match": { - "version": "1.0.0", - "resolved": false, - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true, - "optional": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": false, - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "optional": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "chownr": { - "version": "1.1.1", - "resolved": false, - "integrity": "sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g==", - "dev": true, - "optional": true - }, - "code-point-at": { - "version": "1.1.0", - "resolved": false, - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true, - "optional": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": false, - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true, - "optional": true - }, - "console-control-strings": { - "version": "1.1.0", - "resolved": false, - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "dev": true, - "optional": true - }, - "core-util-is": { - "version": "1.0.2", - "resolved": false, - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true, - "optional": true - }, - "debug": { - "version": "4.1.1", - "resolved": false, - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "dev": true, - "optional": true, - "requires": { - "ms": "^2.1.1" - } - }, - "deep-extend": { - "version": "0.6.0", - "resolved": false, - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true, - "optional": true - }, - "delegates": { - "version": "1.0.0", - "resolved": false, - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", - "dev": true, - "optional": true - }, - "detect-libc": { - "version": "1.0.3", - "resolved": false, - "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", - "dev": true, - "optional": true - }, - "fs-minipass": { - "version": "1.2.5", - "resolved": false, - "integrity": "sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ==", - "dev": true, - "optional": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": false, - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true, - "optional": true - }, - "gauge": { - "version": "2.7.4", - "resolved": false, - "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", - "dev": true, - "optional": true, - "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - } - }, - "glob": { - "version": "7.1.3", - "resolved": false, - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "optional": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "has-unicode": { - "version": "2.0.1", - "resolved": false, - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", - "dev": true, - "optional": true - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": false, - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "optional": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "ignore-walk": { - "version": "3.0.1", - "resolved": false, - "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==", - "dev": true, - "optional": true, - "requires": { - "minimatch": "^3.0.4" - } - }, - "inflight": { - "version": "1.0.6", - "resolved": false, - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "optional": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": false, - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true, - "optional": true - }, - "ini": { - "version": "1.3.5", - "resolved": false, - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", - "dev": true, - "optional": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": false, - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "optional": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "isarray": { - "version": "1.0.0", - "resolved": false, - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true, - "optional": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": false, - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "optional": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "0.0.8", - "resolved": false, - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true, - "optional": true - }, - "minipass": { - "version": "2.3.5", - "resolved": false, - "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==", - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" - } - }, - "minizlib": { - "version": "1.2.1", - "resolved": false, - "integrity": "sha512-7+4oTUOWKg7AuL3vloEWekXY2/D20cevzsrNT2kGWm+39J9hGTCBv8VI5Pm5lXZ/o3/mdR4f8rflAPhnQb8mPA==", - "dev": true, - "optional": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "mkdirp": { - "version": "0.5.1", - "resolved": false, - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, - "optional": true, - "requires": { - "minimist": "0.0.8" - } - }, - "ms": { - "version": "2.1.1", - "resolved": false, - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true, - "optional": true - }, - "needle": { - "version": "2.3.0", - "resolved": false, - "integrity": "sha512-QBZu7aAFR0522EyaXZM0FZ9GLpq6lvQ3uq8gteiDUp7wKdy0lSd2hPlgFwVuW1CBkfEs9PfDQsQzZghLs/psdg==", - "dev": true, - "optional": true, - "requires": { - "debug": "^4.1.0", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" - } - }, - "node-pre-gyp": { - "version": "0.12.0", - "resolved": false, - "integrity": "sha512-4KghwV8vH5k+g2ylT+sLTjy5wmUOb9vPhnM8NHvRf9dHmnW/CndrFXy2aRPaPST6dugXSdHXfeaHQm77PIz/1A==", - "dev": true, - "optional": true, - "requires": { - "detect-libc": "^1.0.2", - "mkdirp": "^0.5.1", - "needle": "^2.2.1", - "nopt": "^4.0.1", - "npm-packlist": "^1.1.6", - "npmlog": "^4.0.2", - "rc": "^1.2.7", - "rimraf": "^2.6.1", - "semver": "^5.3.0", - "tar": "^4" - } - }, - "nopt": { - "version": "4.0.1", - "resolved": false, - "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", - "dev": true, - "optional": true, - "requires": { - "abbrev": "1", - "osenv": "^0.1.4" - } - }, - "npm-bundled": { - "version": "1.0.6", - "resolved": false, - "integrity": "sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g==", - "dev": true, - "optional": true - }, - "npm-packlist": { - "version": "1.4.1", - "resolved": false, - "integrity": "sha512-+TcdO7HJJ8peiiYhvPxsEDhF3PJFGUGRcFsGve3vxvxdcpO2Z4Z7rkosRM0kWj6LfbK/P0gu3dzk5RU1ffvFcw==", - "dev": true, - "optional": true, - "requires": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1" - } - }, - "npmlog": { - "version": "4.1.2", - "resolved": false, - "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", - "dev": true, - "optional": true, - "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "resolved": false, - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true, - "optional": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": false, - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true, - "optional": true - }, - "once": { - "version": "1.4.0", - "resolved": false, - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "optional": true, - "requires": { - "wrappy": "1" - } - }, - "os-homedir": { - "version": "1.0.2", - "resolved": false, - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", - "dev": true, - "optional": true - }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": false, - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true, - "optional": true - }, - "osenv": { - "version": "0.1.5", - "resolved": false, - "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", - "dev": true, - "optional": true, - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": false, - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true, - "optional": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": false, - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true, - "optional": true - }, - "rc": { - "version": "1.2.8", - "resolved": false, - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "dev": true, - "optional": true, - "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "resolved": false, - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true, - "optional": true - } - } - }, - "readable-stream": { - "version": "2.3.6", - "resolved": false, - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "optional": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "rimraf": { - "version": "2.6.3", - "resolved": false, - "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", - "dev": true, - "optional": true, - "requires": { - "glob": "^7.1.3" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": false, - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "optional": true - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": false, - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true, - "optional": true - }, - "sax": { - "version": "1.2.4", - "resolved": false, - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "dev": true, - "optional": true - }, - "semver": { - "version": "5.7.0", - "resolved": false, - "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", - "dev": true, - "optional": true - }, - "set-blocking": { - "version": "2.0.0", - "resolved": false, - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true, - "optional": true - }, - "signal-exit": { - "version": "3.0.2", - "resolved": false, - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "dev": true, - "optional": true - }, - "string-width": { - "version": "1.0.2", - "resolved": false, - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, - "optional": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": false, - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": false, - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "optional": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "resolved": false, - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true, - "optional": true - }, - "tar": { - "version": "4.4.8", - "resolved": false, - "integrity": "sha512-LzHF64s5chPQQS0IYBn9IN5h3i98c12bo4NCO7e0sGM2llXQ3p2FGC5sdENN4cTW48O915Sh+x+EXx7XW96xYQ==", - "dev": true, - "optional": true, - "requires": { - "chownr": "^1.1.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.3.4", - "minizlib": "^1.1.1", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.2", - "yallist": "^3.0.2" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": false, - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true, - "optional": true - }, - "wide-align": { - "version": "1.1.3", - "resolved": false, - "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", - "dev": true, - "optional": true, - "requires": { - "string-width": "^1.0.2 || 2" - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": false, - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true, - "optional": true - }, - "yallist": { - "version": "3.0.3", - "resolved": false, - "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==", - "dev": true, - "optional": true - } - } - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "get-caller-file": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", - "dev": true - }, - "get-func-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", - "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", - "dev": true - }, - "get-pkg-repo": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/get-pkg-repo/-/get-pkg-repo-1.4.0.tgz", - "integrity": "sha1-xztInAbYDMVTbCyFP54FIyBWly0=", - "dev": true, - "requires": { - "hosted-git-info": "^2.1.4", - "meow": "^3.3.0", - "normalize-package-data": "^2.3.0", - "parse-github-repo-url": "^1.3.0", - "through2": "^2.0.0" - }, - "dependencies": { - "camelcase": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", - "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=", - "dev": true - }, - "camelcase-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", - "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", - "dev": true, - "requires": { - "camelcase": "^2.0.0", - "map-obj": "^1.0.0" - } - }, - "indent-string": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", - "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", - "dev": true, - "requires": { - "repeating": "^2.0.0" - } - }, - "map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", - "dev": true - }, - "meow": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", - "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", - "dev": true, - "requires": { - "camelcase-keys": "^2.0.0", - "decamelize": "^1.1.2", - "loud-rejection": "^1.0.0", - "map-obj": "^1.0.1", - "minimist": "^1.1.3", - "normalize-package-data": "^2.3.4", - "object-assign": "^4.0.1", - "read-pkg-up": "^1.0.1", - "redent": "^1.0.0", - "trim-newlines": "^1.0.0" - } - }, - "redent": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", - "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", - "dev": true, - "requires": { - "indent-string": "^2.1.0", - "strip-indent": "^1.0.1" - } - }, - "strip-indent": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", - "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", - "dev": true, - "requires": { - "get-stdin": "^4.0.1" - } - }, - "trim-newlines": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", - "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", - "dev": true - } - } - }, - "get-stdin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", - "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", - "dev": true - }, - "get-stream": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", - "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", - "dev": true, - "requires": { - "pump": "^3.0.0" - }, - "dependencies": { - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - } - } - }, - "get-value": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", - "dev": true - }, - "getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, - "git-raw-commits": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-2.0.0.tgz", - "integrity": "sha512-w4jFEJFgKXMQJ0H0ikBk2S+4KP2VEjhCvLCNqbNRQC8BgGWgLKNCO7a9K9LI+TVT7Gfoloje502sEnctibffgg==", - "dev": true, - "requires": { - "dargs": "^4.0.1", - "lodash.template": "^4.0.2", - "meow": "^4.0.0", - "split2": "^2.0.0", - "through2": "^2.0.0" - }, - "dependencies": { - "dargs": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/dargs/-/dargs-4.1.0.tgz", - "integrity": "sha1-A6nbtLXC8Tm/FK5T8LiipqhvThc=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - } - } - }, - "git-remote-origin-url": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/git-remote-origin-url/-/git-remote-origin-url-2.0.0.tgz", - "integrity": "sha1-UoJlna4hBxRaERJhEq0yFuxfpl8=", - "dev": true, - "requires": { - "gitconfiglocal": "^1.0.0", - "pify": "^2.3.0" - }, - "dependencies": { - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - } - } - }, - "git-semver-tags": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/git-semver-tags/-/git-semver-tags-2.0.2.tgz", - "integrity": "sha512-34lMF7Yo1xEmsK2EkbArdoU79umpvm0MfzaDkSNYSJqtM5QLAVTPWgpiXSVI5o/O9EvZPSrP4Zvnec/CqhSd5w==", - "dev": true, - "requires": { - "meow": "^4.0.0", - "semver": "^5.5.0" - } - }, - "gitconfiglocal": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz", - "integrity": "sha1-QdBF84UaXqiPA/JMocYXgRRGS5s=", - "dev": true, - "requires": { - "ini": "^1.3.2" - } - }, - "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "dev": true, - "requires": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" - } - }, - "glob-stream": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-6.1.0.tgz", - "integrity": "sha1-cEXJlBOz65SIjYOrRtC0BMx73eQ=", - "dev": true, - "requires": { - "extend": "^3.0.0", - "glob": "^7.1.1", - "glob-parent": "^3.1.0", - "is-negated-glob": "^1.0.0", - "ordered-read-streams": "^1.0.0", - "pumpify": "^1.3.5", - "readable-stream": "^2.1.5", - "remove-trailing-separator": "^1.0.1", - "to-absolute-glob": "^2.0.0", - "unique-stream": "^2.0.2" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "glob-watcher": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/glob-watcher/-/glob-watcher-5.0.3.tgz", - "integrity": "sha512-8tWsULNEPHKQ2MR4zXuzSmqbdyV5PtwwCaWSGQ1WwHsJ07ilNeN1JB8ntxhckbnpSHaf9dXFUHzIWvm1I13dsg==", - "dev": true, - "requires": { - "anymatch": "^2.0.0", - "async-done": "^1.2.0", - "chokidar": "^2.0.0", - "is-negated-glob": "^1.0.0", - "just-debounce": "^1.0.0", - "object.defaults": "^1.1.0" - } - }, - "global-modules": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz", - "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==", - "dev": true, - "requires": { - "global-prefix": "^1.0.1", - "is-windows": "^1.0.1", - "resolve-dir": "^1.0.0" - } - }, - "global-prefix": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-1.0.2.tgz", - "integrity": "sha1-2/dDxsFJklk8ZVVoy2btMsASLr4=", - "dev": true, - "requires": { - "expand-tilde": "^2.0.2", - "homedir-polyfill": "^1.0.1", - "ini": "^1.3.4", - "is-windows": "^1.0.1", - "which": "^1.2.14" - } - }, - "globby": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.1.tgz", - "integrity": "sha512-sSs4inE1FB2YQiymcmTv6NWENryABjUNPeWhOvmn4SjtKybglsyPZxFB3U1/+L1bYi0rNZDqCLlHyLYDl1Pq5A==", - "dev": true, - "requires": { - "@types/glob": "^7.1.1", - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.0.3", - "glob": "^7.1.3", - "ignore": "^5.1.1", - "merge2": "^1.2.3", - "slash": "^3.0.0" - }, - "dependencies": { - "@types/glob": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.1.tgz", - "integrity": "sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w==", - "dev": true, - "requires": { - "@types/events": "*", - "@types/minimatch": "*", - "@types/node": "*" - } - }, - "glob": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", - "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - } - } - }, - "glogg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/glogg/-/glogg-1.0.1.tgz", - "integrity": "sha512-ynYqXLoluBKf9XGR1gA59yEJisIL7YHEH4xr3ZziHB5/yl4qWfaK8Js9jGe6gBGCSCKVqiyO30WnRZADvemUNw==", - "dev": true, - "requires": { - "sparkles": "^1.0.0" - } - }, - "google-libphonenumber": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/google-libphonenumber/-/google-libphonenumber-3.1.10.tgz", - "integrity": "sha512-rbq206gtM62kwEMDLuc2K2CcfUsIxGlOcN5psDFx6cpJmTzgQrspO4A4ombKn9UxDidxs0j+jN+z9/Y3M1D4Ig==" - }, - "graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - }, - "growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", - "dev": true - }, - "gulp": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/gulp/-/gulp-4.0.2.tgz", - "integrity": "sha512-dvEs27SCZt2ibF29xYgmnwwCYZxdxhQ/+LFWlbAW8y7jt68L/65402Lz3+CKy0Ov4rOs+NERmDq7YlZaDqUIfA==", - "dev": true, - "requires": { - "glob-watcher": "^5.0.3", - "gulp-cli": "^2.2.0", - "undertaker": "^1.2.1", - "vinyl-fs": "^3.0.0" - }, - "dependencies": { - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", - "dev": true - }, - "cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", - "dev": true, - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" - } - }, - "gulp-cli": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.2.0.tgz", - "integrity": "sha512-rGs3bVYHdyJpLqR0TUBnlcZ1O5O++Zs4bA0ajm+zr3WFCfiSLjGwoCBqFs18wzN+ZxahT9DkOK5nDf26iDsWjA==", - "dev": true, - "requires": { - "ansi-colors": "^1.0.1", - "archy": "^1.0.0", - "array-sort": "^1.0.0", - "color-support": "^1.1.3", - "concat-stream": "^1.6.0", - "copy-props": "^2.0.1", - "fancy-log": "^1.3.2", - "gulplog": "^1.0.0", - "interpret": "^1.1.0", - "isobject": "^3.0.1", - "liftoff": "^3.1.0", - "matchdep": "^2.0.0", - "mute-stdout": "^1.0.0", - "pretty-hrtime": "^1.0.0", - "replace-homedir": "^1.0.0", - "semver-greatest-satisfied-range": "^1.1.0", - "v8flags": "^3.0.1", - "yargs": "^7.1.0" - } - }, - "yargs": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-7.1.0.tgz", - "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=", - "dev": true, - "requires": { - "camelcase": "^3.0.0", - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "os-locale": "^1.4.0", - "read-pkg-up": "^1.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^1.0.2", - "which-module": "^1.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^5.0.0" - } - } - } - }, - "gulp-conventional-changelog": { - "version": "2.0.19", - "resolved": "https://registry.npmjs.org/gulp-conventional-changelog/-/gulp-conventional-changelog-2.0.19.tgz", - "integrity": "sha512-MTr9UcagJKVqAedi1XPyj7agHZKuRZPMNXgFVrI5z4h3nta/2/eOyBQhPq2L03rYzEEENTQRZ5A+cTU8k56FZQ==", - "dev": true, - "requires": { - "add-stream": "^1.0.0", - "concat-stream": "^2.0.0", - "conventional-changelog": "^3.1.8", - "fancy-log": "^1.3.2", - "object-assign": "^4.0.1", - "plugin-error": "^1.0.1", - "through2": "^3.0.0" - }, - "dependencies": { - "concat-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz", - "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.0.2", - "typedarray": "^0.0.6" - } - }, - "plugin-error": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", - "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", - "dev": true, - "requires": { - "ansi-colors": "^1.0.1", - "arr-diff": "^4.0.0", - "arr-union": "^3.1.0", - "extend-shallow": "^3.0.2" - } - }, - "through2": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", - "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", - "dev": true, - "requires": { - "readable-stream": "2 || 3" - } - } - } - }, - "gulp-istanbul": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/gulp-istanbul/-/gulp-istanbul-1.1.3.tgz", - "integrity": "sha512-uMLSdqPDnBAV/B9rNyOgVMgrVC1tPbe+5GH6P13UOyxbRDT/w4sKYHWftPMA8j9om+NFvfeRlqpDXL2fixFWNA==", - "dev": true, - "requires": { - "istanbul": "^0.4.0", - "istanbul-threshold-checker": "^0.2.1", - "lodash": "^4.0.0", - "plugin-error": "^0.1.2", - "through2": "^2.0.0", - "vinyl-sourcemaps-apply": "^0.2.1" - }, - "dependencies": { - "lodash": { - "version": "4.17.10", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", - "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==", - "dev": true - } - } - }, - "gulp-mocha": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/gulp-mocha/-/gulp-mocha-7.0.1.tgz", - "integrity": "sha512-LYBEWdOw52kvP+si91iR00LYX9iKXLTBjcKh9b3ChHvVmKtpoITjeRFslPEzDubEk+z6VI1ONEwn9ABqW9/tig==", - "dev": true, - "requires": { - "dargs": "^7.0.0", - "execa": "^2.0.4", - "mocha": "^6.2.0", - "plugin-error": "^1.0.1", - "supports-color": "^7.0.0", - "through2": "^3.0.1" - }, - "dependencies": { - "ansi-colors": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", - "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", - "dev": true - }, - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "dependencies": { - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "cliui": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", - "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", - "dev": true, - "requires": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" - }, - "dependencies": { - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - } - } - }, - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, - "get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "invert-kv": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", - "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "lcid": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", - "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", - "dev": true, - "requires": { - "invert-kv": "^2.0.0" - } - }, - "log-symbols": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", - "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", - "dev": true, - "requires": { - "chalk": "^2.0.1" - } - }, - "mocha": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-6.2.0.tgz", - "integrity": "sha512-qwfFgY+7EKAAUAdv7VYMZQknI7YJSGesxHyhn6qD52DV8UcSZs5XwCifcZGMVIE4a5fbmhvbotxC0DLQ0oKohQ==", - "dev": true, - "requires": { - "ansi-colors": "3.2.3", - "browser-stdout": "1.3.1", - "debug": "3.2.6", - "diff": "3.5.0", - "escape-string-regexp": "1.0.5", - "find-up": "3.0.0", - "glob": "7.1.3", - "growl": "1.10.5", - "he": "1.2.0", - "js-yaml": "3.13.1", - "log-symbols": "2.2.0", - "minimatch": "3.0.4", - "mkdirp": "0.5.1", - "ms": "2.1.1", - "node-environment-flags": "1.0.5", - "object.assign": "4.1.0", - "strip-json-comments": "2.0.1", - "supports-color": "6.0.0", - "which": "1.3.1", - "wide-align": "1.1.3", - "yargs": "13.2.2", - "yargs-parser": "13.0.0", - "yargs-unparser": "1.5.0" - }, - "dependencies": { - "supports-color": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", - "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true - }, - "os-locale": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", - "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", - "dev": true, - "requires": { - "execa": "^1.0.0", - "lcid": "^2.0.0", - "mem": "^4.0.0" - }, - "dependencies": { - "execa": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", - "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", - "dev": true, - "requires": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - } - } - }, - "plugin-error": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", - "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", - "dev": true, - "requires": { - "ansi-colors": "^1.0.1", - "arr-diff": "^4.0.0", - "arr-union": "^3.1.0", - "extend-shallow": "^3.0.2" - }, - "dependencies": { - "ansi-colors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz", - "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", - "dev": true, - "requires": { - "ansi-wrap": "^0.1.0" - } - } - } - }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - }, - "supports-color": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.0.0.tgz", - "integrity": "sha512-WRt32iTpYEZWYOpcetGm0NPeSvaebccx7hhS/5M6sAiqnhedtFCHFxkjzZlJvFNCPowiKSFGiZk5USQDFy83vQ==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - } - } - }, - "through2": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", - "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", - "dev": true, - "requires": { - "readable-stream": "2 || 3" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "y18n": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", - "dev": true - }, - "yargs": { - "version": "13.2.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.2.2.tgz", - "integrity": "sha512-WyEoxgyTD3w5XRpAQNYUB9ycVH/PQrToaTXdYXRdOXvEy1l19br+VJsc0vcO8PTGg5ro/l/GY7F/JMEBmI0BxA==", - "dev": true, - "requires": { - "cliui": "^4.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "os-locale": "^3.1.0", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.0.0" - } - }, - "yargs-parser": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.0.0.tgz", - "integrity": "sha512-w2LXjoL8oRdRQN+hOyppuXs+V/fVAYtpcrRxZuF7Kt/Oc+Jr2uAcVntaUTNT6w5ihoWfFDpNY8CPx1QskxZ/pw==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } - } - }, - "gulp-replace": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/gulp-replace/-/gulp-replace-1.0.0.tgz", - "integrity": "sha512-lgdmrFSI1SdhNMXZQbrC75MOl1UjYWlOWNbNRnz+F/KHmgxt3l6XstBoAYIdadwETFyG/6i+vWUSCawdC3pqOw==", - "dev": true, - "requires": { - "istextorbinary": "2.2.1", - "readable-stream": "^2.0.1", - "replacestream": "^4.0.0" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "gulp-shell": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/gulp-shell/-/gulp-shell-0.8.0.tgz", - "integrity": "sha512-wHNCgmqbWkk1c6Gc2dOL5SprcoeujQdeepICwfQRo91DIylTE7a794VEE+leq3cE2YDoiS5ulvRfKVIEMazcTQ==", - "dev": true, - "requires": { - "chalk": "^3.0.0", - "fancy-log": "^1.3.3", - "lodash.template": "^4.5.0", - "plugin-error": "^1.0.1", - "through2": "^3.0.1", - "tslib": "^1.10.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "fancy-log": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz", - "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==", - "dev": true, - "requires": { - "ansi-gray": "^0.1.1", - "color-support": "^1.1.3", - "parse-node-version": "^1.0.0", - "time-stamp": "^1.0.0" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "lodash.template": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", - "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", - "dev": true, - "requires": { - "lodash._reinterpolate": "^3.0.0", - "lodash.templatesettings": "^4.0.0" - } - }, - "plugin-error": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", - "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", - "dev": true, - "requires": { - "ansi-colors": "^1.0.1", - "arr-diff": "^4.0.0", - "arr-union": "^3.1.0", - "extend-shallow": "^3.0.2" - } - }, - "supports-color": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", - "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "through2": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", - "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", - "dev": true, - "requires": { - "readable-stream": "2 || 3" - } - }, - "tslib": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true - } - } - }, - "gulp-sourcemaps": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/gulp-sourcemaps/-/gulp-sourcemaps-2.6.4.tgz", - "integrity": "sha1-y7IAhFCxvM5s0jv5gze+dRv24wo=", - "dev": true, - "requires": { - "@gulp-sourcemaps/identity-map": "1.X", - "@gulp-sourcemaps/map-sources": "1.X", - "acorn": "5.X", - "convert-source-map": "1.X", - "css": "2.X", - "debug-fabulous": "1.X", - "detect-newline": "2.X", - "graceful-fs": "4.X", - "source-map": "~0.6.0", - "strip-bom-string": "1.X", - "through2": "2.X" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "gulp-tslint": { - "version": "8.1.3", - "resolved": "https://registry.npmjs.org/gulp-tslint/-/gulp-tslint-8.1.3.tgz", - "integrity": "sha512-KEP350N5B9Jg6o6jnyCyKVBPemJePYpMsGfIQq0G0ErvY7tw4Lrfb/y3L4WRf7ek0OsaE8nnj86w+lcLXW8ovw==", - "dev": true, - "requires": { - "@types/fancy-log": "1.3.0", - "chalk": "2.3.1", - "fancy-log": "1.3.2", - "map-stream": "~0.0.7", - "plugin-error": "1.0.1", - "through": "~2.3.8" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.1.tgz", - "integrity": "sha512-QUU4ofkDoMIVO7hcx1iPTISs88wsO8jA92RQIm4JAwZvFGGAV2hSAA1NX7oVj2Ej2Q6NDTcRDjPTFrMCRZoJ6g==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.0", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.2.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "plugin-error": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", - "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", - "dev": true, - "requires": { - "ansi-colors": "^1.0.1", - "arr-diff": "^4.0.0", - "arr-union": "^3.1.0", - "extend-shallow": "^3.0.2" - } - }, - "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "gulp-typescript": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/gulp-typescript/-/gulp-typescript-5.0.1.tgz", - "integrity": "sha512-YuMMlylyJtUSHG1/wuSVTrZp60k1dMEFKYOvDf7OvbAJWrDtxxD4oZon4ancdWwzjj30ztiidhe4VXJniF0pIQ==", - "dev": true, - "requires": { - "ansi-colors": "^3.0.5", - "plugin-error": "^1.0.1", - "source-map": "^0.7.3", - "through2": "^3.0.0", - "vinyl": "^2.1.0", - "vinyl-fs": "^3.0.3" - }, - "dependencies": { - "ansi-colors": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.4.tgz", - "integrity": "sha512-hHUXGagefjN2iRrID63xckIvotOXOojhQKWIPUZ4mNUZ9nLZW+7FMNoE1lOkEhNWYsx/7ysGIuJYCiMAA9FnrA==", - "dev": true - }, - "plugin-error": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", - "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", - "dev": true, - "requires": { - "ansi-colors": "^1.0.1", - "arr-diff": "^4.0.0", - "arr-union": "^3.1.0", - "extend-shallow": "^3.0.2" - }, - "dependencies": { - "ansi-colors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz", - "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", - "dev": true, - "requires": { - "ansi-wrap": "^0.1.0" - } - } - } - }, - "source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", - "dev": true - }, - "through2": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", - "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", - "dev": true, - "requires": { - "readable-stream": "2 || 3" - } - } - } - }, - "gulpclass": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/gulpclass/-/gulpclass-0.2.0.tgz", - "integrity": "sha512-S2p0SgnVLjBbIEw5tHbBV6Wm6abD+leA5xZG6ukf9M+j1I/8zIeKPby9GLWnI90671YRk+lXbvEUROKaZXo8NA==", - "dev": true, - "requires": { - "@types/gulp": "^4.0.5", - "@types/merge2": "^1.1.4", - "@types/node": "*", - "gulp": "^4.0.0", - "merge2": "^1.2.2" - } - }, - "gulplog": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/gulplog/-/gulplog-1.0.0.tgz", - "integrity": "sha1-4oxNRdBey77YGDY86PnFkmIp/+U=", - "dev": true, - "requires": { - "glogg": "^1.0.0" - } - }, - "handlebars": { - "version": "4.0.11", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.0.11.tgz", - "integrity": "sha1-Ywo13+ApS8KB7a5v/F0yn8eYLcw=", - "dev": true, - "requires": { - "async": "^1.4.0", - "optimist": "^0.6.1", - "source-map": "^0.4.4", - "uglify-js": "^2.6" - }, - "dependencies": { - "source-map": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", - "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", - "dev": true, - "requires": { - "amdefine": ">=0.0.4" - } - } - } - }, - "har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true - }, - "har-validator": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", - "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", - "dev": true, - "requires": { - "ajv": "^5.1.0", - "har-schema": "^2.0.0" - } - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "has-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", - "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", - "dev": true - }, - "has-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", - "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", - "dev": true, - "requires": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" - } - }, - "has-values": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", - "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "dependencies": { - "kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true - }, - "homedir-polyfill": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", - "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", - "dev": true, - "requires": { - "parse-passwd": "^1.0.0" - } - }, - "hosted-git-info": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz", - "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==", - "dev": true - }, - "http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, - "ignore": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.2.tgz", - "integrity": "sha512-vdqWBp7MyzdmHkkRWV5nY+PfGRbYbahfuvsBCh277tq+w9zyNi7h5CYJCK0kmzti9kU+O/cB7sE8HvKv6aXAKQ==", - "dev": true - }, - "ignore-walk": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.1.tgz", - "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==", - "dev": true, - "requires": { - "minimatch": "^3.0.4" - } - }, - "indent-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - }, - "ini": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", - "dev": true - }, - "interpret": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz", - "integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==", - "dev": true - }, - "invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", - "dev": true - }, - "is-absolute": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz", - "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", - "dev": true, - "requires": { - "is-relative": "^1.0.0", - "is-windows": "^1.0.1" - } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "is-binary-path": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", - "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", - "dev": true, - "requires": { - "binary-extensions": "^1.0.0" - } - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "is-callable": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", - "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", - "dev": true - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-date-object": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", - "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", - "dev": true - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } - } - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true - }, - "is-finite": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", - "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", - "dev": true, - "requires": { - "is-extglob": "^2.1.0" - } - }, - "is-negated-glob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-negated-glob/-/is-negated-glob-1.0.0.tgz", - "integrity": "sha1-aRC8pdqMleeEtXUbl2z1oQ/uNtI=", - "dev": true - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", - "dev": true - }, - "is-path-cwd": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", - "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", - "dev": true - }, - "is-path-in-cwd": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-2.1.0.tgz", - "integrity": "sha512-rNocXHgipO+rvnP6dk3zI20RpOtrAM/kzbB258Uw5BWr3TpXi861yzjo16Dn4hUox07iw5AyeMLHWsujkjzvRQ==", - "dev": true, - "requires": { - "is-path-inside": "^2.1.0" - } - }, - "is-path-inside": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-2.1.0.tgz", - "integrity": "sha512-wiyhTzfDWsvwAW53OBWF5zuvaOGlZ6PwYxAbPVDhpm+gM09xKQGjBq/8uYN12aDvMxnAnq3dxTyoSoRNmg5YFg==", - "dev": true, - "requires": { - "path-is-inside": "^1.0.2" - } - }, - "is-plain-obj": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", - "dev": true - }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "is-promise": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", - "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", - "dev": true - }, - "is-regex": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", - "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", - "dev": true, - "requires": { - "has": "^1.0.1" - } - }, - "is-relative": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz", - "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", - "dev": true, - "requires": { - "is-unc-path": "^1.0.0" - } - }, - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "dev": true - }, - "is-symbol": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", - "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", - "dev": true, - "requires": { - "has-symbols": "^1.0.0" - } - }, - "is-text-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-2.0.0.tgz", - "integrity": "sha512-+oDTluR6WEjdXEJMnC2z6A4FRwFoYuvShVVEGsS7ewc0UTi2QtAKMDJuL4BDEVt+5T7MjFo12RP8ghOM75oKJw==", - "dev": true, - "requires": { - "text-extensions": "^2.0.0" - } - }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, - "is-unc-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", - "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", - "dev": true, - "requires": { - "unc-path-regex": "^0.1.2" - } - }, - "is-utf8": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", - "dev": true - }, - "is-valid-glob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-valid-glob/-/is-valid-glob-1.0.0.tgz", - "integrity": "sha1-Kb8+/3Ab4tTTFdusw5vDn+j2Aao=", - "dev": true - }, - "is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true - }, - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", - "dev": true - }, - "istanbul": { - "version": "0.4.5", - "resolved": "https://registry.npmjs.org/istanbul/-/istanbul-0.4.5.tgz", - "integrity": "sha1-ZcfXPUxNqE1POsMQuRj7C4Azczs=", - "dev": true, - "requires": { - "abbrev": "1.0.x", - "async": "1.x", - "escodegen": "1.8.x", - "esprima": "2.7.x", - "glob": "^5.0.15", - "handlebars": "^4.0.1", - "js-yaml": "3.x", - "mkdirp": "0.5.x", - "nopt": "3.x", - "once": "1.x", - "resolve": "1.1.x", - "supports-color": "^3.1.0", - "which": "^1.1.1", - "wordwrap": "^1.0.0" - }, - "dependencies": { - "glob": { - "version": "5.0.15", - "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", - "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", - "dev": true, - "requires": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "2 || 3", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "resolve": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", - "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "istanbul-threshold-checker": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/istanbul-threshold-checker/-/istanbul-threshold-checker-0.2.1.tgz", - "integrity": "sha1-xdyU6PLMXNP/0zVFL4S1U8QkgzE=", - "dev": true, - "requires": { - "istanbul": "~0.4.5", - "lodash": "~4.17.2" - }, - "dependencies": { - "lodash": { - "version": "4.17.10", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", - "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==", - "dev": true - } - } - }, - "istextorbinary": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/istextorbinary/-/istextorbinary-2.2.1.tgz", - "integrity": "sha512-TS+hoFl8Z5FAFMK38nhBkdLt44CclNRgDHWeMgsV8ko3nDlr/9UI2Sf839sW7enijf8oKsZYXRvM8g0it9Zmcw==", - "dev": true, - "requires": { - "binaryextensions": "2", - "editions": "^1.3.3", - "textextensions": "2" - } - }, - "js-tokens": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", - "dev": true - }, - "js-yaml": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz", - "integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "dependencies": { - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - } - } - }, - "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true, - "optional": true - }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "dev": true - }, - "json-schema-traverse": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", - "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=", - "dev": true - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", - "dev": true - }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true - }, - "jsonparse": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", - "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", - "dev": true - }, - "jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "dev": true, - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, - "just-debounce": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/just-debounce/-/just-debounce-1.0.0.tgz", - "integrity": "sha1-h/zPrv/AtozRnVX2cilD+SnqNeo=", - "dev": true - }, - "just-extend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-4.0.2.tgz", - "integrity": "sha512-FrLwOgm+iXrPV+5zDU6Jqu4gCRXbWEQg2O3SKONsWE4w7AXFRkryS53bpWdaL9cNol+AmR3AEYz6kn+o0fCPnw==", - "dev": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - }, - "last-run": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/last-run/-/last-run-1.1.1.tgz", - "integrity": "sha1-RblpQsF7HHnHchmCWbqUO+v4yls=", - "dev": true, - "requires": { - "default-resolution": "^2.0.0", - "es6-weak-map": "^2.0.1" - } - }, - "lazy-cache": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", - "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", - "dev": true, - "optional": true - }, - "lazystream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.0.tgz", - "integrity": "sha1-9plf4PggOS9hOWvolGJAe7dxaOQ=", - "dev": true, - "requires": { - "readable-stream": "^2.0.5" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", - "dev": true, - "requires": { - "invert-kv": "^1.0.0" - } - }, - "lead": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lead/-/lead-1.0.0.tgz", - "integrity": "sha1-bxT5mje+Op3XhPVJVpDlkDRm7kI=", - "dev": true, - "requires": { - "flush-write-stream": "^1.0.2" + "pump": "^3.0.0" } }, - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - } + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", + "dev": true }, - "liftoff": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-3.1.0.tgz", - "integrity": "sha512-DlIPlJUkCV0Ips2zf2pJP0unEoT1kwYhiiPUGF3s/jtxTCjziNLoiVVh+jqWOWeFi6mmwQ5fNxvAUyPad4Dfog==", + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", "dev": true, "requires": { - "extend": "^3.0.0", - "findup-sync": "^3.0.0", - "fined": "^1.0.1", - "flagged-respawn": "^1.0.0", - "is-plain-object": "^2.0.4", - "object.map": "^1.0.0", - "rechoir": "^0.6.2", - "resolve": "^1.1.7" + "assert-plus": "^1.0.0" } }, - "load-json-file": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", - "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", "dev": true, "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "strip-bom": "^2.0.0" - }, - "dependencies": { - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - } + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "glob-parent": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", + "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", "dev": true, "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "dependencies": { - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - } + "is-glob": "^4.0.1" } }, - "lodash": { - "version": "4.17.14", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.14.tgz", - "integrity": "sha512-mmKYbW3GLuJeX+iGP+Y7Gp1AiGHGbXHCOh/jZmrawMmsE7MS4znI3RL2FsjbqOyMayHInjOeykW7PEajUk1/xw==", + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true }, - "lodash._reinterpolate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", - "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", + "graceful-fs": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", + "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==", "dev": true }, - "lodash.get": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", - "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=", - "dev": true + "growly": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", + "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", + "dev": true, + "optional": true }, - "lodash.ismatch": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz", - "integrity": "sha1-dWy1FQyjum8RCFp4hJZF8Yj4Xzc=", + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", "dev": true }, - "lodash.template": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.4.0.tgz", - "integrity": "sha1-5zoDhcg1VZF0bgILmWecaQ5o+6A=", + "har-validator": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", + "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", "dev": true, "requires": { - "lodash._reinterpolate": "~3.0.0", - "lodash.templatesettings": "^4.0.0" + "ajv": "^6.5.5", + "har-schema": "^2.0.0" } }, - "lodash.templatesettings": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.1.0.tgz", - "integrity": "sha1-K01OlbpEDZFf8IvImeRVNmZxMxY=", + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", "dev": true, "requires": { - "lodash._reinterpolate": "~3.0.0" + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" } }, - "log-symbols": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-1.0.2.tgz", - "integrity": "sha1-N2/3tY6jCGoPCfrMdGF+ylAeGhg=", + "has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", "dev": true, "requires": { - "chalk": "^1.0.0" + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "dependencies": { + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } } }, - "lolex": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-5.1.2.tgz", - "integrity": "sha512-h4hmjAvHTmd+25JSwrtTIuwbKdwg5NzZVRMLn9saij4SZaepCrTCxPr35H/3bjwfMJtN+t3CX8672UIkglz28A==", + "html-encoding-sniffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz", + "integrity": "sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw==", "dev": true, "requires": { - "@sinonjs/commons": "^1.7.0" + "whatwg-encoding": "^1.0.1" } }, - "longest": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", - "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", - "dev": true, - "optional": true + "html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true }, - "loud-rejection": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", - "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", "dev": true, "requires": { - "currently-unhandled": "^0.4.1", - "signal-exit": "^3.0.0" + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" } }, - "lru-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz", - "integrity": "sha1-Jzi9nw089PhEkMVzbEhpmsYyzaM=", + "human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "dev": true + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, "requires": { - "es5-ext": "~0.10.2" + "safer-buffer": ">= 2.1.2 < 3" } }, - "make-error": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.5.tgz", - "integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==", + "ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", "dev": true }, - "make-iterator": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-1.0.1.tgz", - "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==", + "import-fresh": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", + "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", "dev": true, "requires": { - "kind-of": "^6.0.2" + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true + } } }, - "map-age-cleaner": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", - "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", + "import-local": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz", + "integrity": "sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA==", "dev": true, "requires": { - "p-defer": "^1.0.0" + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" } }, - "map-cache": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", "dev": true }, - "map-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", - "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", - "dev": true + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } }, - "map-stream": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", - "integrity": "sha1-ih8HiW2CsQkmvTdEokIACfiJdKg=", + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, - "map-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", - "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "inquirer": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.1.0.tgz", + "integrity": "sha512-5fJMWEmikSYu0nv/flMc475MhGbB7TSPd/2IpFV4I4rMklboCH2rQjYY5kKiYGHqUF9gvaambupcJFFG9dvReg==", "dev": true, "requires": { - "object-visit": "^1.0.0" - } + "ansi-escapes": "^4.2.1", + "chalk": "^3.0.0", + "cli-cursor": "^3.1.0", + "cli-width": "^2.0.0", + "external-editor": "^3.0.3", + "figures": "^3.0.0", + "lodash": "^4.17.15", + "mute-stream": "0.0.8", + "run-async": "^2.4.0", + "rxjs": "^6.5.3", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6" + } + }, + "ip-regex": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-2.1.0.tgz", + "integrity": "sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk=", + "dev": true }, - "matchdep": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/matchdep/-/matchdep-2.0.0.tgz", - "integrity": "sha1-xvNINKDY28OzfCfui7yyfHd1WC4=", + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", "dev": true, "requires": { - "findup-sync": "^2.0.0", - "micromatch": "^3.0.4", - "resolve": "^1.4.0", - "stack-trace": "0.0.10" + "kind-of": "^3.0.2" }, "dependencies": { - "findup-sync": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-2.0.0.tgz", - "integrity": "sha1-kyaxSIwi0aYIhlCoaQGy2akKLLw=", + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "detect-file": "^1.0.0", - "is-glob": "^3.1.0", - "micromatch": "^3.0.4", - "resolve-dir": "^1.0.1" + "is-buffer": "^1.1.5" } } } }, - "mem": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", - "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", "dev": true, "requires": { - "map-age-cleaner": "^0.1.1", - "mimic-fn": "^2.0.0", - "p-is-promise": "^2.0.0" + "ci-info": "^2.0.0" } }, - "memoizee": { - "version": "0.4.12", - "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.12.tgz", - "integrity": "sha512-sprBu6nwxBWBvBOh5v2jcsGqiGLlL2xr2dLub3vR8dnE8YB17omwtm/0NSHl8jjNbcsJd5GMWJAnTSVe/O0Wfg==", + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", "dev": true, "requires": { - "d": "1", - "es5-ext": "^0.10.30", - "es6-weak-map": "^2.0.2", - "event-emitter": "^0.3.5", - "is-promise": "^2.1", - "lru-queue": "0.1", - "next-tick": "1", - "timers-ext": "^0.1.2" - } - }, - "meow": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/meow/-/meow-4.0.1.tgz", - "integrity": "sha512-xcSBHD5Z86zaOc+781KrupuHAzeGXSLtiAOmBsiLDiPSaYSB6hdew2ng9EBAnZ62jagG9MHAOdxpDi/lWBFJ/A==", - "dev": true, - "requires": { - "camelcase-keys": "^4.0.0", - "decamelize-keys": "^1.0.0", - "loud-rejection": "^1.0.0", - "minimist": "^1.1.3", - "minimist-options": "^3.0.1", - "normalize-package-data": "^2.3.4", - "read-pkg-up": "^3.0.0", - "redent": "^2.0.0", - "trim-newlines": "^2.0.0" + "kind-of": "^3.0.2" }, "dependencies": { - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - }, - "load-json-file": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^4.0.0", - "pify": "^3.0.0", - "strip-bom": "^3.0.0" - } - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - } - }, - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "requires": { - "p-try": "^1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "requires": { - "p-limit": "^1.1.0" - } - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true - }, - "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, - "requires": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" - } - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", - "dev": true, - "requires": { - "pify": "^3.0.0" - } - }, - "read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", - "dev": true, - "requires": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" - } - }, - "read-pkg-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", - "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "find-up": "^2.0.0", - "read-pkg": "^3.0.0" + "is-buffer": "^1.1.5" } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", "dev": true } } }, - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", "dev": true }, - "merge2": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.2.3.tgz", - "integrity": "sha512-gdUU1Fwj5ep4kplwcmftruWofEFt6lfpkkr3h860CXbAB9c3hGb55EOL2ali0Td5oebvW0E1+3Sr+Ur7XfKpRA==", + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", "dev": true }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, + "is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true + }, + "is-glob": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", + "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", "dev": true, "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" + "is-extglob": "^2.1.1" } }, - "mime-db": { - "version": "1.35.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.35.0.tgz", - "integrity": "sha512-JWT/IcCTsB0Io3AhWUMjRqucrHSPsSf2xKLaRldJVULioggvkJvggZ3VXNNSRkCddE6D+BUI4HEIZIA2OjwIvg==", + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true }, - "mime-types": { - "version": "2.1.19", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.19.tgz", - "integrity": "sha512-P1tKYHVSZ6uFo26mtnve4HQFE3koh1UWVkp8YUC+ESBHe945xWSoXuHHiGarDqcEZ+whpCDnlNw5LON0kLo+sw==", + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dev": true, "requires": { - "mime-db": "~1.35.0" + "isobject": "^3.0.1" } }, - "mimic-fn": { + "is-promise": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", + "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", "dev": true }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, + "is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true + }, + "is-wsl": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.1.1.tgz", + "integrity": "sha512-umZHcSrwlDHo2TGMXv0DZ8dIUGunZ2Iv68YZnrmCiBPkZ4aaOhtv7pXJKeki9k3qJ3RJr0cDyitcl5wEH3AYog==", + "dev": true, + "optional": true + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "dev": true + }, + "istanbul-lib-coverage": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz", + "integrity": "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==", + "dev": true + }, + "istanbul-lib-instrument": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.1.tgz", + "integrity": "sha512-imIchxnodll7pvQBYOqUu88EufLCU56LMeFPZZM/fJZ1irYcYdqroaV+ACK1Ila8ls09iEYArp+nqyC6lW1Vfg==", "dev": true, "requires": { - "brace-expansion": "^1.1.7" + "@babel/core": "^7.7.5", + "@babel/parser": "^7.7.5", + "@babel/template": "^7.7.4", + "@babel/traverse": "^7.7.4", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.0.0", + "semver": "^6.3.0" } }, - "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true + "istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "requires": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + } }, - "minimist-options": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz", - "integrity": "sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ==", + "istanbul-lib-source-maps": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz", + "integrity": "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==", "dev": true, "requires": { - "arrify": "^1.0.1", - "is-plain-obj": "^1.1.0" + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" } }, - "mixin-deep": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", - "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", + "istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-Vm9xwCiQ8t2cNNnckyeAV0UdxKpcQUz4nMxsBvIu8n2kmPSiyb5uaF/8LpmKr+yqL/MdOXaX2Nmdo4Qyxium9Q==", "dev": true, "requires": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - } + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" } }, - "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "jest": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest/-/jest-25.2.6.tgz", + "integrity": "sha512-AA9U1qmYViBTfoKWzQBbBmck53Tsw8av7zRYdE4EUBU6r04mddPQaflpPBy/KC308HF7u8fLLxEJFt/LiFzYFQ==", "dev": true, "requires": { - "minimist": "0.0.8" + "@jest/core": "^25.2.6", + "import-local": "^3.0.2", + "jest-cli": "^25.2.6" }, "dependencies": { - "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "jest-cli": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-25.2.6.tgz", + "integrity": "sha512-i31HkagK5veFOUg1ZqxxfP+ZeKDggmI5qZhK6/Cp0ohuaKFQdtS43AqqnXg13JWKCV0E38Nu/K0W4NsFlXLNEA==", + "dev": true, + "requires": { + "@jest/core": "^25.2.6", + "@jest/test-result": "^25.2.6", + "@jest/types": "^25.2.6", + "chalk": "^3.0.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "is-ci": "^2.0.0", + "jest-config": "^25.2.6", + "jest-util": "^25.2.6", + "jest-validate": "^25.2.6", + "prompts": "^2.0.1", + "realpath-native": "^2.0.0", + "yargs": "^15.3.1" + } } } }, - "mocha": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-7.0.1.tgz", - "integrity": "sha512-9eWmWTdHLXh72rGrdZjNbG3aa1/3NRPpul1z0D979QpEnFdCG0Q5tv834N+94QEN2cysfV72YocQ3fn87s70fg==", - "dev": true, - "requires": { - "ansi-colors": "3.2.3", - "browser-stdout": "1.3.1", - "chokidar": "3.3.0", - "debug": "3.2.6", - "diff": "3.5.0", - "escape-string-regexp": "1.0.5", - "find-up": "3.0.0", - "glob": "7.1.3", - "growl": "1.10.5", - "he": "1.2.0", - "js-yaml": "3.13.1", - "log-symbols": "2.2.0", - "minimatch": "3.0.4", - "mkdirp": "0.5.1", - "ms": "2.1.1", - "node-environment-flags": "1.0.6", - "object.assign": "4.1.0", - "strip-json-comments": "2.0.1", - "supports-color": "6.0.0", - "which": "1.3.1", - "wide-align": "1.1.3", - "yargs": "13.3.0", - "yargs-parser": "13.1.1", - "yargs-unparser": "1.6.0" + "jest-changed-files": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-25.2.6.tgz", + "integrity": "sha512-F7l2m5n55jFnJj4ItB9XbAlgO+6umgvz/mdK76BfTd2NGkvGf9x96hUXP/15a1K0k14QtVOoutwpRKl360msvg==", + "dev": true, + "requires": { + "@jest/types": "^25.2.6", + "execa": "^3.2.0", + "throat": "^5.0.0" }, "dependencies": { - "ansi-colors": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", - "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", - "dev": true - }, - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "anymatch": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", - "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "binary-extensions": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.0.0.tgz", - "integrity": "sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow==", - "dev": true - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "requires": { - "fill-range": "^7.0.1" - } - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "dependencies": { - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "chokidar": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.3.0.tgz", - "integrity": "sha512-dGmKLDdT3Gdl7fBUe8XK+gAtGmzy5Fn0XkkWQuYxGIgWVPPse2CxFA5mtrlD0TOHaHjEUqkWNyP1XdHoJES/4A==", - "dev": true, - "requires": { - "anymatch": "~3.1.1", - "braces": "~3.0.2", - "fsevents": "~2.1.1", - "glob-parent": "~5.1.0", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.2.0" - } - }, - "cliui": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", - "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", - "dev": true, - "requires": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" - } - }, - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, - "fill-range": { + "cross-spawn": { "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.1.tgz", + "integrity": "sha512-u7v4o84SwFpD32Z8IIcPZ6z1/ie24O6RU3RbtL5Y316l3KuHVPx9ItBgWQ6VlfAFnRnTtMUrsQ9MUUTuEZjogg==", "dev": true, "requires": { - "locate-path": "^3.0.0" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" } }, - "fsevents": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.2.tgz", - "integrity": "sha512-R4wDiBwZ0KzpgOWetKDug1FZcYhqYnUYKtfZYt4mD5SBz76q0KR4Q9o7GIPamsVPGmW3EYPPJ0dOOjvx32ldZA==", - "dev": true, - "optional": true - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "execa": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-3.4.0.tgz", + "integrity": "sha512-r9vdGQk4bmCuK1yKQu1KTwcT2zwfWdbdaXfCtAh+5nU/4fSX+JAb7vZGvI5naJrQlvONrEB20jeruESI69530g==", "dev": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "p-finally": "^2.0.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" } }, - "glob-parent": { + "get-stream": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.0.tgz", - "integrity": "sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", + "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", "dev": true, "requires": { - "binary-extensions": "^2.0.0" + "pump": "^3.0.0" } }, - "is-fullwidth-code-point": { + "is-stream": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", + "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", "dev": true }, - "js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "path-key": "^3.0.0" } }, - "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "p-finally": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-2.0.1.tgz", + "integrity": "sha512-vpm09aKwq6H9phqRQzecoDpD8TmVyGw70qmWlyq5onxY7tqyTTFVvxMykxQSQKILBSFlbXpypIw2T1Ml7+DDtw==", "dev": true }, - "log-symbols": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", - "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", - "dev": true, - "requires": { - "chalk": "^2.0.1" - } - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true }, - "node-environment-flags": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.6.tgz", - "integrity": "sha512-5Evy2epuL+6TM0lCQGpFIj6KwiEsGh1SrHUhTbNX+sLbBtjidPZFAnVK9y5yU1+h//RitLbRHTIMyxQPtxMdHw==", + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, "requires": { - "object.getownpropertydescriptors": "^2.0.3", - "semver": "^5.7.0" + "shebang-regex": "^3.0.0" } }, - "normalize-path": { + "shebang-regex": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true - }, - "readdirp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.2.0.tgz", - "integrity": "sha512-crk4Qu3pmXwgxdSgGhgA/eXiJAPQiX4GMOZZMXnqKxHX7TaoL+3gQVo/WeuAiogr07DpnfjIMpXXa+PAIvwPGQ==", + } + } + }, + "jest-config": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-25.2.6.tgz", + "integrity": "sha512-R82bUaOHU/2nPSXmvrwLZtQRRr5x1V7qEXE0i4Pybv55XDqVl2/yKNBkYPneG3uSL3n5f6EJeP0/9HNxQu/SZg==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^25.2.6", + "@jest/types": "^25.2.6", + "babel-jest": "^25.2.6", + "chalk": "^3.0.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "jest-environment-jsdom": "^25.2.6", + "jest-environment-node": "^25.2.6", + "jest-get-type": "^25.2.6", + "jest-jasmine2": "^25.2.6", + "jest-regex-util": "^25.2.6", + "jest-resolve": "^25.2.6", + "jest-util": "^25.2.6", + "jest-validate": "^25.2.6", + "micromatch": "^4.0.2", + "pretty-format": "^25.2.6", + "realpath-native": "^2.0.0" + }, + "dependencies": { + "pretty-format": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-25.2.6.tgz", + "integrity": "sha512-DEiWxLBaCHneffrIT4B+TpMvkV9RNvvJrd3lY9ew1CEQobDzEXmYT1mg0hJhljZty7kCc10z13ohOFAE8jrUDg==", "dev": true, "requires": { - "picomatch": "^2.0.4" + "@jest/types": "^25.2.6", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^16.12.0" } - }, - "require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + } + } + }, + "jest-diff": { + "version": "25.1.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-25.1.0.tgz", + "integrity": "sha512-nepXgajT+h017APJTreSieh4zCqnSHEJ1iT8HDlewu630lSJ4Kjjr9KNzm+kzGwwcpsDE6Snx1GJGzzsefaEHw==", + "dev": true, + "requires": { + "chalk": "^3.0.0", + "diff-sequences": "^25.1.0", + "jest-get-type": "^25.1.0", + "pretty-format": "^25.1.0" + } + }, + "jest-docblock": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-25.2.6.tgz", + "integrity": "sha512-VAYrljEq0upq0oERfIaaNf28gC6p9gORndhHstCYF8NWGNQJnzoaU//S475IxfWMk4UjjVmS9rJKLe5Jjjbixw==", + "dev": true, + "requires": { + "detect-newline": "^3.0.0" + } + }, + "jest-each": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-25.2.6.tgz", + "integrity": "sha512-OgQ01VINaRD6idWJOhCYwUc5EcgHBiFlJuw+ON2VgYr7HLtMFyCcuo+3mmBvuLUH4QudREZN7cDCZviknzsaJQ==", + "dev": true, + "requires": { + "@jest/types": "^25.2.6", + "chalk": "^3.0.0", + "jest-get-type": "^25.2.6", + "jest-util": "^25.2.6", + "pretty-format": "^25.2.6" + }, + "dependencies": { + "pretty-format": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-25.2.6.tgz", + "integrity": "sha512-DEiWxLBaCHneffrIT4B+TpMvkV9RNvvJrd3lY9ew1CEQobDzEXmYT1mg0hJhljZty7kCc10z13ohOFAE8jrUDg==", "dev": true, "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" + "@jest/types": "^25.2.6", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^16.12.0" } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + } + } + }, + "jest-environment-jsdom": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-25.2.6.tgz", + "integrity": "sha512-/o7MZIhGmLGIEG5j7r5B5Az0umWLCHU+F5crwfbm0BzC4ybHTJZOQTFQWhohBg+kbTCNOuftMcqHlVkVduJCQQ==", + "dev": true, + "requires": { + "@jest/environment": "^25.2.6", + "@jest/fake-timers": "^25.2.6", + "@jest/types": "^25.2.6", + "jest-mock": "^25.2.6", + "jest-util": "^25.2.6", + "jsdom": "^15.2.1" + } + }, + "jest-environment-node": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-25.2.6.tgz", + "integrity": "sha512-D1Ihj14fxZiMHGeTtU/LunhzSI+UeBvlr/rcXMTNyRMUMSz2PEhuqGbB78brBY6Dk3FhJDk7Ta+8reVaGjLWhA==", + "dev": true, + "requires": { + "@jest/environment": "^25.2.6", + "@jest/fake-timers": "^25.2.6", + "@jest/types": "^25.2.6", + "jest-mock": "^25.2.6", + "jest-util": "^25.2.6", + "semver": "^6.3.0" + } + }, + "jest-get-type": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-25.2.6.tgz", + "integrity": "sha512-DxjtyzOHjObRM+sM1knti6or+eOgcGU4xVSb2HNP1TqO4ahsT+rqZg+nyqHWJSvWgKC5cG3QjGFBqxLghiF/Ig==", + "dev": true + }, + "jest-haste-map": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-25.2.6.tgz", + "integrity": "sha512-nom0+fnY8jwzelSDQnrqaKAcDZczYQvMEwcBjeL3PQ4MlcsqeB7dmrsAniUw/9eLkngT5DE6FhnenypilQFsgA==", + "dev": true, + "requires": { + "@jest/types": "^25.2.6", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.1.2", + "graceful-fs": "^4.2.3", + "jest-serializer": "^25.2.6", + "jest-util": "^25.2.6", + "jest-worker": "^25.2.6", + "micromatch": "^4.0.2", + "sane": "^4.0.3", + "walker": "^1.0.7", + "which": "^2.0.2" + } + }, + "jest-jasmine2": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-25.2.6.tgz", + "integrity": "sha512-0429YtThQjol9EElh0mLMsfMBB++yFCjWuGv3xNK4QPrvralJRlpHbuhfSVaOsHC91RrRBbKfM7jSA+FiVG+Jg==", + "dev": true, + "requires": { + "@babel/traverse": "^7.1.0", + "@jest/environment": "^25.2.6", + "@jest/source-map": "^25.2.6", + "@jest/test-result": "^25.2.6", + "@jest/types": "^25.2.6", + "chalk": "^3.0.0", + "co": "^4.6.0", + "expect": "^25.2.6", + "is-generator-fn": "^2.0.0", + "jest-each": "^25.2.6", + "jest-matcher-utils": "^25.2.6", + "jest-message-util": "^25.2.6", + "jest-runtime": "^25.2.6", + "jest-snapshot": "^25.2.6", + "jest-util": "^25.2.6", + "pretty-format": "^25.2.6", + "throat": "^5.0.0" + }, + "dependencies": { + "pretty-format": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-25.2.6.tgz", + "integrity": "sha512-DEiWxLBaCHneffrIT4B+TpMvkV9RNvvJrd3lY9ew1CEQobDzEXmYT1mg0hJhljZty7kCc10z13ohOFAE8jrUDg==", "dev": true, "requires": { - "ansi-regex": "^4.1.0" + "@jest/types": "^25.2.6", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^16.12.0" } - }, - "supports-color": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", - "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", + } + } + }, + "jest-leak-detector": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-25.2.6.tgz", + "integrity": "sha512-n+aJUM+j/x1kIaPVxzerMqhAUuqTU1PL5kup46rXh+l9SP8H6LqECT/qD1GrnylE1L463/0StSPkH4fUpkuEjA==", + "dev": true, + "requires": { + "jest-get-type": "^25.2.6", + "pretty-format": "^25.2.6" + }, + "dependencies": { + "pretty-format": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-25.2.6.tgz", + "integrity": "sha512-DEiWxLBaCHneffrIT4B+TpMvkV9RNvvJrd3lY9ew1CEQobDzEXmYT1mg0hJhljZty7kCc10z13ohOFAE8jrUDg==", "dev": true, "requires": { - "has-flag": "^3.0.0" + "@jest/types": "^25.2.6", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^16.12.0" } - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + } + } + }, + "jest-matcher-utils": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-25.2.6.tgz", + "integrity": "sha512-+6IbC98ZBw3X7hsfUvt+7VIYBdI0FEvhSBjWo9XTHOc1KAAHDsrSHdeyHH/Su0r/pf4OEGuWRRLPnjkhS2S19A==", + "dev": true, + "requires": { + "chalk": "^3.0.0", + "jest-diff": "^25.2.6", + "jest-get-type": "^25.2.6", + "pretty-format": "^25.2.6" + }, + "dependencies": { + "jest-diff": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-25.2.6.tgz", + "integrity": "sha512-KuadXImtRghTFga+/adnNrv9s61HudRMR7gVSbP35UKZdn4IK2/0N0PpGZIqtmllK9aUyye54I3nu28OYSnqOg==", "dev": true, "requires": { - "is-number": "^7.0.0" + "chalk": "^3.0.0", + "diff-sequences": "^25.2.6", + "jest-get-type": "^25.2.6", + "pretty-format": "^25.2.6" } }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "wrap-ansi": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", + "pretty-format": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-25.2.6.tgz", + "integrity": "sha512-DEiWxLBaCHneffrIT4B+TpMvkV9RNvvJrd3lY9ew1CEQobDzEXmYT1mg0hJhljZty7kCc10z13ohOFAE8jrUDg==", "dev": true, "requires": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" + "@jest/types": "^25.2.6", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^16.12.0" } - }, - "y18n": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", - "dev": true - }, - "yargs": { - "version": "13.3.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.0.tgz", - "integrity": "sha512-2eehun/8ALW8TLoIl7MVaRUrg+yCnenu8B4kBlRxj3GJGDKU1Og7sMXPNm1BYyM1DOJmTZ4YeN/Nwxv+8XJsUA==", + } + } + }, + "jest-message-util": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-25.2.6.tgz", + "integrity": "sha512-Hgg5HbOssSqOuj+xU1mi7m3Ti2nwSQJQf/kxEkrz2r2rp2ZLO1pMeKkz2WiDUWgSR+APstqz0uMFcE5yc0qdcg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@jest/types": "^25.2.6", + "@types/stack-utils": "^1.0.1", + "chalk": "^3.0.0", + "micromatch": "^4.0.2", + "slash": "^3.0.0", + "stack-utils": "^1.0.1" + } + }, + "jest-mock": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-25.2.6.tgz", + "integrity": "sha512-vc4nibavi2RGPdj/MyZy/azuDjZhpYZLvpfgq1fxkhbyTpKVdG7CgmRVKJ7zgLpY5kuMjTzDYA6QnRwhsCU+tA==", + "dev": true, + "requires": { + "@jest/types": "^25.2.6" + } + }, + "jest-pnp-resolver": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.1.tgz", + "integrity": "sha512-pgFw2tm54fzgYvc/OHrnysABEObZCUNFnhjoRjaVOCN8NYc032/gVjPaHD4Aq6ApkSieWtfKAFQtmDKAmhupnQ==", + "dev": true + }, + "jest-regex-util": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-25.2.6.tgz", + "integrity": "sha512-KQqf7a0NrtCkYmZZzodPftn7fL1cq3GQAFVMn5Hg8uKx/fIenLEobNanUxb7abQ1sjADHBseG/2FGpsv/wr+Qw==", + "dev": true + }, + "jest-resolve": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-25.2.6.tgz", + "integrity": "sha512-7O61GVdcAXkLz/vNGKdF+00A80/fKEAA47AEXVNcZwj75vEjPfZbXDaWFmAQCyXj4oo9y9dC9D+CLA11t8ieGw==", + "dev": true, + "requires": { + "@jest/types": "^25.2.6", + "browser-resolve": "^1.11.3", + "chalk": "^3.0.0", + "jest-pnp-resolver": "^1.2.1", + "realpath-native": "^2.0.0", + "resolve": "^1.15.1" + } + }, + "jest-resolve-dependencies": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-25.2.6.tgz", + "integrity": "sha512-SJeRBCDZzXVy/DjbwBH3KzjxPw5Q/j3foDkWZYu2GIa6SHqy34qVaw1mL7SJg9r6GApwjIoKP6fGwU6c/afg0A==", + "dev": true, + "requires": { + "@jest/types": "^25.2.6", + "jest-regex-util": "^25.2.6", + "jest-snapshot": "^25.2.6" + } + }, + "jest-runner": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-25.2.6.tgz", + "integrity": "sha512-sN45p3jxvpsG7UjeQFqyC+JR5+THLrIT9oXAHwQQIDWfpmZBFko2RROn1fvdQNWhuPzDeUf/oHykbhNRGo9eWg==", + "dev": true, + "requires": { + "@jest/console": "^25.2.6", + "@jest/environment": "^25.2.6", + "@jest/test-result": "^25.2.6", + "@jest/types": "^25.2.6", + "chalk": "^3.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.3", + "jest-config": "^25.2.6", + "jest-docblock": "^25.2.6", + "jest-haste-map": "^25.2.6", + "jest-jasmine2": "^25.2.6", + "jest-leak-detector": "^25.2.6", + "jest-message-util": "^25.2.6", + "jest-resolve": "^25.2.6", + "jest-runtime": "^25.2.6", + "jest-util": "^25.2.6", + "jest-worker": "^25.2.6", + "source-map-support": "^0.5.6", + "throat": "^5.0.0" + } + }, + "jest-runtime": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-25.2.6.tgz", + "integrity": "sha512-u0iNjO7VvI46341igiQP/bnm1TwdXV6IjVEo7DMVqRbTDTz4teTNOUXChuSMdoyjQcfJ3zmI7/jVktUpjnZhYw==", + "dev": true, + "requires": { + "@jest/console": "^25.2.6", + "@jest/environment": "^25.2.6", + "@jest/source-map": "^25.2.6", + "@jest/test-result": "^25.2.6", + "@jest/transform": "^25.2.6", + "@jest/types": "^25.2.6", + "@types/yargs": "^15.0.0", + "chalk": "^3.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.3", + "jest-config": "^25.2.6", + "jest-haste-map": "^25.2.6", + "jest-message-util": "^25.2.6", + "jest-mock": "^25.2.6", + "jest-regex-util": "^25.2.6", + "jest-resolve": "^25.2.6", + "jest-snapshot": "^25.2.6", + "jest-util": "^25.2.6", + "jest-validate": "^25.2.6", + "realpath-native": "^2.0.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0", + "yargs": "^15.3.1" + } + }, + "jest-serializer": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-25.2.6.tgz", + "integrity": "sha512-RMVCfZsezQS2Ww4kB5HJTMaMJ0asmC0BHlnobQC6yEtxiFKIxohFA4QSXSabKwSggaNkqxn6Z2VwdFCjhUWuiQ==", + "dev": true + }, + "jest-snapshot": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-25.2.6.tgz", + "integrity": "sha512-Zw/Ba6op5zInjPHoA2xGUrCw1G/iTHOGMhV02PzlrWhF9uTl2/jjk/bpOMkPaW8EyylmQbjQ2oj4jCfYwpDKng==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0", + "@jest/types": "^25.2.6", + "@types/prettier": "^1.19.0", + "chalk": "^3.0.0", + "expect": "^25.2.6", + "jest-diff": "^25.2.6", + "jest-get-type": "^25.2.6", + "jest-matcher-utils": "^25.2.6", + "jest-message-util": "^25.2.6", + "jest-resolve": "^25.2.6", + "make-dir": "^3.0.0", + "natural-compare": "^1.4.0", + "pretty-format": "^25.2.6", + "semver": "^6.3.0" + }, + "dependencies": { + "jest-diff": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-25.2.6.tgz", + "integrity": "sha512-KuadXImtRghTFga+/adnNrv9s61HudRMR7gVSbP35UKZdn4IK2/0N0PpGZIqtmllK9aUyye54I3nu28OYSnqOg==", "dev": true, "requires": { - "cliui": "^5.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.1.1" + "chalk": "^3.0.0", + "diff-sequences": "^25.2.6", + "jest-get-type": "^25.2.6", + "pretty-format": "^25.2.6" } }, - "yargs-parser": { - "version": "13.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.1.tgz", - "integrity": "sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ==", + "pretty-format": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-25.2.6.tgz", + "integrity": "sha512-DEiWxLBaCHneffrIT4B+TpMvkV9RNvvJrd3lY9ew1CEQobDzEXmYT1mg0hJhljZty7kCc10z13ohOFAE8jrUDg==", "dev": true, "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" + "@jest/types": "^25.2.6", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^16.12.0" } - }, - "yargs-unparser": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.0.tgz", - "integrity": "sha512-W9tKgmSn0DpSatfri0nx52Joq5hVXgeLiqR/5G0sZNDoLZFOr/xjBUDcShCOGNsBnEMNo1KAMBkTej1Hm62HTw==", + } + } + }, + "jest-util": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-25.2.6.tgz", + "integrity": "sha512-gpXy0H5ymuQ0x2qgl1zzHg7LYHZYUmDEq6F7lhHA8M0eIwDB2WteOcCnQsohl9c/vBKZ3JF2r4EseipCZz3s4Q==", + "dev": true, + "requires": { + "@jest/types": "^25.2.6", + "chalk": "^3.0.0", + "is-ci": "^2.0.0", + "make-dir": "^3.0.0" + } + }, + "jest-validate": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-25.2.6.tgz", + "integrity": "sha512-a4GN7hYbqQ3Rt9iHsNLFqQz7HDV7KiRPCwPgo5nqtTIWNZw7gnT8KchG+Riwh+UTSn8REjFCodGp50KX/fRNgQ==", + "dev": true, + "requires": { + "@jest/types": "^25.2.6", + "camelcase": "^5.3.1", + "chalk": "^3.0.0", + "jest-get-type": "^25.2.6", + "leven": "^3.1.0", + "pretty-format": "^25.2.6" + }, + "dependencies": { + "pretty-format": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-25.2.6.tgz", + "integrity": "sha512-DEiWxLBaCHneffrIT4B+TpMvkV9RNvvJrd3lY9ew1CEQobDzEXmYT1mg0hJhljZty7kCc10z13ohOFAE8jrUDg==", + "dev": true, + "requires": { + "@jest/types": "^25.2.6", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^16.12.0" + } + } + } + }, + "jest-watcher": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-25.2.6.tgz", + "integrity": "sha512-yzv5DBeo03dQnSsSrn1mdOU1LSDd1tZaCTvSE5JYfcv6Z66PdDNhO9MNDdLKA/oQlJNj0S6TiYgLdOY5wL5cMA==", + "dev": true, + "requires": { + "@jest/test-result": "^25.2.6", + "@jest/types": "^25.2.6", + "ansi-escapes": "^4.2.1", + "chalk": "^3.0.0", + "jest-util": "^25.2.6", + "string-length": "^3.1.0" + } + }, + "jest-worker": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-25.2.6.tgz", + "integrity": "sha512-FJn9XDUSxcOR4cwDzRfL1z56rUofNTFs539FGASpd50RHdb6EVkhxQqktodW2mI49l+W3H+tFJDotCHUQF6dmA==", + "dev": true, + "requires": { + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + } + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "dev": true + }, + "jsdom": { + "version": "15.2.1", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-15.2.1.tgz", + "integrity": "sha512-fAl1W0/7T2G5vURSyxBzrJ1LSdQn6Tr5UX/xD4PXDx/PDgwygedfW6El/KIj3xJ7FU61TTYnc/l/B7P49Eqt6g==", + "dev": true, + "requires": { + "abab": "^2.0.0", + "acorn": "^7.1.0", + "acorn-globals": "^4.3.2", + "array-equal": "^1.0.0", + "cssom": "^0.4.1", + "cssstyle": "^2.0.0", + "data-urls": "^1.1.0", + "domexception": "^1.0.1", + "escodegen": "^1.11.1", + "html-encoding-sniffer": "^1.0.2", + "nwsapi": "^2.2.0", + "parse5": "5.1.0", + "pn": "^1.1.0", + "request": "^2.88.0", + "request-promise-native": "^1.0.7", + "saxes": "^3.1.9", + "symbol-tree": "^3.2.2", + "tough-cookie": "^3.0.1", + "w3c-hr-time": "^1.0.1", + "w3c-xmlserializer": "^1.1.2", + "webidl-conversions": "^4.0.2", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^7.0.0", + "ws": "^7.0.0", + "xml-name-validator": "^3.0.0" + } + }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true + }, + "json": { + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/json/-/json-9.0.6.tgz", + "integrity": "sha1-eXLCpaSKQmeNsnMMfCxO5uTiRYU=", + "dev": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", + "dev": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "dev": true + }, + "json5": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.2.tgz", + "integrity": "sha512-MoUOQ4WdiN3yxhm7NEVJSJrieAo5hNSLQ5sj05OTRHPL9HOBy8u4Bu88jsC1jvqAdN+E1bJmsUcZH+1HQxliqQ==", + "dev": true, + "requires": { + "minimist": "^1.2.5" + } + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "dev": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + }, + "kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true + }, + "leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true + }, + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + }, + "lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", + "dev": true + }, + "lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", + "dev": true + }, + "lolex": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-5.1.2.tgz", + "integrity": "sha512-h4hmjAvHTmd+25JSwrtTIuwbKdwg5NzZVRMLn9saij4SZaepCrTCxPr35H/3bjwfMJtN+t3CX8672UIkglz28A==", + "dev": true, + "requires": { + "@sinonjs/commons": "^1.7.0" + } + }, + "make-dir": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.0.2.tgz", + "integrity": "sha512-rYKABKutXa6vXTXhoV18cBE7PaewPXHe/Bdq4v+ZLMhxbWApkFFplT0LcbMW+6BbjnQXzZ/sAvSE/JdguApG5w==", + "dev": true, + "requires": { + "semver": "^6.0.0" + } + }, + "make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "makeerror": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.11.tgz", + "integrity": "sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw=", + "dev": true, + "requires": { + "tmpl": "1.0.x" + } + }, + "map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", + "dev": true + }, + "map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "dev": true, + "requires": { + "object-visit": "^1.0.0" + } + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "micromatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", + "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.0.5" + } + }, + "mime-db": { + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.43.0.tgz", + "integrity": "sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ==", + "dev": true + }, + "mime-types": { + "version": "2.1.26", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.26.tgz", + "integrity": "sha512-01paPWYgLrkqAyrlDorC1uDwl2p3qZT7yl806vW7DvDoxwXi46jsjFbg+WdwotBIk6/MbEhO/dh5aZ5sNj/dWQ==", + "dev": true, + "requires": { + "mime-db": "1.43.0" + } + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "dev": true, + "requires": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", "dev": true, "requires": { - "flat": "^4.1.0", - "lodash": "^4.17.15", - "yargs": "^13.3.0" + "is-plain-object": "^2.0.4" } } } }, - "modify-values": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz", - "integrity": "sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==", + "mkdirp": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.3.tgz", + "integrity": "sha512-6uCP4Qc0sWsgMLy1EOqqS/3rjDHOEnsStVr/4vtAIK2Y5i2kA7lFFejYrpIyiN9w0pYf4ckeCYT9f1r1P9KX5g==", "dev": true }, "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, - "mute-stdout": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mute-stdout/-/mute-stdout-1.0.1.tgz", - "integrity": "sha512-kDcwXR4PS7caBpuRYYBUz9iVixUk3anO3f5OYFiIPwK/20vCzKCHyKoulbiDY1S53zD2bxUpxN/IJ+TnXjfvxg==", + "mute-stream": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", "dev": true }, - "nan": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", - "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==", - "dev": true, - "optional": true - }, "nanomatch": { "version": "1.2.13", "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", @@ -6284,103 +3705,71 @@ "to-regex": "^3.0.1" } }, - "neo-async": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz", - "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==", - "dev": true - }, - "next-tick": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", - "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", "dev": true }, "nice-try": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.4.tgz", - "integrity": "sha512-2NpiFHqC87y/zFke0fC0spBXL3bBsoh/p5H1EFhshxjCR5+0g2d6BiXbUFz9v1sAcxsk2htp2eQnNIci2dIYcA==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", "dev": true }, - "nise": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/nise/-/nise-3.0.0.tgz", - "integrity": "sha512-EObFx5tioBMePHpU/gGczaY2YDqL255iwjmZwswu2CiwEW8xIGrr3E2xij+efIppS1nLQo9NyXSIUySGHUOhHQ==", - "dev": true, - "requires": { - "@sinonjs/commons": "^1.7.0", - "@sinonjs/formatio": "^4.0.1", - "@sinonjs/text-encoding": "^0.7.1", - "just-extend": "^4.0.2", - "lolex": "^5.0.1", - "path-to-regexp": "^1.7.0" - } - }, - "node-environment-flags": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz", - "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==", - "dev": true, - "requires": { - "object.getownpropertydescriptors": "^2.0.3", - "semver": "^5.7.0" - } + "node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", + "dev": true }, - "nopt": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", - "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", - "dev": true, - "requires": { - "abbrev": "1" - } + "node-modules-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz", + "integrity": "sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA=", + "dev": true }, - "normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "node-notifier": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-6.0.0.tgz", + "integrity": "sha512-SVfQ/wMw+DesunOm5cKqr6yDcvUTDl/yc97ybGHMrteNEY6oekXpNpS3lZwgLlwz0FLgHoiW28ZpmBHUDg37cw==", "dev": true, + "optional": true, "requires": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" + "growly": "^1.3.0", + "is-wsl": "^2.1.1", + "semver": "^6.3.0", + "shellwords": "^0.1.1", + "which": "^1.3.1" }, "dependencies": { - "path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true - }, - "resolve": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.11.0.tgz", - "integrity": "sha512-WL2pBDjqT6pGUNSUzMw00o4T7If+z4H2x3Gz893WoUQ5KW8Vr9txp00ykiP16VBaZF5+j/OcXJHZ9+PCvdiDKw==", + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "dev": true, + "optional": true, "requires": { - "path-parse": "^1.0.6" + "isexe": "^2.0.0" } } } }, - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "noms": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/noms/-/noms-0.0.0.tgz", + "integrity": "sha1-2o69nzr51nYJGbJ9nNyAkqczKFk=", "dev": true, "requires": { - "remove-trailing-separator": "^1.0.1" + "inherits": "^2.0.1", + "readable-stream": "~1.0.31" } }, - "now-and-later": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/now-and-later/-/now-and-later-2.0.0.tgz", - "integrity": "sha1-vGHLtFbXnLMiB85HygUTb/Ln1u4=", - "dev": true, - "requires": { - "once": "^1.3.2" - } + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true }, "npm-run-path": { "version": "2.0.2", @@ -6391,22 +3780,16 @@ "path-key": "^2.0.0" } }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "nwsapi": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz", + "integrity": "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==", "dev": true }, "oauth-sign": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", - "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", "dev": true }, "object-copy": { @@ -6440,12 +3823,6 @@ } } }, - "object-keys": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.12.tgz", - "integrity": "sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag==", - "dev": true - }, "object-visit": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", @@ -6455,50 +3832,6 @@ "isobject": "^3.0.0" } }, - "object.assign": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", - "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", - "dev": true, - "requires": { - "define-properties": "^1.1.2", - "function-bind": "^1.1.1", - "has-symbols": "^1.0.0", - "object-keys": "^1.0.11" - } - }, - "object.defaults": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/object.defaults/-/object.defaults-1.1.0.tgz", - "integrity": "sha1-On+GgzS0B96gbaFtiNXNKeQ1/s8=", - "dev": true, - "requires": { - "array-each": "^1.0.1", - "array-slice": "^1.0.0", - "for-own": "^1.0.0", - "isobject": "^3.0.0" - } - }, - "object.getownpropertydescriptors": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", - "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", - "dev": true, - "requires": { - "define-properties": "^1.1.2", - "es-abstract": "^1.5.1" - } - }, - "object.map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object.map/-/object.map-1.0.1.tgz", - "integrity": "sha1-z4Plncj8wK1fQlDh94s7gb2AHTc=", - "dev": true, - "requires": { - "for-own": "^1.0.0", - "make-iterator": "^1.0.0" - } - }, "object.pick": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", @@ -6508,16 +3841,6 @@ "isobject": "^3.0.1" } }, - "object.reduce": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object.reduce/-/object.reduce-1.0.1.tgz", - "integrity": "sha1-b+NI8qx/oPlcpiEiZZkJaCW7A60=", - "dev": true, - "requires": { - "for-own": "^1.0.0", - "make-iterator": "^1.0.0" - } - }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -6536,92 +3859,18 @@ "mimic-fn": "^2.1.0" } }, - "optimist": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", - "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", - "dev": true, - "requires": { - "minimist": "~0.0.1", - "wordwrap": "~0.0.2" - }, - "dependencies": { - "minimist": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", - "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=", - "dev": true - }, - "wordwrap": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", - "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", - "dev": true - } - } - }, "optionator": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", - "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", "dev": true, "requires": { "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.4", + "fast-levenshtein": "~2.0.6", "levn": "~0.3.0", "prelude-ls": "~1.1.2", "type-check": "~0.3.2", - "wordwrap": "~1.0.0" - } - }, - "ordered-read-streams": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz", - "integrity": "sha1-d8DLN8QVJdZBZtmQ/61+xqDhNj4=", - "dev": true, - "requires": { - "readable-stream": "^2.0.1" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", - "dev": true, - "requires": { - "lcid": "^1.0.0" + "word-wrap": "~1.2.3" } }, "os-tmpdir": { @@ -6630,10 +3879,10 @@ "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "dev": true }, - "p-defer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", + "p-each-series": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.1.0.tgz", + "integrity": "sha512-ZuRs1miPT4HrjFa+9fRfOFXxGJfORgelKV9f9nNOWw2gl6gVsRaVDOQP0+MI0G0wGKns1Yacsu0GjOFbTK0JFQ==", "dev": true }, "p-finally": { @@ -6642,78 +3891,43 @@ "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", "dev": true }, - "p-is-promise": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", - "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", - "dev": true - }, "p-limit": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.0.tgz", - "integrity": "sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ==", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.2.tgz", + "integrity": "sha512-WGR+xHecKTr7EbUEhyLSh5Dube9JtdiG78ufaeLxTgpudf/20KqyMioIUZJAezlTIi6evxuoUs9YXc11cU+yzQ==", "dev": true, "requires": { "p-try": "^2.0.0" } }, "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, "requires": { - "p-limit": "^2.0.0" + "p-limit": "^2.2.0" } }, - "p-map": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", - "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", - "dev": true - }, "p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true }, - "parse-filepath": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz", - "integrity": "sha1-pjISf1Oq89FYdvWHLz/6x2PWyJE=", - "dev": true, - "requires": { - "is-absolute": "^1.0.0", - "map-cache": "^0.2.0", - "path-root": "^0.1.1" - } - }, - "parse-github-repo-url": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/parse-github-repo-url/-/parse-github-repo-url-1.4.1.tgz", - "integrity": "sha1-nn2LslKmy2ukJZUGC3v23z28H1A=", - "dev": true - }, - "parse-json": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, "requires": { - "error-ex": "^1.2.0" + "callsites": "^3.0.0" } }, - "parse-node-version": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.1.tgz", - "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==", - "dev": true - }, - "parse-passwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", - "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", + "parse5": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.0.tgz", + "integrity": "sha512-fxNG2sQjHvlVAYmzBZS9YlDp6PTSSDwa98vkD4QgVDDCAo84z5X1t5XyJQ62ImdLXx5NdIIfihey6xpum9/gRQ==", "dev": true }, "pascalcase": { @@ -6722,20 +3936,11 @@ "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", "dev": true }, - "path-dirname": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", - "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", - "dev": true - }, "path-exists": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", - "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", - "dev": true, - "requires": { - "pinkie-promise": "^2.0.0" - } + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true }, "path-is-absolute": { "version": "1.0.1", @@ -6743,12 +3948,6 @@ "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true }, - "path-is-inside": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", - "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", - "dev": true - }, "path-key": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", @@ -6756,58 +3955,9 @@ "dev": true }, "path-parse": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", - "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", - "dev": true - }, - "path-root": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", - "integrity": "sha1-mkpoFMrBwM1zNgqV8yCDyOpHRbc=", - "dev": true, - "requires": { - "path-root-regex": "^0.1.0" - } - }, - "path-root-regex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz", - "integrity": "sha1-v8zcjfWxLcUsi0PsONGNcsBLqW0=", - "dev": true - }, - "path-to-regexp": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", - "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", - "dev": true, - "requires": { - "isarray": "0.0.1" - } - }, - "path-type": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", - "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - }, - "dependencies": { - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - } - } - }, - "pathval": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", - "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", "dev": true }, "performance-now": { @@ -6817,84 +3967,35 @@ "dev": true }, "picomatch": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.0.7.tgz", - "integrity": "sha512-oLHIdio3tZ0qH76NybpeneBhYVj0QFTfXEFTc/B3zKQspYfYYkWYgFsmzo+4kvId/bQRcNkVeguI3y+CD22BtA==", - "dev": true - }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true - }, - "pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", + "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", "dev": true }, - "pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "pirates": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.1.tgz", + "integrity": "sha512-WuNqLTbMI3tmfef2TKxlQmAiLHKtFhlsCZnPIpuv2Ow0RDVO8lfy1Opf4NUzlMXLjPl+Men7AuVdX6TA+s+uGA==", "dev": true, "requires": { - "pinkie": "^2.0.0" + "node-modules-regexp": "^1.0.0" } }, - "plugin-error": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-0.1.2.tgz", - "integrity": "sha1-O5uzM1zPAPQl4HQ34ZJ2ln2kes4=", + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, "requires": { - "ansi-cyan": "^0.1.1", - "ansi-red": "^0.1.1", - "arr-diff": "^1.0.1", - "arr-union": "^2.0.1", - "extend-shallow": "^1.1.2" - }, - "dependencies": { - "arr-diff": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-1.1.0.tgz", - "integrity": "sha1-aHwydYFjWI/vfeezb6vklesaOZo=", - "dev": true, - "requires": { - "arr-flatten": "^1.0.1", - "array-slice": "^0.2.3" - } - }, - "arr-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-2.1.0.tgz", - "integrity": "sha1-IPnqtexw9cfSFbEHexw5Fh0pLH0=", - "dev": true - }, - "array-slice": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", - "integrity": "sha1-3Tz7gO15c6dRF82sabC5nshhhvU=", - "dev": true - }, - "extend-shallow": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-1.1.4.tgz", - "integrity": "sha1-Gda/lN/AnXa6cR85uHLSH/TdkHE=", - "dev": true, - "requires": { - "kind-of": "^1.1.0" - } - }, - "kind-of": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-1.1.0.tgz", - "integrity": "sha1-FAo9LUGjbS78+pN3tiwk+ElaXEQ=", - "dev": true - } + "find-up": "^4.0.0" } }, + "pn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pn/-/pn-1.1.0.tgz", + "integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==", + "dev": true + }, "posix-character-classes": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", @@ -6907,60 +4008,60 @@ "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", "dev": true }, - "pretty-hrtime": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", - "integrity": "sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=", - "dev": true + "pretty-format": { + "version": "25.1.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-25.1.0.tgz", + "integrity": "sha512-46zLRSGLd02Rp+Lhad9zzuNZ+swunitn8zIpfD2B4OPCRLXbM87RJT2aBLBWYOznNUML/2l/ReMyWNC80PJBUQ==", + "dev": true, + "requires": { + "@jest/types": "^25.1.0", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^16.12.0" + } }, "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, - "pump": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", - "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true + }, + "prompts": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.3.2.tgz", + "integrity": "sha512-Q06uKs2CkNYVID0VqwfAl9mipo99zkBv/n2JtWY89Yxa3ZabWSrs0e2KTudKVa3peLUvYXMefDqIleLPVUBZMA==", "dev": true, "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - }, - "dependencies": { - "end-of-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", - "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", - "dev": true, - "requires": { - "once": "^1.4.0" - } - } + "kleur": "^3.0.3", + "sisteransi": "^1.0.4" } }, - "pumpify": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", - "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", + "psl": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", + "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", + "dev": true + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", "dev": true, "requires": { - "duplexify": "^3.6.0", - "inherits": "^2.0.3", - "pump": "^2.0.0" + "end-of-stream": "^1.1.0", + "once": "^1.3.1" } }, "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - }, - "q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", "dev": true }, "qs": { @@ -6969,116 +4070,37 @@ "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", "dev": true }, - "quick-lru": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz", - "integrity": "sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g=", + "react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", "dev": true }, - "read-pkg": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", - "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", - "dev": true, - "requires": { - "load-json-file": "^1.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^1.0.0" - } - }, - "read-pkg-up": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", - "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", - "dev": true, - "requires": { - "find-up": "^1.0.0", - "read-pkg": "^1.0.0" - } - }, "readable-stream": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz", - "integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "dependencies": { - "string_decoder": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.2.0.tgz", - "integrity": "sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "readdirp": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", - "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { - "graceful-fs": "^4.1.11", - "micromatch": "^3.1.10", - "readable-stream": "^2.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" }, "dependencies": { "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", "dev": true - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } } } }, - "rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", - "dev": true, - "requires": { - "resolve": "^1.1.6" - } - }, - "redent": { + "realpath-native": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", - "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", - "dev": true, - "requires": { - "indent-string": "^3.0.0", - "strip-indent": "^2.0.0" - } + "resolved": "https://registry.npmjs.org/realpath-native/-/realpath-native-2.0.0.tgz", + "integrity": "sha512-v1SEYUOXXdbBZK8ZuNgO4TBjamPsiSgcFr0aP+tEKpQZK8vooEUqV6nm6Cv502mX4NF2EfsnVqtNAHG+/6Ur1Q==", + "dev": true }, "regex-not": { "version": "1.0.2", @@ -7090,69 +4112,11 @@ "safe-regex": "^1.1.0" } }, - "remap-istanbul": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/remap-istanbul/-/remap-istanbul-0.13.0.tgz", - "integrity": "sha512-rS5ZpVAx3fGtKZkiBe1esXg5mKYbgW9iz8kkADFt3p6lo3NsBBUX1q6SwdhwUtYCGnr7nK6gRlbYK3i8R0jbRA==", - "dev": true, - "requires": { - "istanbul": "0.4.5", - "minimatch": "^3.0.4", - "plugin-error": "^1.0.1", - "source-map": "0.6.1", - "through2": "3.0.0" - }, - "dependencies": { - "plugin-error": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", - "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", - "dev": true, - "requires": { - "ansi-colors": "^1.0.1", - "arr-diff": "^4.0.0", - "arr-union": "^3.1.0", - "extend-shallow": "^3.0.2" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "through2": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.0.tgz", - "integrity": "sha512-8B+sevlqP4OiCjonI1Zw03Sf8PuV1eRsYQgLad5eonILOdyeRsY27A/2Ze8IlvlMvq31OH+3fz/styI7Ya62yQ==", - "dev": true, - "requires": { - "readable-stream": "2 || 3", - "xtend": "~4.0.1" - } - } - } - }, - "remove-bom-buffer": { + "regexpp": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remove-bom-buffer/-/remove-bom-buffer-3.0.0.tgz", - "integrity": "sha512-8v2rWhaakv18qcvNeli2mZ/TMTL2nEyAKRvzo1WtnZBl15SHyEhrCu2/xKlJyUFKHiHgfXIyuY6g2dObJJycXQ==", - "dev": true, - "requires": { - "is-buffer": "^1.1.5", - "is-utf8": "^0.2.1" - } - }, - "remove-bom-stream": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/remove-bom-stream/-/remove-bom-stream-1.2.0.tgz", - "integrity": "sha1-BfGlk/FuQuH7kOv1nejlaVJflSM=", - "dev": true, - "requires": { - "remove-bom-buffer": "^3.0.0", - "safe-buffer": "^5.1.0", - "through2": "^2.0.3" - } + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.0.0.tgz", + "integrity": "sha512-Z+hNr7RAVWxznLPuA7DIh8UNX1j9CDrUQxskw9IrBE1Dxue2lyXT+shqEIeLUjrokxIP8CMy1WkjgG3rTsd5/g==", + "dev": true }, "remove-trailing-separator": { "version": "1.1.0", @@ -7166,107 +4130,82 @@ "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", "dev": true }, - "repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", - "dev": true - }, - "repeating": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", - "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", - "dev": true, - "requires": { - "is-finite": "^1.0.0" - } - }, - "replace-ext": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", - "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", - "dev": true - }, - "replace-homedir": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/replace-homedir/-/replace-homedir-1.0.0.tgz", - "integrity": "sha1-6H9tUTuSjd6AgmDBK+f+xv9ueYw=", - "dev": true, - "requires": { - "homedir-polyfill": "^1.0.1", - "is-absolute": "^1.0.0", - "remove-trailing-separator": "^1.1.0" - } - }, - "replacestream": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/replacestream/-/replacestream-4.0.3.tgz", - "integrity": "sha512-AC0FiLS352pBBiZhd4VXB1Ab/lh0lEgpP+GGvZqbQh8a5cmXVoTe5EX/YeTFArnp4SRGTHh1qCHu9lGs1qG8sA==", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.3", - "object-assign": "^4.0.1", - "readable-stream": "^2.0.2" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "dev": true }, "request": { - "version": "2.87.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.87.0.tgz", - "integrity": "sha512-fcogkm7Az5bsS6Sl0sibkbhcKsnyon/jV1kF3ajGmF0c8HrttdKTPRT9hieOaQHA5HEq6r8OyWOo/o781C1tNw==", + "version": "2.88.2", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", "dev": true, "requires": { "aws-sign2": "~0.7.0", - "aws4": "^1.6.0", + "aws4": "^1.8.0", "caseless": "~0.12.0", - "combined-stream": "~1.0.5", - "extend": "~3.0.1", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", "forever-agent": "~0.6.1", - "form-data": "~2.3.1", - "har-validator": "~5.0.3", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", "http-signature": "~1.2.0", "is-typedarray": "~1.0.0", "isstream": "~0.1.2", "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.17", - "oauth-sign": "~0.8.2", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", "performance-now": "^2.1.0", - "qs": "~6.5.1", - "safe-buffer": "^5.1.1", - "tough-cookie": "~2.3.3", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", "tunnel-agent": "^0.6.0", - "uuid": "^3.1.0" + "uuid": "^3.3.2" + }, + "dependencies": { + "tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "dev": true, + "requires": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + } + } + } + }, + "request-promise-core": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.3.tgz", + "integrity": "sha512-QIs2+ArIGQVp5ZYbWD5ZLCY29D5CfWizP8eWnm8FoGD1TX61veauETVQbrV60662V0oFBkrDOuaBI8XgtuyYAQ==", + "dev": true, + "requires": { + "lodash": "^4.17.15" + } + }, + "request-promise-native": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.8.tgz", + "integrity": "sha512-dapwLGqkHtwL5AEbfenuzjTYg35Jd6KPytsC2/TLkVMz8rm+tNt72MGUWT1RP/aYawMpN6HqbNGBQaRcBtjQMQ==", + "dev": true, + "requires": { + "request-promise-core": "1.1.3", + "stealthy-require": "^1.1.1", + "tough-cookie": "^2.3.3" + }, + "dependencies": { + "tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "dev": true, + "requires": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + } + } } }, "require-directory": { @@ -7276,38 +4215,34 @@ "dev": true }, "require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", "dev": true }, "resolve": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz", - "integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.15.1.tgz", + "integrity": "sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w==", "dev": true, "requires": { - "path-parse": "^1.0.5" + "path-parse": "^1.0.6" } }, - "resolve-dir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz", - "integrity": "sha1-eaQGRMNivoLybv/nOcm7U4IEb0M=", + "resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, "requires": { - "expand-tilde": "^2.0.0", - "global-modules": "^1.0.0" + "resolve-from": "^5.0.0" } }, - "resolve-options": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/resolve-options/-/resolve-options-1.1.0.tgz", - "integrity": "sha1-MrueOcBtZzONyTeMDW1gdFZq0TE=", - "dev": true, - "requires": { - "value-or-function": "^3.0.0" - } + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true }, "resolve-url": { "version": "0.2.1", @@ -7315,59 +4250,55 @@ "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", "dev": true }, + "restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, + "requires": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + } + }, "ret": { "version": "0.1.15", "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", "dev": true }, - "reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "rsvp": { + "version": "4.8.5", + "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", + "integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==", "dev": true }, - "right-align": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", - "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", + "run-async": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.0.tgz", + "integrity": "sha512-xJTbh/d7Lm7SBhc1tNvTpeCHaEzoyxPrqNlvSdMfBTYwaY++UJFyXUOxAtsRUXjlqOfj8luNaR9vjCh4KeV+pg==", "dev": true, - "optional": true, "requires": { - "align-text": "^0.1.1" + "is-promise": "^2.1.0" } }, - "rimraf": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", - "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "rxjs": { + "version": "6.5.5", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.5.tgz", + "integrity": "sha512-WfQI+1gohdf0Dai/Bbmk5L5ItH5tYqm3ki2c5GdWhKjalzjg93N3avFjVStyZZz+A2Em+ZxKH5bNghw9UeylGQ==", "dev": true, "requires": { - "glob": "^7.1.3" - }, - "dependencies": { - "glob": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", - "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - } + "tslib": "^1.9.0" } }, - "run-parallel": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.1.9.tgz", - "integrity": "sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==", - "dev": true - }, "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", @@ -7389,21 +4320,162 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true }, - "semver": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", - "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", - "dev": true + "sane": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz", + "integrity": "sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==", + "dev": true, + "requires": { + "@cnakazawa/watch": "^1.0.3", + "anymatch": "^2.0.0", + "capture-exit": "^2.0.0", + "exec-sh": "^0.3.2", + "execa": "^1.0.0", + "fb-watchman": "^2.0.0", + "micromatch": "^3.1.4", + "minimist": "^1.1.1", + "walker": "~1.0.5" + }, + "dependencies": { + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "requires": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + } + }, + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "requires": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + } + }, + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "dev": true, + "requires": { + "remove-trailing-separator": "^1.0.1" + } + }, + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + } + } + } }, - "semver-greatest-satisfied-range": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/semver-greatest-satisfied-range/-/semver-greatest-satisfied-range-1.1.0.tgz", - "integrity": "sha1-E+jCZYq5aRywzXEJMkAoDTb3els=", + "saxes": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-3.1.11.tgz", + "integrity": "sha512-Ydydq3zC+WYDJK1+gRxRapLIED9PWeSuuS41wqyoRmzvhhh9nc+QQrVMKJYzJFULazeGhzSV0QleN2wD3boh2g==", "dev": true, "requires": { - "sver-compat": "^1.5.0" + "xmlchars": "^2.1.1" } }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + }, "set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", @@ -7411,9 +4483,9 @@ "dev": true }, "set-value": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", - "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", + "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", "dev": true, "requires": { "extend-shallow": "^2.0.1", @@ -7448,62 +4520,74 @@ "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", "dev": true }, + "shellwords": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", + "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", + "dev": true, + "optional": true + }, "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", + "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", "dev": true }, - "sinon": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-8.0.0.tgz", - "integrity": "sha512-9ugfO9tMrxTzqViG0hGhJoLXj8M01FZwfXMpYSmQT1AuV2jyXDJZUMpbENHBY9/2c2u6RKkHOcbYINx2FttUkg==", + "sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, + "slice-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", + "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", "dev": true, "requires": { - "@sinonjs/commons": "^1.4.0", - "@sinonjs/formatio": "^4.0.1", - "@sinonjs/samsam": "^4.0.1", - "diff": "^4.0.1", - "lolex": "^5.1.2", - "nise": "^3.0.0", - "supports-color": "^7.1.0" + "ansi-styles": "^3.2.0", + "astral-regex": "^1.0.0", + "is-fullwidth-code-point": "^2.0.0" }, "dependencies": { - "diff": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } }, - "supports-color": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", - "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, "requires": { - "has-flag": "^4.0.0" + "color-name": "1.1.3" } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true } } }, - "sinon-chai": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/sinon-chai/-/sinon-chai-3.2.0.tgz", - "integrity": "sha512-Z72B4a0l0IQe5uWi9yzcqX/Ml6K9e1Hp03NmkjJnRG3gDsKTX7KvLFZsVUmCaz0eqeXLLK089mwTsP1P1W+DUQ==", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, "snapdragon": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", @@ -7520,6 +4604,15 @@ "use": "^3.1.0" }, "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, "define-property": { "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", @@ -7537,6 +4630,18 @@ "requires": { "is-extendable": "^0.1.0" } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true } } }, @@ -7612,18 +4717,18 @@ } }, "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true }, "source-map-resolve": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", - "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", "dev": true, "requires": { - "atob": "^2.1.1", + "atob": "^2.1.2", "decode-uri-component": "^0.2.0", "resolve-url": "^0.2.1", "source-map-url": "^0.4.0", @@ -7631,21 +4736,13 @@ } }, "source-map-support": { - "version": "0.5.12", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.12.tgz", - "integrity": "sha512-4h2Pbvyy15EE02G+JOZpUCmqWJuqrs+sEkzewTm++BPi7Hvn/HwcqLAcNxYAyI0x13CpPPn+kMjl+hplXMHITQ==", + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.16.tgz", + "integrity": "sha512-efyLRJDr68D9hBBNIPWFjhpFzURh+KJykQwvMyW5UiZzYwoF6l4YMMDIJJEyFWxWCqfyxLzz6tSfUFR+kXXsVQ==", "dev": true, "requires": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } } }, "source-map-url": { @@ -7654,53 +4751,6 @@ "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", "dev": true }, - "sparkles": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/sparkles/-/sparkles-1.0.1.tgz", - "integrity": "sha512-dSO0DDYUahUt/0/pD/Is3VIm5TGJjludZ0HVymmhYF6eNA53PVLhnUk0znSYbH8IYBuJdCE+1luR22jNLMaQdw==", - "dev": true - }, - "spdx-correct": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", - "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", - "dev": true, - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-exceptions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", - "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", - "dev": true - }, - "spdx-expression-parse": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", - "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", - "dev": true, - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-license-ids": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.4.tgz", - "integrity": "sha512-7j8LYJLeY/Yb6ACbQ7F76qy5jHkp0U6jgBfJsk97bwWlVUnUWsAgpyaCvo17h0/RQGnQ036tVDomiwoI4pDkQA==", - "dev": true - }, - "split": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", - "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", - "dev": true, - "requires": { - "through": "2" - } - }, "split-string": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", @@ -7710,15 +4760,6 @@ "extend-shallow": "^3.0.0" } }, - "split2": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz", - "integrity": "sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw==", - "dev": true, - "requires": { - "through2": "^2.0.2" - } - }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", @@ -7726,9 +4767,9 @@ "dev": true }, "sshpk": { - "version": "1.14.2", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz", - "integrity": "sha1-xvxhZIo9nE52T9P8306hBeSSupg=", + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", "dev": true, "requires": { "asn1": "~0.2.3", @@ -7742,10 +4783,10 @@ "tweetnacl": "~0.14.0" } }, - "stack-trace": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", - "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=", + "stack-utils": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.2.tgz", + "integrity": "sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA==", "dev": true }, "static-extend": { @@ -7764,56 +4805,74 @@ "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { - "is-descriptor": "^0.1.0" + "is-descriptor": "^0.1.0" + } + } + } + }, + "stealthy-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", + "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=", + "dev": true + }, + "string-length": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-3.1.0.tgz", + "integrity": "sha512-Ttp5YvkGm5v9Ijagtaz1BnN+k9ObpvS0eIBblPMp2YWL8FBmi9qblQ9fexc2k/CXFgrTIteU3jAw3payCnwSTA==", + "dev": true, + "requires": { + "astral-regex": "^1.0.0", + "strip-ansi": "^5.2.0" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" } } } }, - "stream-exhaust": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/stream-exhaust/-/stream-exhaust-1.0.2.tgz", - "integrity": "sha512-b/qaq/GlBK5xaq1yrK9/zFcyRSTNxmcZwFLGSTG0mXgZl/4Z6GgiyYOXOvY7N3eEvFRAG1bkDRz5EPGSvPYQlw==", - "dev": true - }, - "stream-shift": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", - "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", - "dev": true - }, "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", + "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", "dev": true, "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" } }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + }, "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", "dev": true, "requires": { - "ansi-regex": "^2.0.0" + "ansi-regex": "^5.0.0" } }, "strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", - "dev": true, - "requires": { - "is-utf8": "^0.2.0" - } - }, - "strip-bom-string": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-1.0.0.tgz", - "integrity": "sha1-5SEekiQ2n7uB1jOi8ABE3IztrZI=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true }, "strip-eof": { @@ -7828,57 +4887,109 @@ "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true }, - "strip-indent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", - "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", - "dev": true - }, "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.0.1.tgz", + "integrity": "sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw==", "dev": true }, "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", + "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } }, - "sver-compat": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/sver-compat/-/sver-compat-1.5.0.tgz", - "integrity": "sha1-PPh9/rTQe0o/FIJ7wYaz/QxkXNg=", + "supports-hyperlinks": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.1.0.tgz", + "integrity": "sha512-zoE5/e+dnEijk6ASB6/qrK+oYdm2do1hjoLWrqUC/8WEIW1gbxFcKuBof7sW8ArN6e+AYvsE8HBGiVRWL/F5CA==", "dev": true, "requires": { - "es6-iterator": "^2.0.1", - "es6-symbol": "^3.1.1" + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" } }, - "tempfile": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/tempfile/-/tempfile-1.1.1.tgz", - "integrity": "sha1-W8xOrsxKsscH2LwR2ZzMmiyyh/I=", + "symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true + }, + "table": { + "version": "5.4.6", + "resolved": "https://registry.npmjs.org/table/-/table-5.4.6.tgz", + "integrity": "sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==", "dev": true, "requires": { - "os-tmpdir": "^1.0.0", - "uuid": "^2.0.1" + "ajv": "^6.10.2", + "lodash": "^4.17.14", + "slice-ansi": "^2.1.0", + "string-width": "^3.0.0" }, "dependencies": { - "uuid": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.3.tgz", - "integrity": "sha1-Z+LoY3lyFVMN/zGOW/nc6/1Hsho=", + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", "dev": true + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } } } }, - "text-extensions": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-2.0.0.tgz", - "integrity": "sha512-F91ZqLgvi1E0PdvmxMgp+gcf6q8fMH7mhdwWfzXnl1k+GbpQDmi8l7DzLC5JTASKbwpY3TfxajAUzAXcv2NmsQ==", - "dev": true + "terminal-link": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", + "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", + "dev": true, + "requires": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + } + }, + "test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "requires": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + } }, "text-table": { "version": "0.2.0", @@ -7886,10 +4997,10 @@ "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", "dev": true }, - "textextensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/textextensions/-/textextensions-2.2.0.tgz", - "integrity": "sha512-j5EMxnryTvKxwH2Cq+Pb43tsf6sdEgw6Pdwxk83mPaq0ToeFJt6WE4J3s5BqY7vmjlLgkgXvhtXUxo80FyBhCA==", + "throat": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", + "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==", "dev": true }, "through": { @@ -7899,25 +5010,19 @@ "dev": true }, "through2": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", - "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dev": true, "requires": { - "readable-stream": "^2.1.5", + "readable-stream": "~2.3.6", "xtend": "~4.0.1" }, "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", "dev": true, "requires": { "core-util-is": "~1.0.0", @@ -7940,31 +5045,26 @@ } } }, - "time-stamp": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz", - "integrity": "sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=", - "dev": true - }, - "timers-ext": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.5.tgz", - "integrity": "sha512-tsEStd7kmACHENhsUPaxb8Jf8/+GZZxyNFQbZD07HQOyooOa6At1rQqjffgvg7n+dxscQa9cjjMdWhJtsP2sxg==", + "tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "dev": true, "requires": { - "es5-ext": "~0.10.14", - "next-tick": "1" + "os-tmpdir": "~1.0.2" } }, - "to-absolute-glob": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz", - "integrity": "sha1-GGX0PZ50sIItufFFt4z/fQ98hJs=", - "dev": true, - "requires": { - "is-absolute": "^1.0.0", - "is-negated-glob": "^1.0.0" - } + "tmpl": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.4.tgz", + "integrity": "sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE=", + "dev": true + }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "dev": true }, "to-object-path": { "version": "0.3.0", @@ -7999,201 +5099,75 @@ } }, "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" + "is-number": "^7.0.0" } }, - "to-through": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-through/-/to-through-2.0.0.tgz", - "integrity": "sha1-/JKtq6ByZHvAtn1rA2ZKoZUJOvY=", + "tough-cookie": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-3.0.1.tgz", + "integrity": "sha512-yQyJ0u4pZsv9D4clxO69OEjLWYw+jbgspjTue4lTQZLfV0c5l1VmK2y1JK8E9ahdpltPOaAThPcp5nKPUgSnsg==", "dev": true, "requires": { - "through2": "^2.0.3" + "ip-regex": "^2.1.0", + "psl": "^1.1.28", + "punycode": "^2.1.1" } }, - "tough-cookie": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", - "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", + "tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", "dev": true, "requires": { - "punycode": "^1.4.1" + "punycode": "^2.1.0" } }, - "trim-newlines": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", - "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", - "dev": true - }, - "trim-off-newlines": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz", - "integrity": "sha1-n5up2e+odkw4dpi8v+sshI8RrbM=", - "dev": true + "ts-jest": { + "version": "25.3.0", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-25.3.0.tgz", + "integrity": "sha512-qH/uhaC+AFDU9JfAueSr0epIFJkGMvUPog4FxSEVAtPOur1Oni5WBJMiQIkfHvc7PviVRsnlVLLY2I6221CQew==", + "dev": true, + "requires": { + "bs-logger": "0.x", + "buffer-from": "1.x", + "fast-json-stable-stringify": "2.x", + "json5": "2.x", + "lodash.memoize": "4.x", + "make-error": "1.x", + "mkdirp": "1.x", + "resolve": "1.x", + "semver": "6.x", + "yargs-parser": "^18.1.1" + } }, "ts-node": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.3.0.tgz", - "integrity": "sha512-dyNS/RqyVTDcmNM4NIBAeDMpsAdaQ+ojdf0GOLqE6nwJOgzEkdRNzJywhDfwnuvB10oa6NLVG1rUJQCpRN7qoQ==", + "version": "8.8.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.8.1.tgz", + "integrity": "sha512-10DE9ONho06QORKAaCBpPiFCdW+tZJuY/84tyypGtl6r+/C7Asq0dhqbRZURuUlLQtZxxDvT8eoj8cGW0ha6Bg==", "dev": true, "requires": { "arg": "^4.1.0", "diff": "^4.0.1", "make-error": "^1.1.1", "source-map-support": "^0.5.6", - "yn": "^3.0.0" - }, - "dependencies": { - "diff": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true - } + "yn": "3.1.1" } }, "tslib": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz", - "integrity": "sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==", + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz", + "integrity": "sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==", "dev": true }, - "tslint": { - "version": "5.11.0", - "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.11.0.tgz", - "integrity": "sha1-mPMMAurjzecAYgHkwzywi0hYHu0=", - "dev": true, - "requires": { - "babel-code-frame": "^6.22.0", - "builtin-modules": "^1.1.1", - "chalk": "^2.3.0", - "commander": "^2.12.1", - "diff": "^3.2.0", - "glob": "^7.1.1", - "js-yaml": "^3.7.0", - "minimatch": "^3.0.4", - "resolve": "^1.3.2", - "semver": "^5.3.0", - "tslib": "^1.8.0", - "tsutils": "^2.27.2" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", - "dev": true - }, - "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "tslint-stylish": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslint-stylish/-/tslint-stylish-2.1.0.tgz", - "integrity": "sha1-jNo8OMnKtU57It989CuO8RXc2V8=", - "dev": true, - "requires": { - "chalk": "^1.1.1", - "lodash": "^3.10.1", - "log-symbols": "^1.0.2", - "text-table": "^0.2.0", - "tslint": "^2.5.0" - }, - "dependencies": { - "findup-sync": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.2.1.tgz", - "integrity": "sha1-4KkKRQB1xJRm7lE3MgV1FLgeh4w=", - "dev": true, - "requires": { - "glob": "~4.3.0" - } - }, - "glob": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-4.3.5.tgz", - "integrity": "sha1-gPuwjKVA8jiszl0R0em8QedRc9M=", - "dev": true, - "requires": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^2.0.1", - "once": "^1.3.0" - } - }, - "lodash": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", - "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", - "dev": true - }, - "minimatch": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-2.0.10.tgz", - "integrity": "sha1-jQh8OcazjAAbl/ynzm0OHoCvusc=", - "dev": true, - "requires": { - "brace-expansion": "^1.0.0" - } - }, - "tslint": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/tslint/-/tslint-2.5.1.tgz", - "integrity": "sha1-veTJnpfNXRxvuzAz9kt9iX/UGpI=", - "dev": true, - "requires": { - "findup-sync": "~0.2.1", - "optimist": "~0.6.0", - "underscore.string": "~3.1.1" - } - } - } - }, "tsutils": { - "version": "2.28.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.28.0.tgz", - "integrity": "sha512-bh5nAtW0tuhvOJnx1GLRn5ScraRLICGyJV5wJhtRWOLsxW70Kk5tZtpK3O/hW6LDnqKS9mlUMPZj9fEMJ0gxqA==", + "version": "3.17.1", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.17.1.tgz", + "integrity": "sha512-kzeQ5B8H3w60nFY2g8cJIuH7JDpsALXySGtwGJ0p2LSjLgay3NdIpqq5SoOBe46bKDW2iq25irHCr8wjomUS2g==", "dev": true, "requires": { "tslib": "^1.8.1" @@ -8212,8 +5186,7 @@ "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true, - "optional": true + "dev": true }, "type-check": { "version": "0.3.2", @@ -8230,127 +5203,37 @@ "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true }, - "typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", - "dev": true - }, - "typescript": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.3.tgz", - "integrity": "sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==", - "dev": true - }, - "uglify-js": { - "version": "2.8.29", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", - "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", - "dev": true, - "optional": true, - "requires": { - "source-map": "~0.5.1", - "uglify-to-browserify": "~1.0.0", - "yargs": "~3.10.0" - } - }, - "uglify-to-browserify": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", - "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", - "dev": true, - "optional": true - }, - "unc-path-regex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", - "integrity": "sha1-5z3T17DXxe2G+6xrCufYxqadUPo=", - "dev": true - }, - "underscore.string": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.1.1.tgz", - "integrity": "sha1-DN1rytDARv12Y9MF2KeFtdoQ8zU=", + "type-fest": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz", + "integrity": "sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==", "dev": true }, - "undertaker": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/undertaker/-/undertaker-1.2.1.tgz", - "integrity": "sha512-71WxIzDkgYk9ZS+spIB8iZXchFhAdEo2YU8xYqBYJ39DIUIqziK78ftm26eecoIY49X0J2MLhG4hr18Yp6/CMA==", + "typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", "dev": true, "requires": { - "arr-flatten": "^1.0.1", - "arr-map": "^2.0.0", - "bach": "^1.0.0", - "collection-map": "^1.0.0", - "es6-weak-map": "^2.0.1", - "last-run": "^1.1.0", - "object.defaults": "^1.0.0", - "object.reduce": "^1.0.0", - "undertaker-registry": "^1.0.0" + "is-typedarray": "^1.0.0" } }, - "undertaker-registry": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/undertaker-registry/-/undertaker-registry-1.0.1.tgz", - "integrity": "sha1-XkvaMI5KiirlhPm5pDWaSZglzFA=", + "typescript": { + "version": "3.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz", + "integrity": "sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==", "dev": true }, "union-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", - "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", - "dev": true, - "requires": { - "arr-union": "^3.1.0", - "get-value": "^2.0.6", - "is-extendable": "^0.1.1", - "set-value": "^0.4.3" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "set-value": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", - "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.1", - "to-object-path": "^0.3.0" - } - } - } - }, - "unique-stream": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-2.3.1.tgz", - "integrity": "sha512-2nY4TnBE70yoxHkDli7DMazpWiP7xMdCYqU2nBRO0UB+ZpEkGsSija7MvmvnZFUeC+mrgiUfcHSr3LmRFIg4+A==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", + "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", "dev": true, - "requires": { - "json-stable-stringify-without-jsonify": "^1.0.1", - "through2-filter": "^3.0.0" - }, - "dependencies": { - "through2-filter": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/through2-filter/-/through2-filter-3.0.0.tgz", - "integrity": "sha512-jaRjI2WxN3W1V8/FMZ9HKIBXixtiqs3SQSX4/YGIiP3gL6djW48VoZq9tDqeCWs3MT8YY5wb/zli8VW8snY1CA==", - "dev": true, - "requires": { - "through2": "~2.0.0", - "xtend": "~4.0.0" - } - } + "requires": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^2.0.1" } }, "unset-value": { @@ -8390,20 +5273,17 @@ "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", "dev": true - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true } } }, - "upath": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/upath/-/upath-1.1.2.tgz", - "integrity": "sha512-kXpym8nmDmlCBr7nKdIx8P2jNBa+pBpIUFRnKJ4dr8htyYGJFokkr2ZvERRtUN+9SY+JqXouNgUPtv6JQva/2Q==", - "dev": true + "uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } }, "urix": { "version": "0.1.0", @@ -8411,12 +5291,6 @@ "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", "dev": true }, - "urlgrey": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/urlgrey/-/urlgrey-0.4.4.tgz", - "integrity": "sha1-iS/pWWCAXoVRnxzUOJ8stMu3ZS8=", - "dev": true - }, "use": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", @@ -8430,40 +5304,40 @@ "dev": true }, "uuid": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", - "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", "dev": true }, - "v8flags": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-3.1.3.tgz", - "integrity": "sha512-amh9CCg3ZxkzQ48Mhcb8iX7xpAfYJgePHxWMQCBWECpOSqJUXgY26ncA61UTV0BkPqfhcy6mzwCIoP4ygxpW8w==", - "dev": true, - "requires": { - "homedir-polyfill": "^1.0.1" - } + "v8-compile-cache": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.1.0.tgz", + "integrity": "sha512-usZBT3PW+LOjM25wbqIlZwPeJV+3OSz3M1k1Ws8snlW39dZyYL9lOGC5FgPVHfk0jKmjiDV8Z0mIbVQPiwFs7g==", + "dev": true }, - "validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "v8-to-istanbul": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-4.1.3.tgz", + "integrity": "sha512-sAjOC+Kki6aJVbUOXJbcR0MnbfjvBzwKZazEJymA2IX49uoOdEdk+4fBq5cXgYgiyKtAyrrJNtBZdOeDIF+Fng==", "dev": true, "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "dependencies": { + "source-map": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", + "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", + "dev": true + } } }, "validator": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/validator/-/validator-12.0.0.tgz", - "integrity": "sha512-r5zA1cQBEOgYlesRmSEwc9LkbfNLTtji+vWyaHzRZUxCTHdsX3bd+sdHfs5tGZ2W6ILGGsxWxCNwT/h3IY/3ng==" - }, - "value-or-function": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/value-or-function/-/value-or-function-3.0.0.tgz", - "integrity": "sha1-HCQ6ULWVwb5Up1S/7OhWO5/42BM=", - "dev": true + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.0.0.tgz", + "integrity": "sha512-anYx5fURbgF04lQV18nEQWZ/3wHGnxiKdG4aL8J+jEDsm98n/sU/bey+tYk6tnGJzm7ioh5FoqrAiQ6m03IgaA==" }, "verror": { "version": "1.10.0", @@ -8476,218 +5350,97 @@ "extsprintf": "^1.2.0" } }, - "vinyl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.0.tgz", - "integrity": "sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==", + "w3c-hr-time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", + "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", "dev": true, "requires": { - "clone": "^2.1.1", - "clone-buffer": "^1.0.0", - "clone-stats": "^1.0.0", - "cloneable-readable": "^1.0.0", - "remove-trailing-separator": "^1.0.1", - "replace-ext": "^1.0.0" - } - }, - "vinyl-fs": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-3.0.3.tgz", - "integrity": "sha512-vIu34EkyNyJxmP0jscNzWBSygh7VWhqun6RmqVfXePrOwi9lhvRs//dOaGOTRUQr4tx7/zd26Tk5WeSVZitgng==", - "dev": true, - "requires": { - "fs-mkdirp-stream": "^1.0.0", - "glob-stream": "^6.1.0", - "graceful-fs": "^4.0.0", - "is-valid-glob": "^1.0.0", - "lazystream": "^1.0.0", - "lead": "^1.0.0", - "object.assign": "^4.0.4", - "pumpify": "^1.3.5", - "readable-stream": "^2.3.3", - "remove-bom-buffer": "^3.0.0", - "remove-bom-stream": "^1.2.0", - "resolve-options": "^1.1.0", - "through2": "^2.0.0", - "to-through": "^2.0.0", - "value-or-function": "^3.0.0", - "vinyl": "^2.0.0", - "vinyl-sourcemap": "^1.1.0" - }, - "dependencies": { - "clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", - "dev": true - }, - "clone-stats": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", - "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", - "dev": true - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "replace-ext": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", - "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", - "dev": true - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "vinyl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.0.tgz", - "integrity": "sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==", - "dev": true, - "requires": { - "clone": "^2.1.1", - "clone-buffer": "^1.0.0", - "clone-stats": "^1.0.0", - "cloneable-readable": "^1.0.0", - "remove-trailing-separator": "^1.0.1", - "replace-ext": "^1.0.0" - } - } + "browser-process-hrtime": "^1.0.0" } }, - "vinyl-sourcemap": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/vinyl-sourcemap/-/vinyl-sourcemap-1.1.0.tgz", - "integrity": "sha1-kqgAWTo4cDqM2xHYswCtS+Y7PhY=", + "w3c-xmlserializer": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-1.1.2.tgz", + "integrity": "sha512-p10l/ayESzrBMYWRID6xbuCKh2Fp77+sA0doRuGn4tTIMrrZVeqfpKjXHY+oDh3K4nLdPgNwMTVP6Vp4pvqbNg==", "dev": true, "requires": { - "append-buffer": "^1.0.2", - "convert-source-map": "^1.5.0", - "graceful-fs": "^4.1.6", - "normalize-path": "^2.1.1", - "now-and-later": "^2.0.0", - "remove-bom-buffer": "^3.0.0", - "vinyl": "^2.0.0" - }, - "dependencies": { - "clone": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.1.tgz", - "integrity": "sha1-0hfR6WERjjrJpLi7oyhVU79kfNs=", - "dev": true - }, - "clone-stats": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", - "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", - "dev": true - }, - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - }, - "replace-ext": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", - "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", - "dev": true - }, - "vinyl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.0.tgz", - "integrity": "sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==", - "dev": true, - "requires": { - "clone": "^2.1.1", - "clone-buffer": "^1.0.0", - "clone-stats": "^1.0.0", - "cloneable-readable": "^1.0.0", - "remove-trailing-separator": "^1.0.1", - "replace-ext": "^1.0.0" - } - } + "domexception": "^1.0.1", + "webidl-conversions": "^4.0.2", + "xml-name-validator": "^3.0.0" } }, - "vinyl-sourcemaps-apply": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.2.1.tgz", - "integrity": "sha1-q2VJ1h0XLCsbh75cUI0jnI74dwU=", + "walker": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.7.tgz", + "integrity": "sha1-L3+bj9ENZ3JisYqITijRlhjgKPs=", "dev": true, "requires": { - "source-map": "^0.5.1" + "makeerror": "1.0.x" } }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", + "dev": true + }, + "whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", "dev": true, "requires": { - "isexe": "^2.0.0" + "iconv-lite": "0.4.24" } }, - "which-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", - "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=", + "whatwg-mimetype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", "dev": true }, - "wide-align": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", - "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", + "whatwg-url": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", + "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", "dev": true, "requires": { - "string-width": "^1.0.2 || 2" + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" } }, - "window-size": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", - "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, - "optional": true + "requires": { + "isexe": "^2.0.0" + } }, - "wordwrap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true + }, + "word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", "dev": true }, "wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" } }, "wrappy": { @@ -8696,218 +5449,101 @@ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, + "write": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz", + "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", + "dev": true, + "requires": { + "mkdirp": "^0.5.1" + }, + "dependencies": { + "mkdirp": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.4.tgz", + "integrity": "sha512-iG9AK/dJLtJ0XNgTuDbSyNS3zECqDlAhnQW4CsNxBG3LQJBbHmRX1egw39DmtOdCAqY+dKXV+sgPgilNWUKMVw==", + "dev": true, + "requires": { + "minimist": "^1.2.5" + } + } + } + }, + "write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "ws": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.2.3.tgz", + "integrity": "sha512-HTDl9G9hbkNDk98naoR/cHDws7+EyYMOdL1BmjsZXRUjf7d+MficC4B7HLUPlSiho0vg+CWKrGIt/VJBd1xunQ==", + "dev": true + }, + "xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true + }, + "xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true + }, "xtend": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", - "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true }, "y18n": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", - "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", + "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", "dev": true }, "yargs": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", - "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", + "version": "15.3.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.3.1.tgz", + "integrity": "sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA==", "dev": true, - "optional": true, "requires": { - "camelcase": "^1.0.2", - "cliui": "^2.1.0", - "decamelize": "^1.0.0", - "window-size": "0.1.0" + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.1" } }, "yargs-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz", - "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", - "dev": true, - "requires": { - "camelcase": "^3.0.0" - }, - "dependencies": { - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", - "dev": true - } - } - }, - "yargs-unparser": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.5.0.tgz", - "integrity": "sha512-HK25qidFTCVuj/D1VfNiEndpLIeJN78aqgR23nL3y4N0U/91cOAzqfHlF8n2BvoNDcZmJKin3ddNSvOxSr8flw==", + "version": "18.1.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.2.tgz", + "integrity": "sha512-hlIPNR3IzC1YuL1c2UwwDKpXlNFBqD1Fswwh1khz5+d8Cq/8yc/Mn0i+rQXduu8hcrFKvO7Eryk+09NecTQAAQ==", "dev": true, "requires": { - "flat": "^4.1.0", - "lodash": "^4.17.11", - "yargs": "^12.0.5" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - }, - "cliui": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", - "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", - "dev": true, - "requires": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" - } - }, - "execa": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", - "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", - "dev": true, - "requires": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - }, - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "invert-kv": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", - "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "lcid": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", - "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", - "dev": true, - "requires": { - "invert-kv": "^2.0.0" - } - }, - "os-locale": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", - "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", - "dev": true, - "requires": { - "execa": "^1.0.0", - "lcid": "^2.0.0", - "mem": "^4.0.0" - } - }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "yargs": { - "version": "12.0.5", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", - "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", - "dev": true, - "requires": { - "cliui": "^4.0.0", - "decamelize": "^1.2.0", - "find-up": "^3.0.0", - "get-caller-file": "^1.0.1", - "os-locale": "^3.0.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1 || ^4.0.0", - "yargs-parser": "^11.1.1" - } - }, - "yargs-parser": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", - "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" } }, "yn": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.0.tgz", - "integrity": "sha512-kKfnnYkbTfrAdd0xICNFw7Atm8nKpLcLv9AZGEt+kczL/WQVai4e2V6ZN8U/O+iI6WrNuJjNNOyu4zfhl9D3Hg==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", "dev": true } } diff --git a/package.json b/package.json index 03e3cee32c..2ee4642edb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "class-validator", "private": true, - "version": "0.11.1", + "version": "0.12.0", "description": "Class-based validation with Typescript / ES6 / ES5 using decorators or validation schemas. Supports both node.js and browser", "license": "MIT", "readmeFilename": "README.md", @@ -23,51 +23,31 @@ "typescript-validator" ], "dependencies": { - "@types/validator": "10.11.3", - "google-libphonenumber": "^3.1.6", - "validator": "12.0.0" + "@types/validator": "12.0.1", + "validator": "13.0.0" }, "devDependencies": { - "@types/chai": "^4.2.0", - "@types/chai-as-promised": "^7.1.2", - "@types/del": "^4.0.0", - "@types/gulp": "^4.0.2", - "@types/gulp-istanbul": "^0.9.32", - "@types/gulp-mocha": "0.0.32", - "@types/gulp-replace": "0.0.31", - "@types/gulp-sourcemaps": "0.0.32", - "@types/mocha": "^7.0.0", - "@types/node": "^12.7.1", - "@types/sinon": "^7.0.13", - "chai": "^4.2.0", - "chai-as-promised": "^7.1.1", - "codecov": "^3.0.4", - "conventional-changelog-angular": "^5.0.3", - "conventional-changelog-cli": "^2.0.21", - "del": "^5.0.0", - "es6-shim": "^0.35.3", - "gulp": "^4.0.2", - "gulp-conventional-changelog": "^2.0.19", - "gulp-istanbul": "^1.1.3", - "gulp-mocha": "^7.0.1", - "gulp-replace": "^1.0.0", - "gulp-shell": "^0.8.0", - "gulp-sourcemaps": "^2.6.4", - "gulp-tslint": "^8.1.3", - "gulp-typescript": "^5.0.1", - "gulpclass": "^0.2.0", - "mocha": "^7.0.1", - "remap-istanbul": "^0.13.0", - "sinon": "^8.0.0", - "sinon-chai": "^3.2.0", - "ts-node": "^8.3.0", - "tslint": "^5.11.0", - "tslint-stylish": "^2.1.0", - "typescript": "^3.5.3" + "@types/jest": "25.1.5", + "@types/node": "13.11.0", + "@typescript-eslint/eslint-plugin": "2.26.0", + "@typescript-eslint/parser": "2.26.0", + "copyfiles": "2.2.0", + "eslint": "6.8.0", + "eslint-plugin-jest": "23.8.2", + "jest": "25.2.6", + "json": "9.0.6", + "rimraf": "3.0.2", + "ts-jest": "25.3.0", + "ts-node": "8.8.1", + "typescript": "3.8.3" }, "scripts": { - "build": "gulp package", - "test": "gulp tests", - "changelog": "gulp changelog" + "build": "rimraf build && echo Using TypeScript && tsc --version && tsc --pretty", + "clean": "rimraf build", + "copy": "copyfiles -u 3 \"build/compiled/src/**/*\" build/package && copyfiles package.json README.md build/package", + "lint": "eslint --config ./.eslintrc.js --ext .ts ./src ./test", + "package": "npm run build && npm run copy && npm run public && rimraf build/compiled", + "public": "json -I -f build/package/package.json -e 'this.private=false'", + "test": "rimraf coverage && jest --coverage" } } diff --git a/src/container.ts b/src/container.ts index cc18963daf..5b18b7fbd9 100644 --- a/src/container.ts +++ b/src/container.ts @@ -39,7 +39,7 @@ let userContainerOptions: UseContainerOptions; /** * Sets container to be used by this library. */ -export function useContainer(iocContainer: { get(someClass: any): any }, options?: UseContainerOptions) { +export function useContainer(iocContainer: { get(someClass: any): any }, options?: UseContainerOptions): void { userContainer = iocContainer; userContainerOptions = options; } diff --git a/src/decorator/decorators.ts b/src/decorator/decorators.ts index bcafe8d7e1..f640975d9d 100644 --- a/src/decorator/decorators.ts +++ b/src/decorator/decorators.ts @@ -4,8 +4,8 @@ import {ValidationOptions} from "./ValidationOptions"; import {ValidationMetadata} from "../metadata/ValidationMetadata"; import {ValidationMetadataArgs} from "../metadata/ValidationMetadataArgs"; import {ConstraintMetadata} from "../metadata/ConstraintMetadata"; -import { getMetadataStorage } from ".."; - +import {getMetadataStorage} from ".."; +import {default as ValidatorJS} from "validator"; // ------------------------------------------------------------------------- // System // ------------------------------------------------------------------------- @@ -14,7 +14,7 @@ import { getMetadataStorage } from ".."; * Registers custom validator class. */ export function ValidatorConstraint(options?: { name?: string, async?: boolean }) { - return function(target: Function) { + return function (target: Function): void { const isAsync = options && options.async ? true : false; let name = options && options.name ? options.name : ""; if (!name) { @@ -33,15 +33,15 @@ export function ValidatorConstraint(options?: { name?: string, async?: boolean } */ export function Validate(constraintClass: Function, validationOptions?: ValidationOptions): Function; export function Validate(constraintClass: Function, constraints?: any[], validationOptions?: ValidationOptions): Function; -export function Validate(constraintClass: Function, constraintsOrValidationOptions?: any[]|ValidationOptions, maybeValidationOptions?: ValidationOptions): Function { - return function(object: Object, propertyName: string) { +export function Validate(constraintClass: Function, constraintsOrValidationOptions?: any[] | ValidationOptions, maybeValidationOptions?: ValidationOptions): Function { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.CUSTOM_VALIDATION, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraintCls: constraintClass, - constraints: constraintsOrValidationOptions instanceof Array ? constraintsOrValidationOptions as any[] : undefined, - validationOptions: !(constraintsOrValidationOptions instanceof Array) ? constraintsOrValidationOptions as ValidationOptions : maybeValidationOptions + constraints: constraintsOrValidationOptions instanceof Array ? constraintsOrValidationOptions : undefined, + validationOptions: !(constraintsOrValidationOptions instanceof Array) ? constraintsOrValidationOptions : maybeValidationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); }; @@ -51,11 +51,11 @@ export function Validate(constraintClass: Function, constraintsOrValidationOptio * Objects / object arrays marked with this decorator will also be validated. */ export function ValidateNested(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function (object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.NESTED_VALIDATION, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -66,11 +66,11 @@ export function ValidateNested(validationOptions?: ValidationOptions): PropertyD * Objects / object arrays marked with this decorator will also be validated. */ export function ValidatePromise(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function (object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.PROMISE_VALIDATION, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -81,15 +81,15 @@ export function ValidatePromise(validationOptions?: ValidationOptions): Property * If object has both allowed and not allowed properties a validation error will be thrown. */ export function Allow(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { - const args: ValidationMetadataArgs = { - type: ValidationTypes.WHITELIST, - target: object.constructor, - propertyName: propertyName, - validationOptions: validationOptions + return function (object: Record, propertyName: string | symbol): void { + const args: ValidationMetadataArgs = { + type: ValidationTypes.WHITELIST, + target: object.constructor, + propertyName: propertyName as string, + validationOptions: validationOptions + }; + getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); }; - getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); - }; } @@ -97,11 +97,11 @@ export function Allow(validationOptions?: ValidationOptions): PropertyDecorator * Objects / object arrays marked with this decorator will also be validated. */ export function ValidateIf(condition: (object: any, value: any) => boolean, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.CONDITIONAL_VALIDATION, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [condition], validationOptions: validationOptions }; @@ -117,11 +117,11 @@ export function ValidateIf(condition: (object: any, value: any) => boolean, vali * Checks if given value is defined (!== undefined, !== null). */ export function IsDefined(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_DEFINED, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -132,11 +132,11 @@ export function IsDefined(validationOptions?: ValidationOptions): PropertyDecora * Checks if the value match ("===") the comparison. */ export function Equals(comparison: any, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.EQUALS, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [comparison], validationOptions: validationOptions }; @@ -148,11 +148,11 @@ export function Equals(comparison: any, validationOptions?: ValidationOptions): * Checks if the value does not match ("!==") the comparison. */ export function NotEquals(comparison: any, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.NOT_EQUALS, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [comparison], validationOptions: validationOptions }; @@ -164,11 +164,11 @@ export function NotEquals(comparison: any, validationOptions?: ValidationOptions * Checks if given value is empty (=== '', === null, === undefined). */ export function IsEmpty(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_EMPTY, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -179,11 +179,11 @@ export function IsEmpty(validationOptions?: ValidationOptions): PropertyDecorato * Checks if given value is not empty (!== '', !== null, !== undefined). */ export function IsNotEmpty(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_NOT_EMPTY, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -194,11 +194,11 @@ export function IsNotEmpty(validationOptions?: ValidationOptions): PropertyDecor * Checks if value is in a array of allowed values. */ export function IsIn(values: any[], validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_IN, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [values], validationOptions: validationOptions }; @@ -210,11 +210,11 @@ export function IsIn(values: any[], validationOptions?: ValidationOptions): Prop * Checks if value is not in a array of disallowed values. */ export function IsNotIn(values: any[], validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_NOT_IN, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [values], validationOptions: validationOptions }; @@ -226,12 +226,12 @@ export function IsNotIn(values: any[], validationOptions?: ValidationOptions): P * Checks if value is missing and if so, ignores all validators. */ export function IsOptional(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.CONDITIONAL_VALIDATION, target: object.constructor, - propertyName: propertyName, - constraints: [(object: any, value: any) => { + propertyName: propertyName as string, + constraints: [(object: any, value: any): boolean => { return object[propertyName] !== null && object[propertyName] !== undefined; }], validationOptions: validationOptions @@ -248,11 +248,11 @@ export function IsOptional(validationOptions?: ValidationOptions): PropertyDecor * Checks if a value is a boolean. */ export function IsBoolean(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_BOOLEAN, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -263,11 +263,11 @@ export function IsBoolean(validationOptions?: ValidationOptions): PropertyDecora * Checks if a value is a latitude,longitude. */ export function IsLatLong(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_LATLONG, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -278,11 +278,11 @@ export function IsLatLong(validationOptions?: ValidationOptions): PropertyDecora * Checks if a value is a latitude,longitude. */ export function IsLatitude(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_LATITUDE, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -293,11 +293,11 @@ export function IsLatitude(validationOptions?: ValidationOptions): PropertyDecor * Checks if a value is a latitude,longitude. */ export function IsLongitude(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_LONGITUDE, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -308,11 +308,11 @@ export function IsLongitude(validationOptions?: ValidationOptions): PropertyDeco * Checks if a value is a date. */ export function IsDate(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_DATE, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -323,11 +323,11 @@ export function IsDate(validationOptions?: ValidationOptions): PropertyDecorator * Checks if a value is a number. */ export function IsNumber(options: IsNumberOptions = {}, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_NUMBER, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [options], validationOptions: validationOptions }; @@ -339,11 +339,11 @@ export function IsNumber(options: IsNumberOptions = {}, validationOptions?: Vali * Checks if the value is an integer number. */ export function IsInt(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_INT, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -354,11 +354,11 @@ export function IsInt(validationOptions?: ValidationOptions): PropertyDecorator * Checks if a value is a string. */ export function IsString(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_STRING, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -366,11 +366,11 @@ export function IsString(validationOptions?: ValidationOptions): PropertyDecorat } export function IsDateString(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_DATE_STRING, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -381,11 +381,11 @@ export function IsDateString(validationOptions?: ValidationOptions): PropertyDec * Checks if a value is an array. */ export function IsArray(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_ARRAY, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -395,12 +395,12 @@ export function IsArray(validationOptions?: ValidationOptions): PropertyDecorato /** * Checks if a value is a number enum. */ -export function IsEnum(entity: Object, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { +export function IsEnum(entity: Record, validationOptions?: ValidationOptions): PropertyDecorator { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_ENUM, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [entity], validationOptions: validationOptions }; @@ -417,11 +417,11 @@ export function IsEnum(entity: Object, validationOptions?: ValidationOptions): P * Checks if the value is a number that's divisible by another. */ export function IsDivisibleBy(num: number, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_DIVISIBLE_BY, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [num], validationOptions: validationOptions }; @@ -433,11 +433,11 @@ export function IsDivisibleBy(num: number, validationOptions?: ValidationOptions * Checks if the value is a positive number. */ export function IsPositive(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_POSITIVE, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -448,25 +448,26 @@ export function IsPositive(validationOptions?: ValidationOptions): PropertyDecor * Checks if the value is a negative number. */ export function IsNegative(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_NEGATIVE, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); }; } + /** * Checks if the given number is greater than or equal to given number. */ export function Min(min: number, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.MIN, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [min], validationOptions: validationOptions }; @@ -478,11 +479,11 @@ export function Min(min: number, validationOptions?: ValidationOptions): Propert * Checks if the given number is less than or equal to given number. */ export function Max(max: number, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.MAX, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [max], validationOptions: validationOptions }; @@ -498,11 +499,11 @@ export function Max(max: number, validationOptions?: ValidationOptions): Propert * Checks if the value is a date that's after the specified date. */ export function MinDate(date: Date, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.MIN_DATE, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [date], validationOptions: validationOptions }; @@ -514,11 +515,11 @@ export function MinDate(date: Date, validationOptions?: ValidationOptions): Prop * Checks if the value is a date that's before the specified date. */ export function MaxDate(date: Date, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.MAX_DATE, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [date], validationOptions: validationOptions }; @@ -534,11 +535,11 @@ export function MaxDate(date: Date, validationOptions?: ValidationOptions): Prop * Checks if a string is a boolean. */ export function IsBooleanString(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_BOOLEAN_STRING, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -549,11 +550,11 @@ export function IsBooleanString(validationOptions?: ValidationOptions): Property * Checks if the string is a number. */ export function IsNumberString(options?: ValidatorJS.IsNumericOptions, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_NUMBER_STRING, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [options], validationOptions: validationOptions }; @@ -569,11 +570,11 @@ export function IsNumberString(options?: ValidatorJS.IsNumericOptions, validatio * Checks if the string contains the seed. */ export function Contains(seed: string, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.CONTAINS, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [seed], validationOptions: validationOptions }; @@ -585,11 +586,11 @@ export function Contains(seed: string, validationOptions?: ValidationOptions): P * Checks if the string does not contain the seed. */ export function NotContains(seed: string, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.NOT_CONTAINS, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [seed], validationOptions: validationOptions }; @@ -601,11 +602,11 @@ export function NotContains(seed: string, validationOptions?: ValidationOptions) * Checks if the string contains only letters (a-zA-Z). */ export function IsAlpha(locale?: string, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_ALPHA, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [locale], validationOptions: validationOptions }; @@ -617,11 +618,11 @@ export function IsAlpha(locale?: string, validationOptions?: ValidationOptions): * Checks if the string contains only letters and numbers. */ export function IsAlphanumeric(locale?: string, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_ALPHANUMERIC, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [locale], validationOptions: validationOptions }; @@ -633,11 +634,11 @@ export function IsAlphanumeric(locale?: string, validationOptions?: ValidationOp * Checks if the given number is a valid decimal. */ export function IsDecimal(options?: ValidatorJS.IsDecimalOptions, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_DECIMAL, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [options], validationOptions: validationOptions }; @@ -649,11 +650,11 @@ export function IsDecimal(options?: ValidatorJS.IsDecimalOptions, validationOpti * Checks if the string contains ASCII chars only. */ export function IsAscii(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_ASCII, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -664,11 +665,11 @@ export function IsAscii(validationOptions?: ValidationOptions): PropertyDecorato * Checks if a string is base64 encoded. */ export function IsBase64(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_BASE64, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -679,11 +680,11 @@ export function IsBase64(validationOptions?: ValidationOptions): PropertyDecorat * Checks if the string's length (in bytes) falls in a range. */ export function IsByteLength(min: number, max?: number, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_BYTE_LENGTH, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [min, max], validationOptions: validationOptions }; @@ -695,11 +696,11 @@ export function IsByteLength(min: number, max?: number, validationOptions?: Vali * Checks if the string is a credit card. */ export function IsCreditCard(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_CREDIT_CARD, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -710,11 +711,11 @@ export function IsCreditCard(validationOptions?: ValidationOptions): PropertyDec * Checks if the string is a valid currency amount. */ export function IsCurrency(options?: ValidatorJS.IsCurrencyOptions, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_CURRENCY, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [options], validationOptions: validationOptions }; @@ -726,11 +727,11 @@ export function IsCurrency(options?: ValidatorJS.IsCurrencyOptions, validationOp * Checks if the string is an email. */ export function IsEmail(options?: ValidatorJS.IsEmailOptions, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_EMAIL, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [options], validationOptions: validationOptions }; @@ -742,11 +743,11 @@ export function IsEmail(options?: ValidatorJS.IsEmailOptions, validationOptions? * Checks if the string is a fully qualified domain name (e.g. domain.com). */ export function IsFQDN(options?: ValidatorJS.IsFQDNOptions, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_FQDN, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [options], validationOptions: validationOptions }; @@ -758,11 +759,11 @@ export function IsFQDN(options?: ValidatorJS.IsFQDNOptions, validationOptions?: * Checks if the string contains any full-width chars. */ export function IsFullWidth(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_FULL_WIDTH, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -773,11 +774,11 @@ export function IsFullWidth(validationOptions?: ValidationOptions): PropertyDeco * Checks if the string contains any half-width chars. */ export function IsHalfWidth(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_HALF_WIDTH, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -788,11 +789,11 @@ export function IsHalfWidth(validationOptions?: ValidationOptions): PropertyDeco * Checks if the string contains a mixture of full and half-width chars. */ export function IsVariableWidth(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_VARIABLE_WIDTH, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -803,11 +804,11 @@ export function IsVariableWidth(validationOptions?: ValidationOptions): Property * Checks if the string is a hexadecimal color. */ export function IsHexColor(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_HEX_COLOR, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -818,11 +819,11 @@ export function IsHexColor(validationOptions?: ValidationOptions): PropertyDecor * Checks if the string is a hexadecimal number. */ export function IsHexadecimal(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_HEXADECIMAL, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -833,11 +834,11 @@ export function IsHexadecimal(validationOptions?: ValidationOptions): PropertyDe * Checks if the string is MAC Address. */ export function IsMACAddress(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_MAC_ADDRESS, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -848,11 +849,11 @@ export function IsMACAddress(validationOptions?: ValidationOptions): PropertyDec * Checks if the string is an IP (version 4 or 6). */ export function IsIP(version?: number, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_IP, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [version], validationOptions: validationOptions }; @@ -864,11 +865,11 @@ export function IsIP(version?: number, validationOptions?: ValidationOptions): P * Check if the string is a valid port number. */ export function IsPort(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_PORT, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -879,11 +880,11 @@ export function IsPort(validationOptions?: ValidationOptions): PropertyDecorator * Checks if the string is an ISBN (version 10 or 13). */ export function IsISBN(version?: number, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_ISBN, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [version], validationOptions: validationOptions }; @@ -895,11 +896,11 @@ export function IsISBN(version?: number, validationOptions?: ValidationOptions): * Checks if the string is an ISIN (stock/security identifier). */ export function IsISIN(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_ISIN, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -910,11 +911,11 @@ export function IsISIN(validationOptions?: ValidationOptions): PropertyDecorator * Checks if the string is a valid ISO 8601 date. Use the option strict = true for additional checks for a valid date, e.g. invalidates dates like 2019-02-29. */ export function IsISO8601(options?: ValidatorJS.IsISO8601Options, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_ISO8601, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [options], validationOptions: validationOptions }; @@ -926,11 +927,11 @@ export function IsISO8601(options?: ValidatorJS.IsISO8601Options, validationOpti * Checks if the string is valid JSON (note: uses JSON.parse). */ export function IsJSON(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_JSON, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -941,11 +942,11 @@ export function IsJSON(validationOptions?: ValidationOptions): PropertyDecorator * Checks if the string is valid JWT. */ export function IsJWT(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_JWT, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -956,11 +957,11 @@ export function IsJWT(validationOptions?: ValidationOptions): PropertyDecorator * Checks if the value is a valid object. */ export function IsObject(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_OBJECT, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -971,11 +972,11 @@ export function IsObject(validationOptions?: ValidationOptions): PropertyDecorat * Checks if the value is a valid object & not empty. */ export function IsNotEmptyObject(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_NOT_EMPTY_OBJECT, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -986,11 +987,11 @@ export function IsNotEmptyObject(validationOptions?: ValidationOptions): Propert * Checks if the string is lowercase. */ export function IsLowercase(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_LOWERCASE, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -1002,11 +1003,11 @@ export function IsLowercase(validationOptions?: ValidationOptions): PropertyDeco * 'pt-PT', 'fr-FR', 'el-GR', 'en-GB', 'en-US', 'en-ZM', 'ru-RU', 'nb-NO', 'nn-NO', 'vi-VN', 'en-NZ']). */ export function IsMobilePhone(locale: string, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_MOBILE_PHONE, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [locale], validationOptions: validationOptions }; @@ -1014,35 +1015,16 @@ export function IsMobilePhone(locale: string, validationOptions?: ValidationOpti }; } -/** - * Checks if the string is a valid phone number. - * @param {string} region 2 characters uppercase country code (e.g. DE, US, CH). - * If users must enter the intl. prefix (e.g. +41), then you may pass "ZZ" or null as region. - * See [google-libphonenumber, metadata.js:countryCodeToRegionCodeMap on github]{@link https://github.com/ruimarinho/google-libphonenumber/blob/1e46138878cff479aafe2ce62175c6c49cb58720/src/metadata.js#L33} - */ -export function IsPhoneNumber(region: string, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { - const args: ValidationMetadataArgs = { - type: ValidationTypes.IS_PHONE_NUMBER, - target: object.constructor, - propertyName: propertyName, - constraints: [region], - validationOptions: validationOptions - }; - getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); - }; -} - /** * Check if the string is a valid ISO 3166-1 alpha-2. * See heck if [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) officially assigned country code. */ export function IsISO31661Alpha2(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_ISO31661_ALPHA_2, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [], validationOptions: validationOptions }; @@ -1055,11 +1037,11 @@ export function IsISO31661Alpha2(validationOptions?: ValidationOptions): Propert * See heck if [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) officially assigned country code. */ export function IsISO31661Alpha3(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_ISO31661_ALPHA_3, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [], validationOptions: validationOptions }; @@ -1071,11 +1053,11 @@ export function IsISO31661Alpha3(validationOptions?: ValidationOptions): Propert * Checks if the string is a valid hex-encoded representation of a MongoDB ObjectId. */ export function IsMongoId(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_MONGO_ID, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -1086,11 +1068,11 @@ export function IsMongoId(validationOptions?: ValidationOptions): PropertyDecora * Checks if the string contains one or more multibyte chars. */ export function IsMultibyte(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_MULTIBYTE, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -1101,11 +1083,11 @@ export function IsMultibyte(validationOptions?: ValidationOptions): PropertyDeco * Checks if the string contains any surrogate pairs chars. */ export function IsSurrogatePair(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_SURROGATE_PAIR, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -1116,11 +1098,11 @@ export function IsSurrogatePair(validationOptions?: ValidationOptions): Property * Checks if the string is an url. */ export function IsUrl(options?: ValidatorJS.IsURLOptions, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_URL, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [options], validationOptions: validationOptions }; @@ -1131,12 +1113,12 @@ export function IsUrl(options?: ValidatorJS.IsURLOptions, validationOptions?: Va /** * Checks if the string is a UUID (version 3, 4 or 5). */ -export function IsUUID(version?: "3"|"4"|"5"|"all", validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { +export function IsUUID(version?: "3" | "4" | "5" | "all", validationOptions?: ValidationOptions): PropertyDecorator { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_UUID, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [version], validationOptions: validationOptions }; @@ -1148,11 +1130,11 @@ export function IsUUID(version?: "3"|"4"|"5"|"all", validationOptions?: Validati * Checks if the string is a PushId */ export function IsFirebasePushId(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_FIREBASE_PUSH_ID, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -1163,11 +1145,11 @@ export function IsFirebasePushId(validationOptions?: ValidationOptions): Propert * Checks if the string is uppercase. */ export function IsUppercase(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_UPPERCASE, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -1178,11 +1160,11 @@ export function IsUppercase(validationOptions?: ValidationOptions): PropertyDeco * Checks if the string's length falls in a range. Note: this function takes into account surrogate pairs. */ export function Length(min: number, max?: number, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.LENGTH, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [min, max], validationOptions: validationOptions }; @@ -1194,11 +1176,11 @@ export function Length(min: number, max?: number, validationOptions?: Validation * Checks if the string's length is not less than given number. Note: this function takes into account surrogate pairs. */ export function MinLength(min: number, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.MIN_LENGTH, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [min], validationOptions: validationOptions }; @@ -1210,11 +1192,11 @@ export function MinLength(min: number, validationOptions?: ValidationOptions): P * Checks if the string's length is not more than given number. Note: this function takes into account surrogate pairs. */ export function MaxLength(max: number, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.MAX_LENGTH, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [max], validationOptions: validationOptions }; @@ -1227,19 +1209,19 @@ export function MaxLength(max: number, validationOptions?: ValidationOptions): P */ export function Matches(pattern: RegExp, validationOptions?: ValidationOptions): Function; export function Matches(pattern: RegExp, modifiers?: string, validationOptions?: ValidationOptions): Function; -export function Matches(pattern: RegExp, modifiersOrAnnotationOptions?: string|ValidationOptions, validationOptions?: ValidationOptions): Function { +export function Matches(pattern: RegExp, modifiersOrAnnotationOptions?: string | ValidationOptions, validationOptions?: ValidationOptions): Function { let modifiers: string; if (modifiersOrAnnotationOptions && modifiersOrAnnotationOptions instanceof Object && !validationOptions) { - validationOptions = modifiersOrAnnotationOptions as ValidationOptions; + validationOptions = modifiersOrAnnotationOptions; } else { modifiers = modifiersOrAnnotationOptions as string; } - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.MATCHES, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [pattern, modifiers], validationOptions: validationOptions }; @@ -1251,11 +1233,11 @@ export function Matches(pattern: RegExp, modifiersOrAnnotationOptions?: string|V * Checks if the string correctly represents a time in the format HH:MM */ export function IsMilitaryTime(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_MILITARY_TIME, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -1267,11 +1249,11 @@ export function IsMilitaryTime(validationOptions?: ValidationOptions): PropertyD * 'pt-PT', 'fr-FR', 'el-GR', 'en-GB', 'en-US', 'en-ZM', 'ru-RU', 'nb-NO', 'nn-NO', 'vi-VN', 'en-NZ']). */ export function IsHash(algorithm: string, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_HASH, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [algorithm], validationOptions: validationOptions }; @@ -1284,11 +1266,11 @@ export function IsHash(algorithm: string, validationOptions?: ValidationOptions) * Checks if the string is a valid ISSN. */ export function IsISSN(options?: ValidatorJS.IsISSNOptions, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_ISSN, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [options], validationOptions: validationOptions }; @@ -1304,11 +1286,11 @@ export function IsISSN(options?: ValidatorJS.IsISSNOptions, validationOptions?: * Checks if array contains all values from the given array of values. */ export function ArrayContains(values: any[], validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.ARRAY_CONTAINS, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [values], validationOptions: validationOptions }; @@ -1320,11 +1302,11 @@ export function ArrayContains(values: any[], validationOptions?: ValidationOptio * Checks if array does not contain any of the given values. */ export function ArrayNotContains(values: any[], validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.ARRAY_NOT_CONTAINS, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [values], validationOptions: validationOptions }; @@ -1336,11 +1318,11 @@ export function ArrayNotContains(values: any[], validationOptions?: ValidationOp * Checks if given array is not empty. */ export function ArrayNotEmpty(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.ARRAY_NOT_EMPTY, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -1351,11 +1333,11 @@ export function ArrayNotEmpty(validationOptions?: ValidationOptions): PropertyDe * Checks if array's length is as minimal this number. */ export function ArrayMinSize(min: number, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.ARRAY_MIN_SIZE, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [min], validationOptions: validationOptions }; @@ -1367,11 +1349,11 @@ export function ArrayMinSize(min: number, validationOptions?: ValidationOptions) * Checks if array's length is as maximal this number. */ export function ArrayMaxSize(max: number, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.ARRAY_MAX_SIZE, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [max], validationOptions: validationOptions }; @@ -1383,11 +1365,11 @@ export function ArrayMaxSize(max: number, validationOptions?: ValidationOptions) * Checks if all array's values are unique. Comparison for objects is reference-based. */ export function ArrayUnique(validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.ARRAY_UNIQUE, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, validationOptions: validationOptions }; getMetadataStorage().addValidationMetadata(new ValidationMetadata(args)); @@ -1398,11 +1380,11 @@ export function ArrayUnique(validationOptions?: ValidationOptions): PropertyDeco * Checks if the value is an instance of the specified object. */ export function IsInstance(targetType: new (...args: any[]) => any, validationOptions?: ValidationOptions): PropertyDecorator { - return function (object: Object, propertyName: string) { + return function(object: Record, propertyName: string | symbol): void { const args: ValidationMetadataArgs = { type: ValidationTypes.IS_INSTANCE, target: object.constructor, - propertyName: propertyName, + propertyName: propertyName as string, constraints: [targetType], validationOptions: validationOptions }; diff --git a/src/index.ts b/src/index.ts index 0ec6447b4f..46a3c7c591 100644 --- a/src/index.ts +++ b/src/index.ts @@ -41,46 +41,46 @@ export * from "./metadata/MetadataStorage"; /** * Validates given object. */ -export function validate(object: Object, validatorOptions?: ValidatorOptions): Promise; +export function validate(object: Record, validatorOptions?: ValidatorOptions): Promise; /** * Validates given object by a given validation schema. */ -export function validate(schemaName: string, object: Object, validatorOptions?: ValidatorOptions): Promise; +export function validate(schemaName: string, object: Record, validatorOptions?: ValidatorOptions): Promise; /** * Validates given object by object's decorators or given validation schema. */ -export function validate(schemaNameOrObject: Object|string, - objectOrValidationOptions?: Object|ValidatorOptions, +export function validate(schemaNameOrObject: Record|string, + objectOrValidationOptions?: Record|ValidatorOptions, maybeValidatorOptions?: ValidatorOptions): Promise { if (typeof schemaNameOrObject === "string") { - return getFromContainer(Validator).validate(schemaNameOrObject as string, objectOrValidationOptions as Object, maybeValidatorOptions); + return getFromContainer(Validator).validate(schemaNameOrObject, objectOrValidationOptions as Record, maybeValidatorOptions); } else { - return getFromContainer(Validator).validate(schemaNameOrObject as Object, objectOrValidationOptions as ValidatorOptions); + return getFromContainer(Validator).validate(schemaNameOrObject, objectOrValidationOptions as ValidatorOptions); } } /** * Validates given object and reject on error. */ -export function validateOrReject(object: Object, validatorOptions?: ValidatorOptions): Promise; +export function validateOrReject(object: Record, validatorOptions?: ValidatorOptions): Promise; /** * Validates given object by a given validation schema and reject on error. */ -export function validateOrReject(schemaName: string, object: Object, validatorOptions?: ValidatorOptions): Promise; +export function validateOrReject(schemaName: string, object: Record, validatorOptions?: ValidatorOptions): Promise; /** * Validates given object by object's decorators or given validation schema and reject on error. */ -export function validateOrReject(schemaNameOrObject: Object|string, - objectOrValidationOptions?: Object|ValidatorOptions, +export function validateOrReject(schemaNameOrObject: Record|string, + objectOrValidationOptions?: Record|ValidatorOptions, maybeValidatorOptions?: ValidatorOptions): Promise { if (typeof schemaNameOrObject === "string") { - return getFromContainer(Validator).validateOrReject(schemaNameOrObject as string, objectOrValidationOptions as Object, maybeValidatorOptions); + return getFromContainer(Validator).validateOrReject(schemaNameOrObject, objectOrValidationOptions as Record, maybeValidatorOptions); } else { - return getFromContainer(Validator).validateOrReject(schemaNameOrObject as Object, objectOrValidationOptions as ValidatorOptions); + return getFromContainer(Validator).validateOrReject(schemaNameOrObject, objectOrValidationOptions as ValidatorOptions); } } @@ -89,27 +89,27 @@ export function validateOrReject(schemaNameOrObject: Object|string, * Note that this method completely ignores async validations. * If you want to properly perform validation you need to call validate method instead. */ -export function validateSync(object: Object, validatorOptions?: ValidatorOptions): ValidationError[]; +export function validateSync(object: Record, validatorOptions?: ValidatorOptions): ValidationError[]; /** * Validates given object by a given validation schema. * Note that this method completely ignores async validations. * If you want to properly perform validation you need to call validate method instead. */ -export function validateSync(schemaName: string, object: Object, validatorOptions?: ValidatorOptions): ValidationError[]; +export function validateSync(schemaName: string, object: Record, validatorOptions?: ValidatorOptions): ValidationError[]; /** * Validates given object by object's decorators or given validation schema. * Note that this method completely ignores async validations. * If you want to properly perform validation you need to call validate method instead. */ -export function validateSync(schemaNameOrObject: Object|string, - objectOrValidationOptions?: Object|ValidatorOptions, +export function validateSync(schemaNameOrObject: Record|string, + objectOrValidationOptions?: Record|ValidatorOptions, maybeValidatorOptions?: ValidatorOptions): ValidationError[] { if (typeof schemaNameOrObject === "string") { - return getFromContainer(Validator).validateSync(schemaNameOrObject as string, objectOrValidationOptions as Object, maybeValidatorOptions); + return getFromContainer(Validator).validateSync(schemaNameOrObject, objectOrValidationOptions as Record, maybeValidatorOptions); } else { - return getFromContainer(Validator).validateSync(schemaNameOrObject as Object, objectOrValidationOptions as ValidatorOptions); + return getFromContainer(Validator).validateSync(schemaNameOrObject, objectOrValidationOptions as ValidatorOptions); } } diff --git a/src/metadata/MetadataStorage.ts b/src/metadata/MetadataStorage.ts index 4e2bd4c8a7..7fafbb3f49 100644 --- a/src/metadata/MetadataStorage.ts +++ b/src/metadata/MetadataStorage.ts @@ -15,7 +15,7 @@ export class MetadataStorage { private validationMetadatas: ValidationMetadata[] = []; private constraintMetadatas: ConstraintMetadata[] = []; - get hasValidationMetaData() { + get hasValidationMetaData(): boolean { return !!this.validationMetadatas.length; } @@ -26,22 +26,22 @@ export class MetadataStorage { /** * Adds a new validation metadata. */ - addValidationSchema(schema: ValidationSchema) { + addValidationSchema(schema: ValidationSchema): void { const validationMetadatas = new ValidationSchemaToMetadataTransformer().transform(schema); validationMetadatas.forEach(validationMetadata => this.addValidationMetadata(validationMetadata)); } - + /** * Adds a new validation metadata. */ - addValidationMetadata(metadata: ValidationMetadata) { + addValidationMetadata(metadata: ValidationMetadata): void { this.validationMetadatas.push(metadata); } /** * Adds a new constraint metadata. */ - addConstraintMetadata(metadata: ConstraintMetadata) { + addConstraintMetadata(metadata: ConstraintMetadata): void { this.constraintMetadatas.push(metadata); } @@ -62,19 +62,19 @@ export class MetadataStorage { * Gets all validation metadatas for the given object with the given groups. */ getTargetValidationMetadatas(targetConstructor: Function, targetSchema: string, groups?: string[]): ValidationMetadata[] { - + // get directly related to a target metadatas const originalMetadatas = this.validationMetadatas.filter(metadata => { if (metadata.target !== targetConstructor && metadata.target !== targetSchema) return false; - if (metadata.always) + if (metadata.always) return true; if (groups && groups.length > 0) - return metadata.groups && !!metadata.groups.find(group => groups.indexOf(group) !== -1); - + return metadata.groups && !!metadata.groups.find(group => groups.includes(group)); + return true; }); - + // get metadatas for inherited classes const inheritedMetadatas = this.validationMetadatas.filter(metadata => { // if target is a string it's means we validate agains a schema, and there is no inheritance support for schemas @@ -83,20 +83,20 @@ export class MetadataStorage { if (metadata.target === targetConstructor) return false; if (metadata.target instanceof Function && - !(targetConstructor.prototype instanceof (metadata.target as Function))) + !(targetConstructor.prototype instanceof metadata.target)) return false; - if (metadata.always) + if (metadata.always) return true; if (groups && groups.length > 0) - return metadata.groups && !!metadata.groups.find(group => groups.indexOf(group) !== -1); - + return metadata.groups && !!metadata.groups.find(group => groups.includes(group)); + return true; }); // filter out duplicate metadatas, prefer original metadatas instead of inherited metadatas const uniqueInheritedMetadatas = inheritedMetadatas.filter(inheritedMetadata => { return !originalMetadatas.find(originalMetadata => { - return originalMetadata.propertyName === inheritedMetadata.propertyName && + return originalMetadata.propertyName === inheritedMetadata.propertyName && originalMetadata.type === inheritedMetadata.type; }); }); @@ -111,4 +111,4 @@ export class MetadataStorage { return this.constraintMetadatas.filter(metadata => metadata.target === target); } -} \ No newline at end of file +} diff --git a/src/register-decorator.ts b/src/register-decorator.ts index 593c819d5e..19b062c16c 100644 --- a/src/register-decorator.ts +++ b/src/register-decorator.ts @@ -52,15 +52,15 @@ export function registerDecorator(options: ValidationDecoratorOptions): void { let constraintCls: Function; if (options.validator instanceof Function) { - constraintCls = options.validator as Function; + constraintCls = options.validator; } else { - const validator = options.validator as ValidatorConstraintInterface; + const validator = options.validator; constraintCls = class CustomConstraint implements ValidatorConstraintInterface { validate(value: any, validationArguments?: ValidationArguments): Promise|boolean { return validator.validate(value, validationArguments); } - defaultMessage(validationArguments?: ValidationArguments) { + defaultMessage(validationArguments?: ValidationArguments): string { if (validator.defaultMessage) { return validator.defaultMessage(validationArguments); } diff --git a/src/types.d.ts b/src/types.d.ts index 67607af4eb..c2ea0a043f 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -1,3 +1 @@ -declare var window: any; - -declare module "ansicolor"; \ No newline at end of file +declare module "ansicolor"; diff --git a/src/validation/ValidationArguments.ts b/src/validation/ValidationArguments.ts index 2df2ab7518..b83d2306ee 100644 --- a/src/validation/ValidationArguments.ts +++ b/src/validation/ValidationArguments.ts @@ -22,11 +22,11 @@ export interface ValidationArguments { /** * Object that is being validated. */ - object: Object; + object: Record; /** * Name of the object's property being validated. */ property: string; - -} \ No newline at end of file + +} diff --git a/src/validation/ValidationError.ts b/src/validation/ValidationError.ts index d97b7461cb..cbd902e332 100644 --- a/src/validation/ValidationError.ts +++ b/src/validation/ValidationError.ts @@ -8,7 +8,7 @@ export class ValidationError { * * OPTIONAL - configurable via the ValidatorOptions.validationError.target option */ - target?: Object; + target?: Record; /** * Object's property that haven't pass validation. diff --git a/src/validation/ValidationExecutor.ts b/src/validation/ValidationExecutor.ts index 181fc4b6df..6fcdcb33a8 100644 --- a/src/validation/ValidationExecutor.ts +++ b/src/validation/ValidationExecutor.ts @@ -39,7 +39,7 @@ export class ValidationExecutor { // Public Methods // ------------------------------------------------------------------------- - execute(object: Object, targetSchema: string, validationErrors: ValidationError[]) { + execute(object: Record, targetSchema: string, validationErrors: ValidationError[]): void { /** * If there is no metadata registered it means possibly the dependencies are not flatterned and * more than one instance is used. @@ -95,8 +95,8 @@ export class ValidationExecutor { whitelist(object: any, groupedMetadatas: { [propertyName: string]: ValidationMetadata[] }, - validationErrors: ValidationError[]) { - let notAllowedProperties: string[] = []; + validationErrors: ValidationError[]): void { + const notAllowedProperties: string[] = []; Object.keys(object).forEach(propertyName => { // does this property have no metadata? @@ -110,7 +110,7 @@ export class ValidationExecutor { // throw errors notAllowedProperties.forEach(property => { - const validationError: ValidationError = this.generateValidationError(object, (object as any)[property], property); + const validationError: ValidationError = this.generateValidationError(object, (object)[property], property); validationError.constraints = { [ValidationTypes.WHITELIST]: `property ${property} should not exist` }; validationError.children = undefined; validationErrors.push(validationError); @@ -119,13 +119,13 @@ export class ValidationExecutor { } else { // strip non allowed properties - notAllowedProperties.forEach(property => delete (object as any)[property]); + notAllowedProperties.forEach(property => delete (object)[property]); } } } - stripEmptyErrors(errors: ValidationError[]) { + stripEmptyErrors(errors: ValidationError[]): ValidationError[] { return errors.filter(error => { if (error.children) { error.children = this.stripEmptyErrors(error.children); @@ -151,7 +151,7 @@ export class ValidationExecutor { value: any, propertyName: string, definedMetadatas: ValidationMetadata[], metadatas: ValidationMetadata[], - validationErrors: ValidationError[]) { + validationErrors: ValidationError[]): void { const customValidationMetadatas = metadatas.filter(metadata => metadata.type === ValidationTypes.CUSTOM_VALIDATION); const nestedValidationMetadatas = metadatas.filter(metadata => metadata.type === ValidationTypes.NESTED_VALIDATION); @@ -189,7 +189,7 @@ export class ValidationExecutor { this.mapContexts(object, value, customValidationMetadatas, validationError); } - private generateValidationError(object: Object, value: any, propertyName: string) { + private generateValidationError(object: Record, value: any, propertyName: string): ValidationError { const validationError = new ValidationError(); if (!this.validatorOptions || @@ -211,18 +211,18 @@ export class ValidationExecutor { return validationError; } - private conditionalValidations(object: Object, + private conditionalValidations(object: Record, value: any, - metadatas: ValidationMetadata[]) { + metadatas: ValidationMetadata[]): ValidationMetadata[] { return metadatas .map(metadata => metadata.constraints[0](object, value)) .reduce((resultA, resultB) => resultA && resultB, true); } - private defaultValidations(object: Object, + private defaultValidations(object: Record, value: any, metadatas: ValidationMetadata[], - errorMap: { [key: string]: string }) { + errorMap: { [key: string]: string }): void { return metadatas .filter(metadata => { if (metadata.each) { @@ -241,10 +241,10 @@ export class ValidationExecutor { }); } - private customValidations(object: Object, + private customValidations(object: Record, value: any, metadatas: ValidationMetadata[], - error: ValidationError) { + error: ValidationError): void { metadatas.forEach(metadata => { this.metadataStorage @@ -318,7 +318,7 @@ export class ValidationExecutor { return; } - const validationResult = validatedSubValues.every((isValid: boolean) => isValid); + const validationResult = validatedSubValues.every((isValid: boolean | Promise) => isValid); if (!validationResult) { const [type, message] = this.createValidationError(object, value, metadata, customConstraintMetadata); error.constraints[type] = message; @@ -328,7 +328,7 @@ export class ValidationExecutor { } private nestedValidations(value: any, metadatas: ValidationMetadata[], errors: ValidationError[], - definedMetadatas: ValidationMetadata[], allMetadatas: ValidationMetadata[]) { + definedMetadatas: ValidationMetadata[], allMetadatas: ValidationMetadata[]): void { if (value === void 0) { return; @@ -349,15 +349,15 @@ export class ValidationExecutor { this.performValidations(value, subValue, index.toString(), definedMetadatas, allMetadatas, errors); }); } else if (value instanceof Object) { - const targetSchema = typeof metadata.target === "string" ? metadata.target as string : metadata.target.name; + const targetSchema = typeof metadata.target === "string" ? metadata.target : metadata.target.name; this.execute(value, targetSchema, errors); } else { const error = new ValidationError(); error.value = value; error.property = metadata.propertyName; - error.target = metadata.target; - const [type, message] = this.createValidationError(metadata.target, value, metadata); + error.target = metadata.target as Record; + const [type, message] = this.createValidationError(metadata.target as Record, value, metadata); error.constraints = { [type]: message }; @@ -366,10 +366,10 @@ export class ValidationExecutor { }); } - private mapContexts(object: Object, + private mapContexts(object: Record, value: any, metadatas: ValidationMetadata[], - error: ValidationError) { + error: ValidationError): void { return metadatas .forEach(metadata => { @@ -393,7 +393,7 @@ export class ValidationExecutor { }); } - private createValidationError(object: Object, + private createValidationError(object: Record, value: any, metadata: ValidationMetadata, customValidatorMetadata?: ConstraintMetadata): [string, string] { diff --git a/src/validation/ValidationTypes.ts b/src/validation/ValidationTypes.ts index 7a594cb672..054ffc3dde 100644 --- a/src/validation/ValidationTypes.ts +++ b/src/validation/ValidationTypes.ts @@ -79,7 +79,6 @@ export class ValidationTypes { static IS_NOT_EMPTY_OBJECT = "isNotEmptyObject"; static IS_LOWERCASE = "isLowercase"; static IS_MOBILE_PHONE = "isMobilePhone"; - static IS_PHONE_NUMBER = "isPhoneNumber"; static IS_ISO31661_ALPHA_2 = "isISO31661Alpha2"; static IS_ISO31661_ALPHA_3 = "isISO31661Alpha3"; static IS_MONGO_ID = "isMongoId"; @@ -111,10 +110,10 @@ export class ValidationTypes { /** * Checks if validation type is valid. */ - static isValid(type: string) { + static isValid(type: string): boolean { return type !== "isValid" && type !== "getMessage" && - Object.keys(this).map(key => (this as any)[key]).indexOf(type) !== -1; + Object.keys(this).map(key => (this as any)[key]).includes(type); } /** @@ -244,8 +243,6 @@ export class ValidationTypes { return eachPrefix + "$property must be a lowercase string"; case this.IS_MOBILE_PHONE: return eachPrefix + "$property must be a phone number"; - case this.IS_PHONE_NUMBER: - return eachPrefix + "$property must be a valid phone number"; case this.IS_ISO31661_ALPHA_2: return eachPrefix + "$property must be a valid ISO31661 Alpha2 code"; case this.IS_ISO31661_ALPHA_3: @@ -271,7 +268,7 @@ export class ValidationTypes { case this.IS_UPPERCASE: return eachPrefix + "$property must be uppercase"; case this.LENGTH: - return (args: ValidationArguments) => { + return (args: ValidationArguments): string => { const isMinLength = args.constraints[0] !== null && args.constraints[0] !== undefined; const isMaxLength = args.constraints[1] !== null && args.constraints[1] !== undefined; if (isMinLength && (!args.value || args.value.length < args.constraints[0])) { @@ -293,7 +290,7 @@ export class ValidationTypes { return eachPrefix + "$property must be a hash of type $constraint1"; case this.IS_ISSN: return eachPrefix + "$property must be a ISSN"; - + /* array checkers */ case this.ARRAY_CONTAINS: return eachPrefix + "$property must contain $constraint1 values"; @@ -309,7 +306,7 @@ export class ValidationTypes { return eachPrefix + "All $property's elements must be unique"; case this.IS_INSTANCE: - return (args: ValidationArguments) => { + return (args: ValidationArguments): string => { if (args.constraints[0]) { return eachPrefix + `$property must be an instance of ${args.constraints[0].name}`; } else { diff --git a/src/validation/ValidationUtils.ts b/src/validation/ValidationUtils.ts index 0cf8f4112a..51debee3c5 100644 --- a/src/validation/ValidationUtils.ts +++ b/src/validation/ValidationUtils.ts @@ -10,7 +10,7 @@ export class ValidationUtils { messageString = (message as (args: ValidationArguments) => string)(validationArguments); } else if (typeof message === "string") { - messageString = message as string; + messageString = message; } if (messageString && validationArguments.constraints instanceof Array) { @@ -28,5 +28,5 @@ export class ValidationUtils { return messageString; } - -} \ No newline at end of file + +} diff --git a/src/validation/Validator.ts b/src/validation/Validator.ts index bb6117f591..ccd0799971 100644 --- a/src/validation/Validator.ts +++ b/src/validation/Validator.ts @@ -5,49 +5,18 @@ import {IsNumberOptions} from "./ValidationTypeOptions"; import {ValidatorOptions} from "./ValidatorOptions"; import {ValidationExecutor} from "./ValidationExecutor"; import {ValidationOptions} from "../decorator/ValidationOptions"; -import * as validator from "validator"; +import validator, {default as ValidatorJS} from "validator"; /** * Validator performs validation of the given object based on its metadata. */ export class Validator { - // ------------------------------------------------------------------------- // Private Properties // ------------------------------------------------------------------------- private webSafeRegex = /^[a-zA-Z0-9_-]*$/; private validatorJs = validator; - private libPhoneNumber = { - phoneUtil: require("google-libphonenumber").PhoneNumberUtil.getInstance(), - }; - private _isEmptyObject = function(object: object) { - for (const key in object) { - if (object.hasOwnProperty(key)) { - return false; - } - } - - return true; - }; - - /** - * Performs validation of the given object based on decorators or validation schema. - * Common method for `validateOrReject` and `validate` methods. - */ - private coreValidate(objectOrSchemaName: Object|string, objectOrValidationOptions: Object|ValidationOptions, maybeValidatorOptions?: ValidatorOptions): Promise { - const object = typeof objectOrSchemaName === "string" ? objectOrValidationOptions as Object : objectOrSchemaName as Object; - const options = typeof objectOrSchemaName === "string" ? maybeValidatorOptions : objectOrValidationOptions as ValidationOptions; - const schema = typeof objectOrSchemaName === "string" ? objectOrSchemaName as string : undefined; - - const executor = new ValidationExecutor(this, options); - const validationErrors: ValidationError[] = []; - executor.execute(object, schema, validationErrors); - - return Promise.all(executor.awaitingPromises).then(() => { - return executor.stripEmptyErrors(validationErrors); - }); - } // ------------------------------------------------------------------------- // Public Methods @@ -56,34 +25,34 @@ export class Validator { /** * Performs validation of the given object based on decorators used in given object class. */ - validate(object: Object, options?: ValidatorOptions): Promise; + validate(object: Record, options?: ValidatorOptions): Promise; /** * Performs validation of the given object based on validation schema. */ - validate(schemaName: string, object: Object, options?: ValidatorOptions): Promise; + validate(schemaName: string, object: Record, options?: ValidatorOptions): Promise; /** * Performs validation of the given object based on decorators or validation schema. */ - validate(objectOrSchemaName: Object|string, objectOrValidationOptions: Object|ValidationOptions, maybeValidatorOptions?: ValidatorOptions): Promise { + validate(objectOrSchemaName: Record|string, objectOrValidationOptions: Record|ValidationOptions, maybeValidatorOptions?: ValidatorOptions): Promise { return this.coreValidate(objectOrSchemaName, objectOrValidationOptions, maybeValidatorOptions); } /** * Performs validation of the given object based on decorators used in given object class and reject on error. */ - validateOrReject(object: Object, options?: ValidatorOptions): Promise; + validateOrReject(object: Record, options?: ValidatorOptions): Promise; /** * Performs validation of the given object based on validation schema and reject on error. */ - validateOrReject(schemaName: string, object: Object, options?: ValidatorOptions): Promise; + validateOrReject(schemaName: string, object: Record, options?: ValidatorOptions): Promise; /** * Performs validation of the given object based on decorators or validation schema and reject on error. */ - async validateOrReject(objectOrSchemaName: Object|string, objectOrValidationOptions: Object|ValidationOptions, maybeValidatorOptions?: ValidatorOptions): Promise { + async validateOrReject(objectOrSchemaName: Record|string, objectOrValidationOptions: Record|ValidationOptions, maybeValidatorOptions?: ValidatorOptions): Promise { const errors = await this.coreValidate(objectOrSchemaName, objectOrValidationOptions, maybeValidatorOptions); if (errors.length) return Promise.reject(errors); @@ -93,20 +62,20 @@ export class Validator { * Performs validation of the given object based on decorators used in given object class. * NOTE: This method completely ignores all async validations. */ - validateSync(object: Object, options?: ValidatorOptions): ValidationError[]; + validateSync(object: Record, options?: ValidatorOptions): ValidationError[]; /** * Performs validation of the given object based on validation schema. */ - validateSync(schemaName: string, object: Object, options?: ValidatorOptions): ValidationError[]; + validateSync(schemaName: string, object: Record, options?: ValidatorOptions): ValidationError[]; /** * Performs validation of the given object based on decorators or validation schema. */ - validateSync(objectOrSchemaName: Object|string, objectOrValidationOptions: Object|ValidationOptions, maybeValidatorOptions?: ValidatorOptions): ValidationError[] { - const object = typeof objectOrSchemaName === "string" ? objectOrValidationOptions as Object : objectOrSchemaName as Object; + validateSync(objectOrSchemaName: Record|string, objectOrValidationOptions: Record|ValidationOptions, maybeValidatorOptions?: ValidatorOptions): ValidationError[] { + const object = typeof objectOrSchemaName === "string" ? objectOrValidationOptions as Record : objectOrSchemaName; const options = typeof objectOrSchemaName === "string" ? maybeValidatorOptions : objectOrValidationOptions as ValidationOptions; - const schema = typeof objectOrSchemaName === "string" ? objectOrSchemaName as string : undefined; + const schema = typeof objectOrSchemaName === "string" ? objectOrSchemaName : undefined; const executor = new ValidationExecutor(this, options); executor.ignoreAsyncValidations = true; @@ -243,8 +212,6 @@ export class Validator { return this.isLowercase(value); case ValidationTypes.IS_MOBILE_PHONE: return this.isMobilePhone(value, metadata.constraints[0]); - case ValidationTypes.IS_PHONE_NUMBER: - return this.isPhoneNumber(value, metadata.constraints[0]); case ValidationTypes.IS_ISO31661_ALPHA_2: return this.isISO31661Alpha2(value); case ValidationTypes.IS_ISO31661_ALPHA_3: @@ -402,8 +369,7 @@ export class Validator { * Checks if a given value is a ISOString date. */ isDateString(value: unknown): boolean { - const regex = /^\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[\+\-][0-2]\d(?:\:[0-5]\d)?)?$/g; - return this.isString(value) && regex.test(value); + return this.isString(value) ? this.validatorJs.isISO8601(value): false; } /** @@ -419,7 +385,7 @@ export class Validator { isEnum(value: unknown, entity: any): boolean { const enumValues = Object.keys(entity) .map(k => entity[k]); - return enumValues.indexOf(value) >= 0; + return enumValues.includes(value); } /** @@ -603,7 +569,7 @@ export class Validator { * If given value is not a string, then it returns false. */ isByteLength(value: unknown, min: number, max?: number): boolean { - return typeof value === "string" && this.validatorJs.isByteLength(value, min, max); + return typeof value === "string" && this.validatorJs.isByteLength(value, {min: min, max: max}); } /** @@ -690,7 +656,7 @@ export class Validator { * Checks if the string is an IP (version 4 or 6). * If given value is not a string, then it returns false. */ - isIP(value: unknown, version?: number): boolean { + isIP(value: unknown, version?: "4" | "6"): boolean { return typeof value === "string" && this.validatorJs.isIP(value, version); } @@ -705,7 +671,7 @@ export class Validator { * Checks if the string is an ISBN (version 10 or 13). * If given value is not a string, then it returns false. */ - isISBN(value: unknown, version?: number): boolean { + isISBN(value: unknown, version?: "10" | "13"): boolean { return typeof value === "string" && this.validatorJs.isISBN(value, version); } @@ -775,23 +741,6 @@ export class Validator { return typeof value === "string" && this.validatorJs.isMobilePhone(value, locale); } - /** - * Checks if the string is a valid phone number. - * @param value the potential phone number string to test - * @param {string} region 2 characters uppercase country code (e.g. DE, US, CH). - * If users must enter the intl. prefix (e.g. +41), then you may pass "ZZ" or null as region. - * See [google-libphonenumber, metadata.js:countryCodeToRegionCodeMap on github]{@link https://github.com/ruimarinho/google-libphonenumber/blob/1e46138878cff479aafe2ce62175c6c49cb58720/src/metadata.js#L33} - */ - isPhoneNumber(value: unknown, region: string): boolean { - try { - const phoneNum = this.libPhoneNumber.phoneUtil.parseAndKeepRawInput(value, region); - return this.libPhoneNumber.phoneUtil.isValidNumber(phoneNum); - } catch (error) { - // logging? - return false; - } - } - /** * Check if the string is a valid [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) officially assigned country code. */ @@ -866,14 +815,14 @@ export class Validator { * If given value is not a string, then it returns false. */ length(value: unknown, min: number, max?: number): boolean { - return typeof value === "string" && this.validatorJs.isLength(value, min, max); + return typeof value === "string" && this.validatorJs.isLength(value, {min: min, max: max}); } /** * Checks if the string's length is not less than given number. Note: this function takes into account surrogate pairs. * If given value is not a string, then it returns false. */ - minLength(value: unknown, min: number) { + minLength(value: unknown, min: number): boolean { return typeof value === "string" && this.length(value, min); } @@ -881,7 +830,7 @@ export class Validator { * Checks if the string's length is not more than given number. Note: this function takes into account surrogate pairs. * If given value is not a string, then it returns false. */ - maxLength(value: unknown, max: number) { + maxLength(value: unknown, max: number): boolean { return typeof value === "string" && this.length(value, 0, max); } @@ -889,8 +838,10 @@ export class Validator { * Checks if string matches the pattern. Either matches('foo', /foo/i) or matches('foo', 'foo', 'i'). * If given value is not a string, then it returns false. */ - matches(value: unknown, pattern: RegExp, modifiers?: string): boolean { - return typeof value === "string" && this.validatorJs.matches(value, pattern, modifiers); + matches(value: unknown, pattern: RegExp | string, modifiers?: string): boolean { + // validatorJs typings for matches are slightly broken + // TODO: Revisit once they are fixed upstream + return typeof value === "string" && this.validatorJs.matches(value, pattern as any, modifiers); } /** @@ -926,29 +877,29 @@ export class Validator { * Checks if array contains all values from the given array of values. * If null or undefined is given then this function returns false. */ - arrayContains(array: unknown, values: any[]) { + arrayContains(array: unknown, values: any[]): boolean { if (!(array instanceof Array)) return false; - return values.every(value => array.indexOf(value) !== -1); + return values.every(value => array.includes(value)); } /** * Checks if array does not contain any of the given values. * If null or undefined is given then this function returns false. */ - arrayNotContains(array: unknown, values: any[]) { + arrayNotContains(array: unknown, values: any[]): boolean { if (!(array instanceof Array)) return false; - return values.every(value => array.indexOf(value) === -1); + return values.every(value => !array.includes(value)); } /** * Checks if given array is not empty. * If null or undefined is given then this function returns false. */ - arrayNotEmpty(array: unknown) { + arrayNotEmpty(array: unknown): boolean { return array instanceof Array && array.length > 0; } @@ -956,7 +907,7 @@ export class Validator { * Checks if array's length is as minimal this number. * If null or undefined is given then this function returns false. */ - arrayMinSize(array: unknown, min: number) { + arrayMinSize(array: unknown, min: number): boolean { return array instanceof Array && array.length >= min; } @@ -964,7 +915,7 @@ export class Validator { * Checks if array's length is as maximal this number. * If null or undefined is given then this function returns false. */ - arrayMaxSize(array: unknown, max: number) { + arrayMaxSize(array: unknown, max: number): boolean { return array instanceof Array && array.length <= max; } @@ -972,7 +923,7 @@ export class Validator { * Checks if all array's values are unique. Comparison for objects is reference-based. * If null or undefined is given then this function returns false. */ - arrayUnique(array: unknown) { + arrayUnique(array: unknown): boolean { if (!(array instanceof Array)) return false; @@ -983,10 +934,37 @@ export class Validator { /** * Checks if the value is an instance of the specified object. */ - isInstance(object: unknown, targetTypeConstructor: new (...args: any[]) => any) { + isInstance(object: unknown, targetTypeConstructor: new (...args: any[]) => any): boolean { return targetTypeConstructor && typeof targetTypeConstructor === "function" && object instanceof targetTypeConstructor; } + /** + * Performs validation of the given object based on decorators or validation schema. + * Common method for `validateOrReject` and `validate` methods. + */ + private coreValidate(objectOrSchemaName: Record|string, objectOrValidationOptions: Record|ValidationOptions, maybeValidatorOptions?: ValidatorOptions): Promise { + const object = typeof objectOrSchemaName === "string" ? objectOrValidationOptions as Record : objectOrSchemaName; + const options = typeof objectOrSchemaName === "string" ? maybeValidatorOptions : objectOrValidationOptions as ValidationOptions; + const schema = typeof objectOrSchemaName === "string" ? objectOrSchemaName : undefined; + + const executor = new ValidationExecutor(this, options); + const validationErrors: ValidationError[] = []; + executor.execute(object, schema, validationErrors); + + return Promise.all(executor.awaitingPromises).then(() => { + return executor.stripEmptyErrors(validationErrors); + }); + } + + private _isEmptyObject = function(object: object): boolean { + for (const key in object) { + if (object.hasOwnProperty(key)) { + return false; + } + } + + return true; + }; } diff --git a/test/functional/conditional-validation.spec.ts b/test/functional/conditional-validation.spec.ts index 92e8a32af2..9cfa057f91 100644 --- a/test/functional/conditional-validation.spec.ts +++ b/test/functional/conditional-validation.spec.ts @@ -1,26 +1,12 @@ -import "es6-shim"; import {IsNotEmpty, ValidateIf, IsOptional, Equals} from "../../src/decorator/decorators"; import {Validator} from "../../src/validation/Validator"; -import {ValidatorOptions} from "../../src/validation/ValidatorOptions"; -import {expect, should, use } from "chai"; - -import * as chaiAsPromised from "chai-as-promised"; - -should(); -use(chaiAsPromised); - -// ------------------------------------------------------------------------- -// Setup -// ------------------------------------------------------------------------- const validator = new Validator(); -// ------------------------------------------------------------------------- -// Specifications: common decorators -// ------------------------------------------------------------------------- - describe("conditional validation", function() { - it("shouldn't validate a property when the condition is false", function() { + it("shouldn't validate a property when the condition is false", () => { + expect.assertions(1); + class MyClass { @ValidateIf(o => false) @IsNotEmpty() @@ -29,11 +15,13 @@ describe("conditional validation", function() { const model = new MyClass(); return validator.validate(model).then(errors => { - errors.length.should.be.equal(0); + expect(errors.length).toEqual(0); }); }); - it("should validate a property when the condition is true", function() { + it("should validate a property when the condition is true", () => { + expect.assertions(5); + class MyClass { @ValidateIf(o => true) @IsNotEmpty() @@ -42,19 +30,21 @@ describe("conditional validation", function() { const model = new MyClass(); return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("title"); - errors[0].constraints.should.be.eql({ isNotEmpty: "title should not be empty" }); - errors[0].value.should.be.equal(""); + expect(errors.length).toEqual(1); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("title"); + expect(errors[0].constraints).toEqual({ isNotEmpty: "title should not be empty" }); + expect(errors[0].value).toEqual(""); }); }); it("should pass the object being validated to the condition function", function() { + expect.assertions(3); + class MyClass { @ValidateIf(o => { - expect(o).to.be.instanceOf(MyClass); - expect(o.title).to.equal("title"); + expect(o).toBeInstanceOf(MyClass); + expect(o.title).toEqual("title"); return true; }) @IsNotEmpty() @@ -63,11 +53,13 @@ describe("conditional validation", function() { const model = new MyClass(); return validator.validate(model).then(errors => { - errors.length.should.be.equal(0); + expect(errors.length).toEqual(0); }); }); - it("should validate a property when value is empty", function () { + it("should validate a property when value is empty", () => { + expect.assertions(5); + class MyClass { @IsOptional() @Equals("test") @@ -76,15 +68,15 @@ describe("conditional validation", function() { const model = new MyClass(); return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("title"); - errors[0].constraints.should.be.eql({ equals: "title must be equal to test" }); - errors[0].value.should.be.equal(""); + expect(errors.length).toEqual(1); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("title"); + expect(errors[0].constraints).toEqual({ equals: "title must be equal to test" }); + expect(errors[0].value).toEqual(""); }); }); - it("should validate a property when value is supplied", function () { + it("should validate a property when value is supplied", () => { class MyClass { @IsOptional() @Equals("test") @@ -93,11 +85,11 @@ describe("conditional validation", function() { const model = new MyClass(); return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("title"); - errors[0].constraints.should.be.eql({ equals: "title must be equal to test" }); - errors[0].value.should.be.equal("bad_value"); + expect(errors.length).toEqual(1); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("title"); + expect(errors[0].constraints).toEqual({ equals: "title must be equal to test" }); + expect(errors[0].value).toEqual("bad_value"); }); }); }); diff --git a/test/functional/custom-decorators.spec.ts b/test/functional/custom-decorators.spec.ts index 4a4fb02fb1..553f010274 100644 --- a/test/functional/custom-decorators.spec.ts +++ b/test/functional/custom-decorators.spec.ts @@ -1,4 +1,3 @@ -import "es6-shim"; import {Validator} from "../../src/validation/Validator"; import {ValidationArguments} from "../../src/validation/ValidationArguments"; import {registerDecorator} from "../../src/register-decorator"; @@ -6,256 +5,237 @@ import {ValidationOptions} from "../../src/decorator/ValidationOptions"; import {ValidatorConstraint} from "../../src/decorator/decorators"; import {ValidatorConstraintInterface} from "../../src/validation/ValidatorConstraintInterface"; -import {should, use } from "chai"; - -import * as chaiAsPromised from "chai-as-promised"; - -should(); -use(chaiAsPromised); - -// ------------------------------------------------------------------------- -// Setup -// ------------------------------------------------------------------------- - const validator = new Validator(); -// ------------------------------------------------------------------------- -// Specifications: common decorators -// ------------------------------------------------------------------------- - -describe("custom decorators", function() { - - describe("decorator with inline validation", function() { - - function IsLongerThan(property: string, validationOptions?: ValidationOptions) { - return function (object: Object, propertyName: string) { - registerDecorator({ - target: object.constructor, - propertyName: propertyName, - options: validationOptions, - constraints: [property], - name: "isLongerThan", - validator: { - validate(value: any, args: ValidationArguments) { - const [relatedPropertyName] = args.constraints; - const relatedValue = (args.object as any)[relatedPropertyName]; - if (relatedValue === undefined || relatedValue === null) - return true; - - const result = typeof value === "string" && - typeof relatedValue === "string" && - value.length > relatedValue.length; - - const asPromise = validationOptions && - validationOptions.context && - validationOptions.context.promise; - - return asPromise ? Promise.resolve(result) : result; +describe("decorator with inline validation", () => { + function IsLongerThan(property: string, validationOptions?: ValidationOptions) { + return function(object: Record, propertyName: string): void { + registerDecorator({ + target: object.constructor, + propertyName: propertyName, + options: validationOptions, + constraints: [property], + name: "isLongerThan", + validator: { + validate(value: any, args: ValidationArguments): Promise | boolean { + const [relatedPropertyName] = args.constraints; + const relatedValue = (args.object as any)[relatedPropertyName]; + if (relatedValue === undefined || relatedValue === null) { + return true; } - } - }); - }; - } - - class MyClass { - @IsLongerThan("lastName", { - context: { foo: "bar"}, - message: "$property must be longer then $constraint1. Given value: $value" - }) - firstName: string; - - lastName: string; - } - class MyClassWithAsyncValidator { - @IsLongerThan("lastName", { - context: { foo: "bar", promise: true}, - message: "$property must be longer then $constraint1. Given value: $value" - }) - firstName: string; + const result = typeof value === "string" && + typeof relatedValue === "string" && + value.length > relatedValue.length; - lastName: string; - } + const asPromise = validationOptions && + validationOptions.context && + validationOptions.context.promise; - it("if firstName is not empty and lastLame is empty then it should succeed", function() { - const model = new MyClass(); - model.firstName = "hell no world"; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(0); + return asPromise ? Promise.resolve(result) : result; + } + } }); + }; + } + + class MyClass { + @IsLongerThan("lastName", { + context: {foo: "bar"}, + message: "$property must be longer then $constraint1. Given value: $value" + }) + firstName: string; + lastName: string; + } + + class MyClassWithAsyncValidator { + @IsLongerThan("lastName", { + context: {foo: "bar", promise: true}, + message: "$property must be longer then $constraint1. Given value: $value" + }) + firstName: string; + lastName: string; + } + + it("if firstName is not empty and lastLame is empty then it should succeed", () => { + expect.assertions(1); + const model = new MyClass(); + model.firstName = "hell no world"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(0); }); + }); - it("if firstName is empty and lastLame is not empty then it should fail", function() { - const model = new MyClass(); - model.firstName = ""; - model.lastName = "Kim"; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ isLongerThan: "firstName must be longer then lastName. Given value: " }); - }); + it("if firstName is empty and lastLame is not empty then it should fail", () => { + expect.assertions(2); + const model = new MyClass(); + model.firstName = ""; + model.lastName = "Kim"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({isLongerThan: "firstName must be longer then lastName. Given value: "}); }); + }); - it("if firstName is shorter then lastLame then it should fail", function() { - const model = new MyClass(); - model.firstName = "Li"; - model.lastName = "Kim"; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ isLongerThan: "firstName must be longer then lastName. Given value: Li" }); - }); + it("if firstName is shorter then lastLame then it should fail", () => { + expect.assertions(2); + const model = new MyClass(); + model.firstName = "Li"; + model.lastName = "Kim"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({isLongerThan: "firstName must be longer then lastName. Given value: Li"}); }); + }); - it("should include context", function() { - const model = new MyClass(); - const asyncModel = new MyClassWithAsyncValidator(); - model.firstName = asyncModel.firstName = "Paul"; - model.lastName = asyncModel.lastName = "Walker"; - - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].contexts.should.be.eql({ isLongerThan: { foo: "bar" } }); - - return validator.validate(asyncModel).then(errors => { - errors.length.should.be.equal(1); - errors[0].contexts.should.have.nested.property("isLongerThan.foo", "bar"); - }); + it("should include context", () => { + expect.assertions(4); + const model = new MyClass(); + const asyncModel = new MyClassWithAsyncValidator(); + model.firstName = asyncModel.firstName = "Paul"; + model.lastName = asyncModel.lastName = "Walker"; + + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].contexts).toEqual({isLongerThan: {foo: "bar"}}); + return validator.validate(asyncModel).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].contexts).toHaveProperty("isLongerThan.foo", "bar"); }); }); }); +}); - describe("decorator with default message", function() { - - function IsLonger(property: string, validationOptions?: ValidationOptions) { - return function (object: Object, propertyName: string) { - registerDecorator({ - target: object.constructor, - propertyName: propertyName, - options: validationOptions, - constraints: [property], - name: "isLonger", - validator: { - validate(value: any, args: ValidationArguments) { - const [relatedPropertyName] = args.constraints; - const relatedValue = (args.object as any)[relatedPropertyName]; - if (relatedValue === undefined || relatedValue === null) - return true; - - return typeof value === "string" && - typeof relatedValue === "string" && - value.length > relatedValue.length; - }, - defaultMessage(args: ValidationArguments) { - return args.property + " must be longer then " + args.constraints[0]; - } +describe("decorator with default message", () => { + function IsLonger(property: string, validationOptions?: ValidationOptions) { + return function(object: Record, propertyName: string): void { + registerDecorator({ + target: object.constructor, + propertyName: propertyName, + options: validationOptions, + constraints: [property], + name: "isLonger", + validator: { + validate(value: any, args: ValidationArguments): boolean { + const [relatedPropertyName] = args.constraints; + const relatedValue = (args.object as any)[relatedPropertyName]; + if (relatedValue === undefined || relatedValue === null) + return true; + + return typeof value === "string" && + typeof relatedValue === "string" && + value.length > relatedValue.length; + }, + defaultMessage(args: ValidationArguments): string { + return args.property + " must be longer then " + args.constraints[0]; } - }); - }; - } - - class SecondClass { - @IsLonger("lastName") - firstName: string; - - lastName: string; - } - - it("if firstName is not empty and lastLame is empty then it should succeed", function() { - const model = new SecondClass(); - model.firstName = "hell no world"; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(0); + } }); + }; + } + + class SecondClass { + @IsLonger("lastName") + firstName: string; + lastName: string; + } + + it("if firstName is not empty and lastLame is empty then it should succeed", () => { + expect.assertions(1); + const model = new SecondClass(); + model.firstName = "hell no world"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(0); }); + }); - it("if firstName is empty and lastLame is not empty then it should fail", function() { - const model = new SecondClass(); - model.firstName = ""; - model.lastName = "Kim"; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ isLonger: "firstName must be longer then lastName" }); - }); + it("if firstName is empty and lastLame is not empty then it should fail", () => { + expect.assertions(2); + const model = new SecondClass(); + model.firstName = ""; + model.lastName = "Kim"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({isLonger: "firstName must be longer then lastName"}); }); + }); - it("if firstName is shorter then lastLame then it should fail", function() { - const model = new SecondClass(); - model.firstName = "Li"; - model.lastName = "Kim"; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ isLonger: "firstName must be longer then lastName" }); - }); + it("if firstName is shorter then lastLame then it should fail", () => { + expect.assertions(2); + const model = new SecondClass(); + model.firstName = "Li"; + model.lastName = "Kim"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({isLonger: "firstName must be longer then lastName"}); }); - }); +}); - describe("decorator with separate validation constraint class", function() { - - @ValidatorConstraint({ name: "isShortenThan" }) - class IsShortenThanConstraint implements ValidatorConstraintInterface { - - validate(value: any, args: ValidationArguments) { - const [relatedPropertyName] = args.constraints; - const relatedValue = (args.object as any)[relatedPropertyName]; - if (value === null || value === undefined) - return true; - - return typeof value === "string" && - typeof relatedValue === "string" && - value.length < relatedValue.length; - } - - } - - function IsShortenThan(property: string, validationOptions?: ValidationOptions) { - return function (object: Object, propertyName: string) { - registerDecorator({ - target: object.constructor, - propertyName: propertyName, - options: validationOptions, - constraints: [property], - validator: IsShortenThanConstraint - }); - }; - } - - class MyClass { - firstName: string; - - @IsShortenThan("firstName", { - message: "$property must be shorter then $constraint1. Given value: $value" - }) - lastName: string; +describe("decorator with separate validation constraint class", function () { + @ValidatorConstraint({name: "isShortenThan"}) + class IsShortenThanConstraint implements ValidatorConstraintInterface { + validate(value: any, args: ValidationArguments): boolean { + const [relatedPropertyName] = args.constraints; + const relatedValue = (args.object as any)[relatedPropertyName]; + if (value === null || value === undefined) + return true; + + return typeof value === "string" && + typeof relatedValue === "string" && + value.length < relatedValue.length; } - - it("if firstName is not empty and lastLame is empty then it should succeed", function() { - const model = new MyClass(); - model.firstName = "hell no world"; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(0); + } + + function IsShorterThan(property: string, validationOptions?: ValidationOptions) { + return function(object: Record, propertyName: string): void { + registerDecorator({ + target: object.constructor, + propertyName: propertyName, + options: validationOptions, + constraints: [property], + validator: IsShortenThanConstraint }); + }; + } + + class MyClass { + firstName: string; + + @IsShorterThan("firstName", { + message: "$property must be shorter then $constraint1. Given value: $value" + }) + lastName: string; + } + + it("if firstName is not empty and lastLame is empty then it should succeed", () => { + expect.assertions(1); + const model = new MyClass(); + model.firstName = "hell no world"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(0); }); + }); - it("if firstName is empty and lastLame is not empty then it should fail", function() { - const model = new MyClass(); - model.firstName = ""; - model.lastName = "Kim"; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ isShortenThan: "lastName must be shorter then firstName. Given value: Kim" }); - }); + it("if firstName is empty and lastLame is not empty then it should fail", () => { + expect.assertions(2); + const model = new MyClass(); + model.firstName = ""; + model.lastName = "Kim"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({isShortenThan: "lastName must be shorter then firstName. Given value: Kim"}); }); + }); - it("if firstName is shorter then lastLame then it should fail", function() { - const model = new MyClass(); - model.firstName = "Li"; - model.lastName = "Kim"; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ isShortenThan: "lastName must be shorter then firstName. Given value: Kim" }); - }); + it("if firstName is shorter then lastLame then it should fail", () => { + expect.assertions(2); + const model = new MyClass(); + model.firstName = "Li"; + model.lastName = "Kim"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({isShortenThan: "lastName must be shorter then firstName. Given value: Kim"}); }); - }); - }); diff --git a/test/functional/inherited-validation.spec.ts b/test/functional/inherited-validation.spec.ts index 23494b5c71..acc8aa79b4 100644 --- a/test/functional/inherited-validation.spec.ts +++ b/test/functional/inherited-validation.spec.ts @@ -1,27 +1,11 @@ -import "es6-shim"; import {Contains, MinLength} from "../../src/decorator/decorators"; import {Validator} from "../../src/validation/Validator"; -import {should, use } from "chai"; - -import * as chaiAsPromised from "chai-as-promised"; - -should(); -use(chaiAsPromised); - -// ------------------------------------------------------------------------- -// Setup -// ------------------------------------------------------------------------- - const validator = new Validator(); -// ------------------------------------------------------------------------- -// Specifications: common decorators -// ------------------------------------------------------------------------- - -describe("inherited validation", function() { - - it("should validate inherited properties", function() { +describe("inherited validation", () => { + it("should validate inherited properties", () => { + expect.assertions(9); class MyClass { @Contains("hello") @@ -37,20 +21,17 @@ describe("inherited validation", function() { model.title = "helo world"; model.name = "my"; return validator.validate(model).then(errors => { - errors.length.should.be.equal(2); - + expect(errors.length).toEqual(2); // subclass own props are validated first - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("name"); - errors[0].constraints.should.be.eql({ minLength: "name must be longer than or equal to 5 characters" }); - errors[0].value.should.be.equal("my"); - + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("name"); + expect(errors[0].constraints).toEqual({ minLength: "name must be longer than or equal to 5 characters" }); + expect(errors[0].value).toEqual("my"); // parent props are validated afterwards - errors[1].target.should.be.equal(model); - errors[1].property.should.be.equal("title"); - errors[1].constraints.should.be.eql({ contains: "title must contain a hello string" }); - errors[1].value.should.be.equal("helo world"); + expect(errors[1].target).toEqual(model); + expect(errors[1].property).toEqual("title"); + expect(errors[1].constraints).toEqual({ contains: "title must contain a hello string" }); + expect(errors[1].value).toEqual("helo world"); }); }); - -}); \ No newline at end of file +}); diff --git a/test/functional/nested-validation.spec.ts b/test/functional/nested-validation.spec.ts index e3b0cec7ad..6255e80cf7 100644 --- a/test/functional/nested-validation.spec.ts +++ b/test/functional/nested-validation.spec.ts @@ -1,29 +1,12 @@ -import "es6-shim"; import {Contains, IsDefined, MinLength, ValidateNested} from "../../src/decorator/decorators"; import {Validator} from "../../src/validation/Validator"; -import {expect} from "chai"; import {ValidationTypes} from "../../src/validation/ValidationTypes"; -import {should, use } from "chai"; - -import * as chaiAsPromised from "chai-as-promised"; - -should(); -use(chaiAsPromised); - -// ------------------------------------------------------------------------- -// Setup -// ------------------------------------------------------------------------- - const validator = new Validator(); -// ------------------------------------------------------------------------- -// Specifications: common decorators -// ------------------------------------------------------------------------- - -describe("nested validation", function () { - - it("should not validate missing nested objects", function () { +describe("nested validation", () => { + it("should not validate missing nested objects", () => { + expect.assertions(4); class MySubClass { @MinLength(5) @@ -38,19 +21,19 @@ describe("nested validation", function () { mySubClass: MySubClass; } - const model: any = new MyClass(); - + const model: MyClass = new MyClass(); model.title = "helo"; + return validator.validate(model).then(errors => { - errors[1].target.should.be.equal(model); - expect(errors[1].value).to.be.undefined; - errors[1].property.should.be.equal("mySubClass"); - errors[1].constraints.should.be.eql({isDefined: "mySubClass should not be null or undefined"}); + expect(errors[1].target).toEqual(model); + expect(errors[1].value).toBeUndefined(); + expect(errors[1].property).toEqual("mySubClass"); + expect(errors[1].constraints).toEqual({isDefined: "mySubClass should not be null or undefined"}); }); }); - - it("should validate nested objects", function () { + it("should validate nested objects", () => { + expect.assertions(55); class MySubClass { @MinLength(5) @@ -87,81 +70,81 @@ describe("nested validation", function () { model.mySubSubSubClasses[0][0][0].name = "sub"; return validator.validate(model).then(errors => { - errors.length.should.be.equal(5); + expect(errors.length).toEqual(5); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("title"); - errors[0].constraints.should.be.eql({contains: "title must contain a hello string"}); - errors[0].value.should.be.equal("helo world"); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("title"); + expect(errors[0].constraints).toEqual({contains: "title must contain a hello string"}); + expect(errors[0].value).toEqual("helo world"); - errors[1].target.should.be.equal(model); - errors[1].property.should.be.equal("mySubClass"); - errors[1].value.should.be.equal(model.mySubClass); - expect(errors[1].constraints).to.be.undefined; + expect(errors[1].target).toEqual(model); + expect(errors[1].property).toEqual("mySubClass"); + expect(errors[1].value).toEqual(model.mySubClass); + expect(errors[1].constraints).toBeUndefined(); const subError1 = errors[1].children[0]; - subError1.target.should.be.equal(model.mySubClass); - subError1.property.should.be.equal("name"); - subError1.constraints.should.be.eql({minLength: "name must be longer than or equal to 5 characters"}); - subError1.value.should.be.equal("my"); - - errors[2].target.should.be.equal(model); - errors[2].property.should.be.equal("mySubClasses"); - errors[2].value.should.be.equal(model.mySubClasses); - expect(errors[2].constraints).to.be.undefined; + expect(subError1.target).toEqual(model.mySubClass); + expect(subError1.property).toEqual("name"); + expect(subError1.constraints).toEqual({minLength: "name must be longer than or equal to 5 characters"}); + expect(subError1.value).toEqual("my"); + + expect(errors[2].target).toEqual(model); + expect(errors[2].property).toEqual("mySubClasses"); + expect(errors[2].value).toEqual(model.mySubClasses); + expect(errors[2].constraints).toBeUndefined(); const subError2 = errors[2].children[0]; - subError2.target.should.be.equal(model.mySubClasses); - subError2.value.should.be.equal(model.mySubClasses[0]); - subError2.property.should.be.equal("0"); + expect(subError2.target).toEqual(model.mySubClasses); + expect(subError2.value).toEqual(model.mySubClasses[0]); + expect(subError2.property).toEqual("0"); const subSubError = subError2.children[0]; - subSubError.target.should.be.equal(model.mySubClasses[0]); - subSubError.property.should.be.equal("name"); - subSubError.constraints.should.be.eql({minLength: "name must be longer than or equal to 5 characters"}); - subSubError.value.should.be.equal("my"); - - errors[3].target.should.be.equal(model); - errors[3].property.should.be.equal("mySubSubClasses"); - errors[3].value.should.be.equal(model.mySubSubClasses); - expect(errors[3].constraints).to.be.undefined; + expect(subSubError.target).toEqual(model.mySubClasses[0]); + expect(subSubError.property).toEqual("name"); + expect(subSubError.constraints).toEqual({minLength: "name must be longer than or equal to 5 characters"}); + expect(subSubError.value).toEqual("my"); + + expect(errors[3].target).toEqual(model); + expect(errors[3].property).toEqual("mySubSubClasses"); + expect(errors[3].value).toEqual(model.mySubSubClasses); + expect(errors[3].constraints).toBeUndefined(); const subError3 = errors[3].children[0]; - subError3.target.should.be.equal(model.mySubSubClasses); - subError3.value.should.be.equal(model.mySubSubClasses[0]); - subError3.property.should.be.equal("0"); + expect(subError3.target).toEqual(model.mySubSubClasses); + expect(subError3.value).toEqual(model.mySubSubClasses[0]); + expect(subError3.property).toEqual("0"); const subSubError3 = subError3.children[0]; - subSubError3.target.should.be.equal(model.mySubSubClasses[0]); - subSubError3.value.should.be.equal(model.mySubSubClasses[0][0]); - subSubError3.property.should.be.equal("0"); + expect(subSubError3.target).toEqual(model.mySubSubClasses[0]); + expect(subSubError3.value).toEqual(model.mySubSubClasses[0][0]); + expect(subSubError3.property).toEqual("0"); const subSubSubError3 = subSubError3.children[0]; - subSubSubError3.target.should.be.equal(model.mySubSubClasses[0][0]); - subSubSubError3.property.should.be.equal("name"); - subSubSubError3.constraints.should.be.eql({minLength: "name must be longer than or equal to 5 characters"}); - subSubSubError3.value.should.be.equal("sub"); - - - errors[4].target.should.be.equal(model); - errors[4].property.should.be.equal("mySubSubSubClasses"); - errors[4].value.should.be.equal(model.mySubSubSubClasses); - expect(errors[4].constraints).to.be.undefined; + expect(subSubSubError3.target).toEqual(model.mySubSubClasses[0][0]); + expect(subSubSubError3.property).toEqual("name"); + expect(subSubSubError3.constraints).toEqual({minLength: "name must be longer than or equal to 5 characters"}); + expect(subSubSubError3.value).toEqual("sub"); + + expect(errors[4].target).toEqual(model); + expect(errors[4].property).toEqual("mySubSubSubClasses"); + expect(errors[4].value).toEqual(model.mySubSubSubClasses); + expect(errors[4].constraints).toBeUndefined(); const subError4 = errors[4].children[0]; - subError4.target.should.be.equal(model.mySubSubSubClasses); - subError4.value.should.be.equal(model.mySubSubSubClasses[0]); - subError4.property.should.be.equal("0"); + expect(subError4.target).toEqual(model.mySubSubSubClasses); + expect(subError4.value).toEqual(model.mySubSubSubClasses[0]); + expect(subError4.property).toEqual("0"); const subSubError4 = subError4.children[0]; - subSubError4.target.should.be.equal(model.mySubSubSubClasses[0]); - subSubError4.value.should.be.equal(model.mySubSubSubClasses[0][0]); - subSubError4.property.should.be.equal("0"); + expect(subSubError4.target).toEqual(model.mySubSubSubClasses[0]); + expect(subSubError4.value).toEqual(model.mySubSubSubClasses[0][0]); + expect(subSubError4.property).toEqual("0"); const subSubSubError4 = subSubError4.children[0]; - subSubSubError4.target.should.be.equal(model.mySubSubSubClasses[0][0]); - subSubSubError4.value.should.be.equal(model.mySubSubSubClasses[0][0][0]); - subSubSubError4.property.should.be.equal("0"); + expect(subSubSubError4.target).toEqual(model.mySubSubSubClasses[0][0]); + expect(subSubSubError4.value).toEqual(model.mySubSubSubClasses[0][0][0]); + expect(subSubSubError4.property).toEqual("0"); const subSubSubSubError4 = subSubSubError4.children[0]; - subSubSubSubError4.target.should.be.equal(model.mySubSubSubClasses[0][0][0]); - subSubSubSubError4.property.should.be.equal("name"); - subSubSubSubError4.constraints.should.be.eql({minLength: "name must be longer than or equal to 5 characters"}); - subSubSubSubError4.value.should.be.equal("sub"); + expect(subSubSubSubError4.target).toEqual(model.mySubSubSubClasses[0][0][0]); + expect(subSubSubSubError4.property).toEqual("name"); + expect(subSubSubSubError4.constraints).toEqual({minLength: "name must be longer than or equal to 5 characters"}); + expect(subSubSubSubError4.value).toEqual("sub"); }); }); it("should validate when nested is not object", () => { + expect.assertions(4); class MySubClass { @MinLength(5) @@ -171,25 +154,23 @@ describe("nested validation", function () { class MyClass { @ValidateNested() mySubClass: MySubClass; - } const model = new MyClass(); - model.mySubClass = "invalidnested object"; + model.mySubClass = "invalidnested object" as any; return validator.validate(model).then(errors => { - - expect(errors[0].target).to.equal(model); - expect(errors[0].property).to.equal("mySubClass"); - expect(errors[0].children.length).to.equal(1); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("mySubClass"); + expect(errors[0].children.length).toEqual(1); const subError = errors[0].children[0]; - subError.constraints.should.be.eql({[ValidationTypes.NESTED_VALIDATION]: "nested property mySubClass must be either object or array"}); + expect(subError.constraints).toEqual({[ValidationTypes.NESTED_VALIDATION]: "nested property mySubClass must be either object or array"}); }); - }); it("should validate nested set", () => { + expect.assertions(24); class MySubClass { @MinLength(5) @@ -222,41 +203,41 @@ describe("nested validation", function () { model.mySubClasses.add(submodel2); return validator.validate(model).then(errors => { - errors.length.should.be.equal(3); + expect(errors.length).toEqual(3); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("title"); - errors[0].constraints.should.be.eql({contains: "title must contain a hello string"}); - errors[0].value.should.be.equal("helo world"); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("title"); + expect(errors[0].constraints).toEqual({contains: "title must contain a hello string"}); + expect(errors[0].value).toEqual("helo world"); - errors[1].target.should.be.equal(model); - errors[1].property.should.be.equal("mySubClass"); - errors[1].value.should.be.equal(model.mySubClass); - expect(errors[1].constraints).to.be.undefined; + expect(errors[1].target).toEqual(model); + expect(errors[1].property).toEqual("mySubClass"); + expect(errors[1].value).toEqual(model.mySubClass); + expect(errors[1].constraints).toBeUndefined(); const subError1 = errors[1].children[0]; - subError1.target.should.be.equal(model.mySubClass); - subError1.property.should.be.equal("name"); - subError1.constraints.should.be.eql({minLength: "name must be longer than or equal to 5 characters"}); - subError1.value.should.be.equal("my"); - - errors[2].target.should.be.equal(model); - errors[2].property.should.be.equal("mySubClasses"); - errors[2].value.should.be.equal(model.mySubClasses); - expect(errors[2].constraints).to.be.undefined; + expect(subError1.target).toEqual(model.mySubClass); + expect(subError1.property).toEqual("name"); + expect(subError1.constraints).toEqual({minLength: "name must be longer than or equal to 5 characters"}); + expect(subError1.value).toEqual("my"); + + expect(errors[2].target).toEqual(model); + expect(errors[2].property).toEqual("mySubClasses"); + expect(errors[2].value).toEqual(model.mySubClasses); + expect(errors[2].constraints).toBeUndefined(); const subError2 = errors[2].children[0]; - subError2.target.should.be.equal(model.mySubClasses); - subError2.value.should.be.equal(submodel1); - subError2.property.should.be.equal("0"); + expect(subError2.target).toEqual(model.mySubClasses); + expect(subError2.value).toEqual(submodel1); + expect(subError2.property).toEqual("0"); const subSubError = subError2.children[0]; - subSubError.target.should.be.equal(submodel1); - subSubError.property.should.be.equal("name"); - subSubError.constraints.should.be.eql({minLength: "name must be longer than or equal to 5 characters"}); - subSubError.value.should.be.equal("my"); + expect(subSubError.target).toEqual(submodel1); + expect(subSubError.property).toEqual("name"); + expect(subSubError.constraints).toEqual({minLength: "name must be longer than or equal to 5 characters"}); + expect(subSubError.value).toEqual("my"); }); - }); it("should validate nested map", () => { + expect.assertions(24); class MySubClass { @MinLength(5) @@ -289,38 +270,36 @@ describe("nested validation", function () { model.mySubClasses.set("key2", submodel2); return validator.validate(model).then(errors => { - errors.length.should.be.equal(3); + expect(errors.length).toEqual(3); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("title"); - errors[0].constraints.should.be.eql({contains: "title must contain a hello string"}); - errors[0].value.should.be.equal("helo world"); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("title"); + expect(errors[0].constraints).toEqual({contains: "title must contain a hello string"}); + expect(errors[0].value).toEqual("helo world"); - errors[1].target.should.be.equal(model); - errors[1].property.should.be.equal("mySubClass"); - errors[1].value.should.be.equal(model.mySubClass); - expect(errors[1].constraints).to.be.undefined; + expect(errors[1].target).toEqual(model); + expect(errors[1].property).toEqual("mySubClass"); + expect(errors[1].value).toEqual(model.mySubClass); + expect(errors[1].constraints).toBeUndefined(); const subError1 = errors[1].children[0]; - subError1.target.should.be.equal(model.mySubClass); - subError1.property.should.be.equal("name"); - subError1.constraints.should.be.eql({minLength: "name must be longer than or equal to 5 characters"}); - subError1.value.should.be.equal("my"); - - errors[2].target.should.be.equal(model); - errors[2].property.should.be.equal("mySubClasses"); - errors[2].value.should.be.equal(model.mySubClasses); - expect(errors[2].constraints).to.be.undefined; + expect(subError1.target).toEqual(model.mySubClass); + expect(subError1.property).toEqual("name"); + expect(subError1.constraints).toEqual({minLength: "name must be longer than or equal to 5 characters"}); + expect(subError1.value).toEqual("my"); + + expect(errors[2].target).toEqual(model); + expect(errors[2].property).toEqual("mySubClasses"); + expect(errors[2].value).toEqual(model.mySubClasses); + expect(errors[2].constraints).toBeUndefined(); const subError2 = errors[2].children[0]; - subError2.target.should.be.equal(model.mySubClasses); - subError2.value.should.be.equal(submodel1); - subError2.property.should.be.equal("key1"); + expect(subError2.target).toEqual(model.mySubClasses); + expect(subError2.value).toEqual(submodel1); + expect(subError2.property).toEqual("key1"); const subSubError = subError2.children[0]; - subSubError.target.should.be.equal(submodel1); - subSubError.property.should.be.equal("name"); - subSubError.constraints.should.be.eql({minLength: "name must be longer than or equal to 5 characters"}); - subSubError.value.should.be.equal("my"); + expect(subSubError.target).toEqual(submodel1); + expect(subSubError.property).toEqual("name"); + expect(subSubError.constraints).toEqual({minLength: "name must be longer than or equal to 5 characters"}); + expect(subSubError.value).toEqual("my"); }); - }); - }); diff --git a/test/functional/promise-validation.spec.ts b/test/functional/promise-validation.spec.ts index a132f8b8dc..291f92aa1a 100644 --- a/test/functional/promise-validation.spec.ts +++ b/test/functional/promise-validation.spec.ts @@ -1,29 +1,12 @@ -import "es6-shim"; -import {Contains, IsDefined, MinLength, ValidateNested, ValidatePromise, MaxLength} from "../../src/decorator/decorators"; +import {Contains, IsDefined, MinLength, ValidateNested, ValidatePromise} from "../../src/decorator/decorators"; import {Validator} from "../../src/validation/Validator"; -import {expect} from "chai"; import {ValidationTypes} from "../../src/validation/ValidationTypes"; -import {should, use } from "chai"; - -import * as chaiAsPromised from "chai-as-promised"; - -should(); -use(chaiAsPromised); - -// ------------------------------------------------------------------------- -// Setup -// ------------------------------------------------------------------------- - const validator = new Validator(); -// ------------------------------------------------------------------------- -// Specifications: common decorators -// ------------------------------------------------------------------------- - -describe("promise validation", function () { - +describe("promise validation", () => { it("should not validate missing nested objects", function () { + expect.assertions(4); class MySubClass { @MinLength(5) @@ -39,18 +22,18 @@ describe("promise validation", function () { } const model: any = new MyClass(); - model.title = "helo"; + return validator.validate(model).then(errors => { - errors[1].target.should.be.equal(model); - expect(errors[1].value).to.be.undefined; - errors[1].property.should.be.equal("mySubClass"); - errors[1].constraints.should.be.eql({isDefined: "mySubClass should not be null or undefined"}); + expect(errors[1].target).toEqual(model); + expect(errors[1].value).toBeUndefined(); + expect(errors[1].property).toEqual("mySubClass"); + expect(errors[1].constraints).toEqual({isDefined: "mySubClass should not be null or undefined"}); }); }); - - it("should validate nested objects", function () { + it("should validate nested objects", () => { + expect.assertions(24); class MySubClass { @MinLength(5) @@ -82,41 +65,42 @@ describe("promise validation", function () { model.mySubClass, model.mySubClasses ]).then(([modelMySubClass, modelMySubClasses]) => { - errors.length.should.be.equal(3); + expect(errors.length).toEqual(3); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("title"); - errors[0].constraints.should.be.eql({contains: "title must contain a hello string"}); - errors[0].value.should.be.equal("helo world"); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("title"); + expect(errors[0].constraints).toEqual({contains: "title must contain a hello string"}); + expect(errors[0].value).toEqual("helo world"); - errors[1].target.should.be.equal(model); - errors[1].property.should.be.equal("mySubClass"); - errors[1].value.should.be.equal(modelMySubClass); - expect(errors[1].constraints).to.be.undefined; + expect(errors[1].target).toEqual(model); + expect(errors[1].property).toEqual("mySubClass"); + expect(errors[1].value).toEqual(modelMySubClass); + expect(errors[1].constraints).toBeUndefined(); const subError1 = errors[1].children[0]; - subError1.target.should.be.equal(modelMySubClass); - subError1.property.should.be.equal("name"); - subError1.constraints.should.be.eql({minLength: "name must be longer than or equal to 5 characters"}); - subError1.value.should.be.equal("my"); - - errors[2].target.should.be.equal(model); - errors[2].property.should.be.equal("mySubClasses"); - errors[2].value.should.be.equal(modelMySubClasses); - expect(errors[2].constraints).to.be.undefined; + expect(subError1.target).toEqual(modelMySubClass); + expect(subError1.property).toEqual("name"); + expect(subError1.constraints).toEqual({minLength: "name must be longer than or equal to 5 characters"}); + expect(subError1.value).toEqual("my"); + + expect(errors[2].target).toEqual(model); + expect(errors[2].property).toEqual("mySubClasses"); + expect(errors[2].value).toEqual(modelMySubClasses); + expect(errors[2].constraints).toBeUndefined(); const subError2 = errors[2].children[0]; - subError2.target.should.be.equal(modelMySubClasses); - subError2.value.should.be.equal(modelMySubClasses[0]); - subError2.property.should.be.equal("0"); + expect(subError2.target).toEqual(modelMySubClasses); + expect(subError2.value).toEqual(modelMySubClasses[0]); + expect(subError2.property).toEqual("0"); const subSubError = subError2.children[0]; - subSubError.target.should.be.equal(modelMySubClasses[0]); - subSubError.property.should.be.equal("name"); - subSubError.constraints.should.be.eql({minLength: "name must be longer than or equal to 5 characters"}); - subSubError.value.should.be.equal("my"); + expect(subSubError.target).toEqual(modelMySubClasses[0]); + expect(subSubError.property).toEqual("name"); + expect(subSubError.constraints).toEqual({minLength: "name must be longer than or equal to 5 characters"}); + expect(subSubError.value).toEqual("my"); }); }); }); it("should validate when nested is not object", () => { + expect.assertions(4); class MySubClass { @MinLength(5) @@ -130,21 +114,20 @@ describe("promise validation", function () { } const model = new MyClass(); - model.mySubClass = "invalidnested object"; + model.mySubClass = "invalidnested object" as any; return validator.validate(model).then(errors => { - - expect(errors[0].target).to.equal(model); - expect(errors[0].property).to.equal("mySubClass"); - expect(errors[0].children.length).to.equal(1); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("mySubClass"); + expect(errors[0].children.length).toEqual(1); const subError = errors[0].children[0]; - subError.constraints.should.be.eql({[ValidationTypes.NESTED_VALIDATION]: "nested property mySubClass must be either object or array"}); + expect(subError.constraints).toEqual({[ValidationTypes.NESTED_VALIDATION]: "nested property mySubClass must be either object or array"}); }); - }); - it("should validate array promise", function () { + it("should validate array promise", () => { + expect.assertions(5); class MyClass { @ValidatePromise() @MinLength(2) @@ -158,12 +141,12 @@ describe("promise validation", function () { return Promise.all([ model.arrProperty, ]).then(([modelArrProperty]) => { - errors.length.should.be.equal(1); + expect(errors.length).toEqual(1); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("arrProperty"); - errors[0].constraints.should.be.eql({minLength: "arrProperty must be longer than or equal to 2 characters"}); - errors[0].value.should.be.equal(modelArrProperty); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("arrProperty"); + expect(errors[0].constraints).toEqual({minLength: "arrProperty must be longer than or equal to 2 characters"}); + expect(errors[0].value).toEqual(modelArrProperty); }); }); }); diff --git a/test/functional/reject-validation.spec.ts b/test/functional/reject-validation.spec.ts index b3d35a5a5d..9794851997 100644 --- a/test/functional/reject-validation.spec.ts +++ b/test/functional/reject-validation.spec.ts @@ -1,16 +1,6 @@ -import "es6-shim"; - -import { ValidationError } from "./../../src/validation/ValidationError"; -import { Contains, MinLength } from "../../src/decorator/decorators"; -import { Validator } from "../../src/validation/Validator"; -import { expect } from "chai"; - -import {should, use } from "chai"; - -import * as chaiAsPromised from "chai-as-promised"; - -should(); -use(chaiAsPromised); +import {ValidationError} from "./../../src/validation/ValidationError"; +import {Contains} from "../../src/decorator/decorators"; +import {Validator} from "../../src/validation/Validator"; class MyClass { @Contains("hello", { @@ -28,28 +18,22 @@ describe("validateOrReject()", () => { model = new MyClass(); }); - it("should resolve promise when no error", (done) => { + it("should resolve promise when no error", () => { + expect.assertions(1); model.someProperty = "hello world"; - validator.validateOrReject(model) - .then((args) => { - expect(args).to.not.exist; - done(); - }) - .catch((errors) => { - done("should resolve promise"); - }); + return validator.validateOrReject(model) + .then((args) => { + expect(args).toBeUndefined(); + }); }); - it("should reject promise on error", (done) => { + it("should reject promise on error", () => { + expect.assertions(2); model.someProperty = "hell no world"; - validator.validateOrReject(model) - .then(() => { - done("should reject promise"); - }) - .catch((errors: ValidationError[]) => { - expect(errors).to.have.lengthOf(1); - expect(errors[0].constraints).to.deep.equal({ contains: "hell no world is not valid. Your string must contain a hello word" }); - done(); - }); + return validator.validateOrReject(model) + .catch((errors: ValidationError[]) => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({contains: "hell no world is not valid. Your string must contain a hello word"}); + }); }); }); diff --git a/test/functional/sync-validation.spec.ts b/test/functional/sync-validation.spec.ts new file mode 100644 index 0000000000..76f856080d --- /dev/null +++ b/test/functional/sync-validation.spec.ts @@ -0,0 +1,70 @@ +import {Validator} from "../../src/validation/Validator"; +import {ValidationArguments} from "../../src/validation/ValidationArguments"; +import {registerDecorator} from "../../src/register-decorator"; +import {ValidationOptions} from "../../src/decorator/ValidationOptions"; +import {ValidatorConstraint, Validate, IsNotEmpty} from "../../src/decorator/decorators"; +import {ValidatorConstraintInterface} from "../../src/validation/ValidatorConstraintInterface"; + +const validator = new Validator(); + +describe("sync validation should ignore async validation constraints", () => { + @ValidatorConstraint({name: "isShortenThan", async: true}) + class IsShortenThanConstraint implements ValidatorConstraintInterface { + validate(value: any, args: ValidationArguments): Promise { + return Promise.resolve(false); + } + } + + function IsLonger(property: string, validationOptions?: ValidationOptions) { + return function(object: Record, propertyName: string): void { + registerDecorator({ + target: object.constructor, + propertyName: propertyName, + options: validationOptions, + constraints: [property], + async: true, + name: "isLonger", + validator: { + validate(value: any, args: ValidationArguments): Promise { + return Promise.resolve(false); + } + } + }); + }; + } + + class SecondClass { + @IsLonger("lastName") + firstName: string; + + @Validate(IsShortenThanConstraint) + lastName: string; + + @IsNotEmpty({message: "name should not be empty"}) + name: string; + + @IsNotEmpty() + alwaysWithValue: string = "this field always has a value"; + } + + it("should ignore async validations and validate only sync validation types", () => { + expect.assertions(1); + const model = new SecondClass(); + model.firstName = "such validation may lead"; + model.firstName = "to recursion"; + model.name = "Umed"; + const errors = validator.validateSync(model); + expect(errors.length).toEqual(0); + }); + + it("should ignore async validations and validate only sync validation types", () => { + expect.assertions(2); + const model = new SecondClass(); + model.firstName = "such validation may lead"; + model.firstName = "to recursion"; + model.name = ""; + const errors = validator.validateSync(model); + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({isNotEmpty: "name should not be empty"}); + }); +}); diff --git a/test/functional/sync-validation.ts b/test/functional/sync-validation.ts deleted file mode 100644 index 04ca5a1f02..0000000000 --- a/test/functional/sync-validation.ts +++ /dev/null @@ -1,92 +0,0 @@ -import "es6-shim"; -import {Validator} from "../../src/validation/Validator"; -import {ValidationArguments} from "../../src/validation/ValidationArguments"; -import {registerDecorator} from "../../src/register-decorator"; -import {ValidationOptions} from "../../src/decorator/ValidationOptions"; -import {ValidatorConstraint, Validate, IsNotEmpty} from "../../src/decorator/decorators"; -import {ValidatorConstraintInterface} from "../../src/validation/ValidatorConstraintInterface"; - -import {should, use } from "chai"; - -import * as chaiAsPromised from "chai-as-promised"; - -should(); -use(chaiAsPromised); - -// ------------------------------------------------------------------------- -// Setup -// ------------------------------------------------------------------------- - -const validator = new Validator(); - -// ------------------------------------------------------------------------- -// Specifications: common decorators -// ------------------------------------------------------------------------- - -describe("sync validation", function() { - - describe("sync validation should ignore async validation constraints", function() { - - @ValidatorConstraint({ name: "isShortenThan", async: true }) - class IsShortenThanConstraint implements ValidatorConstraintInterface { - - validate(value: any, args: ValidationArguments) { - return Promise.resolve(false); - } - - } - - function IsLonger(property: string, validationOptions?: ValidationOptions) { - return function (object: Object, propertyName: string) { - registerDecorator({ - target: object.constructor, - propertyName: propertyName, - options: validationOptions, - constraints: [property], - async: true, - name: "isLonger", - validator: { - validate(value: any, args: ValidationArguments) { - return Promise.resolve(false); - } - } - }); - }; - } - - class SecondClass { - @IsLonger("lastName") - firstName: string; - - @Validate(IsShortenThanConstraint) - lastName: string; - - @IsNotEmpty({ message: "name should not be empty" }) - name: string; - - @IsNotEmpty() - alwaysWithValue: string = "this field always has a value"; - } - - it("should ignore async validations and validate only sync validation types", function() { - const model = new SecondClass(); - model.firstName = "such validation may lead"; - model.firstName = "to recursion"; - model.name = "Umed"; - const errors = validator.validateSync(model); - errors.length.should.be.equal(0); - }); - - it("should ignore async validations and validate only sync validation types", function() { - const model = new SecondClass(); - model.firstName = "such validation may lead"; - model.firstName = "to recursion"; - model.name = ""; - const errors = validator.validateSync(model); - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ isNotEmpty: "name should not be empty" }); - }); - - }); - -}); diff --git a/test/functional/validation-error.spec.ts b/test/functional/validation-error.spec.ts index ab4520cb42..87d56eb767 100644 --- a/test/functional/validation-error.spec.ts +++ b/test/functional/validation-error.spec.ts @@ -1,18 +1,5 @@ -import "es6-shim"; -import { IsNotEmpty, IsString, IsUrl, IsOptional, ValidateNested, MinLength } from "../../src/decorator/decorators"; -import { Validator } from "../../src/validation/Validator"; -import { expect } from "chai"; - -import {should, use } from "chai"; - -import * as chaiAsPromised from "chai-as-promised"; - -should(); -use(chaiAsPromised); - -// ------------------------------------------------------------------------- -// Setup -// ------------------------------------------------------------------------- +import {IsString, IsUrl, IsOptional, ValidateNested, MinLength} from "../../src/decorator/decorators"; +import {Validator} from "../../src/validation/Validator"; const validator = new Validator(); @@ -23,61 +10,56 @@ const validator = new Validator(); * - testing arrays * - testing color codes? */ -describe("ValidationError", function () { - it("should correctly log error message without ANSI escape codes", async function () { - class NestedClass { - - @IsString() - public name: string; - - @IsUrl() - public url: string; - - @IsOptional() - @ValidateNested() - public insideNested: NestedClass; - - constructor(url: string, name: any, insideNested?: NestedClass) { - this.url = url; - this.name = name; - this.insideNested = insideNested; - } - - } - class RootClass { - @IsString() - @MinLength(15) - public title: string; - - @ValidateNested() - public nestedObj: NestedClass; - - @ValidateNested({ each: true }) - public nestedArr: NestedClass[]; - - constructor() { - this.title = (5 as any); - this.nestedObj = new NestedClass("invalid-url", 5, new NestedClass("invalid-url", 5)); - this.nestedArr = [new NestedClass("invalid-url", 5), new NestedClass("invalid-url", 5)]; - } - } - - const validationErrors = await validator.validate(new RootClass()); - - validationErrors[0].toString().should.be.equal("An instance of RootClass has failed the validation:\n" + - " - property title has failed the following constraints: minLength, isString \n"); - - validationErrors[1].toString().should.be.equal("An instance of RootClass has failed the validation:\n" + - " - property nestedObj.name has failed the following constraints: isString \n" + - " - property nestedObj.url has failed the following constraints: isUrl \n" + - " - property nestedObj.insideNested.name has failed the following constraints: isString \n" + - " - property nestedObj.insideNested.url has failed the following constraints: isUrl \n"); - - validationErrors[2].toString().should.be.equal("An instance of RootClass has failed the validation:\n" + - " - property nestedArr[0].name has failed the following constraints: isString \n" + - " - property nestedArr[0].url has failed the following constraints: isUrl \n" + - " - property nestedArr[1].name has failed the following constraints: isString \n" + - " - property nestedArr[1].url has failed the following constraints: isUrl \n"); - }); - +describe("ValidationError", function () { + it("should correctly log error message without ANSI escape codes", async () => { + class NestedClass { + @IsString() + public name: string; + + @IsUrl() + public url: string; + + @IsOptional() + @ValidateNested() + public insideNested: NestedClass; + + constructor(url: string, name: any, insideNested?: NestedClass) { + this.url = url; + this.name = name; + this.insideNested = insideNested; + } + } + + class RootClass { + @IsString() + @MinLength(15) + public title: string; + + @ValidateNested() + public nestedObj: NestedClass; + + @ValidateNested({each: true}) + public nestedArr: NestedClass[]; + + constructor() { + this.title = (5 as any); + this.nestedObj = new NestedClass("invalid-url", 5, new NestedClass("invalid-url", 5)); + this.nestedArr = [new NestedClass("invalid-url", 5), new NestedClass("invalid-url", 5)]; + } + } + + const validationErrors = await validator.validate(new RootClass()); + expect(validationErrors[0].toString()).toEqual("An instance of RootClass has failed the validation:\n" + + " - property title has failed the following constraints: minLength, isString \n"); + expect(validationErrors[1].toString()).toEqual("An instance of RootClass has failed the validation:\n" + + " - property nestedObj.name has failed the following constraints: isString \n" + + " - property nestedObj.url has failed the following constraints: isUrl \n" + + " - property nestedObj.insideNested.name has failed the following constraints: isString \n" + + " - property nestedObj.insideNested.url has failed the following constraints: isUrl \n"); + expect(validationErrors[2].toString()).toEqual("An instance of RootClass has failed the validation:\n" + + " - property nestedArr[0].name has failed the following constraints: isString \n" + + " - property nestedArr[0].url has failed the following constraints: isUrl \n" + + " - property nestedArr[1].name has failed the following constraints: isString \n" + + " - property nestedArr[1].url has failed the following constraints: isUrl \n"); + }); }); diff --git a/test/functional/validation-functions-and-decorators.spec.ts b/test/functional/validation-functions-and-decorators.spec.ts index 58e84b900a..84e189bac4 100644 --- a/test/functional/validation-functions-and-decorators.spec.ts +++ b/test/functional/validation-functions-and-decorators.spec.ts @@ -1,155 +1,71 @@ -import "es6-shim"; -import {expect} from "chai"; -import { - IsBooleanString, - IsPositive, - IsLatLong, - IsLongitude, - IsLatitude, - IsNegative, - Contains, - Equals, - MinDate, - MaxDate, - IsAlpha, - IsAlphanumeric, - IsAscii, - IsDecimal, - IsBase64, - IsBoolean, - IsByteLength, - IsCreditCard, - IsCurrency, - IsDate, - IsDivisibleBy, - IsEmail, - IsEnum, - IsFQDN, - IsFullWidth, - IsHalfWidth, - IsVariableWidth, - IsHexColor, - IsHexadecimal, - IsIP, - IsISBN, - IsISO8601, - IsIn, - IsInt, - IsJSON, - IsJWT, - IsObject, - IsNotEmptyObject, - Length, - IsLowercase, - IsMongoId, - IsMultibyte, - IsNumberString, - IsSurrogatePair, - IsUrl, - IsUUID, - IsUppercase, - Matches, - MinLength, - MaxLength, - Min, - Max, - IsNotEmpty, - IsMilitaryTime, - ArrayNotEmpty, - ArrayMinSize, - ArrayMaxSize, - NotEquals, - IsEmpty, - IsDefined, - IsNotIn, - IsNumber, - IsString, - NotContains, - ArrayContains, - ArrayNotContains, - ArrayUnique, - IsArray, - IsDateString, - IsInstance, - IsPhoneNumber, - IsISO31661Alpha2, - IsISO31661Alpha3, - IsHash, - IsMACAddress, - IsISSN, - IsFirebasePushId, -} from "../../src/decorator/decorators"; +/* eslint-disable @typescript-eslint/camelcase */ +import {ArrayContains, ArrayMaxSize, ArrayMinSize, ArrayNotContains, ArrayNotEmpty, ArrayUnique, Contains, Equals, IsAlpha, IsAlphanumeric, IsArray, IsAscii, IsBase64, IsBoolean, IsBooleanString, IsByteLength, IsCreditCard, IsCurrency, IsDate, IsDateString, IsDecimal, IsDefined, IsDivisibleBy, IsEmail, IsEmpty, IsEnum, IsFirebasePushId, IsFQDN, IsFullWidth, IsHalfWidth, IsHash, IsHexadecimal, IsHexColor, IsIn, IsInstance, IsInt, IsIP, IsISBN, IsISO31661Alpha2, IsISO31661Alpha3, IsISO8601, IsISSN, IsJSON, IsJWT, IsLatitude, IsLatLong, IsLongitude, IsLowercase, IsMACAddress, IsMilitaryTime, IsMongoId, IsMultibyte, IsNegative, IsNotEmpty, IsNotEmptyObject, IsNotIn, IsNumber, IsNumberString, IsObject, IsPositive, IsString, IsSurrogatePair, IsUppercase, IsUrl, IsUUID, IsVariableWidth, Length, Matches, Max, MaxDate, MaxLength, Min, MinDate, MinLength, NotContains, NotEquals,} from "../../src/decorator/decorators"; import {Validator} from "../../src/validation/Validator"; import {ValidatorOptions} from "../../src/validation/ValidatorOptions"; +import {default as ValidatorJS} from "validator"; -import {should, use } from "chai"; - -import * as chaiAsPromised from "chai-as-promised"; -import IsDecimalOptions = ValidatorJS.IsDecimalOptions; - -should(); -use(chaiAsPromised); - -// ------------------------------------------------------------------------- -// Helper functions -// ------------------------------------------------------------------------- - -export function checkValidValues(object: { someProperty: any }, values: any[], done: Function, validatorOptions?: ValidatorOptions) { +export function checkValidValues(object: { someProperty: any }, values: any[], validatorOptions?: ValidatorOptions): Promise { const validator = new Validator(); const promises = values.map(value => { object.someProperty = value; - return validator - .validate(object, validatorOptions) - .then(errors => errors.length.should.be.equal(0, `Unexpected errors: ${JSON.stringify(errors)}`)); + return validator.validate(object, validatorOptions) + .then((errors) => { + expect(errors.length).toEqual(0); + if (errors.length !== 0) { + console.log(`Unexpected errors: ${JSON.stringify(errors)}`); + throw new Error("Unexpected validation errors"); + } + }) }); - Promise.all(promises).then(() => done(), err => done(err)); + + return Promise.all(promises); } -export function checkInvalidValues(object: { someProperty: any }, values: any[], done: Function, validatorOptions?: ValidatorOptions) { +export function checkInvalidValues(object: { someProperty: any }, values: any[], validatorOptions?: ValidatorOptions): Promise { const validator = new Validator(); const promises = values.map(value => { object.someProperty = value; return validator .validate(object, validatorOptions) - .then(errors => errors.length.should.be.equal(1)); - }); - Promise.all(promises).then(() => done(), err => done(err)); + .then((errors) => { + expect(errors.length).toEqual(1); + if (errors.length !== 1) { + throw new Error("Missing validation errors"); + } + }).catch((error) => { + console.log("RSM error"); + console.log(error); + }) + }); + + return Promise.all(promises); } export function checkReturnedError(object: { someProperty: any }, values: any[], validationType: string, message: string, - done: Function, - validatorOptions?: ValidatorOptions) { - + validatorOptions?: ValidatorOptions): Promise { const validator = new Validator(); const promises = values.map(value => { object.someProperty = value; return validator .validate(object, validatorOptions) .then(errors => { - errors.length.should.be.equal(1); - errors[0].target.should.be.equal(object); - errors[0].property.should.be.equal("someProperty"); - errors[0].constraints.should.be.eql({ [validationType]: message }); - expect(errors[0].value).to.be.equal(value); + expect(errors.length).toEqual(1); + expect(errors[0].target).toEqual(object); + expect(errors[0].property).toEqual("someProperty"); + expect(errors[0].constraints).toEqual({[validationType]: message}); + expect(errors[0].value).toEqual(value); }); }); - Promise.all(promises).then(() => done(), err => done(err)); -} -// ------------------------------------------------------------------------- -// Setup -// ------------------------------------------------------------------------- + return Promise.all(promises); +} const validator = new Validator(); -// ------------------------------------------------------------------------- -// Specifications: common decorators -// ------------------------------------------------------------------------- - -describe("IsDefined", function() { +describe("IsDefined", () => { const validValues = [0, 1, true, false, "", "0", "1234", -1]; const invalidValues: any[] = [null, undefined]; @@ -159,56 +75,54 @@ describe("IsDefined", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if validator.validate said that its valid with skipUndefinedProperties set to true", function(done) { - checkValidValues(new MyClass(), validValues, done, { skipUndefinedProperties: true }); + it("should not fail if validator.validate said that its valid with skipUndefinedProperties set to true", () => { + return checkValidValues(new MyClass(), validValues, {skipUndefinedProperties: true}); }); - it("should fail if validator.validate said that its invalid with skipUndefinedProperties set to true", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done, { skipUndefinedProperties: true }); + it("should fail if validator.validate said that its invalid with skipUndefinedProperties set to true", () => { + return checkInvalidValues(new MyClass(), invalidValues, {skipUndefinedProperties: true}); }); - it("should not fail if validator.validate said that its valid with skipNullProperties set to true", function(done) { - checkValidValues(new MyClass(), validValues, done, { skipNullProperties: true }); + it("should not fail if validator.validate said that its valid with skipNullProperties set to true", () => { + return checkValidValues(new MyClass(), validValues, {skipNullProperties: true}); }); - it("should fail if validator.validate said that its invalid with skipNullProperties set to true", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done, { skipNullProperties: true }); + it("should fail if validator.validate said that its invalid with skipNullProperties set to true", () => { + return checkInvalidValues(new MyClass(), invalidValues, {skipNullProperties: true}); }); - it("should not fail if validator.validate said that its valid with skipMissingProperties set to true", function(done) { - checkValidValues(new MyClass(), validValues, done, { skipMissingProperties: true }); + it("should not fail if validator.validate said that its valid with skipMissingProperties set to true", () => { + return checkValidValues(new MyClass(), validValues, {skipMissingProperties: true}); }); - it("should fail if validator.validate said that its invalid with skipMissingProperties set to true", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done, { skipMissingProperties: true }); + it("should fail if validator.validate said that its invalid with skipMissingProperties set to true", () => { + return checkInvalidValues(new MyClass(), invalidValues, {skipMissingProperties: true}); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isDefined(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isDefined(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isDefined(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isDefined(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isDefined"; const message = "someProperty should not be null or undefined"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("Equals", function() { - +describe("Equals", () => { const constraint = "Alex"; const validValues = ["Alex"]; const invalidValues = ["Alexxx"]; @@ -218,32 +132,30 @@ describe("Equals", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.equals(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.equals(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.equals(value, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.equals(value, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "equals"; const message = "someProperty must be equal to " + constraint; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("NotEquals", function() { - +describe("NotEquals", () => { const constraint = "Alex"; const validValues = ["Alexxx"]; const invalidValues = ["Alex"]; @@ -253,32 +165,30 @@ describe("NotEquals", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.notEquals(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.notEquals(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.notEquals(value, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.notEquals(value, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "notEquals"; const message = "someProperty should not be equal to " + constraint; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsEmpty", function() { - +describe("IsEmpty", () => { const validValues = [null, undefined, ""]; const invalidValues = ["0", 0, 1, false, true]; @@ -287,32 +197,30 @@ describe("IsEmpty", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isEmpty(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isEmpty(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isEmpty(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isEmpty(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isEmpty"; const message = "someProperty must be empty"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsNotEmpty", function() { - +describe("IsNotEmpty", () => { const validValues = ["a", "abc"]; const invalidValues = ["", undefined, null]; @@ -321,32 +229,30 @@ describe("IsNotEmpty", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isNotEmpty(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isNotEmpty(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isNotEmpty(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isNotEmpty(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isNotEmpty"; const message = "someProperty should not be empty"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsIn", function() { - +describe("IsIn", () => { const constraint = ["foo", "bar"]; const validValues = ["foo", "bar"]; const invalidValues = ["foobar", "barfoo", ""]; @@ -356,32 +262,30 @@ describe("IsIn", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isIn(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isIn(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isIn(value, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isIn(value, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isIn"; const message = "someProperty must be one of the following values: " + constraint; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsNotIn", function() { - +describe("IsNotIn", () => { const constraint = ["foo", "bar"]; const validValues = ["foobar", "barfoo", ""]; const invalidValues = ["foo", "bar"]; @@ -391,36 +295,34 @@ describe("IsNotIn", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isNotIn(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isNotIn(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isNotIn(value, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isNotIn(value, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isNotIn"; const message = "someProperty should not be one of the following values: " + constraint; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); // ------------------------------------------------------------------------- // Specifications: type check // ------------------------------------------------------------------------- -describe("IsBoolean", function() { - +describe("IsBoolean", () => { const validValues = [true, false]; const invalidValues = [0, 1, "true", null, undefined]; @@ -429,54 +331,48 @@ describe("IsBoolean", function() { someProperty: any; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isBoolean(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isBoolean(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isBoolean(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isBoolean(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isBoolean"; const message = "someProperty must be a boolean value"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -// ------------------------------------------------------------------------- -// Specifications: type check -// ------------------------------------------------------------------------- - -describe("IsLatLong", function () { +describe("IsLatLong", () => { const validValues = ["27.6945311,85.3446311", "27.675509,85.2100893"]; - const invalidValues = [ "276945311,853446311" , "asas,as.as12" ]; + const invalidValues = ["276945311,853446311", "asas,as.as12"]; class MyClass { @IsLatLong() someProperty: any; } - it("should not fail if validator.validate said that its valid", function (done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function (done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - }); -describe("IsLatitude", function () { +describe("IsLatitude", () => { const validValues = ["27.6945311", "27.675509", 27.675509]; const invalidValues = ["276945311", "asas", 1234222, 5678921]; @@ -485,38 +381,34 @@ describe("IsLatitude", function () { someProperty: any; } - it("should not fail if validator.validate said that its valid", function (done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function (done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - }); -describe("IsLongitude", function () { - +describe("IsLongitude", () => { const validValues = ["85.3446311", "85.2100893", 85.2100893]; - const invalidValues = ["853446311", "as.as12", 12345 , 737399]; + const invalidValues = ["853446311", "as.as12", 12345, 737399]; class MyClass { @IsLongitude() someProperty: any; } - it("should not fail if validator.validate said that its valid", function (done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function (done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - }); -describe("IsDate", function() { - +describe("IsDate", () => { const validValues = [new Date()]; const invalidValues = [1, true, false, "Mon Aug 17 2015 00:24:56 GMT-0500 (CDT)", "2009-05-19 14:39:22-06:00"]; @@ -525,32 +417,30 @@ describe("IsDate", function() { someProperty: Date; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isDate(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isDate(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isDate(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isDate(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isDate"; const message = "someProperty must be a Date instance"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsNumber", function() { - +describe("IsNumber", () => { const validValues = [0, 1, 2, 3, 4, 5.4, -10]; const invalidValues = ["1", "0", true, false, "-100", "abc", undefined, null]; @@ -560,83 +450,81 @@ describe("IsNumber", function() { } class NaNTestClass { - @IsNumber({ allowNaN: true }) + @IsNumber({allowNaN: true}) someProperty: number; } class InfinityTestClass { - @IsNumber({ allowInfinity: true }) + @IsNumber({allowInfinity: true}) someProperty: number; } class MaxDecimalPlacesTest { - @IsNumber({ maxDecimalPlaces: 3 }) + @IsNumber({maxDecimalPlaces: 3}) someProperty: number; } class ZeroDecimalPlacesTest { - @IsNumber({ maxDecimalPlaces: 0 }) + @IsNumber({maxDecimalPlaces: 0}) someProperty: number; } - it("should fail if NaN passed without allowing NaN values", function (done) { - checkInvalidValues(new MyClass(), [NaN], done); + it("should fail if NaN passed without allowing NaN values", () => { + return checkInvalidValues(new MyClass(), [NaN]); }); - it("should fail if Infinity passed without allowing NaN values", function (done) { - checkInvalidValues(new MyClass(), [Infinity, -Infinity], done); + it("should fail if Infinity passed without allowing NaN values", () => { + return checkInvalidValues(new MyClass(), [Infinity, -Infinity]); }); - it("should not fail if NaN passed and NaN as value is allowed", function (done) { - checkValidValues(new NaNTestClass(), [NaN], done); + it("should not fail if NaN passed and NaN as value is allowed", () => { + return checkValidValues(new NaNTestClass(), [NaN]); }); - it("should not fail if Infinity passed and Infinity as value is allowed", function (done) { - checkValidValues(new InfinityTestClass(), [Infinity, -Infinity], done); + it("should not fail if Infinity passed and Infinity as value is allowed", () => { + return checkValidValues(new InfinityTestClass(), [Infinity, -Infinity]); }); - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isNumber(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isNumber(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isNumber(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isNumber(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isNumber"; const message = "someProperty must be a number conforming to the specified constraints"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - it("should pass if number of decimal places within maxDecimalPlaces", function(done) { - checkValidValues(new MaxDecimalPlacesTest(), [1.123], done); + it("should pass if number of decimal places within maxDecimalPlaces", () => { + return checkValidValues(new MaxDecimalPlacesTest(), [1.123]); }); - it("should fail if number of decimal places exceeds maxDecimalPlaces", function(done) { - checkInvalidValues(new MaxDecimalPlacesTest(), [1.1234], done); + it("should fail if number of decimal places exceeds maxDecimalPlaces", () => { + return checkInvalidValues(new MaxDecimalPlacesTest(), [1.1234]); }); - it("should pass if number of decimal places is zero", function(done) { - checkValidValues(new ZeroDecimalPlacesTest(), [-10, -1, 0, 1, 10], done); + it("should pass if number of decimal places is zero", () => { + return checkValidValues(new ZeroDecimalPlacesTest(), [-10, -1, 0, 1, 10]); }); - it("should fail if number of decimal places is not zero", function(done) { - checkInvalidValues(new ZeroDecimalPlacesTest(), [-11.1, -2.2, -0.1, 0.1, 2.2, 11.1], done); + it("should fail if number of decimal places is not zero", () => { + return checkInvalidValues(new ZeroDecimalPlacesTest(), [-11.1, -2.2, -0.1, 0.1, 2.2, 11.1]); }); - }); -describe("IsInt", function() { - +describe("IsInt", () => { const validValues = [2, 4, 100, 1000]; const invalidValues = [ "01", @@ -655,32 +543,30 @@ describe("IsInt", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isInt(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isInt(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isInt(value as any).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isInt(value as any)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isInt"; const message = "someProperty must be an integer number"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsString", function() { - +describe("IsString", () => { const validValues = ["true", "false", "hello", "0", "", "1"]; const invalidValues = [ true, @@ -696,32 +582,30 @@ describe("IsString", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isString(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isString(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isString(value as any).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isString(value as any)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isString"; const message = "someProperty must be a string"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsDateString", function() { - +describe("IsDateString", () => { const validValues = [ "2017-06-06T17:04:42.081Z", "2017-06-06T17:04:42.081", @@ -749,34 +633,32 @@ describe("IsDateString", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => expect(validator.isDateString(value)).be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isDateString(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => expect(validator.isDateString(value as any)).be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isDateString(value as any)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isDateString"; // const message = "someProperty deve ser um texto de data"; const message = "someProperty must be a ISOString"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsArray", function() { - - const validValues = [[], [1, 2, 3], [0, 0, 0], [""], [0], [undefined], [{}], new Array()]; +describe("IsArray", () => { + const validValues = [[], [1, 2, 3], [0, 0, 0], [""], [0], [undefined], [{}], []]; const invalidValues = [ true, false, @@ -791,41 +673,39 @@ describe("IsArray", function() { someProperty: string[]; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isArray(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isArray(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isArray(value as any).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isArray(value as any)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isArray"; const message = "someProperty must be an array"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsEnum", function() { - +describe("IsEnum", () => { enum MyEnum { - First = 1, - Second = 999 + First = 1, + Second = 999 } enum MyStringEnum { - First = "first", - Second = "second" + First = "first", + Second = "second" } const validValues = [MyEnum.First, MyEnum.Second]; @@ -850,61 +730,54 @@ describe("IsEnum", function() { someProperty: MyStringEnum; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should not fail if validator.validate said that its valid (string enum)", function(done) { - checkValidValues(new MyClass2(), validStringValues, done); + it("should not fail if validator.validate said that its valid (string enum)", () => { + return checkValidValues(new MyClass2(), validStringValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should fail if validator.validate said that its invalid (string enum)", function(done) { - checkInvalidValues(new MyClass2(), invalidValues, done); + it("should fail if validator.validate said that its invalid (string enum)", () => { + return checkInvalidValues(new MyClass2(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isEnum(value, MyEnum).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isEnum(value, MyEnum)).toBeTruthy()); }); - it("should not fail if method in validator said that its valid (string enum)", function() { - validStringValues.forEach(value => validator.isEnum(value, MyStringEnum).should.be.true); + it("should not fail if method in validator said that its valid (string enum)", () => { + validStringValues.forEach(value => expect(validator.isEnum(value, MyStringEnum)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isEnum(value, MyEnum).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isEnum(value, MyEnum)).toBeFalsy()); }); - it("should fail if method in validator said that its invalid (string enum)", function() { - invalidValues.forEach(value => validator.isEnum(value, MyStringEnum).should.be.false); + it("should fail if method in validator said that its invalid (string enum)", () => { + invalidValues.forEach(value => expect(validator.isEnum(value, MyStringEnum)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isEnum"; const message = "someProperty must be a valid enum value"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - it("should return error object with proper data (string enum)", function(done) { + it("should return error object with proper data (string enum)", () => { const validationType = "isEnum"; const message = "someProperty must be a valid enum value"; - checkReturnedError(new MyClass2(), invalidValues, validationType, message, done); + checkReturnedError(new MyClass2(), invalidValues, validationType, message); }); - }); - -// ------------------------------------------------------------------------- -// Specifications: number check -// ------------------------------------------------------------------------- - -describe("IsDivisibleBy", function() { - +describe("IsDivisibleBy", () => { const constraint = 2; - const validValues = [ 2, 4, 100, 1000]; + const validValues = [2, 4, 100, 1000]; const invalidValues = ["", undefined, null]; class MyClass { @@ -912,55 +785,53 @@ describe("IsDivisibleBy", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isDivisibleBy(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isDivisibleBy(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isDivisibleBy(value as any, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isDivisibleBy(value as any, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isDivisibleBy"; const message = "someProperty must be divisible by " + constraint; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsPositive", function() { - +describe("IsPositive", () => { const validValues = [ - , 3 - , 5000 + 3, + 5000, ]; const invalidValues = [ - , "-1" - , "-2" - , "0" - , "1" - , "2" - , "3" - , "4" - , "5" - , "6" - , "7" - , "8" - , "9" - , "100000" - , -500 - , -123 - , -1 - , " " - , "" + "-1", + "-2", + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "100000", + -500, + -123, + -1, + " ", + "" ]; class MyClass { @@ -968,56 +839,54 @@ describe("IsPositive", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isPositive(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isPositive(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isPositive(value as any).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isPositive(value as any)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isPositive"; const message = "someProperty must be a positive number"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsNegative", function() { - +describe("IsNegative", () => { const validValues = [ - , -3 - , -5000 - , -0.1 + -3, + -5000, + -0.1, ]; const invalidValues = [ - , "-1" - , "-2" - , "0" - , "1" - , "2" - , "3" - , "4" - , "5" - , "6" - , "7" - , "8" - , "9" - , "100000" - , 500 - , 123 - , 1 - , " " - , "" + "-1", + "-2", + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "100000", + 500, + 123, + 1, + " ", + "" ]; class MyClass { @@ -1025,32 +894,30 @@ describe("IsNegative", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isNegative(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isNegative(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isNegative(value as any).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isNegative(value as any)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isNegative"; const message = "someProperty must be a negative number"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("Min", function() { - +describe("Min", () => { const constraint = 10; const validValues = [10, 11, 20, 30, 40]; const invalidValues = [2, 3, 4, 5, 6, 7, 8, 9, -10]; @@ -1060,32 +927,30 @@ describe("Min", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.min(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.min(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.min(value, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.min(value, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "min"; const message = "someProperty must not be less than " + constraint; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("Max", function() { - +describe("Max", () => { const constraint = 10; const validValues = [1, 2, 3, 4, 5, 6, 7, 8, 9, -10, 10]; const invalidValues = [11, 20, 30, 40]; @@ -1095,36 +960,30 @@ describe("Max", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.max(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.max(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.max(value, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.max(value, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "max"; const message = "someProperty must not be greater than " + constraint; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -// ------------------------------------------------------------------------- -// Specifications: date check -// ------------------------------------------------------------------------- - -describe("MinDate", function() { - +describe("MinDate", () => { const constraint = new Date(1995, 11, 17); const validValues = [new Date()]; const invalidValues = [new Date(1994, 11, 17)]; @@ -1134,32 +993,30 @@ describe("MinDate", function() { someProperty: Date; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.minDate(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.minDate(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.minDate(value, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.minDate(value, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "minDate"; const message = "minimal allowed date for someProperty is " + constraint; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("MaxDate", function() { - +describe("MaxDate", () => { const constraint = new Date(1995, 11, 17); const validValues = [new Date(1994, 11, 17)]; const invalidValues = [new Date()]; @@ -1169,36 +1026,30 @@ describe("MaxDate", function() { someProperty: Date; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.maxDate(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.maxDate(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.maxDate(value, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.maxDate(value, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "maxDate"; const message = "maximal allowed date for someProperty is " + constraint; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -// ------------------------------------------------------------------------- -// Specifications: string-as-type check -// ------------------------------------------------------------------------- - -describe("IsBooleanString", function() { - +describe("IsBooleanString", () => { const validValues = [ "1", "0", @@ -1216,44 +1067,42 @@ describe("IsBooleanString", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isBooleanString(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isBooleanString(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isBooleanString(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isBooleanString(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isBooleanString"; const message = "someProperty must be a boolean string"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsNumberString", function() { - +describe("IsNumberString", () => { const validValues = [ - "123" - , "123.123" - , "00123" - , "-00123" - , "0" - , "-0" - , "+123" + "123", + "123.123", + "00123", + "-00123", + "0", + "-0", + "+123" ]; const invalidValues = [ - " " - , "." + " ", + "." ]; class MyClass { @@ -1261,36 +1110,30 @@ describe("IsNumberString", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isNumberString(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isNumberString(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isNumberString(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isNumberString(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isNumberString"; const message = "someProperty must be a number string"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -// ------------------------------------------------------------------------- -// Specifications: string check -// ------------------------------------------------------------------------- - -describe("Contains", function() { - +describe("Contains", () => { const constraint = "hello"; const validValues = ["hello world"]; const invalidValues = [null, undefined, "bye world"]; @@ -1300,32 +1143,30 @@ describe("Contains", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.contains(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.contains(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.contains(value, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.contains(value, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "contains"; - const message = "someProperty must contain a " + constraint + " string"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + const message = "someProperty must contain a " + constraint + " string"; + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("NotContains", function() { - +describe("NotContains", () => { const constraint = "hello"; const validValues = ["bye world"]; const invalidValues = [null, undefined, "hello world"]; @@ -1335,32 +1176,30 @@ describe("NotContains", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.notContains(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.notContains(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.notContains(value, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.notContains(value, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "notContains"; - const message = "someProperty should not contain a " + constraint + " string"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + const message = "someProperty should not contain a " + constraint + " string"; + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsAlpha", function() { - +describe("IsAlpha", () => { const constraint = "en-GB"; const validValues = ["hellomynameisalex"]; const invalidValues = [null, undefined, "hello1mynameisalex"]; @@ -1370,32 +1209,30 @@ describe("IsAlpha", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isAlpha(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isAlpha(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isAlpha(value, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isAlpha(value, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isAlpha"; const message = "someProperty must contain only letters (a-zA-Z)"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsAlphanumeric", function() { - +describe("IsAlphanumeric", () => { const constraint = ""; const validValues = ["hellomyname1salex"]; const invalidValues = [null, undefined, "hell*mynameisalex"]; @@ -1405,32 +1242,30 @@ describe("IsAlphanumeric", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isAlphanumeric(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isAlphanumeric(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isAlphanumeric(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isAlphanumeric(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isAlphanumeric"; const message = "someProperty must contain only letters and numbers"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsAscii", function() { - +describe("IsAscii", () => { const constraint = ""; const validValues = ["hellomyname1salex"]; const invalidValues = [null, undefined, "hell*mynameisлеха"]; @@ -1440,32 +1275,30 @@ describe("IsAscii", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isAscii(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isAscii(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isAscii(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isAscii(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isAscii"; const message = "someProperty must contain only ASCII characters"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsDecimal", function() { - +describe("IsDecimal", () => { const validValues = [ "100.0", "100.1", @@ -1498,42 +1331,41 @@ describe("IsDecimal", function() { "100,2143192" ]; - const IsDecimalOptions: IsDecimalOptions = { + const isDecimalOptions: ValidatorJS.IsDecimalOptions = { force_decimal: true, decimal_digits: "1", locale: "en-US" }; class MyClass { - @IsDecimal(IsDecimalOptions) + @IsDecimal(isDecimalOptions) someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isDecimal(value, IsDecimalOptions).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isDecimal(value, isDecimalOptions)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isDecimal(value, IsDecimalOptions).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isDecimal(value, isDecimalOptions)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isDecimal"; const message = "someProperty is not a valid decimal number."; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsBase64", function() { +describe("IsBase64", () => { const constraint = ""; const validValues = ["aGVsbG8="]; const invalidValues = [null, undefined, "hell*mynameisalex"]; @@ -1543,32 +1375,30 @@ describe("IsBase64", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isBase64(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isBase64(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isBase64(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isBase64(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isBase64"; const message = "someProperty must be base64 encoded"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsByteLength", function() { - +describe("IsByteLength", () => { const constraint1 = 2; const constraint2 = 20; const validValues = ["hellostring"]; @@ -1579,32 +1409,30 @@ describe("IsByteLength", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isByteLength(value, constraint1, constraint2).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isByteLength(value, constraint1, constraint2)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isByteLength(value, constraint1, constraint2).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isByteLength(value, constraint1, constraint2)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isByteLength"; const message = "someProperty's byte length must fall into (" + constraint1 + ", " + constraint2 + ") range"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsCreditCard", function() { - +describe("IsCreditCard", () => { const validValues = [ "375556917985515", "36050234196908", @@ -1620,77 +1448,75 @@ describe("IsCreditCard", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isCreditCard(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isCreditCard(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isCreditCard(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isCreditCard(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isCreditCard"; const message = "someProperty must be a credit card"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsCurrency", function() { - +describe("IsCurrency", () => { const validValues = [ - "-$10,123.45" - , "$10,123.45" - , "$10123.45" - , "10,123.45" - , "10123.45" - , "10,123" - , "1,123,456" - , "1123456" - , "1.39" - , ".03" - , "0.10" - , "$0.10" - , "-$0.01" - , "-$.99" - , "$100,234,567.89" - , "$10,123" - , "10,123" - , "-10123" + "-$10,123.45", + "$10,123.45", + "$10123.45", + "10,123.45", + "10123.45", + "10,123", + "1,123,456", + "1123456", + "1.39", + ".03", + "0.10", + "$0.10", + "-$0.01", + "-$.99", + "$100,234,567.89", + "$10,123", + "10,123", + "-10123" ]; const invalidValues = [ - null - , undefined - , "1.234" - , "$1.1" - , "$ 32.50" - , "500$" - , ".0001" - , "$.001" - , "$0.001" - , "12,34.56" - , "123456,123,123456" - , "123,4" - , ",123" - , "$-,123" - , "$" - , "." - , "," - , "00" - , "$-" - , "$-,." - , "-" - , "-$" - , "" - , "- $" + null, + undefined, + "1.234", + "$1.1", + "$ 32.50", + "500$", + ".0001", + "$.001", + "$0.001", + "12,34.56", + "123456,123,123456", + "123,4", + ",123", + "$-,123", + "$", + ".", + ",", + "00", + "$-", + "$-,.", + "-", + "-$", + "", + "- $" ]; class MyClass { @@ -1698,56 +1524,54 @@ describe("IsCurrency", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isCurrency(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isCurrency(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isCurrency(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isCurrency(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isCurrency"; const message = "someProperty must be a currency"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsEmail", function() { - +describe("IsEmail", () => { const validValues = [ - "foo@bar.com" - , "x@x.au" - , "foo@bar.com.au" - , "foo+bar@bar.com" - , "hans.m端ller@test.com" - , "hans@m端ller.com" - , "test|123@m端ller.com" - , "\"foobar\"@example.com" - , "\" foo m端ller \"@example.com" - , "\"foo\\@bar\"@example.com" + "foo@bar.com", + "x@x.au", + "foo@bar.com.au", + "foo+bar@bar.com", + "hans.m端ller@test.com", + "hans@m端ller.com", + "test|123@m端ller.com", + "\"foobar\"@example.com", + "\" foo m端ller \"@example.com", + "\"foo\\@bar\"@example.com" ]; const invalidValues = [ - null - , undefined - , "invalidemail@" - , "invalid.com" - , "@invalid.com" - , "foo@bar.com." - , "somename@gmail.com" - , "foo@bar.co.uk." - , "z@co.c" - , "gmail...ignores...dots...@gmail.com" - , "gmailgmailgmailgmailgmail@gmail.com" + null, + undefined, + "invalidemail@", + "invalid.com", + "@invalid.com", + "foo@bar.com.", + "somename@gmail.com", + "foo@bar.co.uk.", + "z@co.c", + "gmail...ignores...dots...@gmail.com", + "gmailgmailgmailgmailgmail@gmail.com" ]; class MyClass { @@ -1755,52 +1579,50 @@ describe("IsEmail", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { + it("should not fail if method in validator said that its valid", () => { validValues.forEach(value => { - return validator.isEmail(value).should.be.true; + expect(validator.isEmail(value)).toBeTruthy(); }); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isEmail(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isEmail(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isEmail"; const message = "someProperty must be an email"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsFQDN", function() { - +describe("IsFQDN", () => { const validValues = [ - "domain.com" - , "dom.plato" - , "a.domain.co" - , "foo--bar.com" - , "xn--froschgrn-x9a.com" - , "rebecca.blackfriday" + "domain.com", + "dom.plato", + "a.domain.co", + "foo--bar.com", + "xn--froschgrn-x9a.com", + "rebecca.blackfriday" ]; const invalidValues = [ - null - , undefined - , "abc" - , "256.0.0.0" - , "_.com" - , "*.some.com" - , "s!ome.com" - , "domain.com/" - , "/more.com" + null, + undefined, + "abc", + "256.0.0.0", + "_.com", + "*.some.com", + "s!ome.com", + "domain.com/", + "/more.com" ]; class MyClass { @@ -1808,43 +1630,41 @@ describe("IsFQDN", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isFQDN(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isFQDN(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isFQDN(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isFQDN(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isFqdn"; const message = "someProperty must be a valid domain name"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsFullWidth", function() { - +describe("IsFullWidth", () => { const validValues = [ - "ひらがな・カタカナ、.漢字" - , "3ー0 a@com" - , "Fカタカナ゙ᆲ" - , "Good=Parts" + "ひらがな・カタカナ、.漢字", + "3ー0 a@com", + "Fカタカナ゙ᆲ", + "Good=Parts" ]; const invalidValues = [ - null - , undefined - , "abc" - , "abc123" + null, + undefined, + "abc", + "abc123" ]; class MyClass { @@ -1852,42 +1672,41 @@ describe("IsFullWidth", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isFullWidth(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isFullWidth(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isFullWidth(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isFullWidth(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isFullWidth"; const message = "someProperty must contain a full-width characters"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsHalfWidth", function() { +describe("IsHalfWidth", () => { const validValues = [ - , "l-btn_02--active" - , "abc123い" - , "カタカナ゙ᆲ←" + "l-btn_02--active", + "abc123い", + "カタカナ゙ᆲ←" ]; const invalidValues = [ - null - , undefined - , "あいうえお" - , "0011" + null, + undefined, + "あいうえお", + "0011" ]; class MyClass { @@ -1895,47 +1714,45 @@ describe("IsHalfWidth", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isHalfWidth(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isHalfWidth(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isHalfWidth(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isHalfWidth(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isHalfWidth"; const message = "someProperty must contain a half-width characters"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsVariableWidth", function() { - +describe("IsVariableWidth", () => { const validValues = [ - "ひらがなカタカナ漢字ABCDE" - , "3ー0123" - , "Fカタカナ゙ᆲ" - , "Good=Parts" + "ひらがなカタカナ漢字ABCDE", + "3ー0123", + "Fカタカナ゙ᆲ", + "Good=Parts" ]; const invalidValues = [ - null - , undefined - , "abc" - , "abc123" - , "!\"#$%&()<>/+=-_? ~^|.,@`{}[]" - , "ひらがな・カタカナ、.漢字" - , "123456" - , "カタカナ゙ᆲ" + null, + undefined, + "abc", + "abc123", + "!\"#$%&()<>/+=-_? ~^|.,@`{}[]", + "ひらがな・カタカナ、.漢字", + "123456", + "カタカナ゙ᆲ" ]; class MyClass { @@ -1943,44 +1760,42 @@ describe("IsVariableWidth", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isVariableWidth(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isVariableWidth(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isVariableWidth(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isVariableWidth(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isVariableWidth"; const message = "someProperty must contain a full-width and half-width characters"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsHexColor", function() { - +describe("IsHexColor", () => { const validValues = [ - "#ff0034" - , "#CCCCCC" - , "fff" - , "#f00" + "#ff0034", + "#CCCCCC", + "fff", + "#f00" ]; const invalidValues = [ - null - , undefined - , "#ff" - , "fff0" - , "#ff12FG" + null, + undefined, + "#ff", + "#xxxx", + "#ff12FG" ]; class MyClass { @@ -1988,42 +1803,41 @@ describe("IsHexColor", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isHexColor(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + invalidValues.forEach(value => expect(validator.isHexColor(value)).toBeFalsy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isHexColor(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + validValues.forEach(value => expect(validator.isHexColor(value)).toBeTruthy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isHexColor"; const message = "someProperty must be a hexadecimal color"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsHexadecimal", function() { +describe("IsHexadecimal", () => { const validValues = [ - "deadBEEF" - , "ff0044" + "deadBEEF", + "ff0044" ]; const invalidValues = [ - null - , undefined - , "abcdefg" - , "" - , ".." + null, + undefined, + "abcdefg", + "", + ".." ]; class MyClass { @@ -2031,32 +1845,30 @@ describe("IsHexadecimal", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isHexadecimal(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isHexadecimal(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isHexadecimal(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isHexadecimal(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isHexadecimal"; const message = "someProperty must be a hexadecimal number"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsMACAddress", function() { - +describe("IsMACAddress", () => { const validValues = [ "ab:ab:ab:ab:ab:ab", "FF:FF:FF:FF:FF:FF", @@ -2080,70 +1892,68 @@ describe("IsMACAddress", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isMACAddress(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isMACAddress(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isMACAddress(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isMACAddress(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isMacAddress"; const message = "someProperty must be a MAC Address"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsIP", function() { - +describe("IsIP", () => { const validValues = [ - "127.0.0.1" - , "0.0.0.0" - , "255.255.255.255" - , "1.2.3.4" - , "::1" - , "2001:db8:0000:1:1:1:1:1" - , "2001:41d0:2:a141::1" - , "::ffff:127.0.0.1" - , "::0000" - , "0000::" - , "1::" - , "1111:1:1:1:1:1:1:1" - , "fe80::a6db:30ff:fe98:e946" - , "::" - , "::ffff:127.0.0.1" - , "0:0:0:0:0:ffff:127.0.0.1" + "127.0.0.1", + "0.0.0.0", + "255.255.255.255", + "1.2.3.4", + "::1", + "2001:db8:0000:1:1:1:1:1", + "2001:41d0:2:a141::1", + "::ffff:127.0.0.1", + "::0000", + "0000::", + "1::", + "1111:1:1:1:1:1:1:1", + "fe80::a6db:30ff:fe98:e946", + "::", + "::ffff:127.0.0.1", + "0:0:0:0:0:ffff:127.0.0.1" ]; const invalidValues = [ - null - , undefined - , "abc" - , "256.0.0.0" - , "0.0.0.256" - , "26.0.0.256" - , "::banana" - , "banana::" - , "::1banana" - , "::1::" - , "1:" - , ":1" - , ":1:1:1::2" - , "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1" - , "::11111" - , "11111:1:1:1:1:1:1:1" - , "2001:db8:0000:1:1:1:1::1" - , "0:0:0:0:0:0:ffff:127.0.0.1" - , "0:0:0:0:ffff:127.0.0.1" + null, + undefined, + "abc", + "256.0.0.0", + "0.0.0.256", + "26.0.0.256", + "::banana", + "banana::", + "::1banana", + "::1::", + "1:", + ":1", + ":1:1:1::2", + "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1", + "::11111", + "11111:1:1:1:1:1:1:1", + "2001:db8:0000:1:1:1:1::1", + "0:0:0:0:0:0:ffff:127.0.0.1", + "0:0:0:0:ffff:127.0.0.1" ]; class MyClass { @@ -2151,32 +1961,30 @@ describe("IsIP", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isIP(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isIP(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isIP(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isIP(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isIp"; const message = "someProperty must be an ip address"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsISBN version 10", function() { - +describe("IsISBN version 10", () => { const validValues = [ "3836221195", "3-8362-2119-5", "3 8362 2119 5" , "1617290858", "1-61729-085-8", "1 61729 085-8" @@ -2195,32 +2003,30 @@ describe("IsISBN version 10", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isISBN(value, 10).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isISBN(value, "10")).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isISBN(value, 10).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isISBN(value, "10")).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isIsbn"; const message = "someProperty must be an ISBN"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsISBN version 13", function() { - +describe("IsISBN version 13", () => { const validValues = [ "9783836221191", "978-3-8362-2119-1", "978 3 8362 2119 1" , "9783401013190", "978-3401013190", "978 3401013190" @@ -2237,32 +2043,30 @@ describe("IsISBN version 13", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isISBN(value, 13).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isISBN(value, "13")).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isISBN(value, 13).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isISBN(value, "13")).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isIsbn"; const message = "someProperty must be an ISBN"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsISO8601", function() { - +describe("IsISO8601", () => { const validValues = [ "2009-12T12:34" , "2009" @@ -2338,32 +2142,30 @@ describe("IsISO8601", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isISO8601(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isISO8601(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isISO8601(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isISO8601(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isIso8601"; const message = "someProperty must be a valid ISO 8601 date string"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsJSON", function() { - +describe("IsJSON", () => { const validValues = ["{ \"key\": \"value\" }", "{}"]; const invalidValues = [null, undefined, "{ key: \"value\" }", "{ 'key': 'value' }", "null", "1234", "false", "\"nope\""]; @@ -2372,144 +2174,136 @@ describe("IsJSON", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isJSON(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isJSON(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isJSON(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isJSON(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isJson"; const message = "someProperty must be a json string"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsJWT", function() { - +describe("IsJWT", () => { const validValues = [ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dnZWRJbkFzIjoiYWRtaW4iLCJpYXQiOjE0MjI3Nzk2Mzh9.gzSraSYS8EXBxLN_oWnFSRgCzcmJmMjLiuyu5CSpyHI", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb3JlbSI6Imlwc3VtIn0.ymiJSsMJXR6tMSr8G9usjQ15_8hKPDv_CArLhxw28MI", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkb2xvciI6InNpdCIsImFtZXQiOlsibG9yZW0iLCJpcHN1bSJdfQ.rRpe04zbWbbJjwM43VnHzAboDzszJtGrNsUxaqQ-GQ8", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqb2huIjp7ImFnZSI6MjUsImhlaWdodCI6MTg1fSwiamFrZSI6eyJhZ2UiOjMwLCJoZWlnaHQiOjI3MH19.YRLPARDmhGMC3BBk_OhtwwK21PIkVCqQe8ncIRPKo-E", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ", // No signature - ]; + ]; const invalidValues = [ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9", "$Zs.ewu.su84", "ks64$S/9.dy$§kz.3sd73b", - ]; + ]; class MyClass { @IsJWT() someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isJWT(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isJWT(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isJWT(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isJWT(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isJwt"; const message = "someProperty must be a jwt string"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsObject", function() { - - const validValues = [{ "key": "value" }, { key: "value" }, {}]; - const invalidValues: any[] = [null, undefined, "{ key: \"value\" }", "{ 'key': 'value' }", "string", 1234, false, "[]", [], [{ key: "value" }]]; +describe("IsObject", () => { + const validValues = [{"key": "value"}, {key: "value"}, {}]; + const invalidValues: any[] = [null, undefined, "{ key: \"value\" }", "{ 'key': 'value' }", "string", 1234, false, "[]", [], [{key: "value"}]]; class MyClass { @IsObject() someProperty: object; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isObject(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isObject(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isObject(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isObject(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isObject"; const message = "someProperty must be an object"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsNotEmptyObject", function() { - - const validValues = [{ "key": "value" }, { key: "value" }]; - const invalidValues = [null, undefined, "{ key: \"value\" }", "{ 'key': 'value' }", "string", 1234, false, {}, [], [{ key: "value" }]]; +describe("IsNotEmptyObject", () => { + const validValues = [{"key": "value"}, {key: "value"}]; + const invalidValues = [null, undefined, "{ key: \"value\" }", "{ 'key': 'value' }", "string", 1234, false, {}, [], [{key: "value"}]]; class MyClass { @IsNotEmptyObject() someProperty: object; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isNotEmptyObject(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isNotEmptyObject(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isNotEmptyObject(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isNotEmptyObject(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isNotEmptyObject"; const message = "someProperty must be a non-empty object"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsLowercase", function() { - +describe("IsLowercase", () => { const validValues = [ "abc" , "abc123" @@ -2528,32 +2322,30 @@ describe("IsLowercase", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isLowercase(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isLowercase(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isLowercase(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isLowercase(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isLowercase"; const message = "someProperty must be a lowercase string"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsMongoId", function() { - +describe("IsMongoId", () => { const validValues = [ "507f1f77bcf86cd799439011" ]; @@ -2571,32 +2363,30 @@ describe("IsMongoId", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isMongoId(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isMongoId(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isMongoId(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isMongoId(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isMongoId"; const message = "someProperty must be a mongodb id"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsMultibyte", function() { - +describe("IsMultibyte", () => { const validValues = [ "ひらがな・カタカナ、.漢字" , "あいうえお foobar" @@ -2618,32 +2408,30 @@ describe("IsMultibyte", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isMultibyte(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isMultibyte(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isMultibyte(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isMultibyte(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isMultibyte"; const message = "someProperty must contain one or more multibyte chars"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsSurrogatePair", function() { - +describe("IsSurrogatePair", () => { const validValues = [ "𠮷野𠮷" , "𩸽" @@ -2662,32 +2450,30 @@ describe("IsSurrogatePair", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isSurrogatePair(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isSurrogatePair(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isSurrogatePair(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isSurrogatePair(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isSurrogatePair"; const message = "someProperty must contain any surrogate pairs chars"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsUrl", function() { - +describe("IsUrl", () => { const validValues = [ "foobar.com" , "www.foobar.com" @@ -2761,40 +2547,38 @@ describe("IsUrl", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isURL(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isURL(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isURL(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isURL(value)).toBeFalsy()); }); - it("should fail on localhost without require_tld option", function () { - validator.isURL("http://localhost:3000/").should.be.false; + it("should fail on localhost without require_tld option", () => { + expect(validator.isURL("http://localhost:3000/")).toBeFalsy(); }); - it("should pass on localhost with require_tld option", function () { - validator.isURL("http://localhost:3000/", { require_tld: false }).should.be.true; + it("should pass on localhost with require_tld option", () => { + expect(validator.isURL("http://localhost:3000/", {require_tld: false})).toBeTruthy(); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isUrl"; const message = "someProperty must be an URL address"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsUUID", function() { - +describe("IsUUID", () => { const validValues = [ "A987FBC9-4BED-3078-CF07-9141BA07C9F3" , "A987FBC9-4BED-4078-8F07-9141BA07C9F3" @@ -2817,32 +2601,30 @@ describe("IsUUID", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isUUID(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isUUID(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isUUID(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isUUID(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isUuid"; const message = "someProperty must be an UUID"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsUUID v3", function() { - +describe("IsUUID v3", () => { const validValues = [ "A987FBC9-4BED-3078-CF07-9141BA07C9F3" ]; @@ -2862,32 +2644,30 @@ describe("IsUUID v3", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isUUID(value, "3").should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isUUID(value, "3")).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isUUID(value, "3").should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isUUID(value, "3")).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isUuid"; const message = "someProperty must be an UUID"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsUUID v4", function() { - +describe("IsUUID v4", () => { const validValues = [ "713ae7e3-cb32-45f9-adcb-7c4fa86b90c1" , "625e63f3-58f5-40b7-83a1-a72ad31acffb" @@ -2910,32 +2690,30 @@ describe("IsUUID v4", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isUUID(value, "4").should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isUUID(value, "4")).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isUUID(value, "4").should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isUUID(value, "4")).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isUuid"; const message = "someProperty must be an UUID"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsUUID v5", function() { - +describe("IsUUID v5", () => { const validValues = [ "987FBC97-4BED-5078-AF07-9141BA07C9F3" , "987FBC97-4BED-5078-BF07-9141BA07C9F3" @@ -2958,31 +2736,30 @@ describe("IsUUID v5", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isUUID(value, "5").should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isUUID(value, "5")).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isUUID(value, "5").should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isUUID(value, "5")).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isUuid"; const message = "someProperty must be an UUID"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsFirebasePushId", function() { +describe("IsFirebasePushId", () => { const validValues = [ "-M-Jh_1KAH5rYJF_7-kY" , "-M1yvu7FKe87rR_62NH7" @@ -3002,35 +2779,36 @@ describe("IsFirebasePushId", function() { , "Steve" , "dbfa63ea-2c1f-4cf8-b6b9-192b070b558c" ]; + class MyClass { @IsFirebasePushId() someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.IsFirebasePushId(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.IsFirebasePushId(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.IsFirebasePushId(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.IsFirebasePushId(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "IsFirebasePushId"; const message = "someProperty must be a Firebase Push Id"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); }); -describe("IsUppercase", function() { - +describe("IsUppercase", () => { const validValues = [ "ABC" , "ABC123" @@ -3049,32 +2827,30 @@ describe("IsUppercase", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isUppercase(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isUppercase(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isUppercase(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isUppercase(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isUppercase"; const message = "someProperty must be uppercase"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("Length", function() { - +describe("Length", () => { const constraint1 = 2; const constraint2 = 3; const validValues = ["abc", "de"]; @@ -3085,38 +2861,36 @@ describe("Length", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.length(value, constraint1, constraint2).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.length(value, constraint1, constraint2)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.length(value, constraint1, constraint2).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.length(value, constraint1, constraint2)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "length"; const message = "someProperty must be longer than or equal to " + constraint1 + " characters"; - checkReturnedError(new MyClass(), ["", "a"], validationType, message, done); + checkReturnedError(new MyClass(), ["", "a"], validationType, message); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "length"; const message = "someProperty must be shorter than or equal to " + constraint2 + " characters"; - checkReturnedError(new MyClass(), ["aaaa", "azzazza"], validationType, message, done); + checkReturnedError(new MyClass(), ["aaaa", "azzazza"], validationType, message); }); - }); -describe("MinLength", function() { - +describe("MinLength", () => { const constraint1 = 10; const validValues = ["helloworld", "hello how are you"]; const invalidValues = [null, undefined, "hellowar", "howareyou"]; @@ -3126,32 +2900,30 @@ describe("MinLength", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.minLength(value, constraint1).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.minLength(value, constraint1)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.minLength(value, constraint1).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.minLength(value, constraint1)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "minLength"; const message = "someProperty must be longer than or equal to " + constraint1 + " characters"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("MaxLength", function() { - +describe("MaxLength", () => { const constraint1 = 10; const validValues = ["hellowar", "howareyou", "helloworld"]; const invalidValues = [null, undefined, "helloworld!", "hello how are you"]; @@ -3161,32 +2933,30 @@ describe("MaxLength", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.maxLength(value, constraint1).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.maxLength(value, constraint1)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.maxLength(value, constraint1).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.maxLength(value, constraint1)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "maxLength"; const message = "someProperty must be shorter than or equal to " + constraint1 + " characters"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("Matches", function() { - +describe("Matches", () => { const constraint = /abc/; const validValues = ["abc", "abcdef", "123abc"]; const invalidValues = [null, undefined, "acb", "Abc"]; @@ -3196,310 +2966,249 @@ describe("Matches", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.matches(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.matches(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.matches(value, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.matches(value, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "matches"; const message = "someProperty must match " + constraint + " regular expression"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsMilitaryTime", function() { - +describe("IsMilitaryTime", () => { class MyClass { @IsMilitaryTime() someProperty: string; } - it("should not fail for a valid time in the format HH:MM", function(done) { + it("should not fail for a valid time in the format HH:MM", () => { const validValues = ["10:22", "12:03", "16:32", "23:59", "00:00"]; - checkValidValues(new MyClass(), validValues, done); + return checkValidValues(new MyClass(), validValues); }); - it("should fail for invalid time format", function(done) { + it("should fail for invalid time format", () => { const invalidValues = ["23:61", "25:00", "08:08 pm", "04:00am"]; - checkInvalidValues(new MyClass(), invalidValues, done); + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should fail for invalid values", function(done) { + it("should fail for invalid values", () => { const invalidValues = [undefined, null, "23:00 and invalid counterpart"]; - checkInvalidValues(new MyClass(), invalidValues, done); - }); - -}); - -describe("isPhoneNumber", function() { - describe("with region", function() { - const validValues = [ - "0311111111", "031 633 60 01", "079 4 666 666", "075 416 20 30", - "+41 311111111", "+41 31 633 60 01", "+41 79 4 666 666", "+41 75 416 20 30", - "+41 (0)311111111", "+41 (0)31 633 60 01", "+41 (0)79 4 666 666", "+41 (0)75 416 20 30", - "+49 9072 1111" - ]; - const invalidValues = [undefined, null, "asdf", "1"]; - - class MyClass { - @IsPhoneNumber("CH") - someProperty: string; - } - - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); - }); - - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); - }); - }); - - describe("no region", function() { - const validValues = [ - "+41 311111111", "+41 31 633 60 01", "+41 79 4 666 666", "+41 75 416 20 30", - "+41 (0)311111111", "+41 (0)31 633 60 01", "+41 (0)79 4 666 666", "+41 (0)75 416 20 30", - "+49 9072 1111" - ]; - const invalidValues = [ - "0311111111", "031 633 60 01", "079 4 666 666", "075 416 20 30", - undefined, null, "asdf", "1" - ]; - - class MyClass { - @IsPhoneNumber(null) - someProperty: string; - } - - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); - }); - - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); - }); + return checkInvalidValues(new MyClass(), invalidValues); }); }); -describe("IsISO31661Alpha2", function() { - +describe("IsISO31661Alpha2", () => { class MyClass { @IsISO31661Alpha2() someProperty: string; } - it("should not fail for a valid ISO31661 Alpha2 code", function(done) { + it("should not fail for a valid ISO31661 Alpha2 code", () => { const validValues = ["AD", "AE", "AF", "AG"]; - checkValidValues(new MyClass(), validValues, done); + return checkValidValues(new MyClass(), validValues); }); - it("should fail for invalid values", function(done) { + it("should fail for invalid values", () => { const invalidValues = [undefined, null, "", "AFR"]; - checkInvalidValues(new MyClass(), invalidValues, done); + return checkInvalidValues(new MyClass(), invalidValues); }); - }); -describe("IsISO31661Alpha3", function() { - +describe("IsISO31661Alpha3", () => { class MyClass { @IsISO31661Alpha3() someProperty: string; } - it("should not fail for a valid ISO31661 Alpha3 code", function(done) { + it("should not fail for a valid ISO31661 Alpha3 code", () => { const validValues = ["ABW", "HND", "KHM", "RWA"]; - checkValidValues(new MyClass(), validValues, done); + return checkValidValues(new MyClass(), validValues); }); - it("should fail for invalid values", function(done) { + it("should fail for invalid values", () => { const invalidValues = [undefined, null, "", "FR", "fR", "GB", "PT", "CM", "JP", "PM", "ZW"]; - checkInvalidValues(new MyClass(), invalidValues, done); + return checkInvalidValues(new MyClass(), invalidValues); }); - }); -describe("isHash", function() { - - function testHash(algorithm: ValidatorJS.HashAlgorithm, validValues: any[], invalidValues: any[]) { - +describe("isHash", () => { + function testHash(algorithm: ValidatorJS.HashAlgorithm, validValues: any[], invalidValues: any[]): void { class MyClass { @IsHash(algorithm) someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isHash(value, algorithm).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isHash(value, algorithm)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isHash(value, algorithm).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isHash(value, algorithm)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isHash"; const message = `someProperty must be a hash of type ${algorithm}`; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); } - ["md5", "md4", "ripemd128", "tiger128"].forEach((algorithm: ValidatorJS.HashAlgorithm) => { - const validValues = [ + for (const algorithm of ["md5", "md4", "ripemd128", "tiger128"]) { + const validValues = [ "d94f3f016ae679c3008de268209132f2", "751adbc511ccbe8edf23d486fa4581cd", "88dae00e614d8f24cfd5a8b3f8002e93", "0bf1c35032a71a14c2f719e5a14c1e96" - ]; - const invalidValues = [ + ]; + const invalidValues = [ undefined, null, "q94375dj93458w34", "39485729348", "%&FHKJFvk", "KYT0bf1c35032a71a14c2f719e5a1" - ]; - - testHash(algorithm, validValues, invalidValues); + ]; - }); + testHash(algorithm as ValidatorJS.HashAlgorithm, validValues, invalidValues); + } - ["crc32", "crc32b"].forEach((algorithm: ValidatorJS.HashAlgorithm) => { + for (const algorithm of ["crc32", "crc32b"]) { const validValues = [ "d94f3f01", "751adbc5", "88dae00e", "0bf1c350", - ]; - const invalidValues = [ - undefined, null, - "KYT0bf1c35032a71a14c2f719e5a14c1", - "q94375dj93458w34", - "q943", - "39485729348", - "%&FHKJFvk", - ]; - - testHash(algorithm, validValues, invalidValues); - }); - - ["sha1", "tiger160", "ripemd160"].forEach((algorithm: ValidatorJS.HashAlgorithm) => { + ]; + const invalidValues = [ + undefined, null, + "KYT0bf1c35032a71a14c2f719e5a14c1", + "q94375dj93458w34", + "q943", + "39485729348", + "%&FHKJFvk", + ]; + + testHash(algorithm as ValidatorJS.HashAlgorithm, validValues, invalidValues); + } + + for (const algorithm of ["sha1", "tiger160", "ripemd160"]) { const validValues = [ "3ca25ae354e192b26879f651a51d92aa8a34d8d3", "aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d", "beb8c3f30da46be179b8df5f5ecb5e4b10508230", "efd5d3b190e893ed317f38da2420d63b7ae0d5ed", - ]; - const invalidValues = [ - undefined, null, - "KYT0bf1c35032a71a14c2f719e5a14c1", - "KYT0bf1c35032a71a14c2f719e5a14c1dsjkjkjkjkkjk", - "q94375dj93458w34", - "39485729348", - "%&FHKJFvk", - ]; + ]; + const invalidValues = [ + undefined, null, + "KYT0bf1c35032a71a14c2f719e5a14c1", + "KYT0bf1c35032a71a14c2f719e5a14c1dsjkjkjkjkkjk", + "q94375dj93458w34", + "39485729348", + "%&FHKJFvk", + ]; - testHash(algorithm, validValues, invalidValues); - }); + testHash(algorithm as ValidatorJS.HashAlgorithm, validValues, invalidValues); + } - ["sha256"].forEach((algorithm: ValidatorJS.HashAlgorithm) => { + for (const algorithm of ["sha256"]) { const validValues = [ "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824", "1d996e033d612d9af2b44b70061ee0e868bfd14c2dd90b129e1edeb7953e7985", "80f70bfeaed5886e33536bcfa8c05c60afef5a0e48f699a7912d5e399cdcc441", "579282cfb65ca1f109b78536effaf621b853c9f7079664a3fbe2b519f435898c", - ]; - const invalidValues = [ - undefined, null, - "KYT0bf1c35032a71a14c2f719e5a14c1", - "KYT0bf1c35032a71a14c2f719e5a14c1dsjkjkjkjkkjk", - "q94375dj93458w34", - "39485729348", - "%&FHKJFvk", - ]; - - testHash(algorithm, validValues, invalidValues); - }); + ]; + const invalidValues = [ + undefined, null, + "KYT0bf1c35032a71a14c2f719e5a14c1", + "KYT0bf1c35032a71a14c2f719e5a14c1dsjkjkjkjkkjk", + "q94375dj93458w34", + "39485729348", + "%&FHKJFvk", + ]; + + testHash(algorithm as ValidatorJS.HashAlgorithm, validValues, invalidValues); + } - ["sha384"].forEach((algorithm: ValidatorJS.HashAlgorithm) => { + for (const algorithm of ["sha384"]) { const validValues = [ "3fed1f814d28dc5d63e313f8a601ecc4836d1662a19365cbdcf6870f6b56388850b58043f7ebf2418abb8f39c3a42e31", "b330f4e575db6e73500bd3b805db1a84b5a034e5d21f0041d91eec85af1dfcb13e40bb1c4d36a72487e048ac6af74b58", "bf547c3fc5841a377eb1519c2890344dbab15c40ae4150b4b34443d2212e5b04aa9d58865bf03d8ae27840fef430b891", "fc09a3d11368386530f985dacddd026ae1e44e0e297c805c3429d50744e6237eb4417c20ffca8807b071823af13a3f65", - ]; - const invalidValues = [ + ]; + const invalidValues = [ undefined, null, "KYT0bf1c35032a71a14c2f719e5a14c1", "KYT0bf1c35032a71a14c2f719e5a14c1dsjkjkjkjkkjk", "q94375dj93458w34", "39485729348", "%&FHKJFvk", - ]; + ]; - testHash(algorithm, validValues, invalidValues); - }); + testHash(algorithm as ValidatorJS.HashAlgorithm, validValues, invalidValues); + } - ["sha512"].forEach((algorithm: ValidatorJS.HashAlgorithm) => { + for (const algorithm of ["sha512"]) { const validValues = [ "9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043", "83c586381bf5ba94c8d9ba8b6b92beb0997d76c257708742a6c26d1b7cbb9269af92d527419d5b8475f2bb6686d2f92a6649b7f174c1d8306eb335e585ab5049", "45bc5fa8cb45ee408c04b6269e9f1e1c17090c5ce26ffeeda2af097735b29953ce547e40ff3ad0d120e5361cc5f9cee35ea91ecd4077f3f589b4d439168f91b9", "432ac3d29e4f18c7f604f7c3c96369a6c5c61fc09bf77880548239baffd61636d42ed374f41c261e424d20d98e320e812a6d52865be059745fdb2cb20acff0ab", - ]; - const invalidValues = [ + ]; + const invalidValues = [ undefined, null, "KYT0bf1c35032a71a14c2f719e5a14c1", "KYT0bf1c35032a71a14c2f719e5a14c1dsjkjkjkjkkjk", "q94375dj93458w34", "39485729348", "%&FHKJFvk", - ]; + ]; - testHash(algorithm, validValues, invalidValues); - }); + testHash(algorithm as ValidatorJS.HashAlgorithm, validValues, invalidValues); + } - ["tiger192"].forEach((algorithm: ValidatorJS.HashAlgorithm) => { + for (const algorithm of ["tiger192"]) { const validValues = [ "6281a1f098c5e7290927ed09150d43ff3990a0fe1a48267c", "56268f7bc269cf1bc83d3ce42e07a85632394737918f4760", "46fc0125a148788a3ac1d649566fc04eb84a746f1a6e4fa7", "7731ea1621ae99ea3197b94583d034fdbaa4dce31a67404a", - ]; - const invalidValues = [ + ]; + const invalidValues = [ undefined, null, "KYT0bf1c35032a71a14c2f719e5a14c1", "KYT0bf1c35032a71a14c2f719e5a14c1dsjkjkjkjkkjk", "q94375dj93458w34", "39485729348", "%&FHKJFvk", - ]; + ]; - testHash(algorithm, validValues, invalidValues); - }); + testHash(algorithm as ValidatorJS.HashAlgorithm, validValues, invalidValues); + } }); -describe("IsISSN", function() { - +describe("IsISSN", () => { const validValues = [ "0378-5955", "0000-0000", @@ -3527,34 +3236,31 @@ describe("IsISSN", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isISSN(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isISSN(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isISSN(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isISSN(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isISSN"; const message = "someProperty must be a ISSN"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("IsISSN with options", function() { - +describe("IsISSN with options", () => { const options = {case_sensitive: true, require_hyphen: true}; - const validValues = [ "2434-561X", "0378-5955", @@ -3573,40 +3279,31 @@ describe("IsISSN with options", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isISSN(value, options).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isISSN(value, options)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isISSN(value, options).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isISSN(value, options)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isISSN"; const message = "someProperty must be a ISSN"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); }); - - - - -// ------------------------------------------------------------------------- -// Specifications: array check -// ------------------------------------------------------------------------- - -describe("ArrayContains", function() { - +describe("ArrayContains", () => { const constraint = ["superman"]; const validValues = [["world", "hello", "superman"], ["world", "superman", "hello"], ["superman", "world", "hello"]]; const invalidValues = [null, undefined, ["world", "hello"]]; @@ -3616,32 +3313,30 @@ describe("ArrayContains", function() { someProperty: string[]; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.arrayContains(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.arrayContains(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.arrayContains(value, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.arrayContains(value, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "arrayContains"; const message = "someProperty must contain " + constraint + " values"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("ArrayNotContains", function() { - +describe("ArrayNotContains", () => { const constraint = ["superman"]; const validValues = [["world", "hello"]]; const invalidValues = [null, undefined, ["world", "hello", "superman"], ["world", "superman", "hello"], ["superman", "world", "hello"]]; @@ -3651,32 +3346,30 @@ describe("ArrayNotContains", function() { someProperty: string[]; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.arrayNotContains(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.arrayNotContains(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.arrayNotContains(value, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.arrayNotContains(value, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "arrayNotContains"; const message = "someProperty should not contain " + constraint + " values"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("ArrayNotEmpty", function() { - +describe("ArrayNotEmpty", () => { const validValues = [[0], [""], [null], [undefined], [false], ["world", "hello", "superman"], ["world", "superman", "hello"], ["superman", "world", "hello"]]; const invalidValues: any[] = [null, undefined, []]; @@ -3685,32 +3378,30 @@ describe("ArrayNotEmpty", function() { someProperty: string[]; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.arrayNotEmpty(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.arrayNotEmpty(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.arrayNotEmpty(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.arrayNotEmpty(value)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "arrayNotEmpty"; const message = "someProperty should not be empty"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("ArrayMinSize", function() { - +describe("ArrayMinSize", () => { const constraint = 2; const validValues = [["world", "hello"]]; const invalidValues = [null, undefined, ["hi"]]; @@ -3720,32 +3411,30 @@ describe("ArrayMinSize", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.arrayMinSize(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.arrayMinSize(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.arrayMinSize(value, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.arrayMinSize(value, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "arrayMinSize"; const message = "someProperty must contain at least " + constraint + " elements"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("ArrayMaxSize", function() { - +describe("ArrayMaxSize", () => { const constraint = 2; const validValues = [["world", "hello"]]; const invalidValues = [null, undefined, ["hi", "hello", "javascript"]]; @@ -3755,32 +3444,30 @@ describe("ArrayMaxSize", function() { someProperty: string; } - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.arrayMaxSize(value, constraint).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.arrayMaxSize(value, constraint)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.arrayMaxSize(value, constraint).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.arrayMaxSize(value, constraint)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "arrayMaxSize"; const message = "someProperty must contain not more than " + constraint + " elements"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("ArrayUnique", function () { - +describe("ArrayUnique", () => { const validValues = [["world", "hello", "superman"], ["world", "superman", "hello"], ["superman", "world", "hello"]]; const invalidValues: any[] = [null, undefined, ["world", "hello", "hello"], ["world", "hello", "world"], ["1", "1", "1"]]; @@ -3789,34 +3476,37 @@ describe("ArrayUnique", function () { someProperty: string[]; } - it("should not fail if validator.validate said that its valid", function (done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function (done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function () { - validValues.forEach(value => validator.arrayUnique(value).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.arrayUnique(value)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function () { - invalidValues.forEach(value => validator.arrayUnique(value).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.arrayUnique(value)).toBeFalsy()); }); - it("should return error object with proper data", function (done) { + it("should return error object with proper data", () => { const validationType = "arrayUnique"; const message = "All someProperty's elements must be unique"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); -describe("isInstance", function () { +describe("isInstance", () => { + class MySubClass { + // Empty + } - class MySubClass { } - class WrongSubClass {} + class WrongSubClass { + // Empty + } class MyClass { @IsInstance(MySubClass) @@ -3824,28 +3514,27 @@ describe("isInstance", function () { } const validValues = [new MySubClass()]; - const invalidValues = [null, undefined, 15, "something", new WrongSubClass(), () => null]; + const invalidValues = [null, undefined, 15, "something", new WrongSubClass(), (): null => null]; - it("should not fail if validator.validate said that its valid", function(done) { - checkValidValues(new MyClass(), validValues, done); + it("should not fail if validator.validate said that its valid", () => { + return checkValidValues(new MyClass(), validValues); }); - it("should fail if validator.validate said that its invalid", function(done) { - checkInvalidValues(new MyClass(), invalidValues, done); + it("should fail if validator.validate said that its invalid", () => { + return checkInvalidValues(new MyClass(), invalidValues); }); - it("should not fail if method in validator said that its valid", function() { - validValues.forEach(value => validator.isInstance(value, MySubClass).should.be.true); + it("should not fail if method in validator said that its valid", () => { + validValues.forEach(value => expect(validator.isInstance(value, MySubClass)).toBeTruthy()); }); - it("should fail if method in validator said that its invalid", function() { - invalidValues.forEach(value => validator.isInstance(value, MySubClass).should.be.false); + it("should fail if method in validator said that its invalid", () => { + invalidValues.forEach(value => expect(validator.isInstance(value, MySubClass)).toBeFalsy()); }); - it("should return error object with proper data", function(done) { + it("should return error object with proper data", () => { const validationType = "isInstance"; const message = "someProperty must be an instance of MySubClass"; - checkReturnedError(new MyClass(), invalidValues, validationType, message, done); + return checkReturnedError(new MyClass(), invalidValues, validationType, message); }); - }); diff --git a/test/functional/validation-options.spec.ts b/test/functional/validation-options.spec.ts index d4c66ff498..36d8f4d63b 100644 --- a/test/functional/validation-options.spec.ts +++ b/test/functional/validation-options.spec.ts @@ -1,14 +1,6 @@ -import "es6-shim"; -import {Contains, IsDefined, Matches, MinLength, ValidateNested, ValidatorConstraint, Validate } from "../../src/decorator/decorators"; +import {Contains, IsDefined, Matches, MinLength, Validate, ValidateNested, ValidatorConstraint} from "../../src/decorator/decorators"; import {Validator} from "../../src/validation/Validator"; -import {ValidationError, ValidatorConstraintInterface, ValidationOptions, registerDecorator, ValidationArguments} from "../../src"; - -import {should, use} from "chai"; - -import * as chaiAsPromised from "chai-as-promised"; - -should(); -use(chaiAsPromised); +import {registerDecorator, ValidationArguments, ValidationError, ValidationOptions, ValidatorConstraintInterface} from "../../src"; // ------------------------------------------------------------------------- // Setup @@ -20,1043 +12,1034 @@ const validator = new Validator(); // Specifications: common decorators // ------------------------------------------------------------------------- -describe("validation options", function() { +describe("message", () => { + + it("should contain a custom message", () => { + class MyClass { + @Contains("hello", { + message: "String is not valid. You string must contain a hello word" + }) + someProperty: string; + } + + const model = new MyClass(); + // TODO: Why is this commented out? + // model.someProperty = "hell no world"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({contains: "String is not valid. You string must contain a hello word"}); + }); + }); + + it("$value token should be replaced in a custom message", () => { + class MyClass { + @Contains("hello", { + message: "$value is not valid. You string must contain a hello word" + }) + someProperty: string; + } + + const model = new MyClass(); + model.someProperty = "hell no world"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({contains: "hell no world is not valid. You string must contain a hello word"}); + }); + }); + + it("$value token should be replaced in a custom message", () => { + class MyClass { + @MinLength(2, { + message: args => { + if (args.value.length < 2) { + return "$value is too short, minimum length is $constraint1 characters $property"; + } + } + }) + name: string; + } + + const model = new MyClass(); + model.name = ""; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({minLength: " is too short, minimum length is 2 characters name"}); + }); + }); + + it("$constraint1 token should be replaced in a custom message", () => { + class MyClass { + @Contains("hello", { + message: "String is not valid. You string must contain a $constraint1 word" + }) + someProperty: string; + } + + const model = new MyClass(); + model.someProperty = "hell no world"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({contains: "String is not valid. You string must contain a hello word"}); + }); + }); + + it("$target token should be replaced in a custom message", () => { + class MyClass { + @Contains("hello", { + message: "$target is not valid." + }) + someProperty: string; + } + + const model = new MyClass(); + model.someProperty = "hell no world"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({contains: "MyClass is not valid."}); + }); + }); + + it("$property token should be replaced in a custom message", () => { + class MyClass { + @Contains("hello", { + message: "$property is not valid." + }) + someProperty: string; + } + + const model = new MyClass(); + model.someProperty = "hell no world"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({contains: "someProperty is not valid."}); + }); + }); + + it("should replace all token", () => { + class MyClass { + @Contains("hello", { + message: "$target#$property is not valid: $value must contain a $constraint1 word" + }) + someProperty: string; + } + + const model = new MyClass(); + model.someProperty = "hell no world"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({contains: "MyClass#someProperty is not valid: hell no world must contain a hello word"}); + }); + }); + +}); + +describe("each", () => { - describe("message", function() { + describe("Array", () => { - it("should contain a custom message", function() { + it("should apply validation to each item in the array", () => { class MyClass { @Contains("hello", { - message: "String is not valid. You string must contain a hello word" + each: true }) - someProperty: string; + someProperty: string[]; } const model = new MyClass(); - // model.someProperty = "hell no world"; + model.someProperty = ["hell no world", "hello", "helo world", "hello world", "hello dear friend"]; return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ contains: "String is not valid. You string must contain a hello word" }); + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({contains: "each value in someProperty must contain a hello string"}); + expect(errors[0].value).toEqual(model.someProperty); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("someProperty"); }); }); - it("$value token should be replaced in a custom message", function() { + it("should apply validation via custom constraint class to array items (but not array itself)", () => { + @ValidatorConstraint({name: "customIsNotArrayConstraint", async: false}) + class CustomIsNotArrayConstraint implements ValidatorConstraintInterface { + validate(value: any): boolean { + return !(value instanceof Array); + } + } + class MyClass { - @Contains("hello", { - message: "$value is not valid. You string must contain a hello word" + @Validate(CustomIsNotArrayConstraint, { + each: true }) - someProperty: string; + someArrayOfNonArrayItems: string[]; } const model = new MyClass(); - model.someProperty = "hell no world"; + model.someArrayOfNonArrayItems = ["not array", "also not array", "not array at all"]; return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ contains: "hell no world is not valid. You string must contain a hello word" }); + expect(errors.length).toEqual(0); }); }); - it("$value token should be replaced in a custom message", function() { + it("should apply validation via custom constraint class with synchronous logic to each item in the array", () => { + @ValidatorConstraint({name: "customContainsHelloConstraint", async: false}) + class CustomContainsHelloConstraint implements ValidatorConstraintInterface { + validate(value: any): boolean { + return !(value instanceof Array) && String(value).includes("hello"); + } + } + class MyClass { - @MinLength(2, { - message: args => { - if (args.value.length < 2) { - return "$value is too short, minimum length is $constraint1 characters $property"; - } - } + @Validate(CustomContainsHelloConstraint, { + each: true }) - name: string; + someProperty: string[]; } const model = new MyClass(); - model.name = ""; + model.someProperty = ["hell no world", "hello", "helo world", "hello world", "hello dear friend"]; return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ minLength: " is too short, minimum length is 2 characters name" }); + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({customContainsHelloConstraint: ""}); + expect(errors[0].value).toEqual(model.someProperty); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("someProperty"); }); }); - it("$constraint1 token should be replaced in a custom message", function() { + it("should apply validation via custom constraint class with async logic to each item in the array", () => { + @ValidatorConstraint({name: "customAsyncContainsHelloConstraint", async: true}) + class CustomAsyncContainsHelloConstraint implements ValidatorConstraintInterface { + validate(value: any): Promise { + const isValid = !(value instanceof Array) && String(value).includes("hello"); + return Promise.resolve(isValid); + } + } + class MyClass { - @Contains("hello", { - message: "String is not valid. You string must contain a $constraint1 word" + @Validate(CustomAsyncContainsHelloConstraint, { + each: true }) - someProperty: string; + someProperty: string[]; } const model = new MyClass(); - model.someProperty = "hell no world"; + model.someProperty = ["hell no world", "hello", "helo world", "hello world", "hello dear friend"]; return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ contains: "String is not valid. You string must contain a hello word" }); + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({customAsyncContainsHelloConstraint: ""}); + expect(errors[0].value).toEqual(model.someProperty); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("someProperty"); }); }); - it("$target token should be replaced in a custom message", function() { + it("should apply validation via custom constraint class with mixed (synchronous + async) logic to each item in the array", () => { + @ValidatorConstraint({name: "customMixedContainsHelloConstraint", async: true}) + class CustomMixedContainsHelloConstraint implements ValidatorConstraintInterface { + validate(value: any): boolean | Promise { + const isValid = !(value instanceof Array) && String(value).includes("hello"); + return isValid ? isValid : Promise.resolve(isValid); + } + } + class MyClass { - @Contains("hello", { - message: "$target is not valid." + @Validate(CustomMixedContainsHelloConstraint, { + each: true }) - someProperty: string; + someProperty: string[]; } const model = new MyClass(); - model.someProperty = "hell no world"; + model.someProperty = ["hell no world", "hello", "helo world", "hello world", "hello dear friend"]; return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ contains: "MyClass is not valid." }); + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({customMixedContainsHelloConstraint: ""}); + expect(errors[0].value).toEqual(model.someProperty); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("someProperty"); }); }); + }); + + describe("Set", () => { - it("$property token should be replaced in a custom message", function() { + it("should apply validation to each item in the Set", () => { class MyClass { @Contains("hello", { - message: "$property is not valid." + each: true }) - someProperty: string; + someProperty: Set; } const model = new MyClass(); - model.someProperty = "hell no world"; + model.someProperty = new Set(["hell no world", "hello", "helo world", "hello world", "hello dear friend"]); return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ contains: "someProperty is not valid." }); + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({contains: "each value in someProperty must contain a hello string"}); + expect(errors[0].value).toEqual(model.someProperty); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("someProperty"); }); }); - it("should replace all token", function() { + it("should apply validation via custom constraint class to Set items (but not Set itself)", () => { + @ValidatorConstraint({name: "customIsNotSetConstraint", async: false}) + class CustomIsNotSetConstraint implements ValidatorConstraintInterface { + validate(value: any): boolean { + return !(value instanceof Set); + } + } + class MyClass { - @Contains("hello", { - message: "$target#$property is not valid: $value must contain a $constraint1 word" + @Validate(CustomIsNotSetConstraint, { + each: true }) - someProperty: string; + someSetOfNonSetItems: Set; } const model = new MyClass(); - model.someProperty = "hell no world"; + model.someSetOfNonSetItems = new Set(["not array", "also not array", "not array at all"]); return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ contains: "MyClass#someProperty is not valid: hell no world must contain a hello word" }); + expect(errors.length).toEqual(0); }); }); - }); - - describe("each", function() { - - describe("Array", function() { - - it("should apply validation to each item in the array", function() { - class MyClass { - @Contains("hello", { - each: true - }) - someProperty: string[]; + it("should apply validation via custom constraint class with synchronous logic to each item in the Set", () => { + @ValidatorConstraint({name: "customContainsHelloConstraint", async: false}) + class CustomContainsHelloConstraint implements ValidatorConstraintInterface { + validate(value: any): boolean { + return !(value instanceof Set) && String(value).includes("hello"); } + } - const model = new MyClass(); - model.someProperty = ["hell no world", "hello", "helo world", "hello world", "hello dear friend"]; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ contains: "each value in someProperty must contain a hello string" }); - errors[0].value.should.be.equal(model.someProperty); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("someProperty"); - }); + class MyClass { + @Validate(CustomContainsHelloConstraint, { + each: true + }) + someProperty: Set; + } + + const model = new MyClass(); + model.someProperty = new Set(["hell no world", "hello", "helo world", "hello world", "hello dear friend"]); + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({customContainsHelloConstraint: ""}); + expect(errors[0].value).toEqual(model.someProperty); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("someProperty"); }); + }); - it("should apply validation via custom constraint class to array items (but not array itself)", function() { - @ValidatorConstraint({ name: "customIsNotArrayConstraint", async: false }) - class CustomIsNotArrayConstraint implements ValidatorConstraintInterface { - validate(value: any) { - return !(value instanceof Array); - } + it("should apply validation via custom constraint class with async logic to each item in the Set", () => { + @ValidatorConstraint({name: "customAsyncContainsHelloConstraint", async: true}) + class CustomAsyncContainsHelloConstraint implements ValidatorConstraintInterface { + validate(value: any): Promise { + const isValid = !(value instanceof Set) && String(value).includes("hello"); + return Promise.resolve(isValid); } + } - class MyClass { - @Validate(CustomIsNotArrayConstraint, { - each: true - }) - someArrayOfNonArrayItems: string[]; - } + class MyClass { + @Validate(CustomAsyncContainsHelloConstraint, { + each: true + }) + someProperty: Set; + } - const model = new MyClass(); - model.someArrayOfNonArrayItems = ["not array", "also not array", "not array at all"]; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(0); - }); + const model = new MyClass(); + model.someProperty = new Set(["hell no world", "hello", "helo world", "hello world", "hello dear friend"]); + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({customAsyncContainsHelloConstraint: ""}); + expect(errors[0].value).toEqual(model.someProperty); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("someProperty"); }); + }); - it("should apply validation via custom constraint class with synchronous logic to each item in the array", function() { - @ValidatorConstraint({ name: "customContainsHelloConstraint", async: false }) - class CustomContainsHelloConstraint implements ValidatorConstraintInterface { - validate(value: any) { - return !(value instanceof Array) && String(value).includes("hello"); - } + it("should apply validation via custom constraint class with mixed (synchronous + async) logic to each item in the Set", () => { + @ValidatorConstraint({name: "customMixedContainsHelloConstraint", async: true}) + class CustomMixedContainsHelloConstraint implements ValidatorConstraintInterface { + validate(value: any): boolean | Promise { + const isValid = !(value instanceof Set) && String(value).includes("hello"); + return isValid ? isValid : Promise.resolve(isValid); } + } - class MyClass { - @Validate(CustomContainsHelloConstraint, { - each: true - }) - someProperty: string[]; - } + class MyClass { + @Validate(CustomMixedContainsHelloConstraint, { + each: true + }) + someProperty: Set; + } - const model = new MyClass(); - model.someProperty = ["hell no world", "hello", "helo world", "hello world", "hello dear friend"]; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ customContainsHelloConstraint: "" }); - errors[0].value.should.be.equal(model.someProperty); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("someProperty"); - }); + const model = new MyClass(); + model.someProperty = new Set(["hell no world", "hello", "helo world", "hello world", "hello dear friend"]); + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({customMixedContainsHelloConstraint: ""}); + expect(errors[0].value).toEqual(model.someProperty); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("someProperty"); }); + }); - it("should apply validation via custom constraint class with async logic to each item in the array", function() { - @ValidatorConstraint({ name: "customAsyncContainsHelloConstraint", async: true }) - class CustomAsyncContainsHelloConstraint implements ValidatorConstraintInterface { - validate(value: any) { - const isValid = !(value instanceof Array) && String(value).includes("hello"); + }); - return Promise.resolve(isValid); - } - } + describe("Map", () => { - class MyClass { - @Validate(CustomAsyncContainsHelloConstraint, { - each: true - }) - someProperty: string[]; - } + it("should apply validation to each item in the Map", () => { + class MyClass { + @Contains("hello", { + each: true + }) + someProperty: Map; + } - const model = new MyClass(); - model.someProperty = ["hell no world", "hello", "helo world", "hello world", "hello dear friend"]; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ customAsyncContainsHelloConstraint: "" }); - errors[0].value.should.be.equal(model.someProperty); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("someProperty"); - }); + const model = new MyClass(); + model.someProperty = new Map([["key1", "hell no world"], ["key2", "hello"], ["key3", "helo world"], ["key4", "hello world"], ["key5", "hello dear friend"]]); + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({contains: "each value in someProperty must contain a hello string"}); + expect(errors[0].value).toEqual(model.someProperty); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("someProperty"); }); + }); - it("should apply validation via custom constraint class with mixed (synchronous + async) logic to each item in the array", function() { - @ValidatorConstraint({ name: "customMixedContainsHelloConstraint", async: true }) - class CustomMixedContainsHelloConstraint implements ValidatorConstraintInterface { - validate(value: any) { - const isValid = !(value instanceof Array) && String(value).includes("hello"); - - return isValid ? isValid : Promise.resolve(isValid); - } + it("should apply validation via custom constraint class to Map items (but not Map itself)", () => { + @ValidatorConstraint({name: "customIsNotMapConstraint", async: false}) + class CustomIsNotMapConstraint implements ValidatorConstraintInterface { + validate(value: any): boolean { + return !(value instanceof Map); } + } - class MyClass { - @Validate(CustomMixedContainsHelloConstraint, { - each: true - }) - someProperty: string[]; - } + class MyClass { + @Validate(CustomIsNotMapConstraint, { + each: true + }) + someArrayOfNonArrayItems: Map; + } - const model = new MyClass(); - model.someProperty = ["hell no world", "hello", "helo world", "hello world", "hello dear friend"]; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ customMixedContainsHelloConstraint: "" }); - errors[0].value.should.be.equal(model.someProperty); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("someProperty"); - }); + const model = new MyClass(); + model.someArrayOfNonArrayItems = new Map([["key1", "not array"], ["key2", "also not array"], ["key3", "not array at all"]]); + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(0); }); }); - describe("Set", function() { - - it("should apply validation to each item in the Set", function() { - class MyClass { - @Contains("hello", { - each: true - }) - someProperty: Set; + it("should apply validation via custom constraint class with synchronous logic to each item in the Map", () => { + @ValidatorConstraint({name: "customContainsHelloConstraint", async: false}) + class CustomContainsHelloConstraint implements ValidatorConstraintInterface { + validate(value: any): boolean { + return !(value instanceof Map) && String(value).includes("hello"); } + } - const model = new MyClass(); - model.someProperty = new Set(["hell no world", "hello", "helo world", "hello world", "hello dear friend"]); - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ contains: "each value in someProperty must contain a hello string" }); - errors[0].value.should.be.equal(model.someProperty); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("someProperty"); - }); + class MyClass { + @Validate(CustomContainsHelloConstraint, { + each: true + }) + someProperty: Map; + } + + const model = new MyClass(); + model.someProperty = new Map([["key1", "hell no world"], ["key2", "hello"], ["key3", "helo world"], ["key4", "hello world"], ["key5", "hello dear friend"]]); + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({customContainsHelloConstraint: ""}); + expect(errors[0].value).toEqual(model.someProperty); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("someProperty"); }); + }); - it("should apply validation via custom constraint class to Set items (but not Set itself)", function() { - @ValidatorConstraint({ name: "customIsNotSetConstraint", async: false }) - class CustomIsNotSetConstraint implements ValidatorConstraintInterface { - validate(value: any) { - return !(value instanceof Set); - } + it("should apply validation via custom constraint class with async logic to each item in the Map", () => { + @ValidatorConstraint({name: "customAsyncContainsHelloConstraint", async: true}) + class CustomAsyncContainsHelloConstraint implements ValidatorConstraintInterface { + validate(value: any): Promise { + const isValid = !(value instanceof Map) && String(value).includes("hello"); + return Promise.resolve(isValid); } + } - class MyClass { - @Validate(CustomIsNotSetConstraint, { - each: true - }) - someSetOfNonSetItems: Set; - } + class MyClass { + @Validate(CustomAsyncContainsHelloConstraint, { + each: true + }) + someProperty: Map; + } - const model = new MyClass(); - model.someSetOfNonSetItems = new Set(["not array", "also not array", "not array at all"]); - return validator.validate(model).then(errors => { - errors.length.should.be.equal(0); - }); + const model = new MyClass(); + model.someProperty = new Map([["key1", "hell no world"], ["key2", "hello"], ["key3", "helo world"], ["key4", "hello world"], ["key5", "hello dear friend"]]); + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({customAsyncContainsHelloConstraint: ""}); + expect(errors[0].value).toEqual(model.someProperty); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("someProperty"); }); + }); - it("should apply validation via custom constraint class with synchronous logic to each item in the Set", function() { - @ValidatorConstraint({ name: "customContainsHelloConstraint", async: false }) - class CustomContainsHelloConstraint implements ValidatorConstraintInterface { - validate(value: any) { - return !(value instanceof Set) && String(value).includes("hello"); - } + it("should apply validation via custom constraint class with mixed (synchronous + async) logic to each item in the Map", () => { + @ValidatorConstraint({name: "customMixedContainsHelloConstraint", async: true}) + class CustomMixedContainsHelloConstraint implements ValidatorConstraintInterface { + validate(value: any): boolean | Promise { + const isValid = !(value instanceof Map) && String(value).includes("hello"); + return isValid ? isValid : Promise.resolve(isValid); } + } - class MyClass { - @Validate(CustomContainsHelloConstraint, { - each: true - }) - someProperty: Set; - } + class MyClass { + @Validate(CustomMixedContainsHelloConstraint, { + each: true + }) + someProperty: Map; + } - const model = new MyClass(); - model.someProperty = new Set(["hell no world", "hello", "helo world", "hello world", "hello dear friend"]); - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ customContainsHelloConstraint: "" }); - errors[0].value.should.be.equal(model.someProperty); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("someProperty"); - }); + const model = new MyClass(); + model.someProperty = new Map([["key1", "hell no world"], ["key2", "hello"], ["key3", "helo world"], ["key4", "hello world"], ["key5", "hello dear friend"]]); + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({customMixedContainsHelloConstraint: ""}); + expect(errors[0].value).toEqual(model.someProperty); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("someProperty"); }); + }); - it("should apply validation via custom constraint class with async logic to each item in the Set", function() { - @ValidatorConstraint({ name: "customAsyncContainsHelloConstraint", async: true }) - class CustomAsyncContainsHelloConstraint implements ValidatorConstraintInterface { - validate(value: any) { - const isValid = !(value instanceof Set) && String(value).includes("hello"); + }); - return Promise.resolve(isValid); - } - } +}); - class MyClass { - @Validate(CustomAsyncContainsHelloConstraint, { - each: true - }) - someProperty: Set; - } +describe("groups", () => { + function expectTitleContains(error: ValidationError): void { + expect(error.constraints).toEqual({contains: "title must contain a hello string"}); + } + + function expectTextContains(error: ValidationError): void { + expect(error.constraints).toEqual({contains: "text must contain a bye string"}); + } + + class MyClass { + @Contains("hello", { + groups: ["title-validation"] + }) + title: string; + + @Contains("bye", { + groups: ["text-validation"] + }) + text: string; + } + + const validTitle = new MyClass(); + validTitle.title = "hello world"; + validTitle.text = "hello world"; + + const validText = new MyClass(); + validText.title = "bye world"; + validText.text = "bye world"; + + const validBoth = new MyClass(); + validBoth.title = "hello world"; + validBoth.text = "bye world"; + + const validNone = new MyClass(); + validNone.title = "bye world"; + validNone.text = "hello world"; + + describe("should validate only properties of the given group: title-validation", () => { + it("with valid title", () => { + return validator.validate(validTitle, {groups: ["title-validation"]}).then(errors => { + expect(errors.length).toEqual(0); + }); + }); - const model = new MyClass(); - model.someProperty = new Set(["hell no world", "hello", "helo world", "hello world", "hello dear friend"]); - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ customAsyncContainsHelloConstraint: "" }); - errors[0].value.should.be.equal(model.someProperty); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("someProperty"); - }); + it("with valid text", () => { + return validator.validate(validText, {groups: ["title-validation"]}).then(errors => { + expect(errors.length).toEqual(1); + expectTitleContains(errors[0]); }); + }); - it("should apply validation via custom constraint class with mixed (synchronous + async) logic to each item in the Set", function() { - @ValidatorConstraint({ name: "customMixedContainsHelloConstraint", async: true }) - class CustomMixedContainsHelloConstraint implements ValidatorConstraintInterface { - validate(value: any) { - const isValid = !(value instanceof Set) && String(value).includes("hello"); + it("with both valid", () => { + return validator.validate(validBoth, {groups: ["title-validation"]}).then(errors => { + expect(errors.length).toEqual(0); + }); + }); - return isValid ? isValid : Promise.resolve(isValid); - } - } + it("with none valid", () => { + return validator.validate(validNone, {groups: ["title-validation"]}).then(errors => { + expect(errors.length).toEqual(1); + expectTitleContains(errors[0]); + }); + }); - class MyClass { - @Validate(CustomMixedContainsHelloConstraint, { - each: true - }) - someProperty: Set; - } + }); - const model = new MyClass(); - model.someProperty = new Set(["hell no world", "hello", "helo world", "hello world", "hello dear friend"]); - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ customMixedContainsHelloConstraint: "" }); - errors[0].value.should.be.equal(model.someProperty); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("someProperty"); - }); + describe("should validate only properties of the given group: text-validation", () => { + it("with valid title", () => { + return validator.validate(validTitle, {groups: ["text-validation"]}).then(errors => { + expect(errors.length).toEqual(1); + expectTextContains(errors[0]); }); - }); - describe("Map", function() { - - it("should apply validation to each item in the Map", function() { - class MyClass { - @Contains("hello", { - each: true - }) - someProperty: Map; - } + it("with valid text", () => { + return validator.validate(validText, {groups: ["text-validation"]}).then(errors => { + expect(errors.length).toEqual(0); + }); + }); - const model = new MyClass(); - model.someProperty = new Map([["key1", "hell no world"], ["key2", "hello"], ["key3", "helo world"], ["key4", "hello world"], ["key5", "hello dear friend"]]); - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ contains: "each value in someProperty must contain a hello string" }); - errors[0].value.should.be.equal(model.someProperty); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("someProperty"); - }); + it("with both valid", () => { + return validator.validate(validBoth, {groups: ["text-validation"]}).then(errors => { + expect(errors.length).toEqual(0); }); + }); - it("should apply validation via custom constraint class to Map items (but not Map itself)", function() { - @ValidatorConstraint({ name: "customIsNotMapConstraint", async: false }) - class CustomIsNotMapConstraint implements ValidatorConstraintInterface { - validate(value: any) { - return !(value instanceof Map); - } - } + it("with none valid", () => { + return validator.validate(validNone, {groups: ["text-validation"]}).then(errors => { + expect(errors.length).toEqual(1); + expectTextContains(errors[0]); + }); + }); - class MyClass { - @Validate(CustomIsNotMapConstraint, { - each: true - }) - someArrayOfNonArrayItems: Map; - } + }); - const model = new MyClass(); - model.someArrayOfNonArrayItems = new Map([["key1", "not array"], ["key2", "also not array"], ["key3", "not array at all"]]); - return validator.validate(model).then(errors => { - errors.length.should.be.equal(0); - }); + describe("should validate only properties of the given groups: both groups", () => { + it("with valid title", () => { + return validator.validate(validTitle, {groups: ["title-validation", "text-validation"]}).then(errors => { + expect(errors.length).toEqual(1); + expectTextContains(errors[0]); }); + }); - it("should apply validation via custom constraint class with synchronous logic to each item in the Map", function() { - @ValidatorConstraint({ name: "customContainsHelloConstraint", async: false }) - class CustomContainsHelloConstraint implements ValidatorConstraintInterface { - validate(value: any) { - return !(value instanceof Map) && String(value).includes("hello"); - } - } - - class MyClass { - @Validate(CustomContainsHelloConstraint, { - each: true - }) - someProperty: Map; - } + it("with valid text", () => { + return validator.validate(validText, {groups: ["title-validation", "text-validation"]}).then(errors => { + expect(errors.length).toEqual(1); + expectTitleContains(errors[0]); + }); + }); - const model = new MyClass(); - model.someProperty = new Map([["key1", "hell no world"], ["key2", "hello"], ["key3", "helo world"], ["key4", "hello world"], ["key5", "hello dear friend"]]); - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ customContainsHelloConstraint: "" }); - errors[0].value.should.be.equal(model.someProperty); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("someProperty"); - }); + it("with both valid", () => { + return validator.validate(validBoth, {groups: ["title-validation", "text-validation"]}).then(errors => { + expect(errors.length).toEqual(0); }); + }); - it("should apply validation via custom constraint class with async logic to each item in the Map", function() { - @ValidatorConstraint({ name: "customAsyncContainsHelloConstraint", async: true }) - class CustomAsyncContainsHelloConstraint implements ValidatorConstraintInterface { - validate(value: any) { - const isValid = !(value instanceof Map) && String(value).includes("hello"); + it("with none valid", () => { + return validator.validate(validNone, {groups: ["title-validation", "text-validation"]}).then(errors => { + expect(errors.length).toEqual(2); + expectTitleContains(errors[0]); + expectTextContains(errors[1]); + }); + }); + }); - return Promise.resolve(isValid); - } - } + describe("should validate all if no group is given", () => { + it("with valid title", () => { // todo: all or without? what is better expected behaviour? + return validator.validate(validTitle).then(errors => { + expect(errors.length).toEqual(1); + expectTextContains(errors[0]); + }); + }); - class MyClass { - @Validate(CustomAsyncContainsHelloConstraint, { - each: true - }) - someProperty: Map; - } + it("with valid text", () => { // todo: all or without? what is better expected behaviour? + return validator.validate(validText).then(errors => { + expect(errors.length).toEqual(1); + expectTitleContains(errors[0]); + }); + }); - const model = new MyClass(); - model.someProperty = new Map([["key1", "hell no world"], ["key2", "hello"], ["key3", "helo world"], ["key4", "hello world"], ["key5", "hello dear friend"]]); - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ customAsyncContainsHelloConstraint: "" }); - errors[0].value.should.be.equal(model.someProperty); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("someProperty"); - }); + it("with both valid", () => { // todo: all or without? what is better expected behaviour? + return validator.validate(validBoth).then(errors => { + expect(errors.length).toEqual(0); }); + }); - it("should apply validation via custom constraint class with mixed (synchronous + async) logic to each item in the Map", function() { - @ValidatorConstraint({ name: "customMixedContainsHelloConstraint", async: true }) - class CustomMixedContainsHelloConstraint implements ValidatorConstraintInterface { - validate(value: any) { - const isValid = !(value instanceof Map) && String(value).includes("hello"); + it("with none valid", () => { // todo: all or without? what is better expected behaviour? + return validator.validate(validNone).then(errors => { + expect(errors.length).toEqual(2); + expectTitleContains(errors[0]); + expectTextContains(errors[1]); + }); + }); - return isValid ? isValid : Promise.resolve(isValid); - } - } + }); - class MyClass { - @Validate(CustomMixedContainsHelloConstraint, { - each: true - }) - someProperty: Map; - } + describe("should validate all groups if empty group array is given", () => { + it("with valid title", () => { + return validator.validate(validTitle, {groups: []}).then(errors => { + expect(errors.length).toEqual(1); + expectTextContains(errors[0]); + }); + }); - const model = new MyClass(); - model.someProperty = new Map([["key1", "hell no world"], ["key2", "hello"], ["key3", "helo world"], ["key4", "hello world"], ["key5", "hello dear friend"]]); - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ customMixedContainsHelloConstraint: "" }); - errors[0].value.should.be.equal(model.someProperty); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("someProperty"); - }); + it("with valid text", () => { + return validator.validate(validText, {groups: []}).then(errors => { + expect(errors.length).toEqual(1); + expectTitleContains(errors[0]); }); + }); + it("with both valid", () => { + return validator.validate(validBoth, {groups: []}).then(errors => { + expect(errors.length).toEqual(0); + }); }); + it("with none valid", () => { + return validator.validate(validNone, {groups: []}).then(errors => { + expect(errors.length).toEqual(2); + expectTitleContains(errors[0]); + expectTextContains(errors[1]); + }); + }); }); - describe("groups", function() { - function expectTitleContains(error: ValidationError) { - error.constraints.should.eql({ contains: "title must contain a hello string" }); - } - - function expectTextContains(error: ValidationError) { - error.constraints.should.eql({ contains: "text must contain a bye string" }); - } - + describe("multiple groups per property", () => { class MyClass { - @Contains("hello", { - groups: ["title-validation"] - }) + @Contains("hello", {groups: ["contains"]}) + @Matches(/.*stranger.*/, {groups: ["matches"]}) title: string; + } - @Contains("bye", { - groups: ["text-validation"] - }) - text: string; + function expectTitleMatches(error: ValidationError): void { + expect(error.constraints).toEqual({matches: "title must match /.*stranger.*/ regular expression"}); } - const validTitle = new MyClass(); - validTitle.title = "hello world"; - validTitle.text = "hello world"; + const validContains = new MyClass(); + validContains.title = "hello"; - const validText = new MyClass(); - validText.title = "bye world"; - validText.text = "bye world"; + const validMatches = new MyClass(); + validMatches.title = "stranger"; const validBoth = new MyClass(); - validBoth.title = "hello world"; - validBoth.text = "bye world"; + validBoth.title = "hello stranger"; const validNone = new MyClass(); - validNone.title = "bye world"; - validNone.text = "hello world"; + validNone.title = "howdy rowdy"; - describe("should validate only properties of the given group: title-validation", function() { - it("with valid title", function() { - return validator.validate(validTitle, { groups: ["title-validation"] }).then(errors => { - errors.length.should.be.equal(0); + describe("group: contains", () => { + it("with valid contains", () => { + return validator.validate(validContains, {groups: ["contains"]}).then(errors => { + expect(errors.length).toEqual(0); }); }); - it("with valid text", function() { - return validator.validate(validText, { groups: ["title-validation"] }).then(errors => { - errors.length.should.be.equal(1); + it("with valid matches", () => { + return validator.validate(validMatches, {groups: ["contains"]}).then(errors => { + expect(errors.length).toEqual(1); expectTitleContains(errors[0]); }); }); - it("with both valid", function() { - return validator.validate(validBoth, { groups: ["title-validation"] }).then(errors => { - errors.length.should.be.equal(0); + it("with valid both", () => { + return validator.validate(validBoth, {groups: ["contains"]}).then(errors => { + expect(errors.length).toEqual(0); }); }); - it("with none valid", function() { - return validator.validate(validNone, { groups: ["title-validation"] }).then(errors => { - errors.length.should.be.equal(1); + it("with valid none", () => { + return validator.validate(validNone, {groups: ["contains"]}).then(errors => { + expect(errors.length).toEqual(1); expectTitleContains(errors[0]); }); }); }); - describe("should validate only properties of the given group: text-validation", function() { - it("with valid title", function() { - return validator.validate(validTitle, { groups: ["text-validation"] }).then(errors => { - errors.length.should.be.equal(1); - expectTextContains(errors[0]); - }); - }); - - it("with valid text", function() { - return validator.validate(validText, { groups: ["text-validation"] }).then(errors => { - errors.length.should.be.equal(0); - }); - }); - - it("with both valid", function() { - return validator.validate(validBoth, { groups: ["text-validation"] }).then(errors => { - errors.length.should.be.equal(0); - }); - }); - - it("with none valid", function() { - return validator.validate(validNone, { groups: ["text-validation"] }).then(errors => { - errors.length.should.be.equal(1); - expectTextContains(errors[0]); - }); - }); - - }); - - describe("should validate only properties of the given groups: both groups", function() { - it("with valid title", function() { - return validator.validate(validTitle, { groups: ["title-validation", "text-validation"] }).then(errors => { - errors.length.should.be.equal(1); - expectTextContains(errors[0]); - }); - }); - - it("with valid text", function() { - return validator.validate(validText, { groups: ["title-validation", "text-validation"] }).then(errors => { - errors.length.should.be.equal(1); - expectTitleContains(errors[0]); - }); - }); - - it("with both valid", function() { - return validator.validate(validBoth, { groups: ["title-validation", "text-validation"] }).then(errors => { - errors.length.should.be.equal(0); - }); - }); - - it("with none valid", function() { - return validator.validate(validNone, { groups: ["title-validation", "text-validation"] }).then(errors => { - errors.length.should.be.equal(2); - expectTitleContains(errors[0]); - expectTextContains(errors[1]); - }); - }); - }); + describe("group: matches", () => { - describe("should validate all if no group is given", function() { - it("with valid title", function() { // todo: all or without? what is better expected behaviour? - return validator.validate(validTitle).then(errors => { - errors.length.should.be.equal(1); - expectTextContains(errors[0]); + it("with valid contains", () => { + return validator.validate(validContains, {groups: ["matches"]}).then(errors => { + expect(errors.length).toEqual(1); + expectTitleMatches(errors[0]); }); }); - it("with valid text", function() { // todo: all or without? what is better expected behaviour? - return validator.validate(validText).then(errors => { - errors.length.should.be.equal(1); - expectTitleContains(errors[0]); + it("with valid matches", () => { + return validator.validate(validMatches, {groups: ["matches"]}).then(errors => { + expect(errors.length).toEqual(0); }); }); - it("with both valid", function() { // todo: all or without? what is better expected behaviour? - return validator.validate(validBoth).then(errors => { - errors.length.should.be.equal(0); + it("with valid both", () => { + return validator.validate(validBoth, {groups: ["matches"]}).then(errors => { + expect(errors.length).toEqual(0); }); }); - it("with none valid", function() { // todo: all or without? what is better expected behaviour? - return validator.validate(validNone).then(errors => { - errors.length.should.be.equal(2); - expectTitleContains(errors[0]); - expectTextContains(errors[1]); + it("with valid none", () => { + return validator.validate(validNone, {groups: ["matches"]}).then(errors => { + expect(errors.length).toEqual(1); + expectTitleMatches(errors[0]); }); }); }); - describe("should validate all groups if empty group array is given", function() { - it("with valid title", function() { - return validator.validate(validTitle, { groups: [] }).then(errors => { - errors.length.should.be.equal(1); - expectTextContains(errors[0]); + describe("groups: contains & matches", () => { + it("with valid contains", () => { + return validator.validate(validContains, {groups: ["contains", "matches"]}).then(errors => { + expect(errors.length).toEqual(1); + expectTitleMatches(errors[0]); }); }); - it("with valid text", function() { - return validator.validate(validText, { groups: [] }).then(errors => { - errors.length.should.be.equal(1); + it("with valid matches", () => { + return validator.validate(validMatches, {groups: ["contains", "matches"]}).then(errors => { + expect(errors.length).toEqual(1); expectTitleContains(errors[0]); }); }); - it("with both valid", function() { - return validator.validate(validBoth, { groups: [] }).then(errors => { - errors.length.should.be.equal(0); + it("with valid both", () => { + return validator.validate(validBoth, {groups: ["contains", "matches"]}).then(errors => { + expect(errors.length).toEqual(0); }); }); - it("with none valid", function() { - return validator.validate(validNone, { groups: [] }).then(errors => { - errors.length.should.be.equal(2); - expectTitleContains(errors[0]); - expectTextContains(errors[1]); - }); - }); - }); - - describe("multiple groups per property", function() { - class MyClass { - @Contains("hello", { groups: ["contains"] }) - @Matches(/.*stranger.*/, { groups: ["matches"] }) - title: string; - } - - function expectTitleMatches(error: ValidationError) { - error.constraints.should.eql({ matches: "title must match /.*stranger.*/ regular expression" }); - } - - const validContains = new MyClass(); - validContains.title = "hello"; - - const validMatches = new MyClass(); - validMatches.title = "stranger"; - - const validBoth = new MyClass(); - validBoth.title = "hello stranger"; - - const validNone = new MyClass(); - validNone.title = "howdy rowdy"; - - describe("group: contains", function() { - it("with valid contains", function() { - return validator.validate(validContains, { groups: ["contains"] }).then(errors => { - errors.length.should.be.equal(0); - }); - }); - - it("with valid matches", function() { - return validator.validate(validMatches, { groups: ["contains"] }).then(errors => { - errors.length.should.be.equal(1); - expectTitleContains(errors[0]); - }); - }); - - it("with valid both", function() { - return validator.validate(validBoth, { groups: ["contains"] }).then(errors => { - errors.length.should.be.equal(0); - }); - }); - - it("with valid none", function() { - return validator.validate(validNone, { groups: ["contains"] }).then(errors => { - errors.length.should.be.equal(1); - expectTitleContains(errors[0]); + it("with valid none", () => { + return validator.validate(validNone, {groups: ["contains", "matches"]}).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].constraints).toEqual({ + contains: "title must contain a hello string", + matches: "title must match /.*stranger.*/ regular expression" }); }); - }); - describe("group: matches", function() { - - it("with valid contains", function() { - return validator.validate(validContains, { groups: ["matches"] }).then(errors => { - errors.length.should.be.equal(1); - expectTitleMatches(errors[0]); - }); - }); - - it("with valid matches", function() { - return validator.validate(validMatches, { groups: ["matches"] }).then(errors => { - errors.length.should.be.equal(0); - }); - }); - - it("with valid both", function() { - return validator.validate(validBoth, { groups: ["matches"] }).then(errors => { - errors.length.should.be.equal(0); - }); - }); + }); - it("with valid none", function() { - return validator.validate(validNone, { groups: ["matches"] }).then(errors => { - errors.length.should.be.equal(1); - expectTitleMatches(errors[0]); - }); - }); + }); - }); + describe("always", () => { - describe("groups: contains & matches", function() { - it("with valid contains", function() { - return validator.validate(validContains, { groups: ["contains", "matches"] }).then(errors => { - errors.length.should.be.equal(1); - expectTitleMatches(errors[0]); - }); - }); - - it("with valid matches", function() { - return validator.validate(validMatches, { groups: ["contains", "matches"] }).then(errors => { - errors.length.should.be.equal(1); - expectTitleContains(errors[0]); - }); - }); + class MyClass { + @Contains("hello", { + groups: ["sometimes"] + }) + title: string; - it("with valid both", function() { - return validator.validate(validBoth, { groups: ["contains", "matches"] }).then(errors => { - errors.length.should.be.equal(0); - }); - }); + @Contains("bye", { + groups: ["always"], + always: true + }) + text: string; + } - it("with valid none", function() { - return validator.validate(validNone, { groups: ["contains", "matches"] }).then(errors => { - errors.length.should.be.equal(1); - errors[0].constraints.should.be.eql({ - contains: "title must contain a hello string", - matches: "title must match /.*stranger.*/ regular expression" - }); - }); - }); + const model = new MyClass(); + it("should always validate a marked field even if another group is specified", () => { + return validator.validate(model, {groups: ["sometimes"]}).then(errors => { + expect(errors.length).toEqual(2); + expectTitleContains(errors[0]); + expectTextContains(errors[1]); }); - }); - describe("always", function() { - - class MyClass { - @Contains("hello", { - groups: ["sometimes"] - }) - title: string; - - @Contains("bye", { - groups: ["always"], - always: true - }) - text: string; - } - - const model = new MyClass(); - - it("should always validate a marked field even if another group is specified", function() { - return validator.validate(model, { groups: ["sometimes"] }).then(errors => { - errors.length.should.be.equal(2); - expectTitleContains(errors[0]); - expectTextContains(errors[1]); - }); - }); - - it("should always validate a marked field if its group is specified also (doubly enabled)", function() { - return validator.validate(model, { groups: ["always"] }).then(errors => { - errors.length.should.be.equal(1); - expectTextContains(errors[0]); - }); + it("should always validate a marked field if its group is specified also (doubly enabled)", () => { + return validator.validate(model, {groups: ["always"]}).then(errors => { + expect(errors.length).toEqual(1); + expectTextContains(errors[0]); }); + }); - it("should always validate *all* fields if group is not specified", function() { - return validator.validate(model, { groups: undefined }).then(errors => { - errors.length.should.be.equal(2); - expectTitleContains(errors[0]); - expectTextContains(errors[1]); - }); + it("should always validate *all* fields if group is not specified", () => { + return validator.validate(model, {groups: undefined}).then(errors => { + expect(errors.length).toEqual(2); + expectTitleContains(errors[0]); + expectTextContains(errors[1]); }); + }); - it("should always validate *all* fields if groups array is empty", function() { - return validator.validate(model, { groups: [] }).then(errors => { - errors.length.should.be.equal(2); - expectTitleContains(errors[0]); - expectTextContains(errors[1]); - }); + it("should always validate *all* fields if groups array is empty", () => { + return validator.validate(model, {groups: []}).then(errors => { + expect(errors.length).toEqual(2); + expectTitleContains(errors[0]); + expectTextContains(errors[1]); }); - }); - describe("groups - nested", function() { - class Nested { - @Contains("hello", { - groups: ["always"], - always: true - }) - text: string; - } + }); - class Root { - @ValidateNested({ groups: ["always"], always: true }) - always = new Nested; + describe("groups - nested", () => { + class Nested { + @Contains("hello", { + groups: ["always"], + always: true + }) + text: string; + } - @ValidateNested({ groups: ["sometimes"] }) - sometimes = new Nested; + class Root { + @ValidateNested({groups: ["always"], always: true}) + always = new Nested; - @ValidateNested({ groups: ["other"] }) - other = new Nested; - } + @ValidateNested({groups: ["sometimes"]}) + sometimes = new Nested; + + @ValidateNested({groups: ["other"]}) + other = new Nested; + } - const model = new Root(); + const model = new Root(); - function expectChildConstraint(error: ValidationError, childName: string) { - error.property.should.be.equal(childName); - error.children.length.should.be.equal(1); - error.children[0].property.should.be.equal("text"); - error.children[0].constraints.should.eql({ contains: "text must contain a hello string" }); - } + function expectChildConstraint(error: ValidationError, childName: string): void { + expect(error.property).toEqual(childName); + expect(error.children.length).toEqual(1); + expect(error.children[0].property).toEqual("text"); + expect(error.children[0].constraints).toEqual({contains: "text must contain a hello string"}); + } - it("should validate all children if no group is given", function() { - return validator.validate(model, { groups: undefined }).then(errors => { - errors.length.should.be.equal(3); - expectChildConstraint(errors[0], "always"); - expectChildConstraint(errors[1], "sometimes"); - expectChildConstraint(errors[2], "other"); - }); + it("should validate all children if no group is given", () => { + return validator.validate(model, {groups: undefined}).then(errors => { + expect(errors.length).toEqual(3); + expectChildConstraint(errors[0], "always"); + expectChildConstraint(errors[1], "sometimes"); + expectChildConstraint(errors[2], "other"); }); + }); - it("should validate only the given group + always", function() { - return validator.validate(model, { groups: ["sometimes"] }).then(errors => { - errors.length.should.be.equal(2); - expectChildConstraint(errors[0], "always"); - expectChildConstraint(errors[1], "sometimes"); - }); + it("should validate only the given group + always", () => { + return validator.validate(model, {groups: ["sometimes"]}).then(errors => { + expect(errors.length).toEqual(2); + expectChildConstraint(errors[0], "always"); + expectChildConstraint(errors[1], "sometimes"); }); + }); - it("should validate only the given group + always", function() { - return validator.validate(model, { groups: ["always"] }).then(errors => { - errors.length.should.be.equal(1); - expectChildConstraint(errors[0], "always"); - }); + it("should validate only the given group + always", () => { + return validator.validate(model, {groups: ["always"]}).then(errors => { + expect(errors.length).toEqual(1); + expectChildConstraint(errors[0], "always"); }); }); }); +}); - describe("context", function() { - - it("should map context", function() { - function IsLongerThan(property: string, validationOptions?: ValidationOptions) { - return function (object: Object, propertyName: string) { - registerDecorator({ - target: object.constructor, - propertyName: propertyName, - options: validationOptions, - constraints: [property], - name: "isLongerThan", - validator: { - validate(value: any, args: ValidationArguments) { - const [relatedPropertyName] = args.constraints; - const relatedValue = (args.object as any)[relatedPropertyName]; - if (relatedValue === undefined || relatedValue === null) - return true; - - return typeof value === "string" && - typeof relatedValue === "string" && - value.length > relatedValue.length; - } +describe("context", () => { + + it("should map context", () => { + function IsLongerThan(property: string, validationOptions?: ValidationOptions) { + return function(object: Record, propertyName: string): void { + registerDecorator({ + target: object.constructor, + propertyName: propertyName, + options: validationOptions, + constraints: [property], + name: "isLongerThan", + validator: { + validate(value: any, args: ValidationArguments): boolean { + const [relatedPropertyName] = args.constraints; + const relatedValue = (args.object as any)[relatedPropertyName]; + if (relatedValue === undefined || relatedValue === null) + return true; + + return typeof value === "string" && + typeof relatedValue === "string" && + value.length > relatedValue.length; } - }); - }; - } - - class MyClass { - @Contains("hello", { - message: "String is not valid. You string must contain a hello word", - context: { - hi: "there" } - }) - someProperty: string; + }); + }; + } - @Contains("bye", { - message: "String is not valid. You string must contain a bye word", - context: { - bye: "now" - } - }) - someOtherProperty: string; + class MyClass { + @Contains("hello", { + message: "String is not valid. You string must contain a hello word", + context: { + hi: "there" + } + }) + someProperty: string; - @IsDefined({ - context: { - foo: "bar" - } - }) - requiredProperty: string; + @Contains("bye", { + message: "String is not valid. You string must contain a bye word", + context: { + bye: "now" + } + }) + someOtherProperty: string; - @IsLongerThan("lastName", { - context: { baz: "qux" }, - message: "$property must be longer then $constraint1. Given value: $value" - }) - firstName: string; - - lastName: string; - } + @IsDefined({ + context: { + foo: "bar" + } + }) + requiredProperty: string; - const model = new MyClass(); - model.firstName = "Short"; - model.lastName = "LongerThanFirstName"; + @IsLongerThan("lastName", { + context: {baz: "qux"}, + message: "$property must be longer then $constraint1. Given value: $value" + }) + firstName: string; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(4); - errors[0].contexts["contains"].should.be.eql({ hi: "there" }); - errors[1].contexts["contains"].should.be.eql({ bye: "now" }); - errors[2].contexts["isDefined"].should.be.eql({ foo: "bar" }); - errors[3].contexts["isLongerThan"].should.be.eql({ baz: "qux" }); - }); + lastName: string; + } + + const model = new MyClass(); + model.firstName = "Short"; + model.lastName = "LongerThanFirstName"; + + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(4); + expect(errors[0].contexts["contains"]).toEqual({hi: "there"}); + expect(errors[1].contexts["contains"]).toEqual({bye: "now"}); + expect(errors[2].contexts["isDefined"]).toEqual({foo: "bar"}); + expect(errors[3].contexts["isLongerThan"]).toEqual({baz: "qux"}); }); + }); - it("should map multiple context on a single property for different constraints", function() { - class MyClass { - @Contains("hello", { - message: "String is not valid. You string must contain a hello word", - context: { - hi: "there" - } - }) - @MinLength(20, { - context: { - whats: "up" - } - }) - someProperty: string; - } + it("should map multiple context on a single property for different constraints", () => { + class MyClass { + @Contains("hello", { + message: "String is not valid. You string must contain a hello word", + context: { + hi: "there" + } + }) + @MinLength(20, { + context: { + whats: "up" + } + }) + someProperty: string; + } - const model = new MyClass(); - model.someProperty = "bippity"; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(1); - errors[0].contexts["contains"].should.be.eql({ hi: "there" }); - errors[0].contexts["minLength"].should.be.eql({ whats: "up" }); - }); + const model = new MyClass(); + model.someProperty = "bippity"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(1); + expect(errors[0].contexts["contains"]).toEqual({hi: "there"}); + expect(errors[0].contexts["minLength"]).toEqual({whats: "up"}); }); + }); - it("should not map no context", function() { - class MyClass { - @Contains("hello", { - message: "String is not valid. You string must contain a hello word" - }) - someProperty: string; + it("should not map no context", () => { + class MyClass { + @Contains("hello", { + message: "String is not valid. You string must contain a hello word" + }) + someProperty: string; - @Contains("bye", { - message: "String is not valid. You string must contain a bye word", - context: { - bye: "now" - } - }) - someOtherProperty: string; - } + @Contains("bye", { + message: "String is not valid. You string must contain a bye word", + context: { + bye: "now" + } + }) + someOtherProperty: string; + } - const model = new MyClass(); - // model.someProperty = "hell no world"; - return validator.validate(model).then(errors => { - errors.length.should.be.equal(2); - should().equal(errors[0].contexts, undefined); - errors[1].contexts["contains"].should.be.eql({ bye: "now" }); - }); + const model = new MyClass(); + // model.someProperty = "hell no world"; + return validator.validate(model).then(errors => { + expect(errors.length).toEqual(2); + expect(errors[0].contexts).toBeUndefined(); + expect(errors[1].contexts["contains"]).toEqual({bye: "now"}); }); - }); }); diff --git a/test/functional/validator-options.spec.ts b/test/functional/validator-options.spec.ts index 6cd6303609..7724018ee5 100644 --- a/test/functional/validator-options.spec.ts +++ b/test/functional/validator-options.spec.ts @@ -1,14 +1,5 @@ -import "es6-shim"; import {IsNotEmpty} from "../../src/decorator/decorators"; import {Validator} from "../../src/validation/Validator"; -import {expect} from "chai"; - -import {should, use } from "chai"; - -import * as chaiAsPromised from "chai-as-promised"; - -should(); -use(chaiAsPromised); // ------------------------------------------------------------------------- // Setup @@ -31,11 +22,11 @@ describe("validator options", function() { const model = new MyClass(); model.title = ""; return validator.validate(model, { skipMissingProperties: true, validationError: { target: false } }).then(errors => { - errors.length.should.be.equal(1); - expect(errors[0].target).to.be.undefined; - errors[0].property.should.be.equal("title"); - errors[0].constraints.should.be.eql({ isNotEmpty: "title should not be empty" }); - errors[0].value.should.be.equal(""); + expect(errors.length).toEqual(1); + expect(errors[0].target).toBeUndefined(); + expect(errors[0].property).toEqual("title"); + expect(errors[0].constraints).toEqual({ isNotEmpty: "title should not be empty" }); + expect(errors[0].value).toEqual(""); }); }); @@ -44,12 +35,12 @@ describe("validator options", function() { const anonymousObject = { badKey: "This should not pass." }; return validator.validate(anonymousObject, { forbidUnknownValues: true }).then(errors => { - errors.length.should.be.equal(1); - expect(errors[0].target).to.be.equal(anonymousObject); - expect(errors[0].property).to.be.equal(undefined); - expect(errors[0].value).to.be.equal(undefined); - errors[0].children.should.be.instanceof(Array); - errors[0].constraints.should.be.eql({ unknownValue: "an unknown value was passed to the validate function" }); + expect(errors.length).toEqual(1); + expect(errors[0].target).toEqual(anonymousObject); + expect(errors[0].property).toEqual(undefined); + expect(errors[0].value).toEqual(undefined); + expect(errors[0].children).toBeInstanceOf(Array); + expect(errors[0].constraints).toEqual({ unknownValue: "an unknown value was passed to the validate function" }); }); }); @@ -58,7 +49,7 @@ describe("validator options", function() { const anonymousObject = { badKey: "This should not pass." }; return validator.validate(anonymousObject, { forbidUnknownValues: false }).then(errors => { - errors.length.should.be.equal(0); + expect(errors.length).toEqual(0); }); }); diff --git a/test/functional/whitelist-validation.spec.ts b/test/functional/whitelist-validation.spec.ts index 3750ee3d55..af49b7e505 100644 --- a/test/functional/whitelist-validation.spec.ts +++ b/test/functional/whitelist-validation.spec.ts @@ -1,15 +1,6 @@ -import "es6-shim"; -import {Allow, IsDefined, Min, ValidateNested} from "../../src/decorator/decorators"; +import {Allow, IsDefined, Min} from "../../src/decorator/decorators"; import {Validator} from "../../src/validation/Validator"; -import {expect} from "chai"; -import {ValidationTypes} from "../../src/validation/ValidationTypes"; - -import {should, use } from "chai"; - -import * as chaiAsPromised from "chai-as-promised"; - -should(); -use(chaiAsPromised); +import {ValidationTypes} from "../../src"; // ------------------------------------------------------------------------- // Setup @@ -21,9 +12,9 @@ const validator = new Validator(); // Specifications: allowed validation // ------------------------------------------------------------------------- -describe("whitelist validation", function () { +describe("whitelist validation", () => { - it("should strip non whitelisted properties, but leave whitelisted untouched", function () { + it("should strip non whitelisted properties, but leave whitelisted untouched", () => { class MyClass { @IsDefined() @@ -39,15 +30,14 @@ describe("whitelist validation", function () { model.views = 56; model.unallowedProperty = 42; return validator.validate(model, { whitelist: true }).then(errors => { - expect(errors.length).to.be.equal(0); - expect(model.unallowedProperty).be.undefined; - expect(model.title).to.equal("hello"); - expect(model.views).to.be.equal(56); + expect(errors.length).toEqual(0); + expect(model.unallowedProperty).toBeUndefined(); + expect(model.title).toEqual("hello"); + expect(model.views).toEqual(56); }); }); - it("should be able to whitelist with @Allow", function () { - + it("should be able to whitelist with @Allow", () => { class MyClass { @Allow() views: number; @@ -59,13 +49,13 @@ describe("whitelist validation", function () { model.unallowedProperty = "non-whitelisted"; return validator.validate(model, { whitelist: true }).then(errors => { - expect(errors.length).to.be.equal(0); - expect(model.unallowedProperty).be.undefined; - expect(model.views).to.be.equal(420); + expect(errors.length).toEqual(0); + expect(model.unallowedProperty).toBeUndefined(); + expect(model.views).toEqual(420); }); }); - it("should throw an error when forbidNonWhitelisted flag is set", function () { + it("should throw an error when forbidNonWhitelisted flag is set", () => { class MyClass { } @@ -75,10 +65,10 @@ describe("whitelist validation", function () { model.unallowedProperty = "non-whitelisted"; return validator.validate(model, { whitelist: true, forbidNonWhitelisted: true }).then(errors => { - expect(errors.length).to.be.equal(1); - errors[0].target.should.be.equal(model); - errors[0].property.should.be.equal("unallowedProperty"); - errors[0].constraints.should.haveOwnProperty(ValidationTypes.WHITELIST); + expect(errors.length).toEqual(1); + expect(errors[0].target).toEqual(model); + expect(errors[0].property).toEqual("unallowedProperty"); + expect(errors[0].constraints).toHaveProperty(ValidationTypes.WHITELIST); }); }); diff --git a/test/utils.spec.ts b/test/utils.spec.ts index 54a5662cb5..25d3d34ae1 100644 --- a/test/utils.spec.ts +++ b/test/utils.spec.ts @@ -1,64 +1,33 @@ -import "es6-shim"; - -import { should, use } from "chai"; - -import * as chaiAsPromised from "chai-as-promised"; -import { convertToArray } from "../src/utils"; - -should(); -use(chaiAsPromised); - -// ------------------------------------------------------------------------- -// Setup -// ------------------------------------------------------------------------- - - -// ------------------------------------------------------------------------- -// Specifications: utils unit tests -// ------------------------------------------------------------------------- - -describe("utils", function () { - - describe("convertToArray", function () { - - it("convert Set into array", function () { - - const setExample = new Set(); - setExample.add("hello"); - setExample.add("world"); - - const newArr = convertToArray(setExample); - newArr.should.be.instanceOf(Array); - newArr.length.should.be.equal(2); - newArr.should.contains("hello"); - newArr.should.contains("world"); - }); - - - it("convert Map into array of values", function () { - - const map = new Map(); - map.set("key1", "hello"); - map.set("key2", "world"); - - const newArr = convertToArray(map); - newArr.should.be.instanceOf(Array); - newArr.length.should.be.equal(2); - newArr.should.contains("hello"); - newArr.should.contains("world"); - }); - - it("should return array untouched", function () { - - const arr = ["hello", "world"]; - - const newArr = convertToArray(arr); - arr.should.be.instanceOf(Array); - arr.length.should.be.equal(2); - arr.should.contains("hello"); - arr.should.contains("world"); - }); +import {convertToArray} from "../src/utils"; + +describe("convertToArray", function () { + it("convert Set into array", function () { + const setExample = new Set(); + setExample.add("hello"); + setExample.add("world"); + const newArr = convertToArray(setExample); + expect(newArr).toBeInstanceOf(Array); + expect(newArr.length).toEqual(2); + expect(newArr).toContain("hello"); + expect(newArr).toContain("world"); + }); + it("convert Map into array of values", function () { + const map = new Map(); + map.set("key1", "hello"); + map.set("key2", "world"); + const newArr = convertToArray(map); + expect(newArr).toBeInstanceOf(Array); + expect(newArr.length).toEqual(2); + expect(newArr).toContain("hello"); + expect(newArr).toContain("world"); }); + it("should return array untouched", function () { + const arr = ["hello", "world"]; + expect(arr).toBeInstanceOf(Array); + expect(arr.length).toEqual(2); + expect(arr).toContain("hello"); + expect(arr).toContain("world"); + }); }); diff --git a/tsconfig.json b/tsconfig.json index 0efa191ac2..6e6db14ec0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,19 +1,67 @@ { - "version": "2.0.3", - "compilerOptions": { - "outDir": "build/compiled", - "target": "es5", - "module": "commonjs", - "moduleResolution": "node", - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "sourceMap": true, - "noImplicitAny": true, - "declaration": true, - "lib": ["es6"] - }, - "exclude": [ - "build", - "node_modules" - ] + "include": ["./src", "./test"], + "compilerOptions": { + /* Basic Options */ + // "incremental": true, /* Enable incremental compilation */ + "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ + "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ + "lib": ["ES2015"], /* Specify library files to be included in the compilation. */ + // "allowJs": true, /* Allow javascript files to be compiled. */ + // "checkJs": true, /* Report errors in .js files. */ + // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ + "declaration": true, /* Generates corresponding '.d.ts' file. */ + // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ + "sourceMap": true, /* Generates corresponding '.map' file. */ + // "outFile": "./", /* Concatenate and emit output to single file. */ + "outDir": "./build/compiled", /* Redirect output structure to the directory. */ + // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ + // "composite": true, /* Enable project compilation */ + // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ + // "removeComments": true, /* Do not emit comments to output. */ + // "noEmit": true, /* Do not emit outputs. */ + // "importHelpers": true, /* Import emit helpers from 'tslib'. */ + // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ + // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ + + /* Strict Type-Checking Options */ + "strict": true, /* Enable all strict type-checking options. */ + // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ + "strictNullChecks": false, /* Enable strict null checks. */ + // "strictFunctionTypes": true, /* Enable strict checking of function types. */ + // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ + "strictPropertyInitialization": false, /* Enable strict checking of property initialization in classes. */ + // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ + // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ + + /* Additional Checks */ + // "noUnusedLocals": true, /* Report errors on unused locals. */ + // "noUnusedParameters": true, /* Report errors on unused parameters. */ + // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ + // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ + + /* Module Resolution Options */ + // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ + // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ + // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ + // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ + // "typeRoots": [], /* List of folders to include type definitions from. */ + // "types": [], /* Type declaration files to be included in compilation. */ + // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ + "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ + // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ + + /* Source Map Options */ + // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ + // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ + // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ + + /* Experimental Options */ + "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ + "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ + + /* Advanced Options */ + "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ + } } diff --git a/tslint.json b/tslint.json deleted file mode 100644 index 2186f83007..0000000000 --- a/tslint.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "rules": { - "class-name": true, - "comment-format": [ - true, - "check-space" - ], - "indent": [ - true, - "spaces" - ], - "no-duplicate-variable": true, - "no-eval": true, - "no-internal-module": true, - "no-var-keyword": true, - "one-line": [ - true, - "check-open-brace", - "check-whitespace" - ], - "quotemark": [ - true, - "double" - ], - "semicolon": true, - "triple-equals": [ - true, - "allow-null-check" - ], - "typedef-whitespace": [ - true, - { - "call-signature": "nospace", - "index-signature": "nospace", - "parameter": "nospace", - "property-declaration": "nospace", - "variable-declaration": "nospace" - } - ], - "variable-name": [ - true, - "ban-keywords" - ], - "whitespace": [ - true, - "check-branch", - "check-decl", - "check-operator", - "check-separator", - "check-type" - ] - } -} \ No newline at end of file diff --git a/typings.json b/typings.json deleted file mode 100644 index f74ca2c7a0..0000000000 --- a/typings.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "globalDevDependencies": { - "Q": "github:DefinitelyTyped/DefinitelyTyped/q/Q.d.ts#efd40e67ff323f7147651bdbef03c03ead7b1675", - "assertion-error": "registry:dt/assertion-error#1.0.0+20141105053942", - "chai": "registry:dt/chai#3.4.0+20160216071402", - "chai-as-promised": "registry:dt/chai-as-promised#0.0.0+20160219015317", - "gulp": "registry:dt/gulp#3.8.0+20150825164847", - "mocha": "registry:dt/mocha#2.2.5+20151023103246", - "orchestrator": "registry:dt/orchestrator#0.0.0+20150821143159", - "promises-a-plus": "registry:dt/promises-a-plus#0.0.0+20150118213706", - "sinon": "registry:dt/sinon#1.16.0+20151027143416" - }, - "globalDependencies": { - "es6-shim": "registry:dt/es6-shim#0.31.2+20160215162030", - "node": "registry:dt/node#4.0.0+20160226132328" - } -}