diff --git a/README.md b/README.md index ed46479..4480333 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,6 @@ npm install schema-utils ## API -### validateOptions - **schema.json** ```json @@ -43,20 +41,117 @@ npm install schema-utils "type": ["boolean"] } }, - "errorMessage": { - "option": "should be {Boolean} (https:/github.com/org/repo#anchor)" - }, "additionalProperties": false } ``` ```js import schema from './path/to/schema.json'; -import validateOptions from 'schema-utils'; +import validate from 'schema-utils'; const options = { option: true }; +const configuration = { name: 'Loader Name/Plugin Name/Name' }; -validateOptions(schema, options, 'Loader/Plugin Name'); +validate(schema, options, configuration); +``` + +### `schema` + +Type: `String` + +JSON schema. + +Simple example of schema: + +```json +{ + "type": "object", + "properties": { + "name": { + "description": "This is description of option.", + "type": "string" + } + }, + "additionalProperties": false +} +``` + +### `options` + +Type: `Object` + +Object with options. + +```js +validate( + schema, + { + name: 123, + }, + { name: 'MyPlugin' } +); +``` + +### `configuration` + +Allow to configure validator. + +#### `name` + +Type: `Object` +Default: `"Object"` + +Allow to setup name in validation errors. + +```js +validate(schema, options, { name: 'MyPlugin' }); +``` + +```shell +Invalid configuration object. MyPlugin has been initialised using a configuration object that does not match the API schema. + - configuration.optionName should be a integer. +``` + +#### `baseDataPath` + +Type: `String` +Default: `"configuration"` + +Allow to setup base data path in validation errors. + +```js +validate(schema, options, { name: 'MyPlugin', baseDataPath: 'options' }); +``` + +```shell +Invalid options object. MyPlugin has been initialised using an options object that does not match the API schema. + - options.optionName should be a integer. +``` + +#### `postFormatter` + +Type: `Function` +Default: `undefined` + +Allow to reformat errors. + +```js +validate(schema, options, { + name: 'MyPlugin', + postFormatter: (formattedError, error) => { + if (error.keyword === 'type') { + return `${formattedError}\nAdditional Information.`; + } + + return formattedError; + }, +}); +``` + +```shell +Invalid options object. MyPlugin has been initialised using an options object that does not match the API schema. + - options.optionName should be a integer. + Additional Information. ``` ## Examples @@ -99,10 +194,15 @@ import schema from 'path/to/schema.json'; function loader(src, map) { const options = getOptions(this) || {}; - validateOptions(schema, options, 'Loader Name'); + validateOptions(schema, options, { + name: 'Loader Name', + baseDataPath: 'options', + }); // Code... } + +export default loader; ``` ### `Plugin` @@ -114,7 +214,10 @@ import schema from 'path/to/schema.json'; class Plugin { constructor(options) { - validateOptions(schema, options, 'Plugin Name'); + validateOptions(schema, options, { + name: 'Plugin Name', + baseDataPath: 'options', + }); this.options = options; } @@ -123,6 +226,8 @@ class Plugin { // Code... } } + +export default Plugin; ``` ## Contributing @@ -139,12 +244,12 @@ Please take a moment to read our contributing guidelines if you haven't yet done [npm-url]: https://npmjs.com/package/schema-utils [node]: https://img.shields.io/node/v/schema-utils.svg [node-url]: https://nodejs.org -[deps]: https://david-dm.org/webpack-contrib/schema-utils.svg -[deps-url]: https://david-dm.org/webpack-contrib/schema-utils -[tests]: https://dev.azure.com/webpack-contrib/schema-utils/_apis/build/status/webpack-contrib.schema-utils?branchName=master -[tests-url]: https://dev.azure.com/webpack-contrib/schema-utils/_build/latest?definitionId=2&branchName=master -[cover]: https://codecov.io/gh/webpack-contrib/schema-utils/branch/master/graph/badge.svg -[cover-url]: https://codecov.io/gh/webpack-contrib/schema-utils +[deps]: https://david-dm.org/webpack/schema-utils.svg +[deps-url]: https://david-dm.org/webpack/schema-utils +[tests]: https://dev.azure.com/webpack/schema-utils/_apis/build/status/webpack.schema-utils?branchName=master +[tests-url]: https://dev.azure.com/webpack/schema-utils/_build/latest?definitionId=9&branchName=master +[cover]: https://codecov.io/gh/webpack/schema-utils/branch/master/graph/badge.svg +[cover-url]: https://codecov.io/gh/webpack/schema-utils [chat]: https://badges.gitter.im/webpack/webpack.svg [chat-url]: https://gitter.im/webpack/webpack [size]: https://packagephobia.now.sh/badge?p=schema-utils diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2d7bfe1..991944a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -36,7 +36,7 @@ jobs: pool: vmImage: ubuntu-16.04 strategy: - maxParallel: 4 + maxParallel: 3 matrix: node-12: node_version: ^12.0.0 @@ -79,7 +79,7 @@ jobs: pool: vmImage: macOS-10.14 strategy: - maxParallel: 4 + maxParallel: 3 matrix: node-12: node_version: ^12.0.0 @@ -122,7 +122,7 @@ jobs: pool: vmImage: windows-2019 strategy: - maxParallel: 4 + maxParallel: 3 matrix: node-12: node_version: ^12.0.0 diff --git a/lint-staged.config.js b/lint-staged.config.js index 51ee727..77a86a7 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -1,7 +1,4 @@ module.exports = { - ignore: ['package-lock.json', 'CHANGELOG.md'], - linters: { - '*.js': ['prettier --write', 'eslint --fix', 'git add'], - '*.{json,md,yml,css}': ['prettier --write', 'git add'], - }, + '*.js': ['prettier --write', 'eslint --fix', 'git add'], + '*.{json,md,yml,css}': ['prettier --write', 'git add'], }; diff --git a/package-lock.json b/package-lock.json index d35361d..0e0e93a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,13 @@ { "name": "schema-utils", - "version": "1.0.0", + "version": "2.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { "@babel/cli": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.4.4.tgz", - "integrity": "sha512-XGr5YjQSjgTa6OzQZY57FAJsdeVSAKR/u/KA5exWIz66IKtv/zXtHy+fIZcMry/EgYegwuHE7vzGnrFhjdIAsQ==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.5.0.tgz", + "integrity": "sha512-qNH55fWbKrEsCwID+Qc/3JDPnsSGpIIiMDbppnR8Z6PxLAqMQCFNqBctkIkBrMH49Nx+qqVTrHRWUR+ho2k+qQ==", "dev": true, "requires": { "chokidar": "^2.0.4", @@ -32,18 +32,18 @@ } }, "@babel/core": { - "version": "7.4.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.4.5.tgz", - "integrity": "sha512-OvjIh6aqXtlsA8ujtGKfC7LYWksYSX8yQcM8Ay3LuvVeQ63lcOKgoZWVqcpFwkd29aYU9rVx7jxhfhiEDV9MZA==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.5.4.tgz", + "integrity": "sha512-+DaeBEpYq6b2+ZmHx3tHspC+ZRflrvLqwfv8E3hNr5LVQoyBnL8RPKSBCg+rK2W2My9PWlujBiqd0ZPsR9Q6zQ==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/generator": "^7.4.4", - "@babel/helpers": "^7.4.4", - "@babel/parser": "^7.4.5", + "@babel/generator": "^7.5.0", + "@babel/helpers": "^7.5.4", + "@babel/parser": "^7.5.0", "@babel/template": "^7.4.4", - "@babel/traverse": "^7.4.5", - "@babel/types": "^7.4.4", + "@babel/traverse": "^7.5.0", + "@babel/types": "^7.5.0", "convert-source-map": "^1.1.0", "debug": "^4.1.0", "json5": "^2.1.0", @@ -71,12 +71,12 @@ } }, "@babel/generator": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.4.4.tgz", - "integrity": "sha512-53UOLK6TVNqKxf7RUh8NE851EHRxOOeVXKbK2bivdb+iziMyk03Sr4eaE9OELCbyZAAafAKPDwF2TPUES5QbxQ==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.5.0.tgz", + "integrity": "sha512-1TTVrt7J9rcG5PMjvO7VEG3FrEoEJNHxumRq66GemPmzboLWtIjjcJgk8rokuAS7IiRSpgVSu5Vb9lc99iJkOA==", "dev": true, "requires": { - "@babel/types": "^7.4.4", + "@babel/types": "^7.5.0", "jsesc": "^2.5.1", "lodash": "^4.17.11", "source-map": "^0.5.0", @@ -276,20 +276,20 @@ } }, "@babel/helpers": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.4.4.tgz", - "integrity": "sha512-igczbR/0SeuPR8RFfC7tGrbdTbFL3QTvH6D+Z6zNxnTe//GyqmtHmDkzrqDmyZ3eSwPqB/LhyKoU5DXsp+Vp2A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.5.4.tgz", + "integrity": "sha512-6LJ6xwUEJP51w0sIgKyfvFMJvIb9mWAfohJp0+m6eHJigkFdcH8duZ1sfhn0ltJRzwUIT/yqqhdSfRpCpL7oow==", "dev": true, "requires": { "@babel/template": "^7.4.4", - "@babel/traverse": "^7.4.4", - "@babel/types": "^7.4.4" + "@babel/traverse": "^7.5.0", + "@babel/types": "^7.5.0" } }, "@babel/highlight": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz", - "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", "dev": true, "requires": { "chalk": "^2.0.0", @@ -298,9 +298,9 @@ } }, "@babel/parser": { - "version": "7.4.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.4.5.tgz", - "integrity": "sha512-9mUqkL1FF5T7f0WDFfAoDdiMVPWsdD1gZYzSnaXsxUCUqzuch/8of9G3VUSNiZmMBoRxT3neyVsqeiL/ZPcjew==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.5.0.tgz", + "integrity": "sha512-I5nW8AhGpOXGCCNYGc+p7ExQIBxRFnS2fd/d862bNOKvmoEPjYPcfIjsfdy0ujagYOIYPczKgD9l3FsgTkAzKA==", "dev": true }, "@babel/plugin-proposal-async-generator-functions": { @@ -314,6 +314,16 @@ "@babel/plugin-syntax-async-generators": "^7.2.0" } }, + "@babel/plugin-proposal-dynamic-import": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.5.0.tgz", + "integrity": "sha512-x/iMjggsKTFHYC6g11PL7Qy58IK8H5zqfm9e6hu4z1iH2IRyAp9u9dL80zA6R76yFovETFLKz2VJIC2iIPBuFw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-dynamic-import": "^7.2.0" + } + }, "@babel/plugin-proposal-json-strings": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.2.0.tgz", @@ -325,9 +335,9 @@ } }, "@babel/plugin-proposal-object-rest-spread": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.4.4.tgz", - "integrity": "sha512-dMBG6cSPBbHeEBdFXeQ2QLc5gUpg4Vkaz8octD4aoW/ISO+jBOcsuxYL7bsb5WSu8RLP6boxrBIALEHgoHtO9g==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.5.4.tgz", + "integrity": "sha512-KCx0z3y7y8ipZUMAEEJOyNi11lMb/FOPUjjB113tfowgw0c16EGYos7worCKBcUAh2oG+OBnoUhsnTSoLpV9uA==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", @@ -364,6 +374,15 @@ "@babel/helper-plugin-utils": "^7.0.0" } }, + "@babel/plugin-syntax-dynamic-import": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.2.0.tgz", + "integrity": "sha512-mVxuJ0YroI/h/tbFTPGZR8cv6ai+STMKNBq0f8hFxsxWjl94qqhsb+wXbpNMDPU3cfR1TIsVFzU3nXyZMqyK4w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, "@babel/plugin-syntax-json-strings": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.2.0.tgz", @@ -401,9 +420,9 @@ } }, "@babel/plugin-transform-async-to-generator": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.4.4.tgz", - "integrity": "sha512-YiqW2Li8TXmzgbXw+STsSqPBPFnGviiaSp6CYOq55X8GQ2SGVLrXB6pNid8HkqkZAzOH6knbai3snhP7v0fNwA==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.5.0.tgz", + "integrity": "sha512-mqvkzwIGkq0bEF1zLRRiTdjfomZJDV33AH3oQzHVGkI2VzEmXLpKKOBvEVaFZBJdN0XTyH38s9j/Kiqr68dggg==", "dev": true, "requires": { "@babel/helper-module-imports": "^7.0.0", @@ -456,9 +475,9 @@ } }, "@babel/plugin-transform-destructuring": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.4.4.tgz", - "integrity": "sha512-/aOx+nW0w8eHiEHm+BTERB2oJn5D127iye/SUQl7NjHy0lf+j7h4MKMMSOwdazGq9OxgiNADncE+SRJkCxjZpQ==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.5.0.tgz", + "integrity": "sha512-YbYgbd3TryYYLGyC7ZR+Tq8H/+bCmwoaxHfJHupom5ECstzbRLTch6gOQbhEY9Z4hiCNHEURgq06ykFv9JZ/QQ==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" @@ -476,9 +495,9 @@ } }, "@babel/plugin-transform-duplicate-keys": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.2.0.tgz", - "integrity": "sha512-q+yuxW4DsTjNceUiTzK0L+AfQ0zD9rWaTLiUqHA8p0gxx7lu1EylenfzjeIWNkPy6e/0VG/Wjw9uf9LueQwLOw==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.5.0.tgz", + "integrity": "sha512-igcziksHizyQPlX9gfSjHkE2wmoCH3evvD2qR5w29/Dk0SMKE/eOI7f1HhBdNhR/zxJDqrgpoDTq5YSLH/XMsQ==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" @@ -532,34 +551,37 @@ } }, "@babel/plugin-transform-modules-amd": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.2.0.tgz", - "integrity": "sha512-mK2A8ucqz1qhrdqjS9VMIDfIvvT2thrEsIQzbaTdc5QFzhDjQv2CkJJ5f6BXIkgbmaoax3zBr2RyvV/8zeoUZw==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.5.0.tgz", + "integrity": "sha512-n20UsQMKnWrltocZZm24cRURxQnWIvsABPJlw/fvoy9c6AgHZzoelAIzajDHAQrDpuKFFPPcFGd7ChsYuIUMpg==", "dev": true, "requires": { "@babel/helper-module-transforms": "^7.1.0", - "@babel/helper-plugin-utils": "^7.0.0" + "@babel/helper-plugin-utils": "^7.0.0", + "babel-plugin-dynamic-import-node": "^2.3.0" } }, "@babel/plugin-transform-modules-commonjs": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.4.4.tgz", - "integrity": "sha512-4sfBOJt58sEo9a2BQXnZq+Q3ZTSAUXyK3E30o36BOGnJ+tvJ6YSxF0PG6kERvbeISgProodWuI9UVG3/FMY6iw==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.5.0.tgz", + "integrity": "sha512-xmHq0B+ytyrWJvQTc5OWAC4ii6Dhr0s22STOoydokG51JjWhyYo5mRPXoi+ZmtHQhZZwuXNN+GG5jy5UZZJxIQ==", "dev": true, "requires": { "@babel/helper-module-transforms": "^7.4.4", "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-simple-access": "^7.1.0" + "@babel/helper-simple-access": "^7.1.0", + "babel-plugin-dynamic-import-node": "^2.3.0" } }, "@babel/plugin-transform-modules-systemjs": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.4.4.tgz", - "integrity": "sha512-MSiModfILQc3/oqnG7NrP1jHaSPryO6tA2kOMmAQApz5dayPxWiHqmq4sWH2xF5LcQK56LlbKByCd8Aah/OIkQ==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.5.0.tgz", + "integrity": "sha512-Q2m56tyoQWmuNGxEtUyeEkm6qJYFqs4c+XyXH5RAuYxObRNz9Zgj/1g2GMnjYp2EUyEy7YTrxliGCXzecl/vJg==", "dev": true, "requires": { "@babel/helper-hoist-variables": "^7.4.4", - "@babel/helper-plugin-utils": "^7.0.0" + "@babel/helper-plugin-utils": "^7.0.0", + "babel-plugin-dynamic-import-node": "^2.3.0" } }, "@babel/plugin-transform-modules-umd": { @@ -697,39 +719,41 @@ } }, "@babel/preset-env": { - "version": "7.4.5", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.4.5.tgz", - "integrity": "sha512-f2yNVXM+FsR5V8UwcFeIHzHWgnhXg3NpRmy0ADvALpnhB0SLbCvrCRr4BLOUYbQNLS+Z0Yer46x9dJXpXewI7w==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.5.4.tgz", + "integrity": "sha512-hFnFnouyRNiH1rL8YkX1ANCNAUVC8Djwdqfev8i1415tnAG+7hlA5zhZ0Q/3Q5gkop4HioIPbCEWAalqcbxRoQ==", "dev": true, "requires": { "@babel/helper-module-imports": "^7.0.0", "@babel/helper-plugin-utils": "^7.0.0", "@babel/plugin-proposal-async-generator-functions": "^7.2.0", + "@babel/plugin-proposal-dynamic-import": "^7.5.0", "@babel/plugin-proposal-json-strings": "^7.2.0", - "@babel/plugin-proposal-object-rest-spread": "^7.4.4", + "@babel/plugin-proposal-object-rest-spread": "^7.5.4", "@babel/plugin-proposal-optional-catch-binding": "^7.2.0", "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", "@babel/plugin-syntax-async-generators": "^7.2.0", + "@babel/plugin-syntax-dynamic-import": "^7.2.0", "@babel/plugin-syntax-json-strings": "^7.2.0", "@babel/plugin-syntax-object-rest-spread": "^7.2.0", "@babel/plugin-syntax-optional-catch-binding": "^7.2.0", "@babel/plugin-transform-arrow-functions": "^7.2.0", - "@babel/plugin-transform-async-to-generator": "^7.4.4", + "@babel/plugin-transform-async-to-generator": "^7.5.0", "@babel/plugin-transform-block-scoped-functions": "^7.2.0", "@babel/plugin-transform-block-scoping": "^7.4.4", "@babel/plugin-transform-classes": "^7.4.4", "@babel/plugin-transform-computed-properties": "^7.2.0", - "@babel/plugin-transform-destructuring": "^7.4.4", + "@babel/plugin-transform-destructuring": "^7.5.0", "@babel/plugin-transform-dotall-regex": "^7.4.4", - "@babel/plugin-transform-duplicate-keys": "^7.2.0", + "@babel/plugin-transform-duplicate-keys": "^7.5.0", "@babel/plugin-transform-exponentiation-operator": "^7.2.0", "@babel/plugin-transform-for-of": "^7.4.4", "@babel/plugin-transform-function-name": "^7.4.4", "@babel/plugin-transform-literals": "^7.2.0", "@babel/plugin-transform-member-expression-literals": "^7.2.0", - "@babel/plugin-transform-modules-amd": "^7.2.0", - "@babel/plugin-transform-modules-commonjs": "^7.4.4", - "@babel/plugin-transform-modules-systemjs": "^7.4.4", + "@babel/plugin-transform-modules-amd": "^7.5.0", + "@babel/plugin-transform-modules-commonjs": "^7.5.0", + "@babel/plugin-transform-modules-systemjs": "^7.5.0", "@babel/plugin-transform-modules-umd": "^7.2.0", "@babel/plugin-transform-named-capturing-groups-regex": "^7.4.5", "@babel/plugin-transform-new-target": "^7.4.4", @@ -744,7 +768,7 @@ "@babel/plugin-transform-template-literals": "^7.4.4", "@babel/plugin-transform-typeof-symbol": "^7.2.0", "@babel/plugin-transform-unicode-regex": "^7.4.4", - "@babel/types": "^7.4.4", + "@babel/types": "^7.5.0", "browserslist": "^4.6.0", "core-js-compat": "^3.1.1", "invariant": "^2.2.2", @@ -752,23 +776,6 @@ "semver": "^5.5.0" } }, - "@babel/runtime": { - "version": "7.4.5", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.4.5.tgz", - "integrity": "sha512-TuI4qpWZP6lGOGIuGWtp9sPluqYICmbk8T/1vpSysqJxRPkudh/ofFWyqdcMsDf2s7KvDL4/YHgKyvcS3g9CJQ==", - "dev": true, - "requires": { - "regenerator-runtime": "^0.13.2" - }, - "dependencies": { - "regenerator-runtime": { - "version": "0.13.2", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz", - "integrity": "sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA==", - "dev": true - } - } - }, "@babel/template": { "version": "7.4.4", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.4.4.tgz", @@ -781,17 +788,17 @@ } }, "@babel/traverse": { - "version": "7.4.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.4.5.tgz", - "integrity": "sha512-Vc+qjynwkjRmIFGxy0KYoPj4FdVDxLej89kMHFsWScq999uX+pwcX4v9mWRjW0KcAYTPAuVQl2LKP1wEVLsp+A==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.5.0.tgz", + "integrity": "sha512-SnA9aLbyOCcnnbQEGwdfBggnc142h/rbqqsXcaATj2hZcegCl903pUD/lfpsNBlBSuWow/YDfRyJuWi2EPR5cg==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/generator": "^7.4.4", + "@babel/generator": "^7.5.0", "@babel/helper-function-name": "^7.1.0", "@babel/helper-split-export-declaration": "^7.4.4", - "@babel/parser": "^7.4.5", - "@babel/types": "^7.4.4", + "@babel/parser": "^7.5.0", + "@babel/types": "^7.5.0", "debug": "^4.1.0", "globals": "^11.1.0", "lodash": "^4.17.11" @@ -815,9 +822,9 @@ } }, "@babel/types": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.4.4.tgz", - "integrity": "sha512-dOllgYdnEFOebhkKCjzSVFqw/PmmB8pH6RGOWkY4GsboQNd47b1fBThBSwlHAq9alF9vc1M3+6oqR47R50L0tQ==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.5.0.tgz", + "integrity": "sha512-UFpDVqRABKsW01bvw7/wSUe56uy6RXM5+VJibVVAybDGxEW25jdwiFJEf7ASvSaC7sN7rbE/l3cLp2izav+CtQ==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -844,19 +851,19 @@ } }, "@commitlint/cli": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-8.0.0.tgz", - "integrity": "sha512-wFu+g9v73I2rMRTv27ItIbcrhWqge0ZpUNUIJ9fw8TF7XpmhaUFvGqa2kU6st1F0TyEOrq5ZMzwI8kQZNVLuXg==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-8.1.0.tgz", + "integrity": "sha512-83K5C2nIAgoZlzMegf0/MEBjX+ampUyc/u79RxgX9ZYjzos+RQtNyO7I43dztVxPXSwAnX9XRgoOfkGWA4nbig==", "dev": true, "requires": { - "@commitlint/format": "^8.0.0", - "@commitlint/lint": "^8.0.0", - "@commitlint/load": "^8.0.0", - "@commitlint/read": "^8.0.0", + "@commitlint/format": "^8.1.0", + "@commitlint/lint": "^8.1.0", + "@commitlint/load": "^8.1.0", + "@commitlint/read": "^8.1.0", "babel-polyfill": "6.26.0", "chalk": "2.3.1", "get-stdin": "7.0.0", - "lodash": "4.17.11", + "lodash": "4.17.14", "meow": "5.0.0", "resolve-from": "5.0.0", "resolve-global": "1.0.0" @@ -876,92 +883,91 @@ } }, "@commitlint/config-conventional": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-8.0.0.tgz", - "integrity": "sha512-umg1irroowOV+x8oZPBw8woCogZO5MFKUYQq+fRZvhowoSwDHXYILP3ETcdHUgvytw/K/a8Xvu7iCypK6oZQ+g==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-8.1.0.tgz", + "integrity": "sha512-/JY+FNBnrT91qzDVIoV1Buiigvj7Le7ezFw+oRqu0nYREX03k7xnaG/7t7rUSvm7hM6dnLSOlaUsevjgMI9AEw==", "dev": true }, "@commitlint/ensure": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-8.0.0.tgz", - "integrity": "sha512-rhBO79L9vXeb26JU+14cxZQq46KyyVqlo31C33VIe7oJndUtWrDhZTvMjJeB1pdXh4EU4XWdMo+yzBmuypFgig==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-8.1.0.tgz", + "integrity": "sha512-dBU4CcjN0vJSDNOeSpaHNgQ1ra444u4USvI6PTaHVAS4aeDpZ5Cds1rxkZNsocu48WNycUu0jP84+zjcw2pPLQ==", "dev": true, "requires": { - "lodash": "4.17.11" + "lodash": "4.17.14" } }, "@commitlint/execute-rule": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-8.0.0.tgz", - "integrity": "sha512-E/A2xHqx3syclXAFl8vJY2o/+xtL9axrqbFFF42Bzke+Eflf0mOJviPxDodu2xP0wXMRQ9UokAi/reK9dMtA/A==", - "dev": true, - "requires": { - "babel-runtime": "6.26.0" - } + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-8.1.0.tgz", + "integrity": "sha512-+vpH3RFuO6ypuCqhP2rSqTjFTQ7ClzXtUvXphpROv9v9+7zH4L+Ex+wZLVkL8Xj2cxefSLn/5Kcqa9XyJTn3kg==", + "dev": true }, "@commitlint/format": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/format/-/format-8.0.0.tgz", - "integrity": "sha512-dFxKGLp1T4obi7+YZ2NcSAebJA/dBQwnerRJGz0hWtsO6pheJRe+qC50+GCb2fYGWUc5lIWawaRts0m7RkFGUw==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@commitlint/format/-/format-8.1.0.tgz", + "integrity": "sha512-D0cmabUTQIKdABgt08d9JAvO9+lMRAmkcsZx8TMScY502R67HCw77JhzRDcw1RmqX5rN8JO6ZjDHO92Pbwlt+Q==", "dev": true, "requires": { "chalk": "^2.0.1" } }, "@commitlint/is-ignored": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-8.0.0.tgz", - "integrity": "sha512-geWr/NXGMrZ3qc3exDM+S1qV+nMDxp1LwN3rLpEN2gXTwW3rIXq49RQQUkn0n3BHcpqJJ9EBhjqFoMU1TYx7Ng==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-8.1.0.tgz", + "integrity": "sha512-HUSxx6kuLbqrQ8jb5QRzo+yR+CIXgA9HNcIcZ1qWrb+O9GOixt3mlW8li1IcfIgfODlaWoxIz0jYCxR08IoQLg==", "dev": true, "requires": { - "semver": "6.0.0" + "@types/semver": "^6.0.1", + "semver": "6.1.1" }, "dependencies": { "semver": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.0.0.tgz", - "integrity": "sha512-0UewU+9rFapKFnlbirLi3byoOuhrSsli/z/ihNnvM24vgF+8sNBiI1LZPBSH9wJKUwaUbw+s3hToDLCXkrghrQ==", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.1.1.tgz", + "integrity": "sha512-rWYq2e5iYW+fFe/oPPtYJxYgjBm8sC4rmoGdUOgBB7VnwKt6HrL793l2voH1UlsyYZpJ4g0wfjnTEO1s1NP2eQ==", "dev": true } } }, "@commitlint/lint": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-8.0.0.tgz", - "integrity": "sha512-5nKiJpBDR2iei+fre4+6M7FUrSX1cIMoxXKdrnb1GMOXkw9CsZSF5OvdrX08zHAFmOAeDaohoCV+XN/UN/vWYg==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-8.1.0.tgz", + "integrity": "sha512-WYjbUgtqvnlVH3S3XPZMAa+N7KO0yQ+GuUG20Qra+EtER6SRYawykmEs4wAyrmY8VcFXUnKgSlIQUsqmGKwNZQ==", "dev": true, "requires": { - "@commitlint/is-ignored": "^8.0.0", - "@commitlint/parse": "^8.0.0", - "@commitlint/rules": "^8.0.0", + "@commitlint/is-ignored": "^8.1.0", + "@commitlint/parse": "^8.1.0", + "@commitlint/rules": "^8.1.0", "babel-runtime": "^6.23.0", - "lodash": "4.17.11" + "lodash": "4.17.14" } }, "@commitlint/load": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-8.0.0.tgz", - "integrity": "sha512-JXC3YjO7hN7Rv2Z/SaYz+oIvShsQWLL7gnOCe8+YgI1EusBqjV4mPI0HnBXVe9volfdxbl+Af/GoQZs2dvyOFA==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-8.1.0.tgz", + "integrity": "sha512-ra02Dvmd7Gp1+uFLzTY3yGOpHjPzl5T9wYg/xrtPJNiOWXvQ0Mw7THw+ucd1M5iLUWjvdavv2N87YDRc428wHg==", "dev": true, "requires": { - "@commitlint/execute-rule": "^8.0.0", - "@commitlint/resolve-extends": "^8.0.0", + "@commitlint/execute-rule": "^8.1.0", + "@commitlint/resolve-extends": "^8.1.0", "babel-runtime": "^6.23.0", + "chalk": "2.4.2", "cosmiconfig": "^5.2.0", - "lodash": "4.17.11", + "lodash": "4.17.14", "resolve-from": "^5.0.0" } }, "@commitlint/message": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/message/-/message-8.0.0.tgz", - "integrity": "sha512-2oGUV8630nzsj17t6akq3mFguzWePADO069IwKJi+CN5L0YRBQj9zGRCB0P+zvh4EngjqMnuMwhEhaBEM8TTzA==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@commitlint/message/-/message-8.1.0.tgz", + "integrity": "sha512-AjHq022G8jQQ/3YrBOjwVBD4xF75hvC3vcvFoBIb7cC8vad1QWq+1w+aks0KlEK5IW+/+7ORZXIH+oyW7h3+8A==", "dev": true }, "@commitlint/parse": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-8.0.0.tgz", - "integrity": "sha512-6CyweJrBkI+Jqx7qkpYgVx2muBMoUZAZHWhUTgqHIDDmI+3d4UPZ2plGS2G0969KkHCgjtlwnwTjWqA9HLMwPA==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-8.1.0.tgz", + "integrity": "sha512-n4fEbZ5kdK5HChvne7Mj8rGGkKMfA4H11IuWiWmmMzgmZTNb/B04LPrzdUm4lm3f10XzM2JMM7PLXqofQJOGvA==", "dev": true, "requires": { "conventional-changelog-angular": "^1.3.3", @@ -970,55 +976,106 @@ } }, "@commitlint/read": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/read/-/read-8.0.0.tgz", - "integrity": "sha512-IhNMiKPqkB5yxphe/FiOKgX2uCysbR8fGK6KOXON3uJaVND0dctxnfdv+vY9gDv2CtjIXgNFO+v6FLnqMfIvwA==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@commitlint/read/-/read-8.1.0.tgz", + "integrity": "sha512-PKsGMQFEr2sX/+orI71b82iyi8xFqb7F4cTvsLxzB5x6/QutxPVM3rg+tEVdi6rBKIDuqRIp2puDZQuREZs3vg==", "dev": true, "requires": { - "@commitlint/top-level": "^8.0.0", + "@commitlint/top-level": "^8.1.0", "@marionebl/sander": "^0.6.0", "babel-runtime": "^6.23.0", "git-raw-commits": "^1.3.0" } }, "@commitlint/resolve-extends": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-8.0.0.tgz", - "integrity": "sha512-SPkH+dXMCpYboVwpIhtOhpg1xYdE7L77fuHmEJWveXSmgfi0GosFm4aJ7Cer9DjNjW+KbD0TUfzZU0TrYUESjQ==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-8.1.0.tgz", + "integrity": "sha512-r/y+CeKW72Oa9BUctS1+I/MFCDiI3lfhwfQ65Tpfn6eZ4CuBYKzrCRi++GTHeAFKE3y8q1epJq5Rl/1GBejtBw==", "dev": true, "requires": { - "babel-runtime": "6.26.0", + "@types/node": "^12.0.2", "import-fresh": "^3.0.0", - "lodash": "4.17.11", + "lodash": "4.17.14", "resolve-from": "^5.0.0", "resolve-global": "^1.0.0" } }, "@commitlint/rules": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-8.0.0.tgz", - "integrity": "sha512-s9BehZQP5uAc/V4lMaUxwxFabVZTw5fZ18Ase1e5tbMKVIwq/7E00Ny1czN7xSFXfgffukWznsexpfFXYpbVsg==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-8.1.0.tgz", + "integrity": "sha512-hlM8VfNjsOkbvMteFyqn0c3akiUjqG09Iid28MBLrXl/d+8BR3eTzwJ4wMta4oz/iqGyrIywvg1FpHrV977MPA==", "dev": true, "requires": { - "@commitlint/ensure": "^8.0.0", - "@commitlint/message": "^8.0.0", - "@commitlint/to-lines": "^8.0.0", + "@commitlint/ensure": "^8.1.0", + "@commitlint/message": "^8.1.0", + "@commitlint/to-lines": "^8.1.0", "babel-runtime": "^6.23.0" } }, "@commitlint/to-lines": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-8.0.0.tgz", - "integrity": "sha512-qqgNeyj+NJ1Xffwv6hGsipKlVFj30NmfPup751MS/me0GV8IBd//njTjiqHvf/3sKm/OcGn4Re4D7YXwTcC2RA==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-8.1.0.tgz", + "integrity": "sha512-Lh4OH1bInI8GME/7FggS0/XkIMEJdTObMbXRyPRGaPcWH5S7zpB6y+b4qjzBHXAbEv2O46QAAMjZ+ywPQCpmYQ==", "dev": true }, "@commitlint/top-level": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/top-level/-/top-level-8.0.0.tgz", - "integrity": "sha512-If9hwfISHV8HXGKeXUKsUvOo4DuISWiU/VC2qHsKpeHSREAxkWESmQzzwYvOtyBjMiOTfAXfzgth18g36Fz2ow==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@commitlint/top-level/-/top-level-8.1.0.tgz", + "integrity": "sha512-EvQuofuA/+0l1w9pkG/PRyIwACmZdIh9qxyax7w7mR8qqmSHscqf2jARIylh1TOx0uI9egO8MuPLiwC1RwyREA==", "dev": true, "requires": { - "find-up": "^2.1.0" + "find-up": "^4.0.0" + }, + "dependencies": { + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "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" + } + }, + "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==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "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.2.0" + } + }, + "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 + }, + "path-exists": { + "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 + } } }, "@jest/console": { @@ -1239,6 +1296,32 @@ "rimraf": "^2.5.2" } }, + "@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==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "2.0.1", + "run-parallel": "^1.1.9" + } + }, + "@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==", + "dev": true, + "requires": { + "@nodelib/fs.scandir": "2.1.1", + "fastq": "^1.6.0" + } + }, "@samverschueren/stream-to-observable": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz", @@ -1338,9 +1421,9 @@ "dev": true }, "@types/node": { - "version": "12.0.8", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.0.8.tgz", - "integrity": "sha512-b8bbUOTwzIY3V5vDTY1fIJ+ePKDUBqt2hC2woVGotdQQhG/2Sh62HOKHrT7ab+VerXAcPyAiTEipPu/FsreUtg==", + "version": "12.6.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.6.3.tgz", + "integrity": "sha512-7TEYTQT1/6PP53NftXXabIZDaZfaoBdeBm8Md/i7zsWRoBe0YwOXguyK8vhHs8ehgB/w9U4K/6EWuTyp0W6nIA==", "dev": true }, "@types/normalize-package-data": { @@ -1349,6 +1432,12 @@ "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", "dev": true }, + "@types/semver": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-6.0.1.tgz", + "integrity": "sha512-ffCdcrEE5h8DqVxinQjo+2d1q+FV5z7iNtPofw3JsrltSoSVlOGaW0rY8XxtO9XukdTn8TaCGWmk2VFGhI70mg==", + "dev": true + }, "@types/stack-utils": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-1.0.1.tgz", @@ -1361,186 +1450,10 @@ "integrity": "sha512-SOhuU4wNBxhhTHxYaiG5NY4HBhDIDnJF60GU+2LqHAdKKer86//e4yg69aENCtQ04n0ovz+tq2YPME5t5yp4pw==", "dev": true }, - "@webassemblyjs/ast": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.8.5.tgz", - "integrity": "sha512-aJMfngIZ65+t71C3y2nBBg5FFG0Okt9m0XEgWZ7Ywgn1oMAT8cNwx00Uv1cQyHtidq0Xn94R4TAywO+LCQ+ZAQ==", - "dev": true, - "requires": { - "@webassemblyjs/helper-module-context": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/wast-parser": "1.8.5" - } - }, - "@webassemblyjs/floating-point-hex-parser": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.8.5.tgz", - "integrity": "sha512-9p+79WHru1oqBh9ewP9zW95E3XAo+90oth7S5Re3eQnECGq59ly1Ri5tsIipKGpiStHsUYmY3zMLqtk3gTcOtQ==", - "dev": true - }, - "@webassemblyjs/helper-api-error": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.8.5.tgz", - "integrity": "sha512-Za/tnzsvnqdaSPOUXHyKJ2XI7PDX64kWtURyGiJJZKVEdFOsdKUCPTNEVFZq3zJ2R0G5wc2PZ5gvdTRFgm81zA==", - "dev": true - }, - "@webassemblyjs/helper-buffer": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.8.5.tgz", - "integrity": "sha512-Ri2R8nOS0U6G49Q86goFIPNgjyl6+oE1abW1pS84BuhP1Qcr5JqMwRFT3Ah3ADDDYGEgGs1iyb1DGX+kAi/c/Q==", - "dev": true - }, - "@webassemblyjs/helper-code-frame": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.8.5.tgz", - "integrity": "sha512-VQAadSubZIhNpH46IR3yWO4kZZjMxN1opDrzePLdVKAZ+DFjkGD/rf4v1jap744uPVU6yjL/smZbRIIJTOUnKQ==", - "dev": true, - "requires": { - "@webassemblyjs/wast-printer": "1.8.5" - } - }, - "@webassemblyjs/helper-fsm": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.8.5.tgz", - "integrity": "sha512-kRuX/saORcg8se/ft6Q2UbRpZwP4y7YrWsLXPbbmtepKr22i8Z4O3V5QE9DbZK908dh5Xya4Un57SDIKwB9eow==", - "dev": true - }, - "@webassemblyjs/helper-module-context": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.8.5.tgz", - "integrity": "sha512-/O1B236mN7UNEU4t9X7Pj38i4VoU8CcMHyy3l2cV/kIF4U5KoHXDVqcDuOs1ltkac90IM4vZdHc52t1x8Yfs3g==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.8.5", - "mamacro": "^0.0.3" - } - }, - "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.8.5.tgz", - "integrity": "sha512-Cu4YMYG3Ddl72CbmpjU/wbP6SACcOPVbHN1dI4VJNJVgFwaKf1ppeFJrwydOG3NDHxVGuCfPlLZNyEdIYlQ6QQ==", - "dev": true - }, - "@webassemblyjs/helper-wasm-section": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.8.5.tgz", - "integrity": "sha512-VV083zwR+VTrIWWtgIUpqfvVdK4ff38loRmrdDBgBT8ADXYsEZ5mPQ4Nde90N3UYatHdYoDIFb7oHzMncI02tA==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-buffer": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/wasm-gen": "1.8.5" - } - }, - "@webassemblyjs/ieee754": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.8.5.tgz", - "integrity": "sha512-aaCvQYrvKbY/n6wKHb/ylAJr27GglahUO89CcGXMItrOBqRarUMxWLJgxm9PJNuKULwN5n1csT9bYoMeZOGF3g==", - "dev": true, - "requires": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "@webassemblyjs/leb128": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.8.5.tgz", - "integrity": "sha512-plYUuUwleLIziknvlP8VpTgO4kqNaH57Y3JnNa6DLpu/sGcP6hbVdfdX5aHAV716pQBKrfuU26BJK29qY37J7A==", - "dev": true, - "requires": { - "@xtuc/long": "4.2.2" - } - }, - "@webassemblyjs/utf8": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.8.5.tgz", - "integrity": "sha512-U7zgftmQriw37tfD934UNInokz6yTmn29inT2cAetAsaU9YeVCveWEwhKL1Mg4yS7q//NGdzy79nlXh3bT8Kjw==", - "dev": true - }, - "@webassemblyjs/wasm-edit": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.8.5.tgz", - "integrity": "sha512-A41EMy8MWw5yvqj7MQzkDjU29K7UJq1VrX2vWLzfpRHt3ISftOXqrtojn7nlPsZ9Ijhp5NwuODuycSvfAO/26Q==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-buffer": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/helper-wasm-section": "1.8.5", - "@webassemblyjs/wasm-gen": "1.8.5", - "@webassemblyjs/wasm-opt": "1.8.5", - "@webassemblyjs/wasm-parser": "1.8.5", - "@webassemblyjs/wast-printer": "1.8.5" - } - }, - "@webassemblyjs/wasm-gen": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.8.5.tgz", - "integrity": "sha512-BCZBT0LURC0CXDzj5FXSc2FPTsxwp3nWcqXQdOZE4U7h7i8FqtFK5Egia6f9raQLpEKT1VL7zr4r3+QX6zArWg==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/ieee754": "1.8.5", - "@webassemblyjs/leb128": "1.8.5", - "@webassemblyjs/utf8": "1.8.5" - } - }, - "@webassemblyjs/wasm-opt": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.8.5.tgz", - "integrity": "sha512-HKo2mO/Uh9A6ojzu7cjslGaHaUU14LdLbGEKqTR7PBKwT6LdPtLLh9fPY33rmr5wcOMrsWDbbdCHq4hQUdd37Q==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-buffer": "1.8.5", - "@webassemblyjs/wasm-gen": "1.8.5", - "@webassemblyjs/wasm-parser": "1.8.5" - } - }, - "@webassemblyjs/wasm-parser": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.8.5.tgz", - "integrity": "sha512-pi0SYE9T6tfcMkthwcgCpL0cM9nRYr6/6fjgDtL6q/ZqKHdMWvxitRi5JcZ7RI4SNJJYnYNaWy5UUrHQy998lw==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-api-error": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/ieee754": "1.8.5", - "@webassemblyjs/leb128": "1.8.5", - "@webassemblyjs/utf8": "1.8.5" - } - }, - "@webassemblyjs/wast-parser": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.8.5.tgz", - "integrity": "sha512-daXC1FyKWHF1i11obK086QRlsMsY4+tIOKgBqI1lxAnkp9xe9YMcgOxm9kLe+ttjs5aWV2KKE1TWJCN57/Btsg==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/floating-point-hex-parser": "1.8.5", - "@webassemblyjs/helper-api-error": "1.8.5", - "@webassemblyjs/helper-code-frame": "1.8.5", - "@webassemblyjs/helper-fsm": "1.8.5", - "@xtuc/long": "4.2.2" - } - }, - "@webassemblyjs/wast-printer": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.8.5.tgz", - "integrity": "sha512-w0U0pD4EhlnvRyeJzBqaVSJAo9w/ce7/WPogeXLzGkO6hzhr4GnQIZ4W4uUt5b9ooAaXPtnXlj0gzsXEOUNYMg==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/wast-parser": "1.8.5", - "@xtuc/long": "4.2.2" - } - }, "@webpack-contrib/defaults": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@webpack-contrib/defaults/-/defaults-5.0.0.tgz", - "integrity": "sha512-33gQqfMoSSrqElk1179OizwsWlG/EyqiQQNuRGby1JH034jF4yX82Z+A/8RFuDeVFtwfPS8S44zwvfbWCzLGQA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@webpack-contrib/defaults/-/defaults-5.0.1.tgz", + "integrity": "sha512-KrRUvIoLunP4411gGMJ5177D4YBbmjXMhZU8MmPTr8mksgzIxsxHYjaywV7D53d3HeXfdwsKwJhkf0SfdvSNKw==", "dev": true, "requires": { "chalk": "^2.3.0", @@ -1566,18 +1479,6 @@ "integrity": "sha512-3f0dwuTZ1JZpnoGQ6tAKBWluZKZZBXr1ADoaOAbPiW0OvSN7o0wXFLGyfw6J+fW756xIkZLZ8JDYP5zInIRvBA==", "dev": true }, - "@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", - "dev": true - }, - "@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", - "dev": true - }, "JSONStream": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", @@ -1595,15 +1496,9 @@ "dev": true }, "acorn": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.1.1.tgz", - "integrity": "sha512-jPTiwtOxaHNaAPg/dmrJ/beuzLRnXtB0kQPQ8JpotKJgTB6rX6c8mlf315941pyjBSaPg8NHXS9fhP4u17DpGA==", - "dev": true - }, - "acorn-dynamic-import": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-4.0.0.tgz", - "integrity": "sha512-d3OEjQV4ROpoflsnUA8HozoIR504TFxNivYEUi6uwz0IYhBkTDXGuWlNdMtybRt3nqVx/L6XqMt0FxkXuWKZhw==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.2.0.tgz", + "integrity": "sha512-8oe72N3WPMjA+2zVG71Ia0nXZ8DpQH+QyyHO+p06jT8eg8FGG3FbcUIi8KziHlAfheJQZeoqbvq1mQSQHXKYLw==", "dev": true }, "acorn-globals": { @@ -1623,15 +1518,15 @@ "dev": true }, "acorn-walk": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-6.1.1.tgz", - "integrity": "sha512-OtUw6JUTgxA2QoqqmrmQ7F2NYqiBPi/L2jqHyFtllhOUvXYQXf0Z1CYUinIfyT4bTCGmrA7gX9FvHA81uzCoVw==", + "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.10.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", - "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", + "version": "6.10.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", + "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", "requires": { "fast-deep-equal": "^2.0.1", "fast-json-stable-stringify": "^2.0.0", @@ -1642,12 +1537,13 @@ "ajv-errors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-1.0.1.tgz", - "integrity": "sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==" + "integrity": "sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==", + "dev": true }, "ajv-keywords": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.4.0.tgz", - "integrity": "sha512-aUjdRFISbuFOl0EIZc+9e4FfZp0bDZgAdOOf30bJmw8VM9v84SHyVyxDfbWxpGYbdZD/9XoKxfHVNmxPkhwyGw==" + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.4.1.tgz", + "integrity": "sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ==" }, "ansi-escapes": { "version": "3.2.0", @@ -1697,12 +1593,6 @@ } } }, - "aproba": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "dev": true - }, "argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", @@ -1777,13 +1667,10 @@ "dev": true }, "array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", - "dev": true, - "requires": { - "array-uniq": "^1.0.1" - } + "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-uniq": { "version": "1.0.3", @@ -1812,44 +1699,6 @@ "safer-buffer": "~2.1.0" } }, - "asn1.js": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", - "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", - "dev": true, - "requires": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, - "assert": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", - "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", - "dev": true, - "requires": { - "object-assign": "^4.1.1", - "util": "0.10.3" - }, - "dependencies": { - "inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", - "dev": true - }, - "util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", - "dev": true, - "requires": { - "inherits": "2.0.1" - } - } - } - }, "assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", @@ -1872,7 +1721,8 @@ "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 + "dev": true, + "optional": true }, "async-limiter": { "version": "1.0.0", @@ -1963,6 +1813,15 @@ "slash": "^2.0.0" } }, + "babel-plugin-dynamic-import-node": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.0.tgz", + "integrity": "sha512-o6qFkpeQEBxcqt0XYlWzAVxNCSCZdUgcR8IRlhD/8DylxjjO4foPcvTW0GGKa/cVt3rvxZ7o5ippJ+/0nvLhlQ==", + "dev": true, + "requires": { + "object.assign": "^4.1.0" + } + }, "babel-plugin-istanbul": { "version": "5.1.4", "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-5.1.4.tgz", @@ -2128,12 +1987,6 @@ } } }, - "base64-js": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz", - "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==", - "dev": true - }, "bcrypt-pbkdf": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", @@ -2153,19 +2006,8 @@ "version": "1.13.1", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", - "dev": true - }, - "bluebird": { - "version": "3.5.5", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.5.tgz", - "integrity": "sha512-5am6HnnfN+urzt4yfg7IgTbotDjIT/u8AJpEt0sIU9FtXfVeezXAPKswrG+xKUCOYAINpSdgZVDU6QFh+cuH3w==", - "dev": true - }, - "bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", @@ -2206,12 +2048,6 @@ } } }, - "brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", - "dev": true - }, "browser-process-hrtime": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-0.1.3.tgz", @@ -2235,165 +2071,32 @@ } } }, - "browserify-aes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", - "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "dev": true, - "requires": { - "buffer-xor": "^1.0.3", - "cipher-base": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.3", - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "browserify-cipher": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", - "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", - "dev": true, - "requires": { - "browserify-aes": "^1.0.4", - "browserify-des": "^1.0.0", - "evp_bytestokey": "^1.0.0" - } - }, - "browserify-des": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", - "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", - "dev": true, - "requires": { - "cipher-base": "^1.0.1", - "des.js": "^1.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "browserify-rsa": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", - "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "randombytes": "^2.0.1" - } - }, - "browserify-sign": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz", - "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", - "dev": true, - "requires": { - "bn.js": "^4.1.1", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.2", - "elliptic": "^6.0.0", - "inherits": "^2.0.1", - "parse-asn1": "^5.0.0" - } - }, - "browserify-zlib": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", - "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", - "dev": true, - "requires": { - "pako": "~1.0.5" - } - }, "browserslist": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.6.2.tgz", - "integrity": "sha512-2neU/V0giQy9h3XMPwLhEY3+Ao0uHSwHvU8Q1Ea6AgLVL1sXbX3dzPrJ8NWe5Hi4PoTkCYXOtVR9rfRLI0J/8Q==", + "version": "4.6.6", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.6.6.tgz", + "integrity": "sha512-D2Nk3W9JL9Fp/gIcWei8LrERCS+eXu9AM5cfXA8WEZ84lFks+ARnZ0q/R69m2SV3Wjma83QDDPxsNKXUwdIsyA==", "dev": true, "requires": { - "caniuse-lite": "^1.0.30000974", - "electron-to-chromium": "^1.3.150", - "node-releases": "^1.1.23" + "caniuse-lite": "^1.0.30000984", + "electron-to-chromium": "^1.3.191", + "node-releases": "^1.1.25" } }, "bser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.0.0.tgz", - "integrity": "sha1-mseNPtXZFYBP2HrLFYvHlxR6Fxk=", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.0.tgz", + "integrity": "sha512-8zsjWrQkkBoLK6uxASk1nJ2SKv97ltiGDo6A3wA0/yRPz+CwmEyDo0hUrhIuukG2JHpAl3bvFIixw2/3Hi0DOg==", "dev": true, "requires": { "node-int64": "^0.4.0" } }, - "buffer": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", - "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", - "dev": true, - "requires": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" - } - }, "buffer-from": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", "dev": true }, - "buffer-xor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", - "dev": true - }, - "builtin-status-codes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", - "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", - "dev": true - }, - "cacache": { - "version": "11.3.2", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-11.3.2.tgz", - "integrity": "sha512-E0zP4EPGDOaT2chM08Als91eYnf8Z+eH1awwwVsngUmgppfM5jjJ8l3z5vO5p5w/I3LsiXawb1sW0VY65pQABg==", - "dev": true, - "requires": { - "bluebird": "^3.5.3", - "chownr": "^1.1.1", - "figgy-pudding": "^3.5.1", - "glob": "^7.1.3", - "graceful-fs": "^4.1.15", - "lru-cache": "^5.1.1", - "mississippi": "^3.0.0", - "mkdirp": "^0.5.1", - "move-concurrently": "^1.0.1", - "promise-inflight": "^1.0.1", - "rimraf": "^2.6.2", - "ssri": "^6.0.1", - "unique-filename": "^1.1.1", - "y18n": "^4.0.0" - }, - "dependencies": { - "lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "requires": { - "yallist": "^3.0.2" - } - }, - "yallist": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz", - "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==", - "dev": true - } - } - }, "cache-base": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", @@ -2461,9 +2164,9 @@ } }, "caniuse-lite": { - "version": "1.0.30000974", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000974.tgz", - "integrity": "sha512-xc3rkNS/Zc3CmpMKuczWEdY2sZgx09BkAxfvkxlAEBTqcMHeL8QnPqhKse+5sRTi3nrw2pJwToD2WvKn1Uhvww==", + "version": "1.0.30000984", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000984.tgz", + "integrity": "sha512-n5tKOjMaZ1fksIpQbjERuqCyfgec/m9pferkFQbLmWtqLUdmt12hNhjSwsmPdqeiG2NkITOQhr1VYIwWSAceiA==", "dev": true }, "capture-exit": { @@ -2503,6 +2206,7 @@ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.6.tgz", "integrity": "sha512-V2jUo67OKkc6ySiRpJrjlpJKl9kDuG+Xb8VgsGzb+aEouhgS1D0weyPU4lEzdAcsCAvrih2J2BqyXqHWvVLw5g==", "dev": true, + "optional": true, "requires": { "anymatch": "^2.0.0", "async-each": "^1.0.1", @@ -2518,37 +2222,12 @@ "upath": "^1.1.1" } }, - "chownr": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.1.tgz", - "integrity": "sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g==", - "dev": true - }, - "chrome-trace-event": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.2.tgz", - "integrity": "sha512-9e/zx1jw7B4CO+c/RXoCsfg/x1AfUBioy4owYH0bJprEYAx5hRFLRhWBqHAG57D0ZM4H7vxbP7bPe0VwhQRYDQ==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - } - }, "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 }, - "cipher-base": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", - "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, "class-utils": { "version": "0.3.6", "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", @@ -2723,12 +2402,6 @@ "execa": "^1.0.0" } }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", - "dev": true - }, "compare-func": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz", @@ -2776,21 +2449,6 @@ } } }, - "console-browserify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", - "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", - "dev": true, - "requires": { - "date-now": "^0.1.4" - } - }, - "constants-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", - "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", - "dev": true - }, "contains-path": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/contains-path/-/contains-path-0.1.0.tgz", @@ -3076,9 +2734,9 @@ "dev": true }, "semver": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.1.1.tgz", - "integrity": "sha512-rWYq2e5iYW+fFe/oPPtYJxYgjBm8sC4rmoGdUOgBB7VnwKt6HrL793l2voH1UlsyYZpJ4g0wfjnTEO1s1NP2eQ==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.2.0.tgz", + "integrity": "sha512-jdFC1VdUGT/2Scgbimf7FSx9iJLXoqfglSF+gJeuNWVpiE37OIbc1jywR/GJyFdz3mnkz2/id0L0J/cr0izR5A==", "dev": true }, "through2": { @@ -3256,20 +2914,6 @@ "safe-buffer": "~5.1.1" } }, - "copy-concurrently": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz", - "integrity": "sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==", - "dev": true, - "requires": { - "aproba": "^1.1.1", - "fs-write-stream-atomic": "^1.0.8", - "iferr": "^0.1.5", - "mkdirp": "^0.5.1", - "rimraf": "^2.5.4", - "run-queue": "^1.0.0" - } - }, "copy-descriptor": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", @@ -3283,28 +2927,28 @@ "dev": true }, "core-js-compat": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.1.3.tgz", - "integrity": "sha512-EP018pVhgwsKHz3YoN1hTq49aRe+h017Kjz0NQz3nXV0cCRMvH3fLQl+vEPGr4r4J5sk4sU3tUC7U1aqTCeJeA==", + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.1.4.tgz", + "integrity": "sha512-Z5zbO9f1d0YrJdoaQhphVAnKPimX92D6z8lCGphH89MNRxlL1prI9ExJPqVwP0/kgkQCv8c4GJGT8X16yUncOg==", "dev": true, "requires": { - "browserslist": "^4.6.0", - "core-js-pure": "3.1.3", - "semver": "^6.1.0" + "browserslist": "^4.6.2", + "core-js-pure": "3.1.4", + "semver": "^6.1.1" }, "dependencies": { "semver": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.1.1.tgz", - "integrity": "sha512-rWYq2e5iYW+fFe/oPPtYJxYgjBm8sC4rmoGdUOgBB7VnwKt6HrL793l2voH1UlsyYZpJ4g0wfjnTEO1s1NP2eQ==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.2.0.tgz", + "integrity": "sha512-jdFC1VdUGT/2Scgbimf7FSx9iJLXoqfglSF+gJeuNWVpiE37OIbc1jywR/GJyFdz3mnkz2/id0L0J/cr0izR5A==", "dev": true } } }, "core-js-pure": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.1.3.tgz", - "integrity": "sha512-k3JWTrcQBKqjkjI0bkfXS0lbpWPxYuHWfMMjC1VDmzU4Q58IwSbuXSo99YO/hUHlw/EB4AlfA2PVxOGkrIq6dA==", + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.1.4.tgz", + "integrity": "sha512-uJ4Z7iPNwiu1foygbcZYJsJs1jiXrTTCvxfLDXNhI/I+NHbSIEyr548y4fcsCEyWY0XgfAG/qqaunJ1SThHenA==", "dev": true }, "core-util-is": { @@ -3343,43 +2987,6 @@ } } }, - "create-ecdh": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz", - "integrity": "sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "elliptic": "^6.0.0" - } - }, - "create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "dev": true, - "requires": { - "cipher-base": "^1.0.1", - "inherits": "^2.0.1", - "md5.js": "^1.3.4", - "ripemd160": "^2.0.1", - "sha.js": "^2.4.0" - } - }, - "create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "dev": true, - "requires": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, "cross-env": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-5.2.0.tgz", @@ -3403,35 +3010,16 @@ "which": "^1.2.9" } }, - "crypto-browserify": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", - "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", - "dev": true, - "requires": { - "browserify-cipher": "^1.0.0", - "browserify-sign": "^4.0.0", - "create-ecdh": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.0", - "diffie-hellman": "^5.0.0", - "inherits": "^2.0.1", - "pbkdf2": "^3.0.3", - "public-encrypt": "^4.0.0", - "randombytes": "^2.0.0", - "randomfill": "^1.0.3" - } - }, "cssom": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.6.tgz", - "integrity": "sha512-DtUeseGk9/GBW0hl0vVPpU22iHL6YB5BUX7ml1hB+GMpo0NX5G4voX3kdWiMSEguFtcW3Vh3djqNF4aIe6ne0A==", + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", "dev": true }, "cssstyle": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-1.2.2.tgz", - "integrity": "sha512-43wY3kl1CVQSvL7wUY1qXkxVGkStjpkDmVjiIKX8R97uhajy8Bybay78uOtqvh7Q5GK75dNPfW0geWjE6qQQow==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-1.4.0.tgz", + "integrity": "sha512-GBrLZYZ4X4x6/QEoBnIrqb8B/f5l4+8me2dkom/j1Gtbxy0kBv6OGzKuAsGM75bkGwGAFkt56Iwg28S3XTZgSA==", "dev": true, "requires": { "cssom": "0.3.x" @@ -3446,12 +3034,6 @@ "array-find-index": "^1.0.1" } }, - "cyclist": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-0.2.2.tgz", - "integrity": "sha1-GzN5LhHpFKL9bW7WRHRkRE5fpkA=", - "dev": true - }, "dargs": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/dargs/-/dargs-4.1.0.tgz", @@ -3500,12 +3082,6 @@ "integrity": "sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw==", "dev": true }, - "date-now": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", - "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", - "dev": true - }, "dateformat": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", @@ -3620,26 +3196,16 @@ } }, "del": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/del/-/del-4.1.1.tgz", - "integrity": "sha512-QwGuEUouP2kVwQenAsOof5Fv8K9t3D8Ca8NxcXKrIpEHjTXK5J2nXLdP+ALI1cgv8wj7KuwBhTwBkOZSJKM5XQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/del/-/del-5.0.0.tgz", + "integrity": "sha512-TfU3nUY0WDIhN18eq+pgpbLY9AfL5RfiE9czKaTSolc6aK7qASXfDErvYgjV1UqCR4sNXDoxO0/idPmhDUt2Sg==", "dev": true, "requires": { - "@types/glob": "^7.1.1", - "globby": "^6.1.0", + "globby": "^10.0.0", "is-path-cwd": "^2.0.0", "is-path-in-cwd": "^2.0.0", "p-map": "^2.0.0", - "pify": "^4.0.1", "rimraf": "^2.6.3" - }, - "dependencies": { - "pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", - "dev": true - } } }, "del-cli": { @@ -3650,23 +3216,66 @@ "requires": { "del": "^4.1.1", "meow": "^5.0.0" + }, + "dependencies": { + "array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "dev": true, + "requires": { + "array-uniq": "^1.0.1" + } + }, + "del": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/del/-/del-4.1.1.tgz", + "integrity": "sha512-QwGuEUouP2kVwQenAsOof5Fv8K9t3D8Ca8NxcXKrIpEHjTXK5J2nXLdP+ALI1cgv8wj7KuwBhTwBkOZSJKM5XQ==", + "dev": true, + "requires": { + "@types/glob": "^7.1.1", + "globby": "^6.1.0", + "is-path-cwd": "^2.0.0", + "is-path-in-cwd": "^2.0.0", + "p-map": "^2.0.0", + "pify": "^4.0.1", + "rimraf": "^2.6.3" + } + }, + "globby": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", + "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", + "dev": true, + "requires": { + "array-union": "^1.0.1", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "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 + } + } + }, + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true + } } }, "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 - }, - "des.js": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", - "integrity": "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } + "dev": true }, "detect-indent": { "version": "5.0.0", @@ -3686,15 +3295,21 @@ "integrity": "sha512-xLqpez+Zj9GKSnPWS0WZw1igGocZ+uua8+y+5dDNTT934N3QuY1sp2LkHzwiaYQGz60hMq0pjAshdeXm5VUOEw==", "dev": true }, - "diffie-hellman": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", - "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", + "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": { - "bn.js": "^4.1.0", - "miller-rabin": "^4.0.0", - "randombytes": "^2.0.0" + "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 + } } }, "doctrine": { @@ -3706,12 +3321,6 @@ "esutils": "^2.0.2" } }, - "domain-browser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", - "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", - "dev": true - }, "domexception": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/domexception/-/domexception-1.0.1.tgz", @@ -3785,18 +3394,6 @@ } } }, - "duplexify": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", - "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", - "dev": true, - "requires": { - "end-of-stream": "^1.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.0.0", - "stream-shift": "^1.0.0" - } - }, "ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", @@ -3820,9 +3417,9 @@ } }, "electron-to-chromium": { - "version": "1.3.158", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.158.tgz", - "integrity": "sha512-wJsJaWsViNQ129XPGmyO5gGs1jPMHr9vffjHAhUje1xZbEzQcqbENdvfyRD9q8UF0TgFQFCCUbaIpJarFbvsIg==", + "version": "1.3.191", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.191.tgz", + "integrity": "sha512-jasjtY5RUy/TOyiUYM2fb4BDaPZfm6CXRFeJDMfFsXYADGxUN49RBqtgB7EL2RmJXeIRUk9lM1U6A5yk2YJMPQ==", "dev": true }, "elegant-spinner": { @@ -3831,21 +3428,6 @@ "integrity": "sha1-2wQ1IcldfjA/2PNFvtwzSc+wcp4=", "dev": true }, - "elliptic": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz", - "integrity": "sha512-BsXLz5sqX8OHcsh7CqBMztyXARmGQ3LWPtGjJi6DiJHq5C/qvi9P3OqgswKSDftbu8+IoI/QDTAm2fFnQ9SZSQ==", - "dev": true, - "requires": { - "bn.js": "^4.4.0", - "brorand": "^1.0.1", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.0" - } - }, "emoji-regex": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", @@ -3867,26 +3449,6 @@ "once": "^1.4.0" } }, - "enhanced-resolve": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.1.0.tgz", - "integrity": "sha512-F/7vkyTtyc/llOIn8oWclcB25KdRaiPBpZYDgJHgh/UHtpgT2p2eldQgtQnLtUvfMKPKxbRaQM/hHkvLHt1Vng==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "memory-fs": "^0.4.0", - "tapable": "^1.0.0" - } - }, - "errno": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz", - "integrity": "sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg==", - "dev": true, - "requires": { - "prr": "~1.0.1" - } - }, "error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -3956,13 +3518,13 @@ } }, "eslint": { - "version": "5.16.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.16.0.tgz", - "integrity": "sha512-S3Rz11i7c8AA5JPv7xAH+dOyq/Cu/VXHiHXBPOU1k/JAM5dXqQPt3qcrhpHSorXmrpu2g0gkIBVXAqCpzfoZIg==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.0.1.tgz", + "integrity": "sha512-DyQRaMmORQ+JsWShYsSg4OPTjY56u1nCjAmICrE8vLWqyLKxhFXOthwMj1SA8xwfrv0CofLNVnqbfyhwCkaO0w==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "ajv": "^6.9.1", + "ajv": "^6.10.0", "chalk": "^2.1.0", "cross-spawn": "^6.0.5", "debug": "^4.0.1", @@ -3970,18 +3532,19 @@ "eslint-scope": "^4.0.3", "eslint-utils": "^1.3.1", "eslint-visitor-keys": "^1.0.0", - "espree": "^5.0.1", + "espree": "^6.0.0", "esquery": "^1.0.1", "esutils": "^2.0.2", "file-entry-cache": "^5.0.1", "functional-red-black-tree": "^1.0.1", - "glob": "^7.1.2", + "glob-parent": "^3.1.0", "globals": "^11.7.0", "ignore": "^4.0.6", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "inquirer": "^6.2.2", - "js-yaml": "^3.13.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.11", @@ -3989,7 +3552,6 @@ "mkdirp": "^0.5.1", "natural-compare": "^1.4.0", "optionator": "^0.8.2", - "path-is-inside": "^1.0.2", "progress": "^2.0.0", "regexpp": "^2.0.1", "semver": "^5.5.1", @@ -4014,6 +3576,12 @@ "ms": "^2.1.1" } }, + "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 + }, "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -4032,9 +3600,9 @@ } }, "eslint-config-prettier": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-4.3.0.tgz", - "integrity": "sha512-sZwhSTHVVz78+kYD3t5pCWSYEdVSBR0PXnwjDRsUs8ytIrK8PLXw+6FKp8r3Z7rx4ZszdetWlXYKOHoUrrwPlA==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.0.0.tgz", + "integrity": "sha512-vDrcCFE3+2ixNT5H83g28bO/uYAwibJxerXPj+E7op4qzBCsAV36QfvdAyVOoNxKAH2Os/e01T/2x++V0LPukA==", "dev": true, "requires": { "get-stdin": "^6.0.0" @@ -4069,9 +3637,9 @@ } }, "eslint-plugin-import": { - "version": "2.17.3", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.17.3.tgz", - "integrity": "sha512-qeVf/UwXFJbeyLbxuY8RgqDyEKCkqV7YC+E5S5uOjAp4tOc8zj01JP3ucoBM8JcEqd1qRasJSg6LLlisirfy0Q==", + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.18.0.tgz", + "integrity": "sha512-PZpAEC4gj/6DEMMoU2Df01C5c50r7zdGIN52Yfi7CvvWaYssG7Jt5R9nFG5gmqodxNOz9vQS87xk6Izdtpdrig==", "dev": true, "requires": { "array-includes": "^3.0.3", @@ -4167,10 +3735,13 @@ } }, "eslint-utils": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.3.1.tgz", - "integrity": "sha512-Z7YjnIldX+2XMcjr7ZkgEsOj/bREONV60qYeB/bjMAqqqZ4zxKyWX+BOUkdmRmA9riiIPVvo5x86m5elviOk0Q==", - "dev": true + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.0.tgz", + "integrity": "sha512-7ehnzPaP5IIEh1r1tkjuIrxqhNkzUJa9z3R92tLJdZIVdWaczEhr3EbhGtsMrVxi1KeR8qA7Off6SWc5WNQqyQ==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^1.0.0" + } }, "eslint-visitor-keys": { "version": "1.0.0", @@ -4179,9 +3750,9 @@ "dev": true }, "espree": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-5.0.1.tgz", - "integrity": "sha512-qWAZcWh4XE/RwzLJejfcofscgMc9CamR6Tn1+XRXNzrvUSSbiAjGOI/fggztjIi7y9VLPqnICMIPiGyr8JaZ0A==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-6.0.0.tgz", + "integrity": "sha512-lJvCS6YbCn3ImT3yKkPe0+tJ+mH6ljhGNjHQH9mRtiO6gjhVAOhVXW1yjnwqGwTkK3bGbye+hb00nFNmu0l/1Q==", "dev": true, "requires": { "acorn": "^6.0.7", @@ -4225,22 +3796,6 @@ "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", "dev": true }, - "events": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.0.0.tgz", - "integrity": "sha512-Dc381HFWJzEOhQ+d8pkNon++bk9h6cdAoAj4iE6Q4y6xgTzySWXlKn05/TVNpjnfRqi/X0EpJEJohPjNI3zpVA==", - "dev": true - }, - "evp_bytestokey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "dev": true, - "requires": { - "md5.js": "^1.3.4", - "safe-buffer": "^5.1.1" - } - }, "exec-sh": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.2.tgz", @@ -4345,9 +3900,9 @@ } }, "external-editor": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.0.3.tgz", - "integrity": "sha512-bn71H9+qWoOQKyZDo25mOMVpSmXROAsTJVVVYzrrtol3d4y+AsKjf4Iwl2Q+IuT0kFSQ1qo166UuIwqYq7mGnA==", + "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", @@ -4431,6 +3986,74 @@ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" }, + "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-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", @@ -4442,6 +4065,15 @@ "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" + } + }, "fb-watchman": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.0.tgz", @@ -4451,12 +4083,6 @@ "bser": "^2.0.0" } }, - "figgy-pudding": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.1.tgz", - "integrity": "sha512-vNKxJHTEKNThjfrdJwHc7brvM6eVevuO5nTj6ez8ZQ1qbXTvGthucRF7S4vf2cr71QVnT70V34v0S1DyQsti0w==", - "dev": true - }, "figures": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", @@ -4498,71 +4124,6 @@ } } }, - "find-cache-dir": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", - "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==", - "dev": true, - "requires": { - "commondir": "^1.0.1", - "make-dir": "^2.0.0", - "pkg-dir": "^3.0.0" - }, - "dependencies": { - "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" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "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==", - "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==", - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "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 - }, - "pkg-dir": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", - "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", - "dev": true, - "requires": { - "find-up": "^3.0.0" - } - } - } - }, "find-up": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", @@ -4584,25 +4145,9 @@ } }, "flatted": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.0.tgz", - "integrity": "sha512-R+H8IZclI8AAkSBRQJLVOsxwAoHd6WC40b4QTNWIjzAa6BXOBfQcM587MXDTVPeYaopFNWHUFLx7eNmHDSxMWg==", - "dev": true - }, - "flush-write-stream": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.1.1.tgz", - "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "readable-stream": "^2.3.6" - } - }, - "fn-name": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fn-name/-/fn-name-2.0.1.tgz", - "integrity": "sha1-UhTXU3pNBqSjAcDMJi/rhBiAAuc=", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.1.tgz", + "integrity": "sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==", "dev": true }, "for-in": { @@ -4637,16 +4182,6 @@ "map-cache": "^0.2.2" } }, - "from2": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", - "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.0" - } - }, "fs-access": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/fs-access/-/fs-access-1.0.1.tgz", @@ -4679,18 +4214,6 @@ "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==", "dev": true }, - "fs-write-stream-atomic": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz", - "integrity": "sha1-tH31NJPvkR33VzHnCp3tAYnbQMk=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "iferr": "^0.1.5", - "imurmurhash": "^0.1.4", - "readable-stream": "1 || 2" - } - }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -5257,17 +4780,6 @@ "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", "dev": true }, - "g-status": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/g-status/-/g-status-2.0.2.tgz", - "integrity": "sha512-kQoE9qH+T1AHKgSSD0Hkv98bobE90ILQcXAF4wvGgsr7uFqNvwmh8j+Lq3l0RVt3E3HjSbv2B9biEGcEtpHLCA==", - "dev": true, - "requires": { - "arrify": "^1.0.1", - "matcher": "^1.0.0", - "simple-git": "^1.85.0" - } - }, "get-caller-file": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", @@ -5682,30 +5194,33 @@ "dev": true }, "globby": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", - "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.1.tgz", + "integrity": "sha512-sSs4inE1FB2YQiymcmTv6NWENryABjUNPeWhOvmn4SjtKybglsyPZxFB3U1/+L1bYi0rNZDqCLlHyLYDl1Pq5A==", "dev": true, "requires": { - "array-union": "^1.0.1", - "glob": "^7.0.3", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" + "@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": { - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true } } }, "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==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.0.tgz", + "integrity": "sha512-jpSvDPV4Cq/bgtpndIWbI5hmYxhQGHPC4d4cqBPb4DLniCfhJokdXhwhaDuLBGLQdvvRum/UiX6ECVIPvDXqdg==", "dev": true }, "growly": { @@ -5812,37 +5327,6 @@ } } }, - "hash-base": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", - "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, - "hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", - "dev": true, - "requires": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, "homedir-polyfill": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", @@ -5878,24 +5362,18 @@ "sshpk": "^1.7.0" } }, - "https-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", - "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", - "dev": true - }, "husky": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/husky/-/husky-2.4.1.tgz", - "integrity": "sha512-ZRwMWHr7QruR22dQ5l3rEGXQ7rAQYsJYqaeCd+NyOsIFczAtqaApZQP3P4HwLZjCtFbm3SUNYoKuoBXX3AYYfw==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/husky/-/husky-3.0.0.tgz", + "integrity": "sha512-lKMEn7bRK+7f5eWPNGclDVciYNQt0GIkAQmhKl+uHP1qFzoN0h92kmH9HZ8PCwyVA2EQPD8KHf0FYWqnTxau+Q==", "dev": true, "requires": { - "cosmiconfig": "^5.2.0", + "cosmiconfig": "^5.2.1", "execa": "^1.0.0", - "find-up": "^3.0.0", "get-stdin": "^7.0.0", "is-ci": "^2.0.0", - "pkg-dir": "^4.1.0", + "opencollective-postinstall": "^2.0.2", + "pkg-dir": "^4.2.0", "please-upgrade-node": "^3.1.1", "read-pkg": "^5.1.1", "run-node": "^1.0.0", @@ -5903,22 +5381,22 @@ }, "dependencies": { "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "requires": { - "locate-path": "^3.0.0" + "locate-path": "^5.0.0", + "path-exists": "^4.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==", + "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": "^3.0.0", - "path-exists": "^3.0.0" + "p-locate": "^4.1.0" } }, "p-limit": { @@ -5931,12 +5409,12 @@ } }, "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-try": { @@ -5945,54 +5423,43 @@ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true }, - "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==", + "parse-json": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", + "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", "dev": true, "requires": { - "find-up": "^4.0.0" - }, - "dependencies": { - "find-up": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.0.0.tgz", - "integrity": "sha512-zoH7ZWPkRdgwYCDVoQTzqjG8JSPANhtvLhh4KVUHyKnaUJJrNeFmWIkTcNuJmR3GLMEmGYEf2S2bjgx26JTF+Q==", - "dev": true, - "requires": { - "locate-path": "^5.0.0" - } - }, - "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" - } - }, - "p-locate": { - "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.2.0" - } - } + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1", + "lines-and-columns": "^1.1.6" + } + }, + "path-exists": { + "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 + }, + "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": { + "find-up": "^4.0.0" } }, "read-pkg": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.1.1.tgz", - "integrity": "sha512-dFcTLQi6BZ+aFUaICg7er+/usEoqFdQxiEBsEMNGoipenihtxxtdrQuBXvyANCEI8VuUIVYFgeHGx9sLLvim4w==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", "dev": true, "requires": { "@types/normalize-package-data": "^2.4.0", "normalize-package-data": "^2.5.0", - "parse-json": "^4.0.0", - "type-fest": "^0.4.1" + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" } }, "slash": { @@ -6012,28 +5479,16 @@ "safer-buffer": ">= 2.1.2 < 3" } }, - "ieee754": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", - "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==", - "dev": true - }, - "iferr": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz", - "integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=", - "dev": true - }, "ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.2.tgz", + "integrity": "sha512-vdqWBp7MyzdmHkkRWV5nY+PfGRbYbahfuvsBCh277tq+w9zyNi7h5CYJCK0kmzti9kU+O/cB7sE8HvKv6aXAKQ==", "dev": true }, "import-fresh": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.0.0.tgz", - "integrity": "sha512-pOnA9tfM3Uwics+SaBLCNyZZZbK+4PTu0OPZtLlMIrv17EdBoC15S9Kn8ckJ9TZTyKb3ywNE5y1yeDxxGA7nTQ==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.1.0.tgz", + "integrity": "sha512-PpuksHKGt8rXfWEr9m9EHIpgyyaltBy8+eF6GJM0QCAxMgxCfucMF3mjecK2QsJr0amJW7gTqh5/wht0z2UhEQ==", "dev": true, "requires": { "parent-module": "^1.0.0", @@ -6135,9 +5590,9 @@ } }, "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, "ini": { @@ -6147,9 +5602,9 @@ "dev": true }, "inquirer": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.3.1.tgz", - "integrity": "sha512-MmL624rfkFt4TG9y/Jvmt8vdmOo836U7Y0Hxr2aFk3RelZEGX4Igk0KabWrcaaZaTv9uzglOqWh1Vly+FAWAXA==", + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.5.0.tgz", + "integrity": "sha512-scfHejeG/lVZSpvCXpsB4j/wQNPM5JC8kiElOI0OUTwmc1RTpXr4H32/HOlQHcZiYl2z2VElwuCVDRG8vFmbnA==", "dev": true, "requires": { "ansi-escapes": "^3.2.0", @@ -6158,7 +5613,7 @@ "cli-width": "^2.0.0", "external-editor": "^3.0.3", "figures": "^2.0.0", - "lodash": "^4.17.11", + "lodash": "^4.17.12", "mute-stream": "0.0.7", "run-async": "^2.2.0", "rxjs": "^6.4.0", @@ -6230,6 +5685,7 @@ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", "dev": true, + "optional": true, "requires": { "binary-extensions": "^1.0.0" } @@ -6384,9 +5840,9 @@ } }, "is-path-cwd": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.1.0.tgz", - "integrity": "sha512-Sc5j3/YnM8tDeyCsVeKlm/0p95075DyLmDEIkSgQ7mXkrOX+uTCtmQFm0CYzVyJwcCCmO3k8qfJt17SxQwB5Zw==", + "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": { @@ -6537,9 +5993,9 @@ }, "dependencies": { "semver": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.1.1.tgz", - "integrity": "sha512-rWYq2e5iYW+fFe/oPPtYJxYgjBm8sC4rmoGdUOgBB7VnwKt6HrL793l2voH1UlsyYZpJ4g0wfjnTEO1s1NP2eQ==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.2.0.tgz", + "integrity": "sha512-jdFC1VdUGT/2Scgbimf7FSx9iJLXoqfglSF+gJeuNWVpiE37OIbc1jywR/GJyFdz3mnkz2/id0L0J/cr0izR5A==", "dev": true } } @@ -7287,96 +6743,215 @@ "type-check": "~0.3.2" } }, + "lines-and-columns": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", + "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", + "dev": true + }, "lint-staged": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-8.2.0.tgz", - "integrity": "sha512-DxguyxGOIfb67wZ6EOrqzjAbw6ZH9XK3YS74HO+erJf6+SAQeJJPN//GBOG5xhdt2THeuXjVPaHcCYOWGZwRbA==", + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-9.2.0.tgz", + "integrity": "sha512-K/CQWcxYunc8lGMNTFvtI4+ybJcHW3K4Ghudz2OrJhIWdW/i1WWu9rGiVj4yJ0+D/xh8a08kp5slt89VZC9Eqg==", "dev": true, "requires": { - "chalk": "^2.3.1", - "commander": "^2.14.1", - "cosmiconfig": "^5.2.0", - "debug": "^3.1.0", + "chalk": "^2.4.2", + "commander": "^2.20.0", + "cosmiconfig": "^5.2.1", + "debug": "^4.1.1", "dedent": "^0.7.0", - "del": "^3.0.0", - "execa": "^1.0.0", - "g-status": "^2.0.2", - "is-glob": "^4.0.0", - "is-windows": "^1.0.2", - "listr": "^0.14.2", - "listr-update-renderer": "^0.5.0", - "lodash": "^4.17.11", - "log-symbols": "^2.2.0", - "micromatch": "^3.1.8", - "npm-which": "^3.0.1", - "p-map": "^1.1.1", - "path-is-inside": "^1.0.2", - "pify": "^3.0.0", - "please-upgrade-node": "^3.0.2", - "staged-git-files": "1.1.2", - "string-argv": "^0.0.2", - "stringify-object": "^3.2.2", - "yup": "^0.27.0" + "del": "^4.1.1", + "execa": "^2.0.1", + "listr": "^0.14.3", + "log-symbols": "^3.0.0", + "micromatch": "^4.0.2", + "please-upgrade-node": "^3.1.1", + "string-argv": "^0.3.0", + "stringify-object": "^3.3.0" }, "dependencies": { + "array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "dev": true, + "requires": { + "array-uniq": "^1.0.1" + } + }, + "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" + } + }, "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", "dev": true, "requires": { "ms": "^2.1.1" } }, "del": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/del/-/del-3.0.0.tgz", - "integrity": "sha1-U+z2mf/LyzljdpGrE7rxYIGXZuU=", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/del/-/del-4.1.1.tgz", + "integrity": "sha512-QwGuEUouP2kVwQenAsOof5Fv8K9t3D8Ca8NxcXKrIpEHjTXK5J2nXLdP+ALI1cgv8wj7KuwBhTwBkOZSJKM5XQ==", "dev": true, "requires": { + "@types/glob": "^7.1.1", "globby": "^6.1.0", - "is-path-cwd": "^1.0.0", - "is-path-in-cwd": "^1.0.0", - "p-map": "^1.1.1", - "pify": "^3.0.0", - "rimraf": "^2.2.8" + "is-path-cwd": "^2.0.0", + "is-path-in-cwd": "^2.0.0", + "p-map": "^2.0.0", + "pify": "^4.0.1", + "rimraf": "^2.6.3" } }, - "is-path-cwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", - "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=", - "dev": true + "execa": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/execa/-/execa-2.0.3.tgz", + "integrity": "sha512-iM124nlyGSrXmuyZF1EMe83ESY2chIYVyDRZKgmcDynid2Q2v/+GuE7gNMl6Sy9Niwf4MC0DDxagOxeMPjuLsw==", + "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" + } }, - "is-path-in-cwd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", - "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", + "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": { - "is-path-inside": "^1.0.0" + "to-regex-range": "^5.0.1" } }, - "is-path-inside": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", - "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", + "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" + } + }, + "globby": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", + "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", + "dev": true, + "requires": { + "array-union": "^1.0.1", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "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 + } + } + }, + "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 + }, + "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 + }, + "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": { - "path-is-inside": "^1.0.1" + "braces": "^3.0.1", + "picomatch": "^2.0.5" } }, + "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 + }, "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, - "p-map": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-1.2.0.tgz", - "integrity": "sha512-r6zKACMNhjPJMTl8KcFH4li//gkrXWfbD6feV8l6doRHlzljFWGJ2AP6iKaCJXyZmAUMOPtvbW7EXkbWO/pLEA==", + "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" + } + }, + "onetime": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", + "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", + "dev": true, + "requires": { + "mimic-fn": "^2.1.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 + }, + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", "dev": true + }, + "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" + } } } }, @@ -7495,12 +7070,6 @@ "strip-bom": "^3.0.0" } }, - "loader-runner": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.4.0.tgz", - "integrity": "sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw==", - "dev": true - }, "loader-utils": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.2.3.tgz", @@ -7540,9 +7109,9 @@ } }, "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", + "version": "4.17.14", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.14.tgz", + "integrity": "sha512-mmKYbW3GLuJeX+iGP+Y7Gp1AiGHGbXHCOh/jZmrawMmsE7MS4znI3RL2FsjbqOyMayHInjOeykW7PEajUk1/xw==", "dev": true }, "lodash._reinterpolate": { @@ -7564,31 +7133,31 @@ "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=", + "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._reinterpolate": "^3.0.0", "lodash.templatesettings": "^4.0.0" } }, "lodash.templatesettings": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.1.0.tgz", - "integrity": "sha1-K01OlbpEDZFf8IvImeRVNmZxMxY=", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz", + "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==", "dev": true, "requires": { - "lodash._reinterpolate": "~3.0.0" + "lodash._reinterpolate": "^3.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==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz", + "integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==", "dev": true, "requires": { - "chalk": "^2.0.1" + "chalk": "^2.4.2" } }, "log-update": { @@ -7685,12 +7254,6 @@ "tmpl": "1.0.x" } }, - "mamacro": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/mamacro/-/mamacro-0.0.3.tgz", - "integrity": "sha512-qMEwh+UujcQ+kbz3T6V+wAmO2U8veoq2w+3wY8MquqwVA3jChfwY+Tk52GZKDfACEPjuZ7r2oJLejwpt8jtwTA==", - "dev": true - }, "map-age-cleaner": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", @@ -7721,26 +7284,6 @@ "object-visit": "^1.0.0" } }, - "matcher": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/matcher/-/matcher-1.1.1.tgz", - "integrity": "sha512-+BmqxWIubKTRKNWx/ahnCkk3mG8m7OturVlqq6HiojGJTd5hVYbgZm6WzcYPCoB+KBT4Vd6R7WSRG2OADNaCjg==", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.4" - } - }, - "md5.js": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", - "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", - "dev": true, - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, "mem": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", @@ -7760,16 +7303,6 @@ } } }, - "memory-fs": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", - "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", - "dev": true, - "requires": { - "errno": "^0.1.3", - "readable-stream": "^2.0.1" - } - }, "memorystream": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", @@ -7802,6 +7335,12 @@ "readable-stream": "^2.0.1" } }, + "merge2": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.2.3.tgz", + "integrity": "sha512-gdUU1Fwj5ep4kplwcmftruWofEFt6lfpkkr3h860CXbAB9c3hGb55EOL2ali0Td5oebvW0E1+3Sr+Ur7XfKpRA==", + "dev": true + }, "micromatch": { "version": "3.1.10", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", @@ -7823,16 +7362,6 @@ "to-regex": "^3.0.2" } }, - "miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", - "dev": true, - "requires": { - "bn.js": "^4.0.0", - "brorand": "^1.0.1" - } - }, "mime-db": { "version": "1.40.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", @@ -7854,18 +7383,6 @@ "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", "dev": true }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", - "dev": true - }, - "minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", - "dev": true - }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", @@ -7891,42 +7408,10 @@ "is-plain-obj": "^1.1.0" } }, - "mississippi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mississippi/-/mississippi-3.0.0.tgz", - "integrity": "sha512-x471SsVjUtBRtcvd4BzKE9kFC+/2TeWgKCgw0bZcw1b9l2X3QX5vCWgF+KaZaYm87Ss//rHnWryupDrgLvmSkA==", - "dev": true, - "requires": { - "concat-stream": "^1.5.0", - "duplexify": "^3.4.2", - "end-of-stream": "^1.1.0", - "flush-write-stream": "^1.0.0", - "from2": "^2.1.0", - "parallel-transform": "^1.1.0", - "pump": "^3.0.0", - "pumpify": "^1.3.3", - "stream-each": "^1.1.0", - "through2": "^2.0.0" - }, - "dependencies": { - "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" - } - } - } - }, "mixin-deep": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", - "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", + "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", @@ -7959,20 +7444,6 @@ "integrity": "sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==", "dev": true }, - "move-concurrently": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", - "integrity": "sha1-viwAX9oy4LKa8fBdfEszIUxwH5I=", - "dev": true, - "requires": { - "aproba": "^1.1.1", - "copy-concurrently": "^1.0.0", - "fs-write-stream-atomic": "^1.0.8", - "mkdirp": "^0.5.1", - "rimraf": "^2.5.4", - "run-queue": "^1.0.3" - } - }, "mrm-core": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/mrm-core/-/mrm-core-3.3.0.tgz", @@ -8112,45 +7583,6 @@ "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", "dev": true }, - "node-libs-browser": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.1.tgz", - "integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==", - "dev": true, - "requires": { - "assert": "^1.1.1", - "browserify-zlib": "^0.2.0", - "buffer": "^4.3.0", - "console-browserify": "^1.1.0", - "constants-browserify": "^1.0.0", - "crypto-browserify": "^3.11.0", - "domain-browser": "^1.1.1", - "events": "^3.0.0", - "https-browserify": "^1.0.0", - "os-browserify": "^0.3.0", - "path-browserify": "0.0.1", - "process": "^0.11.10", - "punycode": "^1.2.4", - "querystring-es3": "^0.2.0", - "readable-stream": "^2.3.3", - "stream-browserify": "^2.0.1", - "stream-http": "^2.7.2", - "string_decoder": "^1.0.0", - "timers-browserify": "^2.0.4", - "tty-browserify": "0.0.0", - "url": "^0.11.0", - "util": "^0.11.0", - "vm-browserify": "^1.0.1" - }, - "dependencies": { - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - } - } - }, "node-modules-regexp": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz", @@ -8171,9 +7603,9 @@ } }, "node-releases": { - "version": "1.1.23", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.23.tgz", - "integrity": "sha512-uq1iL79YjfYC0WXoHbC/z28q/9pOl8kSHaXdWmAAc8No+bDwqkZbzIJz55g/MUsPgSGm9LZ7QSUbzTcH5tz47w==", + "version": "1.1.25", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.25.tgz", + "integrity": "sha512-fI5BXuk83lKEoZDdH3gRhtsNgh05/wZacuXkgbiYkceE7+QIMXOg98n9ZV7mz27B+kFHnqHcUpscZZlGRSmTpQ==", "dev": true, "requires": { "semver": "^5.3.0" @@ -8195,16 +7627,8 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - }, - "npm-path": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/npm-path/-/npm-path-2.0.4.tgz", - "integrity": "sha512-IFsj0R9C7ZdR5cP+ET342q77uSRdtWOlWpih5eC+lu29tIDbNEgDbzgVJ5UFvYHWhxDZ5TFkJafFioO0pPQjCw==", "dev": true, - "requires": { - "which": "^1.2.10" - } + "optional": true }, "npm-run-all": { "version": "4.1.5", @@ -8232,17 +7656,6 @@ "path-key": "^2.0.0" } }, - "npm-which": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/npm-which/-/npm-which-3.0.1.tgz", - "integrity": "sha1-kiXybsOihcIJyuZ8OxGmtKtxQKo=", - "dev": true, - "requires": { - "commander": "^2.9.0", - "npm-path": "^2.0.2", - "which": "^1.2.10" - } - }, "null-check": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/null-check/-/null-check-1.0.0.tgz", @@ -8319,6 +7732,18 @@ "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.getownpropertydescriptors": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", @@ -8356,6 +7781,12 @@ "mimic-fn": "^1.0.0" } }, + "opencollective-postinstall": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.2.tgz", + "integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==", + "dev": true + }, "optimist": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", @@ -8388,12 +7819,6 @@ "wordwrap": "~1.0.0" } }, - "os-browserify": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", - "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", - "dev": true - }, "os-locale": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", @@ -8485,23 +7910,6 @@ "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", "dev": true }, - "pako": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.10.tgz", - "integrity": "sha512-0DTvPVU3ed8+HNXOu5Bs+o//Mbdj9VNQMUOe9oKCwh8l0GNwpTDMKCWbRjgtD291AWnkAgkqA/LOnQS8AmS1tw==", - "dev": true - }, - "parallel-transform": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.1.0.tgz", - "integrity": "sha1-1BDwZbBdojCB/NEPKIVMKb2jOwY=", - "dev": true, - "requires": { - "cyclist": "~0.2.2", - "inherits": "^2.0.3", - "readable-stream": "^2.1.5" - } - }, "parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -8511,20 +7919,6 @@ "callsites": "^3.0.0" } }, - "parse-asn1": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.4.tgz", - "integrity": "sha512-Qs5duJcuvNExRfFZ99HDD3z4mAi3r9Wl/FOjEOijlxwCZs7E7mW2vjTpgQ4J8LpTF8x5v+1Vn5UQFejmWT11aw==", - "dev": true, - "requires": { - "asn1.js": "^4.0.0", - "browserify-aes": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.0", - "pbkdf2": "^3.0.3", - "safe-buffer": "^5.1.1" - } - }, "parse-git-config": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/parse-git-config/-/parse-git-config-1.1.1.tgz", @@ -8588,12 +7982,6 @@ "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", "dev": true }, - "path-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", - "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", - "dev": true - }, "path-dirname": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", @@ -8639,25 +8027,18 @@ "pify": "^3.0.0" } }, - "pbkdf2": { - "version": "3.0.17", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", - "integrity": "sha512-U/il5MsrZp7mGg3mSQfn742na2T+1/vHDCG5/iTI3X9MKUuYUZVLQhyRsg06mCgDBTd57TxzgZt7P+fYfjRLtA==", - "dev": true, - "requires": { - "create-hash": "^1.1.2", - "create-hmac": "^1.1.4", - "ripemd160": "^2.0.1", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, "performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", "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 + }, "pidtree": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.3.0.tgz", @@ -8762,16 +8143,10 @@ "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", "dev": true }, - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", - "dev": true - }, "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 }, "progress": { @@ -8780,12 +8155,6 @@ "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", "dev": true }, - "promise-inflight": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", - "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=", - "dev": true - }, "prompts": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.1.0.tgz", @@ -8813,18 +8182,6 @@ "extend": "^3.0.0" } }, - "property-expr": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/property-expr/-/property-expr-1.5.1.tgz", - "integrity": "sha512-CGuc0VUTGthpJXL36ydB6jnbyOf/rAHFvmVrJlH+Rg0DqqLFQGAP6hIaxD/G0OAmBJPhXDHuEJigrp0e0wFV6g==", - "dev": true - }, - "prr": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", - "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", - "dev": true - }, "pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", @@ -8832,25 +8189,11 @@ "dev": true }, "psl": { - "version": "1.1.32", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.32.tgz", - "integrity": "sha512-MHACAkHpihU/REGGPLj4sEfc/XKW2bheigvHO1dUqjaKigMp1C8+WLQYRGgeKFMsw5PMfegZcaN8IDXK/cD0+g==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.2.0.tgz", + "integrity": "sha512-GEn74ZffufCmkDDLNcl3uuyF/aSD6exEyh1v/ZSdAomB82t6G9hzJVRx0jBmLDW+VfZqks3aScmMw9DszwUalA==", "dev": true }, - "public-encrypt": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", - "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "parse-asn1": "^5.0.0", - "randombytes": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, "pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", @@ -8861,29 +8204,6 @@ "once": "^1.3.1" } }, - "pumpify": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", - "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", - "dev": true, - "requires": { - "duplexify": "^3.6.0", - "inherits": "^2.0.3", - "pump": "^2.0.0" - }, - "dependencies": { - "pump": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", - "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - } - } - }, "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", @@ -8901,43 +8221,12 @@ "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", "dev": true }, - "querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", - "dev": true - }, - "querystring-es3": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", - "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", - "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=", "dev": true }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "requires": { - "safe-buffer": "^5.1.0" - } - }, - "randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", - "dev": true, - "requires": { - "randombytes": "^2.0.5", - "safe-buffer": "^5.1.0" - } - }, "rc": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", @@ -9005,6 +8294,7 @@ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", "dev": true, + "optional": true, "requires": { "graceful-fs": "^4.1.11", "micromatch": "^3.1.10", @@ -9080,9 +8370,9 @@ } }, "regexp-tree": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.10.tgz", - "integrity": "sha512-K1qVSbcedffwuIslMwpe6vGlj+ZXRnGkvjAtFHfDZZZuEdA/h0dxljAPu9vhUo6Rrx2U2AwJ+nSQ6hK+lrP5MQ==", + "version": "0.1.11", + "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.11.tgz", + "integrity": "sha512-7/l/DgapVVDzZobwMCCgMlqiqyLFJ0cduo/j+3BcDJIB+yJdsYCfKuI3l/04NV+H/rfNRdPIDbXNZHM9XvQatg==", "dev": true }, "regexpp": { @@ -9243,9 +8533,9 @@ "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==", + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.11.1.tgz", + "integrity": "sha512-vIpgF6wfuJOZI7KKKSP+HmiKggadPQAdsp5HiC1mvqnfp0gF1vdwgBWZIdrVft9pgqoMFQN+R7BSWZiBxx+BBw==", "dev": true, "requires": { "path-parse": "^1.0.6" @@ -9305,6 +8595,12 @@ "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==", + "dev": true + }, "rimraf": { "version": "2.6.3", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", @@ -9314,16 +8610,6 @@ "glob": "^7.1.3" } }, - "ripemd160": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", - "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", - "dev": true, - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1" - } - }, "rsvp": { "version": "4.8.5", "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", @@ -9345,14 +8631,11 @@ "integrity": "sha512-kc120TBlQ3mih1LSzdAJXo4xn/GWS2ec0l3S+syHDXP9uRr0JAT8Qd3mdMuyjqCzeZktgP3try92cEgf9Nks8A==", "dev": true }, - "run-queue": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz", - "integrity": "sha1-6Eg5bwV9Ij8kOGkkYY4laUFh7Ec=", - "dev": true, - "requires": { - "aproba": "^1.1.1" - } + "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 }, "rxjs": { "version": "6.5.2", @@ -9438,12 +8721,6 @@ "integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=", "dev": true }, - "serialize-javascript": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-1.7.0.tgz", - "integrity": "sha512-ke8UG8ulpFOxO8f8gRYabHQe/ZntKlcig2Mp+8+URDP1D8vJZ0KUt7LYo07q25Z/+JVSgpr/cui9PIp5H6/+nA==", - "dev": true - }, "set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", @@ -9451,9 +8728,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", @@ -9473,22 +8750,6 @@ } } }, - "setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", - "dev": true - }, - "sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, "shebang-command": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", @@ -9534,36 +8795,10 @@ "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "dev": true }, - "simple-git": { - "version": "1.113.0", - "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-1.113.0.tgz", - "integrity": "sha512-i9WVsrK2u0G/cASI9nh7voxOk9mhanWY9eGtWBDSYql6m49Yk5/Fan6uZsDr/xmzv8n+eQ8ahKCoEr8cvU3h+g==", - "dev": true, - "requires": { - "debug": "^4.0.1" - }, - "dependencies": { - "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - } - } - }, "sisteransi": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.0.tgz", - "integrity": "sha512-N+z4pHB4AmUv0SjveWRd6q1Nj5w62m5jodv+GD8lvmbY/83T/rpbJGZOnK5T149OldDj4Db07BSv9xY4K6NTPQ==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.2.tgz", + "integrity": "sha512-ZcYcZcT69nSLAR2oLN2JwNmLkJEKGooFMCdvOkFrToUt/WfcRWqhIg4P4KwY4dmLbuyXIx4o4YmPsvMRJYJd/w==", "dev": true }, "slash": { @@ -9699,12 +8934,6 @@ } } }, - "source-list-map": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", - "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==", - "dev": true - }, "source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", @@ -9775,9 +9004,9 @@ } }, "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==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz", + "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==", "dev": true }, "split": { @@ -9836,27 +9065,12 @@ "tweetnacl": "~0.14.0" } }, - "ssri": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.1.tgz", - "integrity": "sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA==", - "dev": true, - "requires": { - "figgy-pudding": "^3.5.1" - } - }, "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 }, - "staged-git-files": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/staged-git-files/-/staged-git-files-1.1.2.tgz", - "integrity": "sha512-0Eyrk6uXW6tg9PYkhi/V/J4zHp33aNyi2hOCmhFLqLTIhbgqWn5jlSzI+IU0VqrZq6+DbHcabQl/WP6P3BG0QA==", - "dev": true - }, "standard-version": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/standard-version/-/standard-version-6.0.1.tgz", @@ -10045,49 +9259,10 @@ "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=", "dev": true }, - "stream-browserify": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", - "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", - "dev": true, - "requires": { - "inherits": "~2.0.1", - "readable-stream": "^2.0.2" - } - }, - "stream-each": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.3.tgz", - "integrity": "sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "stream-shift": "^1.0.0" - } - }, - "stream-http": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz", - "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", - "dev": true, - "requires": { - "builtin-status-codes": "^3.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.3.6", - "to-arraybuffer": "^1.0.0", - "xtend": "^4.0.0" - } - }, - "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-argv": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.0.2.tgz", - "integrity": "sha1-2sMECGkMIfPDYwo/86BYd73L1zY=", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.0.tgz", + "integrity": "sha512-NGZHq3nkSXVtGZXTBjFru3MNfoZyIzN25T7BmvdgnSC0LCJczAGLLMQLyjywSIaAoqSemgLzBRHOsnrHbt60+Q==", "dev": true }, "string-length": { @@ -10202,6 +9377,12 @@ "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", "dev": true }, + "strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "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", @@ -10235,16 +9416,10 @@ "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", "dev": true }, - "synchronous-promise": { - "version": "2.0.9", - "resolved": "https://registry.npmjs.org/synchronous-promise/-/synchronous-promise-2.0.9.tgz", - "integrity": "sha512-LO95GIW16x69LuND1nuuwM4pjgFGupg7pZ/4lU86AmchPKrhk0o2tpMU2unXRrqo81iAFe1YJ0nAGEVwsrZAgg==", - "dev": true - }, "table": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/table/-/table-5.4.0.tgz", - "integrity": "sha512-nHFDrxmbrkU7JAFKqKbDJXfzrX2UBsWmrieXFTGxiI5e4ncg3VqsZeI4EzNmX0ncp4XNGVeoxIWJXfCIXwrsvw==", + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/table/-/table-5.4.1.tgz", + "integrity": "sha512-E6CK1/pZe2N75rGZQotFOdmzWQ1AILtgYbMAbAjvms0S1l5IDB47zG3nCnFGB/w+7nB3vKofbLXCH7HPBo864w==", "dev": true, "requires": { "ajv": "^6.9.1", @@ -10281,57 +9456,6 @@ } } }, - "tapable": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", - "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==", - "dev": true - }, - "terser": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-4.0.0.tgz", - "integrity": "sha512-dOapGTU0hETFl1tCo4t56FN+2jffoKyER9qBGoUFyZ6y7WLoKT0bF+lAYi6B6YsILcGF3q1C2FBh8QcKSCgkgA==", - "dev": true, - "requires": { - "commander": "^2.19.0", - "source-map": "~0.6.1", - "source-map-support": "~0.5.10" - }, - "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 - } - } - }, - "terser-webpack-plugin": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.3.0.tgz", - "integrity": "sha512-W2YWmxPjjkUcOWa4pBEv4OP4er1aeQJlSo2UhtCFQCuRXEHjOFscO8VyWHj9JLlA0RzQb8Y2/Ta78XZvT54uGg==", - "dev": true, - "requires": { - "cacache": "^11.3.2", - "find-cache-dir": "^2.0.0", - "is-wsl": "^1.1.0", - "loader-utils": "^1.2.3", - "schema-utils": "^1.0.0", - "serialize-javascript": "^1.7.0", - "source-map": "^0.6.1", - "terser": "^4.0.0", - "webpack-sources": "^1.3.0", - "worker-farm": "^1.7.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 - } - } - }, "test-exclude": { "version": "5.2.3", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-5.2.3.tgz", @@ -10433,15 +9557,6 @@ "xtend": "~4.0.1" } }, - "timers-browserify": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.10.tgz", - "integrity": "sha512-YvC1SV1XdOUaL6gx5CoGroT3Gu49pK9+TZ38ErPldOWW4j49GI1HKs9DV+KGq/w6y+LZ72W1c8cKz2vzY+qpzg==", - "dev": true, - "requires": { - "setimmediate": "^1.0.4" - } - }, "tmp": { "version": "0.0.33", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", @@ -10457,12 +9572,6 @@ "integrity": "sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE=", "dev": true }, - "to-arraybuffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", - "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", - "dev": true - }, "to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", @@ -10511,12 +9620,6 @@ "repeat-string": "^1.6.1" } }, - "toposort": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz", - "integrity": "sha1-riF2gXXRVZ1IvvNUILL0li8JwzA=", - "dev": true - }, "tough-cookie": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", @@ -10560,12 +9663,6 @@ "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", "dev": true }, - "tty-browserify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", - "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", - "dev": true - }, "tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", @@ -10591,9 +9688,9 @@ } }, "type-fest": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.4.1.tgz", - "integrity": "sha512-IwzA/LSfD2vC1/YDYMv/zHP4rDF1usCwllsDpbolT3D4fUepIO7f9K70jjmUewU/LmGUKJcwcVtDCpnKk4BPMw==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", "dev": true }, "typedarray": { @@ -10651,56 +9748,15 @@ "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=", + "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": { "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-filename": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", - "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", - "dev": true, - "requires": { - "unique-slug": "^2.0.0" - } - }, - "unique-slug": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", - "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", - "dev": true, - "requires": { - "imurmurhash": "^0.1.4" + "set-value": "^2.0.1" } }, "universalify": { @@ -10753,7 +9809,8 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/upath/-/upath-1.1.2.tgz", "integrity": "sha512-kXpym8nmDmlCBr7nKdIx8P2jNBa+pBpIUFRnKJ4dr8htyYGJFokkr2ZvERRtUN+9SY+JqXouNgUPtv6JQva/2Q==", - "dev": true + "dev": true, + "optional": true }, "uri-js": { "version": "4.2.2", @@ -10769,24 +9826,6 @@ "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", "dev": true }, - "url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", - "dev": true, - "requires": { - "punycode": "1.3.2", - "querystring": "0.2.0" - }, - "dependencies": { - "punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", - "dev": true - } - } - }, "use": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", @@ -10802,15 +9841,6 @@ "rc": "^1.2.1" } }, - "util": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz", - "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==", - "dev": true, - "requires": { - "inherits": "2.0.3" - } - }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -10854,12 +9884,6 @@ "extsprintf": "^1.2.0" } }, - "vm-browserify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.0.tgz", - "integrity": "sha512-iq+S7vZJE60yejDYM0ek6zg308+UZsdtPExWP9VZoCFCz1zkJoXFnAX7aZfd/ZwrkidzdUZL0C/ryW+JwAiIGw==", - "dev": true - }, "w3c-hr-time": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz", @@ -10878,55 +9902,12 @@ "makeerror": "1.0.x" } }, - "watchpack": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz", - "integrity": "sha512-i6dHe3EyLjMmDlU1/bGQpEw25XSjkJULPuAVKCbNRefQVq48yXKUpwg538F7AZTf9kyr57zj++pQFltUa5H7yA==", - "dev": true, - "requires": { - "chokidar": "^2.0.2", - "graceful-fs": "^4.1.2", - "neo-async": "^2.5.0" - } - }, "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 }, - "webpack": { - "version": "4.34.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.34.0.tgz", - "integrity": "sha512-ry2IQy1wJjOefLe1uJLzn5tG/DdIKzQqNlIAd2L84kcaADqNvQDTBlo8UcCNyDaT5FiaB+16jhAkb63YeG3H8Q==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-module-context": "1.8.5", - "@webassemblyjs/wasm-edit": "1.8.5", - "@webassemblyjs/wasm-parser": "1.8.5", - "acorn": "^6.0.5", - "acorn-dynamic-import": "^4.0.0", - "ajv": "^6.1.0", - "ajv-keywords": "^3.1.0", - "chrome-trace-event": "^1.0.0", - "enhanced-resolve": "^4.1.0", - "eslint-scope": "^4.0.0", - "json-parse-better-errors": "^1.0.2", - "loader-runner": "^2.3.0", - "loader-utils": "^1.1.0", - "memory-fs": "~0.4.1", - "micromatch": "^3.1.8", - "mkdirp": "~0.5.0", - "neo-async": "^2.5.0", - "node-libs-browser": "^2.0.0", - "schema-utils": "^1.0.0", - "tapable": "^1.1.0", - "terser-webpack-plugin": "^1.1.0", - "watchpack": "^1.5.0", - "webpack-sources": "^1.3.0" - } - }, "webpack-merge": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-4.2.1.tgz", @@ -10936,24 +9917,6 @@ "lodash": "^4.17.5" } }, - "webpack-sources": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.3.0.tgz", - "integrity": "sha512-OiVgSrbGu7NEnEvQJJgdSFPl2qWKkWq5lHMhgiToIiN9w34EBnjYzSYs+VbL5KoYiLNtFFa7BZIKxRED3I32pA==", - "dev": true, - "requires": { - "source-list-map": "^2.0.0", - "source-map": "~0.6.1" - }, - "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 - } - } - }, "whatwg-encoding": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", @@ -11001,15 +9964,6 @@ "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", "dev": true }, - "worker-farm": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.7.0.tgz", - "integrity": "sha512-rvw3QTZc8lAxyVrqcSGVm5yP/IJ2UcB3U0graE3LCFoZ0Yn2x4EoVSqJKdB/T5M+FLcRPjz4TDacRf3OCfNUzw==", - "dev": true, - "requires": { - "errno": "~0.1.7" - } - }, "wrap-ansi": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", @@ -11090,9 +10044,9 @@ "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": { @@ -11202,20 +10156,6 @@ "requires": { "camelcase": "^4.1.0" } - }, - "yup": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/yup/-/yup-0.27.0.tgz", - "integrity": "sha512-v1yFnE4+u9za42gG/b/081E7uNW9mUj3qtkmelLbW5YPROZzSH/KUUyJu9Wt8vxFJcT9otL/eZopS0YK1L5yPQ==", - "dev": true, - "requires": { - "@babel/runtime": "^7.0.0", - "fn-name": "~2.0.1", - "lodash": "^4.17.11", - "property-expr": "^1.5.0", - "synchronous-promise": "^2.0.6", - "toposort": "^2.0.2" - } } } } diff --git a/package.json b/package.json index 1a07bb5..cc99a72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "schema-utils", - "version": "1.0.0", + "version": "2.0.0", "description": "webpack Validation Utils", "license": "MIT", "repository": "webpack-contrib/schema-utils", @@ -35,7 +35,6 @@ ], "dependencies": { "ajv": "^6.1.0", - "ajv-errors": "^1.0.0", "ajv-keywords": "^3.1.0" }, "devDependencies": { @@ -49,20 +48,18 @@ "babel-jest": "^24.8.0", "commitlint-azure-pipelines-cli": "^1.0.2", "cross-env": "^5.2.0", - "del": "^4.1.1", + "del": "^5.0.0", "del-cli": "^2.0.0", - "eslint": "^5.0.0", - "eslint-config-prettier": "^4.3.0", + "eslint": "^6.0.1", + "eslint-config-prettier": "^6.0.0", "eslint-plugin-import": "^2.0.0", - "husky": "^2.4.1", + "husky": "^3.0.0", "jest": "^24.8.0", "jest-junit": "^6.4.0", - "lint-staged": "^8.2.0", - "memory-fs": "^0.4.1", + "lint-staged": "^9.2.0", "npm-run-all": "^4.1.5", "prettier": "^1.0.0", - "standard-version": "^6.0.1", - "webpack": "^4.34.0" + "standard-version": "^6.0.1" }, "keywords": [ "webpack" diff --git a/src/ValidationError.js b/src/ValidationError.js index deba009..9186017 100644 --- a/src/ValidationError.js +++ b/src/ValidationError.js @@ -1,23 +1,826 @@ +const SPECIFICITY = { + type: 1, + not: 1, + oneOf: 1, + anyOf: 1, + if: 1, + enum: 1, + const: 1, + instanceof: 1, + required: 2, + pattern: 2, + patternRequired: 2, + format: 2, + formatMinimum: 2, + formatMaximum: 2, + minimum: 2, + exclusiveMinimum: 2, + maximum: 2, + exclusiveMaximum: 2, + multipleOf: 2, + uniqueItems: 2, + contains: 2, + minLength: 2, + maxLength: 2, + minItems: 2, + maxItems: 2, + minProperties: 2, + maxProperties: 2, + dependencies: 2, + propertyNames: 2, + additionalItems: 2, + additionalProperties: 2, + absolutePath: 2, +}; + +function filterMax(array, fn) { + const evaluatedMax = array.reduce((max, item) => Math.max(max, fn(item)), 0); + + return array.filter((item) => fn(item) === evaluatedMax); +} + +function filterChildren(children) { + let newChildren = children; + + newChildren = filterMax(newChildren, (error) => + error.dataPath ? error.dataPath.length : 0 + ); + newChildren = filterMax( + newChildren, + (error) => SPECIFICITY[error.keyword] || 2 + ); + + return newChildren; +} + +function indent(str, prefix) { + return str.replace(/\n(?!$)/g, `\n${prefix}`); +} + +function isObject(maybyObj) { + return typeof maybyObj === 'object' && maybyObj !== null; +} + +function likeNumber(schema) { + return ( + schema.type === 'number' || + typeof schema.minimum !== 'undefined' || + typeof schema.exclusiveMinimum !== 'undefined' || + typeof schema.maximum !== 'undefined' || + typeof schema.exclusiveMaximum !== 'undefined' || + typeof schema.multipleOf !== 'undefined' + ); +} + +function likeInteger(schema) { + return ( + schema.type === 'integer' || + typeof schema.minimum !== 'undefined' || + typeof schema.exclusiveMinimum !== 'undefined' || + typeof schema.maximum !== 'undefined' || + typeof schema.exclusiveMaximum !== 'undefined' || + typeof schema.multipleOf !== 'undefined' + ); +} + +function likeString(schema) { + return ( + schema.type === 'string' || + typeof schema.minLength !== 'undefined' || + typeof schema.maxLength !== 'undefined' || + typeof schema.pattern !== 'undefined' || + typeof schema.format !== 'undefined' || + typeof schema.formatMinimum !== 'undefined' || + typeof schema.formatMaximum !== 'undefined' + ); +} + +function likeBoolean(schema) { + return schema.type === 'boolean'; +} + +function likeArray(schema) { + return ( + schema.type === 'array' || + typeof schema.minItems === 'number' || + typeof schema.maxItems === 'number' || + typeof schema.uniqueItems !== 'undefined' || + typeof schema.items !== 'undefined' || + typeof schema.additionalItems !== 'undefined' || + typeof schema.contains !== 'undefined' + ); +} + +function likeObject(schema) { + return ( + schema.type === 'object' || + typeof schema.minProperties !== 'undefined' || + typeof schema.maxProperties !== 'undefined' || + typeof schema.required !== 'undefined' || + typeof schema.properties !== 'undefined' || + typeof schema.patternProperties !== 'undefined' || + typeof schema.additionalProperties !== 'undefined' || + typeof schema.dependencies !== 'undefined' || + typeof schema.propertyNames !== 'undefined' || + typeof schema.patternRequired !== 'undefined' + ); +} + +function likeNull(schema) { + return schema.type === 'null'; +} + +function getArticle(type) { + if (/^[aeiou]/i.test(type)) { + return 'an'; + } + + return 'a'; +} + class ValidationError extends Error { - constructor(errors, name) { + constructor(errors, schema, configuration = {}) { super(); this.name = 'ValidationError'; + this.errors = errors; + this.schema = schema; + this.headerName = configuration.name || 'Object'; + this.baseDataPath = configuration.baseDataPath || 'configuration'; + this.postFormatter = configuration.postFormatter || null; + + const header = `Invalid ${this.baseDataPath} object. ${ + this.headerName + } has been initialised using ${getArticle(this.baseDataPath)} ${ + this.baseDataPath + } object that does not match the API schema.\n`; + + this.message = `${header}${this.formatValidationErrors(errors)}`; + + Error.captureStackTrace(this, this.constructor); + } + + getSchemaPart(path) { + const newPath = path.split('/'); + + let schemaPart = this.schema; + + for (let i = 1; i < newPath.length; i++) { + const inner = schemaPart[newPath[i]]; + + if (!inner) { + break; + } + + schemaPart = inner; + } + + return schemaPart; + } + + formatSchema(schema, prevSchemas = []) { + const formatInnerSchema = (innerSchema, addSelf) => { + if (!addSelf) { + return this.formatSchema(innerSchema, prevSchemas); + } + + if (prevSchemas.includes(innerSchema)) { + return '(recursive)'; + } + + return this.formatSchema(innerSchema, prevSchemas.concat(schema)); + }; + + // eslint-disable-next-line default-case + switch (schema.instanceof) { + case 'Function': + return 'function'; + case 'RegExp': + return 'RegExp'; + } + + if (schema.enum) { + return schema.enum.map((item) => JSON.stringify(item)).join(' | '); + } + + if (typeof schema.const !== 'undefined') { + return JSON.stringify(schema.const); + } + + if (schema.oneOf) { + return schema.oneOf.map(formatInnerSchema).join(' | '); + } + + if (schema.anyOf) { + return schema.anyOf.map(formatInnerSchema).join(' | '); + } + + if (schema.allOf) { + return schema.allOf.map(formatInnerSchema).join(' & '); + } + + if (schema.if) { + return `if ${formatInnerSchema(schema.if)} then ${formatInnerSchema( + schema.then + )}${schema.else ? ` else ${formatInnerSchema(schema.else)}` : ''}`; + } + + if (schema.$ref) { + return formatInnerSchema(this.getSchemaPart(schema.$ref), true); + } + + if (likeNumber(schema) || likeInteger(schema)) { + const hints = []; + + if (typeof schema.minimum === 'number') { + hints.push(`should be >= ${schema.minimum}`); + } + + if (typeof schema.exclusiveMinimum === 'number') { + hints.push(`should be > ${schema.exclusiveMinimum}`); + } + + if (typeof schema.maximum === 'number') { + hints.push(`should be <= ${schema.maximum}`); + } + + if (typeof schema.exclusiveMaximum === 'number') { + hints.push(`should be > ${schema.exclusiveMaximum}`); + } + + if (typeof schema.multipleOf === 'number') { + hints.push(`should be multiple of ${schema.multipleOf}`); + } + + const type = schema.type === 'integer' ? 'integer' : 'number'; + + return `${type}${hints.length > 0 ? ` (${hints.join(', ')})` : ''}`; + } - this.message = `${name || ''} Invalid Options\n\n`; + if (likeString(schema)) { + let type = 'string'; + const hints = []; - this.errors = errors.map((error) => { + if (typeof schema.minLength === 'number') { + if (schema.minLength === 1) { + type = 'non-empty string'; + } else { + hints.push( + `should not be shorter than ${schema.minLength} characters` + ); + } + } + + if (typeof schema.maxLength === 'number') { + hints.push( + `should not be longer than ${schema.maxLength} character${ + schema.maxLength > 1 ? 's' : '' + }` + ); + } + + if (schema.pattern) { + hints.push(`should match pattern ${JSON.stringify(schema.pattern)}`); + } + + if (schema.format) { + hints.push(`should match format ${JSON.stringify(schema.format)}`); + } + + if (schema.formatMinimum) { + hints.push( + `should be ${ + schema.formatExclusiveMinimum ? '>' : '>=' + } ${JSON.stringify(schema.formatMinimum)}` + ); + } + + if (schema.formatMaximum) { + hints.push( + `should be ${ + schema.formatExclusiveMaximum ? '<' : '<=' + } ${JSON.stringify(schema.formatMaximum)}` + ); + } + + return `${type}${hints.length > 0 ? ` (${hints.join(', ')})` : ''}`; + } + + if (likeBoolean(schema)) { + return 'boolean'; + } + + if (likeArray(schema)) { + const hints = []; + + if (typeof schema.minItems === 'number') { + hints.push( + `should not have fewer than ${schema.minItems} item${ + schema.minItems > 1 ? 's' : '' + }` + ); + } + + if (typeof schema.maxItems === 'number') { + hints.push( + `should not have more than ${schema.maxItems} item${ + schema.maxItems > 1 ? 's' : '' + }` + ); + } + + if (schema.uniqueItems) { + hints.push('should not have duplicate items'); + } + + const hasAdditionalItems = + typeof schema.additionalItems === 'undefined' || + Boolean(schema.additionalItems); + let items = ''; + + if (schema.items) { + if (Array.isArray(schema.items) && schema.items.length > 0) { + items = `${schema.items.map(formatInnerSchema).join(', ')}`; + + if (hasAdditionalItems) { + if ( + isObject(schema.additionalItems) && + Object.keys(schema.additionalItems).length > 0 + ) { + hints.push( + `additional items should be ${formatInnerSchema( + schema.additionalItems + )}` + ); + } + } + } else if (schema.items && Object.keys(schema.items).length > 0) { + // "additionalItems" is ignored + items = `${formatInnerSchema(schema.items)}`; + } else { + // Fallback for empty `items` value + items = 'any'; + } + } else { + // "additionalItems" is ignored + items = 'any'; + } + + if (schema.contains && Object.keys(schema.contains).length > 0) { + hints.push( + `should contains at least one ${this.formatSchema( + schema.contains + )} item` + ); + } + + return `[${items}${hasAdditionalItems ? ', ...' : ''}]${ + hints.length > 0 ? ` (${hints.join(', ')})` : '' + }`; + } + + if (likeObject(schema)) { + const hints = []; + + if (typeof schema.minProperties === 'number') { + hints.push( + `should not have fewer than ${schema.minProperties} ${ + schema.minProperties > 1 ? 'properties' : 'property' + }` + ); + } + + if (typeof schema.maxProperties === 'number') { + hints.push( + `should not have more than ${schema.maxProperties} ${ + schema.minProperties > 1 ? 'properties' : 'property' + }` + ); + } + + if ( + schema.patternProperties && + Object.keys(schema.patternProperties).length > 0 + ) { + const patternProperties = Object.keys(schema.patternProperties); + + hints.push( + `additional property names should match pattern${ + patternProperties.length > 1 ? 's' : '' + } ${patternProperties + .map((pattern) => JSON.stringify(pattern)) + .join(' | ')}` + ); + } + + const properties = schema.properties + ? Object.keys(schema.properties) + : []; + const required = schema.required ? schema.required : []; + const allProperties = [ + ...new Set([].concat(required).concat(properties)), + ]; + const hasAdditionalProperties = + typeof schema.additionalProperties === 'undefined' || + Boolean(schema.additionalProperties); + + const objectStructure = allProperties + .map((property) => { + const isRequired = required.includes(property); + + // Some properties need quotes, maybe we should add check + // Maybe we should output type of property (`foo: string`), but it is looks very unreadable + return `${property}${isRequired ? '' : '?'}`; + }) + .concat( + hasAdditionalProperties + ? isObject(schema.additionalProperties) + ? [`: ${formatInnerSchema(schema.additionalProperties)}`] + : ['…'] + : [] + ) + .join(', '); + + if (schema.dependencies) { + Object.keys(schema.dependencies).forEach((dependencyName) => { + const dependency = schema.dependencies[dependencyName]; + + if (Array.isArray(dependency)) { + hints.push( + `should have ${ + dependency.length > 1 ? 'properties' : 'property' + } ${dependency + .map((dep) => `'${dep}'`) + .join(', ')} when property '${dependencyName}' is present` + ); + } else { + hints.push( + `should be valid according to the schema ${formatInnerSchema( + dependency + )} when property '${dependencyName}' is present` + ); + } + }); + } + + if ( + schema.propertyNames && + Object.keys(schema.propertyNames).length > 0 + ) { + hints.push( + `each property name should match format ${JSON.stringify( + schema.propertyNames.format + )}` + ); + } + + if (schema.patternRequired && schema.patternRequired.length > 0) { + hints.push( + `should have property matching pattern ${schema.patternRequired.map( + (item) => JSON.stringify(item) + )}` + ); + } + + return `object${objectStructure ? ` { ${objectStructure} }` : ''}${ + hints.length > 0 ? ` (${hints.join(', ')})` : '' + }`; + } + + if (likeNull(schema)) { + return 'null'; + } + + if (Array.isArray(schema.type)) { + return `${schema.type.map((item) => item).join(' | ')}`; + } + + // Fallback for unknown keywords + /* istanbul ignore next */ + return JSON.stringify(schema, null, 2); + } + + getSchemaPartText(schemaPart, additionalPath, needDot = false) { + if (additionalPath) { + for (let i = 0; i < additionalPath.length; i++) { + const inner = schemaPart[additionalPath[i]]; + + if (inner) { + // eslint-disable-next-line no-param-reassign + schemaPart = inner; + } else { + break; + } + } + } + + while (schemaPart.$ref) { // eslint-disable-next-line no-param-reassign - error.dataPath = error.dataPath.replace(/\//g, '.'); + schemaPart = this.getSchemaPart(schemaPart.$ref); + } - return error; - }); + let schemaText = `${this.formatSchema(schemaPart)}${needDot ? '.' : ''}`; - this.errors.forEach((err) => { - this.message += `options${err.dataPath} ${err.message}\n`; - }); + if (schemaPart.description) { + schemaText += `\n-> ${schemaPart.description}`; + } - Error.captureStackTrace(this, this.constructor); + return schemaText; + } + + getSchemaPartDescription(schemaPart) { + while (schemaPart.$ref) { + // eslint-disable-next-line no-param-reassign + schemaPart = this.getSchemaPart(schemaPart.$ref); + } + + if (schemaPart.description) { + return `\n-> ${schemaPart.description}`; + } + + return ''; + } + + formatValidationError(error) { + const dataPath = `${this.baseDataPath}${error.dataPath}`; + + switch (error.keyword) { + case 'type': + // eslint-disable-next-line default-case + switch (error.params.type) { + case 'number': + return `${dataPath} should be a ${this.getSchemaPartText( + error.parentSchema, + false, + true + )}`; + case 'integer': + return `${dataPath} should be a ${this.getSchemaPartText( + error.parentSchema, + false, + true + )}`; + case 'string': + return `${dataPath} should be a ${this.getSchemaPartText( + error.parentSchema, + false, + true + )}`; + case 'boolean': + return `${dataPath} should be a ${this.getSchemaPartText( + error.parentSchema, + false, + true + )}`; + case 'array': + return `${dataPath} should be an array:\n${this.getSchemaPartText( + error.parentSchema + )}`; + case 'object': + return `${dataPath} should be an object:\n${this.getSchemaPartText( + error.parentSchema + )}`; + case 'null': + return `${dataPath} should be a ${this.getSchemaPartText( + error.parentSchema, + false, + true + )}`; + default: + return `${dataPath} should be:\n${this.getSchemaPartText( + error.parentSchema + )}`; + } + case 'instanceof': + return `${dataPath} should be an instance of ${this.getSchemaPartText( + error.parentSchema + )}.`; + case 'pattern': + return `${dataPath} should match pattern ${JSON.stringify( + error.params.pattern + )}.${this.getSchemaPartDescription(error.parentSchema)}`; + case 'format': + return `${dataPath} should match format ${JSON.stringify( + error.params.format + )}.${this.getSchemaPartDescription(error.parentSchema)}`; + case 'formatMinimum': + case 'formatMaximum': + return `${dataPath} should be ${ + error.params.comparison + } ${JSON.stringify(error.params.limit)}.${this.getSchemaPartDescription( + error.parentSchema + )}`; + case 'minimum': + case 'maximum': + case 'exclusiveMinimum': + case 'exclusiveMaximum': + return `${dataPath} should be ${error.params.comparison} ${ + error.params.limit + }.${this.getSchemaPartDescription(error.parentSchema)}`; + case 'multipleOf': + return `${dataPath} should be multiple of ${ + error.params.multipleOf + }.${this.getSchemaPartDescription(error.parentSchema)}`; + case 'patternRequired': + return `${dataPath} should have property matching pattern ${JSON.stringify( + error.params.missingPattern + )}.${this.getSchemaPartDescription(error.parentSchema)}`; + case 'minLength': { + if (error.params.limit === 1) { + return `${dataPath} should be an non-empty string.${this.getSchemaPartDescription( + error.parentSchema + )}`; + } + + return `${dataPath} should not be shorter than ${ + error.params.limit + } characters.${this.getSchemaPartDescription(error.parentSchema)}`; + } + case 'minItems': { + if (error.params.limit === 1) { + return `${dataPath} should be an non-empty array.${this.getSchemaPartDescription( + error.parentSchema + )}`; + } + + return `${dataPath} should not have fewer than ${ + error.limit + } items.${this.getSchemaPartDescription(error.parentSchema)}`; + } + case 'minProperties': { + if (error.params.limit === 1) { + return `${dataPath} should be an non-empty object.${this.getSchemaPartDescription( + error.parentSchema + )}`; + } + + return `${dataPath} should not have fewer than ${ + error.params.limit + } properties.${this.getSchemaPartDescription(error.parentSchema)}`; + } + case 'maxLength': + return `${dataPath} should not be longer than ${ + error.params.limit + } characters.${this.getSchemaPartDescription(error.parentSchema)}`; + case 'maxItems': + return `${dataPath} should not have more than ${ + error.params.limit + } items.${this.getSchemaPartDescription(error.parentSchema)}`; + case 'maxProperties': + return `${dataPath} should not have more than ${ + error.params.limit + } properties.${this.getSchemaPartDescription(error.parentSchema)}`; + case 'uniqueItems': + return `${dataPath} should not contain the item '${ + error.data[error.params.i] + }' twice.${this.getSchemaPartDescription(error.parentSchema)}`; + case 'additionalItems': + return `${dataPath} should not have more than ${ + error.params.limit + } items. These items are valid:\n${this.getSchemaPartText( + error.parentSchema + )}`; + case 'contains': + return `${dataPath} should contains at least one ${this.getSchemaPartText( + error.parentSchema, + ['contains'] + )} item.`; + case 'required': { + const missingProperty = error.params.missingProperty.replace(/^\./, ''); + const hasProperty = Boolean( + error.parentSchema.properties && + error.parentSchema.properties[missingProperty] + ); + + return `${dataPath} misses the property '${missingProperty}'.${ + hasProperty + ? ` Should be:\n${this.getSchemaPartText(error.parentSchema, [ + 'properties', + missingProperty, + ])}` + : this.getSchemaPartDescription(error.parentSchema) + }`; + } + case 'additionalProperties': + return `${dataPath} has an unknown property '${ + error.params.additionalProperty + }'. These properties are valid:\n${this.getSchemaPartText( + error.parentSchema + )}`; + case 'dependencies': { + const dependencies = error.params.deps + .split(',') + .map((dep) => `'${dep.trim()}'`) + .join(', '); + + return `${dataPath} should have properties ${dependencies} when property '${ + error.params.property + }' is present.${this.getSchemaPartDescription(error.parentSchema)}`; + } + case 'propertyNames': { + const invalidProperty = error.params.propertyName; + + return `${dataPath} property name '${invalidProperty}' is invalid. Property names should be match format ${JSON.stringify( + error.schema.format + )}.${this.getSchemaPartDescription(error.parentSchema)}`; + } + case 'enum': { + if ( + error.parentSchema && + error.parentSchema.enum && + error.parentSchema.enum.length === 1 + ) { + return `${dataPath} should be ${this.getSchemaPartText( + error.parentSchema, + false, + true + )}`; + } + + return `${dataPath} should be one of these:\n${this.getSchemaPartText( + error.parentSchema + )}`; + } + case 'const': + return `${dataPath} should be equal to constant ${this.getSchemaPartText( + error.parentSchema + )}`; + case 'oneOf': + case 'anyOf': { + if (error.children && error.children.length > 0) { + if (error.schema.length === 1) { + const lastChild = error.children[error.children.length - 1]; + const remainingChildren = error.children.slice( + 0, + error.children.length - 1 + ); + + return this.formatValidationError( + Object.assign({}, lastChild, { + children: remainingChildren, + parentSchema: Object.assign( + {}, + error.parentSchema, + lastChild.parentSchema + ), + }) + ); + } + + const children = filterChildren(error.children); + + if (children.length === 1) { + return this.formatValidationError(children[0]); + } + + return `${dataPath} should be one of these:\n${this.getSchemaPartText( + error.parentSchema + )}\nDetails:\n${children + .map( + (nestedError) => + ` * ${indent(this.formatValidationError(nestedError), ' ')}` + ) + .join('\n')}`; + } + + return `${dataPath} should be one of these:\n${this.getSchemaPartText( + error.parentSchema + )}`; + } + case 'if': + return `${dataPath} should match "${ + error.params.failingKeyword + }" schema:\n${this.getSchemaPartText(error.parentSchema, [ + error.params.failingKeyword, + ])}`; + case 'absolutePath': + return `${dataPath}: ${error.message}${this.getSchemaPartDescription( + error.parentSchema + )}`; + default: + // For `custom`, `false schema`, `$ref` keywords + // Fallback for unknown keywords + /* istanbul ignore next */ + return `${dataPath} ${error.message} (${JSON.stringify( + error, + null, + 2 + )}).\n${this.getSchemaPartText(error.parentSchema)}`; + } + } + + formatValidationErrors(errors) { + return errors + .map((error) => { + let formattedError = this.formatValidationError(error, this.schema); + + if (this.postFormatter) { + formattedError = this.postFormatter(formattedError, error); + } + + return ` - ${indent(formattedError, ' ')}`; + }) + .join('\n'); } } diff --git a/src/keywords/absolutePath.js b/src/keywords/absolutePath.js new file mode 100644 index 0000000..574f4da --- /dev/null +++ b/src/keywords/absolutePath.js @@ -0,0 +1,56 @@ +function errorMessage(schema, data, message) { + return { + keyword: 'absolutePath', + params: { absolutePath: data }, + message, + parentSchema: schema, + }; +} + +function getErrorFor(shouldBeAbsolute, data, schema) { + const message = shouldBeAbsolute + ? `The provided value ${JSON.stringify(data)} is not an absolute path!` + : `A relative path is expected. However, the provided value ${JSON.stringify( + data + )} is an absolute path!`; + + return errorMessage(schema, data, message); +} + +export default (ajv) => + ajv.addKeyword('absolutePath', { + errors: true, + type: 'string', + compile(expected, schema) { + function callback(data) { + let passes = true; + const isExclamationMarkPresent = data.includes('!'); + const isCorrectAbsoluteOrRelativePath = + expected === /^(?:[A-Za-z]:\\|\/)/.test(data); + + if (isExclamationMarkPresent) { + callback.errors = [ + errorMessage( + schema, + data, + `The provided value ${JSON.stringify( + data + )} contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.` + ), + ]; + passes = false; + } + + if (!isCorrectAbsoluteOrRelativePath) { + callback.errors = [getErrorFor(expected, data, schema)]; + passes = false; + } + + return passes; + } + + callback.errors = []; + + return callback; + }, + }); diff --git a/src/validate.js b/src/validate.js index ca23594..7e86cee 100644 --- a/src/validate.js +++ b/src/validate.js @@ -1,31 +1,96 @@ -import fs from 'fs'; -import path from 'path'; - import Ajv from 'ajv'; -import errors from 'ajv-errors'; -import keywords from 'ajv-keywords'; +import ajvKeywords from 'ajv-keywords'; + +import absolutePathKeyword from './keywords/absolutePath'; import ValidationError from './ValidationError'; const ajv = new Ajv({ allErrors: true, - jsonPointers: true, + verbose: true, }); -errors(ajv); -keywords(ajv, ['instanceof', 'typeof']); +ajvKeywords(ajv, [ + 'instanceof', + 'formatMinimum', + 'formatMaximum', + 'patternRequired', +]); + +// Custom keywords +absolutePathKeyword(ajv); + +function validate(schema, options, configuration = {}) { + let errors = []; + + if (Array.isArray(options)) { + errors = options.map((nestedOptions) => + validateObject(schema, nestedOptions) + ); + + errors.forEach((list, idx) => { + const applyPrefix = (error) => { + // eslint-disable-next-line no-param-reassign + error.dataPath = `[${idx}]${error.dataPath}`; -function validate(schema, options, name) { - if (typeof schema === 'string') { - // eslint-disable-next-line no-param-reassign - schema = JSON.parse(fs.readFileSync(path.resolve(schema), 'utf8')); + if (error.children) { + error.children.forEach(applyPrefix); + } + }; + + list.forEach(applyPrefix); + }); + + errors = errors.reduce((arr, items) => arr.concat(items), []); + } else { + errors = validateObject(schema, options); } - if (!ajv.validate(schema, options)) { - throw new ValidationError(ajv.errors, name); + if (errors.length > 0) { + throw new ValidationError(errors, schema, configuration); + } + + return errors; +} + +function validateObject(schema, options) { + const compiledSchema = ajv.compile(schema); + const valid = compiledSchema(options); + + return valid ? [] : filterErrors(compiledSchema.errors); +} + +function filterErrors(errors) { + let newErrors = []; + + for (const error of errors) { + const { dataPath } = error; + let children = []; + + newErrors = newErrors.filter((oldError) => { + if (oldError.dataPath.includes(dataPath)) { + if (oldError.children) { + children = children.concat(oldError.children.slice(0)); + } + + // eslint-disable-next-line no-undefined, no-param-reassign + oldError.children = undefined; + children.push(oldError); + + return false; + } + + return true; + }); + + if (children.length) { + error.children = children; + } + + newErrors.push(error); } - return true; + return newErrors; } export default validate; diff --git a/test/__snapshots__/index.test.js.snap b/test/__snapshots__/index.test.js.snap index add00c4..7c11971 100644 --- a/test/__snapshots__/index.test.js.snap +++ b/test/__snapshots__/index.test.js.snap @@ -1,233 +1,1385 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`validateOptions method should throws errors on invalid schema 1`] = ` -"{Name} Invalid Options - -options.string should be string -options.array should be array -options.object.prop should be boolean -options.object.object.prop should be boolean -options.boolean should be boolean -options.type should pass \\"typeof\\" keyword validation -options.instance should pass \\"instanceof\\" keyword validation -" -`; - -exports[`validateOptions method should throws errors on invalid schema 2`] = ` -Array [ - Object { - "dataPath": ".string", - "keyword": "type", - "message": "should be string", - "params": Object { - "type": "string", - }, - "schemaPath": "#/properties/string/type", - }, - Object { - "dataPath": ".array", - "keyword": "type", - "message": "should be array", - "params": Object { - "type": "array", - }, - "schemaPath": "#/properties/array/type", - }, - Object { - "dataPath": ".object.prop", - "keyword": "type", - "message": "should be boolean", - "params": Object { - "type": "boolean", - }, - "schemaPath": "#/properties/object/properties/prop/type", - }, - Object { - "dataPath": ".object.object.prop", - "keyword": "type", - "message": "should be boolean", - "params": Object { - "type": "boolean", - }, - "schemaPath": "#/properties/object/properties/object/properties/prop/type", - }, - Object { - "dataPath": ".boolean", - "keyword": "type", - "message": "should be boolean", - "params": Object { - "type": "boolean", - }, - "schemaPath": "#/properties/boolean/type", - }, - Object { - "dataPath": ".type", - "keyword": "typeof", - "message": "should pass \\"typeof\\" keyword validation", - "params": Object { - "keyword": "typeof", - }, - "schemaPath": "#/properties/type/typeof", - }, - Object { - "dataPath": ".instance", - "keyword": "instanceof", - "message": "should pass \\"instanceof\\" keyword validation", - "params": Object { - "keyword": "instanceof", - }, - "schemaPath": "#/properties/instance/instanceof", - }, -] -`; - -exports[`validateOptions method should throws errors on invalid schema and has custom error messages 1`] = ` -"{Name} Invalid Options - -options.object.object.prop should be {Boolean} (https://github.com/org/repo#anchor) -options.object.prop should be {Boolean} (https://github.com/org/repo#anchor) -options.type should be {Function} (https://github.com/org/repo#anchor) -options.array should be {Array} (https://github.com/org/repo#anchor) -options.string should be {String} (https://github.com/org/repo#anchor) -options.boolean should be {Boolean} (https://github.com/org/repo#anchor) -options.instance should be {RegExp} (https://github.com/org/repo#anchor) -" -`; - -exports[`validateOptions method should throws errors on invalid schema and has custom error messages 2`] = ` -Array [ - Object { - "dataPath": ".object.object.prop", - "keyword": "errorMessage", - "message": "should be {Boolean} (https://github.com/org/repo#anchor)", - "params": Object { - "errors": Array [ - Object { - "dataPath": "/object/object/prop", - "keyword": "type", - "message": "should be boolean", - "params": Object { - "type": "boolean", - }, - "schemaPath": "#/properties/object/properties/object/properties/prop/type", - }, - ], - }, - "schemaPath": "#/properties/object/properties/object/errorMessage", - }, - Object { - "dataPath": ".object.prop", - "keyword": "errorMessage", - "message": "should be {Boolean} (https://github.com/org/repo#anchor)", - "params": Object { - "errors": Array [ - Object { - "dataPath": "/object/prop", - "keyword": "type", - "message": "should be boolean", - "params": Object { - "type": "boolean", - }, - "schemaPath": "#/properties/object/properties/prop/type", - }, - ], - }, - "schemaPath": "#/properties/object/errorMessage", - }, - Object { - "dataPath": ".type", - "keyword": "errorMessage", - "message": "should be {Function} (https://github.com/org/repo#anchor)", - "params": Object { - "errors": Array [ - Object { - "dataPath": "/type", - "keyword": "typeof", - "message": "should pass \\"typeof\\" keyword validation", - "params": Object { - "keyword": "typeof", - }, - "schemaPath": "#/properties/type/typeof", - }, - ], - }, - "schemaPath": "#/errorMessage", - }, - Object { - "dataPath": ".array", - "keyword": "errorMessage", - "message": "should be {Array} (https://github.com/org/repo#anchor)", - "params": Object { - "errors": Array [ - Object { - "dataPath": "/array", - "keyword": "type", - "message": "should be array", - "params": Object { - "type": "array", - }, - "schemaPath": "#/properties/array/type", - }, - ], - }, - "schemaPath": "#/errorMessage", - }, - Object { - "dataPath": ".string", - "keyword": "errorMessage", - "message": "should be {String} (https://github.com/org/repo#anchor)", - "params": Object { - "errors": Array [ - Object { - "dataPath": "/string", - "keyword": "type", - "message": "should be string", - "params": Object { - "type": "string", - }, - "schemaPath": "#/properties/string/type", - }, - ], - }, - "schemaPath": "#/errorMessage", - }, - Object { - "dataPath": ".boolean", - "keyword": "errorMessage", - "message": "should be {Boolean} (https://github.com/org/repo#anchor)", - "params": Object { - "errors": Array [ - Object { - "dataPath": "/boolean", - "keyword": "type", - "message": "should be boolean", - "params": Object { - "type": "boolean", - }, - "schemaPath": "#/properties/boolean/type", - }, - ], - }, - "schemaPath": "#/errorMessage", - }, - Object { - "dataPath": ".instance", - "keyword": "errorMessage", - "message": "should be {RegExp} (https://github.com/org/repo#anchor)", - "params": Object { - "errors": Array [ - Object { - "dataPath": "/instance", - "keyword": "instanceof", - "message": "should pass \\"instanceof\\" keyword validation", - "params": Object { - "keyword": "instanceof", - }, - "schemaPath": "#/properties/instance/instanceof", - }, - ], - }, - "schemaPath": "#/errorMessage", - }, -] +exports[`Validation should fail validation for ! in path 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.output.path: The provided value \\"/somepath/!test\\" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax. + -> The output directory as **absolute path** (required)." +`; + +exports[`Validation should fail validation for Invalid plugin provided: int 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.plugins[0] should be one of these: + object { apply, … } | function + -> Plugin of type object or instanceof Function + Details: + * configuration.plugins[0] should be an object: + object { apply, … } + -> Plugin instance + * configuration.plugins[0] should be an instance of function + -> Function acting as plugin." +`; + +exports[`Validation should fail validation for Invalid plugin provided: object without apply function 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.plugins[0] misses the property 'apply'. Should be: + function + -> The run point of the plugin, required method." +`; + +exports[`Validation should fail validation for absolute path 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.context: The provided value \\"baz\\" is not an absolute path! + -> The base directory (absolute path!) for resolving the \`entry\` option. If \`output.pathinfo\` is set, the included pathinfo is shortened to this directory." +`; + +exports[`Validation should fail validation for additional key on root 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration has an unknown property 'postcss'. These properties are valid: + object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, externals?, loader?, mode?, module?, name?, node?, optimization?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, serve?, stats?, target?, watch?, watchOptions?, minLengthOne?, minLengthTwo?, integerType?, nullType?, allOfRef?, customObject?, objectType?, anyOfKeyword?, nestedArrayWithoutItems?, nestedObjectWithoutItems?, arrayType?, arrayType2?, multipleTypes?, zeroMaxItems?, multipleContains?, multipleContains2?, exclusiveMinimumKeyword?, exclusiveMaximumKeyword?, uniqueItemsKeyword?, minPropertiesKeyword?, maxPropertiesKeyword?, requiredKeyword?, requiredKeywordWithAdditionalProperties?, enumKeyword?, formatMinimumKeyword?, formatMaximumKeyword?, formatExclusiveMinimumKeyword?, formatExclusiveMaximumKeyword?, formatMinMaxExclusiveMinKeyword?, formatMinMaxExclusiveMaxKeyword?, minItemsKeyword?, maxItemsKeyword?, itemsKeyword?, itemsKeyword2?, additionalItemsKeyword?, additionalItemsKeyword2?, additionalItemsKeyword3?, additionalItemsKeyword4?, propertiesKeyword?, patternPropertiesKeyword?, patternPropertiesKeyword2?, arrayWithOnlyNumber?, onlyRequired?, dependenciesKeyword?, dependenciesKeyword2?, patternRequiredKeyword?, patternRequiredKeyword2?, onlyProperties?, onlyProperties2?, onlyItems?, onlyItems2?, onlyAdditionalItems?, booleanType?, additionalPropertiesKeyword?, additionalPropertiesKeyword2?, propertyNamesKeyword?, constKeyword?, constKeyword2?, ifThenElseKeyword?, ifThenElseKeyword2?, stringKeyword?, arrayKeyword?, arrayKeyword2?, arrayKeyword3?, arrayKeyword4?, arrayKeyword5?, arrayKeyword6?, arrayKeyword7?, arrayKeyword8?, arrayKeyword9?, arrayKeyword10?, arrayKeyword11?, arrayKeyword12?, arrayKeyword13?, arrayKeyword14?, arrayKeyword15?, arrayKeyword16?, arrayKeyword17?, arrayKeyword18?, arrayKeyword19?, recursion?, extending?, longString?, integerWithMinimum?, integerWithExclusiveMinimum?, integerWithExclusiveMaximum?, numberWithMinimum?, multipleOfProp?, stringWithMinAndMaxLength?, strictFormat?, strictFormat2?, uniqueItemsProp?, numberAndDescription?, oneOfnumberAndDescriptionAndArray?, maxPropertiesAndMinProperties?, objectTest?, objectTest2?, objectTest3?, objectTest4?, objectTest5?, objectTest6?, objectTest7?, objectTest8?, objectTest9?, stringWithEmptyPattern?, likeArray?, arrayWithEmptyItemsAndEmptyAdditionalItemsAndEmptyContains?, numberWithoutType?, numberWithoutType2?, stringWithoutType?, arrayWithoutType?, additionalItemsFalse?, requiredWithoutType?, dependenciesWithoutType?, propertyNamesWithoutType?, patternRequiredWithoutType?, additionalPropertiesWithoutType?, minPropertiesWithoutType?, justAnObject?, arrayWithAbsolutePath?, allOfKeyword?, enumWithDescription?, constWithDescription?, itemsTrue?, emptyConst?, oneConst?, constWithEmptyString?, refAndAnyOf?, additionalPropertiesInsideOneOf?, additionalPropertiesInsideOneOf2?, singleContainsItems?, objectWithPropertyDependency?, objectWithPropertyDependency2?, objectWithPropertyDependency3?, objectWithPropertyDependency4?, oneOfWithIf?, constWithArrayNotation?, constWithObjectNotation?, additionalItemsWithoutType?, additionalItemsWithoutType2?, additionalItemsWithoutType3?, containsAndAdditionalItems?, containsInsideItem? }" +`; + +exports[`Validation should fail validation for additionalItems #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalItemsKeyword2[0] should be a integer." +`; + +exports[`Validation should fail validation for additionalItems #3 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalItemsKeyword3[0] should be a integer." +`; + +exports[`Validation should fail validation for additionalItems #4 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalItemsKeyword4 should not have more than 2 items. These items are valid: + [integer, integer]" +`; + +exports[`Validation should fail validation for additionalItems 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalItemsKeyword[1] should be a integer." +`; + +exports[`Validation should fail validation for additionalItems with false 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalItemsFalse should not have more than 2 items. These items are valid: + [integer, integer]" +`; + +exports[`Validation should fail validation for additionalProperties #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalPropertiesKeyword has an unknown property 'baz'. These properties are valid: + object { foo? } (additional property names should match pattern \\"^.*r$\\")" +`; + +exports[`Validation should fail validation for additionalProperties #3 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalPropertiesKeyword has an unknown property 'baz'. These properties are valid: + object { foo? } (additional property names should match pattern \\"^.*r$\\") + - configuration.additionalPropertiesKeyword.foo should be a number." +`; + +exports[`Validation should fail validation for additionalProperties #4 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalPropertiesKeyword2['a'] should be a string." +`; + +exports[`Validation should fail validation for additionalProperties #5 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalPropertiesKeyword2['baz'] should be a string." +`; + +exports[`Validation should fail validation for additionalProperties #6 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalPropertiesKeyword2['bar'] should be a number." +`; + +exports[`Validation should fail validation for additionalProperties 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalPropertiesKeyword has an unknown property 'a'. These properties are valid: + object { foo? } (additional property names should match pattern \\"^.*r$\\")" +`; + +exports[`Validation should fail validation for additionalProperties inside oneOf #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalPropertiesInsideOneOf has an unknown property 'bar'. These properties are valid: + object { foo? }" +`; + +exports[`Validation should fail validation for additionalProperties inside oneOf #3 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalPropertiesInsideOneOf2 should be one of these: + integer (should be <= 3) | object { foo?, … } + Details: + * configuration.additionalPropertiesInsideOneOf2 should be a integer (should be <= 3). + * configuration.additionalPropertiesInsideOneOf2 should be an object: + object { foo?, … }" +`; + +exports[`Validation should fail validation for additionalProperties inside oneOf 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalPropertiesInsideOneOf should be one of these: + integer (should be <= 3) | object { foo? } + Details: + * configuration.additionalPropertiesInsideOneOf should be a integer (should be <= 3). + * configuration.additionalPropertiesInsideOneOf should be an object: + object { foo? }" +`; + +exports[`Validation should fail validation for additionalProperties without object type 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalPropertiesWithoutType has an unknown property 'boo'. These properties are valid: + object" +`; + +exports[`Validation should fail validation for allOf #1 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.allOfKeyword should be a integer." +`; + +exports[`Validation should fail validation for allOf #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.allOfKeyword should be <= 3." +`; + +exports[`Validation should fail validation for allOf 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectType.objectProperty should be one of these: + [non-empty string & [non-empty string, ...], ...] | boolean + Details: + * configuration.objectType.objectProperty should be an array: + [non-empty string & [non-empty string, ...], ...] + * configuration.objectType.objectProperty should be a boolean." +`; + +exports[`Validation should fail validation for allOf 2`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.allOfKeyword should be a integer." +`; + +exports[`Validation should fail validation for anyOf 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.anyOfKeyword should be one of these: + object { foo?, … } | non-empty string | [non-empty string, ...] (should not have fewer than 1 item, should not have duplicate items) + Details: + * configuration.anyOfKeyword should be an object: + object { foo?, … } + * configuration.anyOfKeyword should be a non-empty string. + -> An entry point without name. The string is resolved to a module which is loaded upon startup. + * configuration.anyOfKeyword should be an array: + [non-empty string, ...] (should not have fewer than 1 item, should not have duplicate items) + -> A non-empty array of non-empty strings + * configuration.anyOfKeyword should be one of these: + [non-empty string, ...] (should not have fewer than 1 item, should not have duplicate items) + -> An entry point without name. All modules are loaded upon startup. The last one is exported. + * configuration.anyOfKeyword should be one of these: + non-empty string | [non-empty string, ...] (should not have fewer than 1 item, should not have duplicate items)" +`; + +exports[`Validation should fail validation for array #1 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword[0] should be a integer." +`; + +exports[`Validation should fail validation for array #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword should not contain the item '1' twice." +`; + +exports[`Validation should fail validation for array #3 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword should not have more than 4 items." +`; + +exports[`Validation should fail validation for array #4 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword2 should not contain the item '1' twice." +`; + +exports[`Validation should fail validation for array #4 2`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword3[0] should be a integer. + - configuration.arrayKeyword3[1] should be a integer." +`; + +exports[`Validation should fail validation for array #5 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword2 should not have more than 3 items." +`; + +exports[`Validation should fail validation for array #5 2`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword3 should not contain the item '1' twice." +`; + +exports[`Validation should fail validation for array #6 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword3 should not have more than 3 items." +`; + +exports[`Validation should fail validation for array #7 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword4 should be an array: + [any, ...] (should not have more than 3 items, should not have duplicate items, should contains at least one integer item) + -> Description" +`; + +exports[`Validation should fail validation for array #8 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword5[0] should be a string." +`; + +exports[`Validation should fail validation for array #9 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword6 should contains at least one boolean item." +`; + +exports[`Validation should fail validation for array #10 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword6 should contains at least one boolean item." +`; + +exports[`Validation should fail validation for array #11 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword6[0] should be a string." +`; + +exports[`Validation should fail validation for array #12 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword7 should contains at least one boolean item." +`; + +exports[`Validation should fail validation for array #13 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword8[3] should be a string." +`; + +exports[`Validation should fail validation for array #14 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword8 should be an array: + [string, number, ...] (should not have fewer than 4 items, should not have more than 8 items, additional items should be string, should contains at least one boolean item)" +`; + +exports[`Validation should fail validation for array #15 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword9 should be an array: + [any, ...]" +`; + +exports[`Validation should fail validation for array #16 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword10 should be an array: + [number, ...]" +`; + +exports[`Validation should fail validation for array #17 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword11 should be an array: + [number, string, \\"Street\\" | \\"Avenue\\" | \\"Boulevard\\", \\"NW\\" | \\"NE\\" | \\"SW\\" | \\"SE\\", ...]" +`; + +exports[`Validation should fail validation for array #18 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword12 should be an array: + [integer, integer, ...]" +`; + +exports[`Validation should fail validation for array #19 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword13 should be an array: + [integer, integer, ...] (additional items should be string)" +`; + +exports[`Validation should fail validation for array #20 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword14 should be an array: + [integer, integer, ...] (should not have fewer than 4 items, should not have more than 8 items, additional items should be string)" +`; + +exports[`Validation should fail validation for array #21 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword15 should be an array: + [integer, integer]" +`; + +exports[`Validation should fail validation for array #22 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword16 should be an array: + [integer, integer, ...] (should not have fewer than 4 items, should not have more than 8 items, additional items should be object { foo?, bar?, … })" +`; + +exports[`Validation should fail validation for array #23 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword17 should be an array: + [any, ...] (should contains at least one string item) + -> Description." +`; + +exports[`Validation should fail validation for array #24 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword17 should contains at least one string item." +`; + +exports[`Validation should fail validation for array #25 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword18[0] should be a boolean. + - configuration.arrayKeyword18[1] should be a boolean. + - configuration.arrayKeyword18[2] should be a boolean." +`; + +exports[`Validation should fail validation for array #26 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword19 should be an array: + [any, ...] (should contains at least one boolean | integer item) + -> Description." +`; + +exports[`Validation should fail validation for array 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayKeyword should be an array: + [integer, string, ...] (should not have more than 4 items, should not have duplicate items)" +`; + +exports[`Validation should fail validation for array keywords without array type 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.likeArray[0] should be a integer." +`; + +exports[`Validation should fail validation for array type 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.dependencies should be an array: + [string, ...] + -> References to other configurations to depend on." +`; + +exports[`Validation should fail validation for array with absolutePath item 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayWithAbsolutePath should be an array: + [integer, string, ...]" +`; + +exports[`Validation should fail validation for array with empty items, empty additionalItems, empty contains 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayWithEmptyItemsAndEmptyAdditionalItemsAndEmptyContains should be an array: + [any, ...]" +`; + +exports[`Validation should fail validation for array with items with true 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.itemsTrue should be an array: + [any, ...]" +`; + +exports[`Validation should fail validation for array with only number 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayWithOnlyNumber[0] should be a number." +`; + +exports[`Validation should fail validation for array with string items and minLength 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.longString should be an array: + [string (should not be shorter than 2 characters), ...]" +`; + +exports[`Validation should fail validation for array without items 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.nestedArrayWithoutItems should be one of these: + string | [any, ...] + Details: + * configuration.nestedArrayWithoutItems should be a string. + * configuration.nestedArrayWithoutItems should be an array: + [any, ...]" +`; + +exports[`Validation should fail validation for boolean and number in object with anyOf 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.watchOptions.poll should be one of these: + boolean | number + -> Enable polling mode for watching + Details: + * configuration.watchOptions.poll should be a boolean. + -> \`true\`: use polling. + * configuration.watchOptions.poll should be a number. + -> \`number\`: use polling with specified interval." +`; + +exports[`Validation should fail validation for boolean and object in object with anyOf 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.allOfRef.unsafeCache should be one of these: + boolean | object { … } + -> Enable caching of successfully resolved requests + Details: + * configuration.allOfRef.unsafeCache should be a boolean. + * configuration.allOfRef.unsafeCache should be an object: + object { … }" +`; + +exports[`Validation should fail validation for boolean type 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.bail should be a boolean. + -> Report the first error as a hard error instead of tolerating it." +`; + +exports[`Validation should fail validation for configuration dataPath #1 1`] = ` +"Invalid options object. MyPlugin has been initialised using an options object that does not match the API schema. + - options.entry should be an non-empty string. + -> An entry point without name. The string is resolved to a module which is loaded upon startup." +`; + +exports[`Validation should fail validation for configuration dataPath 1`] = ` +"Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. + - configuration.entry should be an non-empty string. + -> An entry point without name. The string is resolved to a module which is loaded upon startup." +`; + +exports[`Validation should fail validation for const with array notation 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.constWithArrayNotation should be equal to constant [1,2,3]" +`; + +exports[`Validation should fail validation for const with description 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.constWithDescription should be equal to constant \\"foo\\" + -> Foo and Bar description." +`; + +exports[`Validation should fail validation for const with empty string 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.constWithEmptyString should be equal to constant [\\"foo\\",\\"\\",2]" +`; + +exports[`Validation should fail validation for const with object notation 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.constWithObjectNotation should be equal to constant {\\"foo\\":\\"bar\\",\\"baz\\":123}" +`; + +exports[`Validation should fail validation for constKeyword #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.constKeyword2 should be equal to constant [\\"foo\\",\\"bar\\"]" +`; + +exports[`Validation should fail validation for constKeyword 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.constKeyword should be equal to constant \\"foo\\"" +`; + +exports[`Validation should fail validation for contains #1 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.multipleContains2[0] should be: + number | string | boolean" +`; + +exports[`Validation should fail validation for contains 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.customObject.containsKeyword should contains at least one integer item." +`; + +exports[`Validation should fail validation for contains and additionalItems #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.containsAndAdditionalItems should contains at least one integer | boolean item." +`; + +exports[`Validation should fail validation for contains and additionalItems 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.containsAndAdditionalItems should be an array: + [any, ...] (should contains at least one integer | boolean item)" +`; + +exports[`Validation should fail validation for contains inside items #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.containsInsideItem[0] should contains at least one integer item." +`; + +exports[`Validation should fail validation for contains inside items 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.containsInsideItem should be an array: + [[any, ...] (should contains at least one integer item), ...]" +`; + +exports[`Validation should fail validation for css-loader name 1`] = ` +"Invalid configuration object. CSS Loader has been initialised using a configuration object that does not match the API schema. + - configuration.entry should be an non-empty string. + -> An entry point without name. The string is resolved to a module which is loaded upon startup." +`; + +exports[`Validation should fail validation for deep error 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.module.rules[0].oneOf[0] has an unknown property 'passer'. These properties are valid: + object { compiler?, enforce?, exclude?, include?, issuer?, loader?, loaders?, oneOf?, options?, parser?, query?, resolve?, resource?, resourceQuery?, rules?, sideEffects?, test?, type?, use? } + -> A rule" +`; + +exports[`Validation should fail validation for dependencies #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.dependenciesKeyword2.bar should be a number." +`; + +exports[`Validation should fail validation for dependencies 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.dependenciesKeyword should have properties 'bar', 'baz' when property 'foo' is present." +`; + +exports[`Validation should fail validation for dependencies without object type 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.dependenciesWithoutType has an unknown property 'foo'. These properties are valid: + object (should have properties 'bar', 'baz' when property 'foo' is present)" +`; + +exports[`Validation should fail validation for empty const 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.emptyConst should be equal to constant \\"\\"" +`; + +exports[`Validation should fail validation for empty entry bundle array 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.entry['bundle'] should be an non-empty array. + -> A non-empty array of non-empty strings" +`; + +exports[`Validation should fail validation for empty entry string 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.entry should be an non-empty string. + -> An entry point without name. The string is resolved to a module which is loaded upon startup." +`; + +exports[`Validation should fail validation for enum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.devtool should be one of these: + string | false + -> A developer tool to enhance debugging. + Details: + * configuration.devtool should be a string. + * configuration.devtool should be false." +`; + +exports[`Validation should fail validation for enum 2`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.enumKeyword should be one of these: + 2 | \\"foo\\" | {\\"foo\\":\\"bar\\"} | [1,2,3]" +`; + +exports[`Validation should fail validation for exclusiveMaximum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.exclusiveMaximumKeyword should be < 5." +`; + +exports[`Validation should fail validation for exclusiveMinimum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.exclusiveMinimumKeyword should be > 5." +`; + +exports[`Validation should fail validation for extending 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.extending.shipping_address misses the property 'type'. Should be: + \\"residential\\" | \\"business\\"" +`; + +exports[`Validation should fail validation for format 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.customObject.formatKeyword should match format \\"ipv4\\"." +`; + +exports[`Validation should fail validation for format and formatMinimum and formatMaximum and formatExclusiveMaximum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.formatMinMaxExclusiveMinKeyword should be > \\"2016-02-06\\"." +`; + +exports[`Validation should fail validation for format and formatMinimum and formatMaximum and formatExclusiveMaximum 2`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.formatMinMaxExclusiveMaxKeyword should be >= \\"2016-02-06\\"." +`; + +exports[`Validation should fail validation for format, formatMaximum and formatExclusiveMaximum #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.strictFormat should be < \\"2016-02-06\\"." +`; + +exports[`Validation should fail validation for format, formatMaximum and formatExclusiveMaximum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.strictFormat should be a string (should match format \\"date\\", should be < \\"2016-02-06\\")." +`; + +exports[`Validation should fail validation for format, formatMinimum and formatExclusiveMinimum #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.strictFormat2 should be > \\"2016-02-06\\"." +`; + +exports[`Validation should fail validation for format, formatMinimum and formatExclusiveMinimum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.strictFormat2 should be a string (should match format \\"date\\", should be > \\"2016-02-06\\")." +`; + +exports[`Validation should fail validation for formatExclusiveMaximum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.formatExclusiveMaximumKeyword should be < \\"2016-02-06\\"." +`; + +exports[`Validation should fail validation for formatExclusiveMinimum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.formatExclusiveMinimumKeyword should be > \\"2016-02-06\\"." +`; + +exports[`Validation should fail validation for formatMaximum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.formatMaximumKeyword should be <= \\"2016-02-06\\"." +`; + +exports[`Validation should fail validation for formatMinimum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.formatMinimumKeyword should be >= \\"2016-02-06\\"." +`; + +exports[`Validation should fail validation for if/then/else #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.ifThenElseKeyword should match \\"then\\" schema: + object { disbelief, … }" +`; + +exports[`Validation should fail validation for if/then/else #3 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.ifThenElseKeyword should match \\"else\\" schema: + object { confidence, … } (should not have fewer than 3 properties)" +`; + +exports[`Validation should fail validation for if/then/else #4 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.ifThenElseKeyword2 should match \\"else\\" schema: + if number (should be >= 10) then number (should be multiple of 10)" +`; + +exports[`Validation should fail validation for if/then/else #5 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.ifThenElseKeyword2 should be <= 1000." +`; + +exports[`Validation should fail validation for if/then/else #6 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.ifThenElseKeyword2 should be >= 1." +`; + +exports[`Validation should fail validation for if/then/else 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.ifThenElseKeyword should match \\"then\\" schema: + object { disbelief, … }" +`; + +exports[`Validation should fail validation for integer and null in object with anyOf 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.customObject.anyOfKeyword should be one of these: + integer | null + Details: + * configuration.customObject.anyOfKeyword should be a integer. + * configuration.customObject.anyOfKeyword should be a null." +`; + +exports[`Validation should fail validation for integer type 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.integerType should be a integer." +`; + +exports[`Validation should fail validation for integer with exclusive maximum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.integerWithExclusiveMaximum should be a integer (should be > 0)." +`; + +exports[`Validation should fail validation for integer with exclusive maximum 2`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.integerWithExclusiveMaximum should be < 0." +`; + +exports[`Validation should fail validation for integer with exclusive minimum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.integerWithExclusiveMinimum should be a integer (should be > 5)." +`; + +exports[`Validation should fail validation for integer with exclusive minimum 2`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.integerWithExclusiveMinimum should be > 5." +`; + +exports[`Validation should fail validation for integer with minimum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.integerWithMinimum should be a integer (should be >= 5, should be <= 20)." +`; + +exports[`Validation should fail validation for integer with minimum and maximum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.integerWithMinimum should be >= 5." +`; + +exports[`Validation should fail validation for invalid instanceof 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.module.wrappedContextRegExp should be an instance of RegExp + -> Set the inner regular expression for partial dynamic dependencies." +`; + +exports[`Validation should fail validation for invalid minimum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.parallelism should be >= 1. + -> The number of parallel processed modules in the compilation." +`; + +exports[`Validation should fail validation for invalid mode 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.mode should be one of these: + \\"development\\" | \\"production\\" | \\"none\\" + -> Enable production optimizations or development hints." +`; + +exports[`Validation should fail validation for invalid plugin provided: array 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.plugins[0] should be one of these: + object { apply, … } | function + -> Plugin of type object or instanceof Function + Details: + * configuration.plugins[0] should be an object: + object { apply, … } + -> Plugin instance + * configuration.plugins[0] should be an instance of function + -> Function acting as plugin." +`; + +exports[`Validation should fail validation for invalid plugin provided: bool 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.plugins[0] should be one of these: + object { apply, … } | function + -> Plugin of type object or instanceof Function + Details: + * configuration.plugins[0] should be an object: + object { apply, … } + -> Plugin instance + * configuration.plugins[0] should be an instance of function + -> Function acting as plugin." +`; + +exports[`Validation should fail validation for invalid plugin provided: string 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.plugins[0] should be one of these: + object { apply, … } | function + -> Plugin of type object or instanceof Function + Details: + * configuration.plugins[0] should be an object: + object { apply, … } + -> Plugin instance + * configuration.plugins[0] should be an instance of function + -> Function acting as plugin." +`; + +exports[`Validation should fail validation for items 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.itemsKeyword[0] should be a integer." +`; + +exports[`Validation should fail validation for items 2`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.itemsKeyword2[0] should be a integer." +`; + +exports[`Validation should fail validation for items and additionalItems #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalItemsWithoutType2 should be an array: + [any, ...]" +`; + +exports[`Validation should fail validation for items and additionalItems #3 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalItemsWithoutType3 should be an array: + [string, string, ...] (additional items should be boolean | integer)" +`; + +exports[`Validation should fail validation for items and additionalItems 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.additionalItemsWithoutType should be an array: + [integer, ...]" +`; + +exports[`Validation should fail validation for maxItems 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.customObject.maxItems should not have more than 3 items." +`; + +exports[`Validation should fail validation for maxItems Keyword 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.maxItemsKeyword should not have more than 2 items." +`; + +exports[`Validation should fail validation for maxLength 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.customObject.maxLength should not be longer than 3 characters." +`; + +exports[`Validation should fail validation for maxProperties 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.customObject.maxProperties should not have more than 3 properties." +`; + +exports[`Validation should fail validation for maxProperties 2`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.maxPropertiesKeyword should not have more than 2 properties." +`; + +exports[`Validation should fail validation for maxProperties and minProperties #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.maxPropertiesAndMinProperties should not have fewer than 3 properties." +`; + +exports[`Validation should fail validation for maxProperties and minProperties #3 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.maxPropertiesAndMinProperties should not have more than 5 properties." +`; + +exports[`Validation should fail validation for maxProperties and minProperties 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.maxPropertiesAndMinProperties should be an object: + object { foo?, bar?, … } (should not have fewer than 3 properties, should not have more than 5 properties)" +`; + +exports[`Validation should fail validation for maximum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.customObject.maximumKeyword should be <= 3." +`; + +exports[`Validation should fail validation for min length 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.minLengthTwo should not be shorter than 2 characters." +`; + +exports[`Validation should fail validation for min properties 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.entry should be an non-empty object. + -> Multiple entry bundles are created. The key is the chunk name. The value can be a string or an array." +`; + +exports[`Validation should fail validation for minItems Keyword 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.minItemsKeyword should not have fewer than undefined items." +`; + +exports[`Validation should fail validation for minProperties 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.minPropertiesKeyword should not have fewer than 2 properties." +`; + +exports[`Validation should fail validation for minProperties without object type 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.minPropertiesWithoutType has an unknown property 'boo'. These properties are valid: + object (should not have more than 0 property)" +`; + +exports[`Validation should fail validation for minimum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.customObject.minimumKeyword should be >= 3." +`; + +exports[`Validation should fail validation for missing stats option 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.stats has an unknown property 'foobar'. These properties are valid: + object {...}" +`; + +exports[`Validation should fail validation for module 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.module.rules[0].compiler should be one of these: + RegExp | non-empty string | function | [(recursive), ...] | object { and?, exclude?, include?, not?, or?, test? } | [RegExp | non-empty string | function | [(recursive), ...] | object { and?, exclude?, include?, not?, or?, test? }, ...] + -> One or multiple rule conditions + Details: + * configuration.module.rules[0].compiler should be an instance of RegExp. + * configuration.module.rules[0].compiler should be a non-empty string. + * configuration.module.rules[0].compiler should be an instance of function. + * configuration.module.rules[0].compiler should be an array: + [RegExp | non-empty string | function | [(recursive), ...] | object { and?, exclude?, include?, not?, or?, test? }, ...] + * configuration.module.rules[0].compiler should be an object: + object { and?, exclude?, include?, not?, or?, test? } + * configuration.module.rules[0].compiler should be one of these: + RegExp | non-empty string | function | [(recursive), ...] | object { and?, exclude?, include?, not?, or?, test? } + * configuration.module.rules[0].compiler should be an array: + [RegExp | non-empty string | function | [(recursive), ...] | object { and?, exclude?, include?, not?, or?, test? }, ...]" +`; + +exports[`Validation should fail validation for multiple configurations 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration[0].entry[0] should be a non-empty string. + -> A non-empty string + - configuration[1].output.filename should be one of these: + string | function + -> Specifies the name of each output file on disk. You must **not** specify an absolute path here! The \`output.path\` option determines the location on disk the files are written to, filename is used solely for naming the individual files. + Details: + * configuration[1].output.filename should be a string. + * configuration[1].output.filename should be an instance of function." +`; + +exports[`Validation should fail validation for multiple errors 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.entry[0] should be a non-empty string. + -> A non-empty string + - configuration.output.filename should be one of these: + string | function + -> Specifies the name of each output file on disk. You must **not** specify an absolute path here! The \`output.path\` option determines the location on disk the files are written to, filename is used solely for naming the individual files. + Details: + * configuration.output.filename should be a string. + * configuration.output.filename should be an instance of function." +`; + +exports[`Validation should fail validation for multiple types 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.multipleTypes should be: + number | string" +`; + +exports[`Validation should fail validation for multiple types in array 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.arrayType2[3] should be: + number | string | boolean" +`; + +exports[`Validation should fail validation for multiple types in contains 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.multipleContains should contains at least one number | string | boolean item." +`; + +exports[`Validation should fail validation for multipleOf 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.customObject.multipleOfKeyword should be multiple of 5." +`; + +exports[`Validation should fail validation for multipleOf with minimum and maximum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.multipleOfProp should be a number (should be >= 5, should be <= 20, should be multiple of 5)." +`; + +exports[`Validation should fail validation for non empty string in object with anyOf 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.allOfRef.aliasFields should be an array: + [non-empty string | [non-empty string, ...], ...] + -> Fields in the description file (package.json) which are used to redirect requests inside the module" +`; + +exports[`Validation should fail validation for null configuration 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration should be an object: + object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, externals?, loader?, mode?, module?, name?, node?, optimization?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, serve?, stats?, target?, watch?, watchOptions?, minLengthOne?, minLengthTwo?, integerType?, nullType?, allOfRef?, customObject?, objectType?, anyOfKeyword?, nestedArrayWithoutItems?, nestedObjectWithoutItems?, arrayType?, arrayType2?, multipleTypes?, zeroMaxItems?, multipleContains?, multipleContains2?, exclusiveMinimumKeyword?, exclusiveMaximumKeyword?, uniqueItemsKeyword?, minPropertiesKeyword?, maxPropertiesKeyword?, requiredKeyword?, requiredKeywordWithAdditionalProperties?, enumKeyword?, formatMinimumKeyword?, formatMaximumKeyword?, formatExclusiveMinimumKeyword?, formatExclusiveMaximumKeyword?, formatMinMaxExclusiveMinKeyword?, formatMinMaxExclusiveMaxKeyword?, minItemsKeyword?, maxItemsKeyword?, itemsKeyword?, itemsKeyword2?, additionalItemsKeyword?, additionalItemsKeyword2?, additionalItemsKeyword3?, additionalItemsKeyword4?, propertiesKeyword?, patternPropertiesKeyword?, patternPropertiesKeyword2?, arrayWithOnlyNumber?, onlyRequired?, dependenciesKeyword?, dependenciesKeyword2?, patternRequiredKeyword?, patternRequiredKeyword2?, onlyProperties?, onlyProperties2?, onlyItems?, onlyItems2?, onlyAdditionalItems?, booleanType?, additionalPropertiesKeyword?, additionalPropertiesKeyword2?, propertyNamesKeyword?, constKeyword?, constKeyword2?, ifThenElseKeyword?, ifThenElseKeyword2?, stringKeyword?, arrayKeyword?, arrayKeyword2?, arrayKeyword3?, arrayKeyword4?, arrayKeyword5?, arrayKeyword6?, arrayKeyword7?, arrayKeyword8?, arrayKeyword9?, arrayKeyword10?, arrayKeyword11?, arrayKeyword12?, arrayKeyword13?, arrayKeyword14?, arrayKeyword15?, arrayKeyword16?, arrayKeyword17?, arrayKeyword18?, arrayKeyword19?, recursion?, extending?, longString?, integerWithMinimum?, integerWithExclusiveMinimum?, integerWithExclusiveMaximum?, numberWithMinimum?, multipleOfProp?, stringWithMinAndMaxLength?, strictFormat?, strictFormat2?, uniqueItemsProp?, numberAndDescription?, oneOfnumberAndDescriptionAndArray?, maxPropertiesAndMinProperties?, objectTest?, objectTest2?, objectTest3?, objectTest4?, objectTest5?, objectTest6?, objectTest7?, objectTest8?, objectTest9?, stringWithEmptyPattern?, likeArray?, arrayWithEmptyItemsAndEmptyAdditionalItemsAndEmptyContains?, numberWithoutType?, numberWithoutType2?, stringWithoutType?, arrayWithoutType?, additionalItemsFalse?, requiredWithoutType?, dependenciesWithoutType?, propertyNamesWithoutType?, patternRequiredWithoutType?, additionalPropertiesWithoutType?, minPropertiesWithoutType?, justAnObject?, arrayWithAbsolutePath?, allOfKeyword?, enumWithDescription?, constWithDescription?, itemsTrue?, emptyConst?, oneConst?, constWithEmptyString?, refAndAnyOf?, additionalPropertiesInsideOneOf?, additionalPropertiesInsideOneOf2?, singleContainsItems?, objectWithPropertyDependency?, objectWithPropertyDependency2?, objectWithPropertyDependency3?, objectWithPropertyDependency4?, oneOfWithIf?, constWithArrayNotation?, constWithObjectNotation?, additionalItemsWithoutType?, additionalItemsWithoutType2?, additionalItemsWithoutType3?, containsAndAdditionalItems?, containsInsideItem? }" +`; + +exports[`Validation should fail validation for null type 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.nullType should be a null." +`; + +exports[`Validation should fail validation for number and description 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.numberAndDescription should be a number. + -> Description about option." +`; + +exports[`Validation should fail validation for number type 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.parallelism should be a number (should be >= 1). + -> The number of parallel processed modules in the compilation." +`; + +exports[`Validation should fail validation for number with minimum and maximum 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.numberWithMinimum should be a number (should be >= 5, should be <= 20)." +`; + +exports[`Validation should fail validation for object #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectTest2 should be an object: + object { a, b, c, d } (should not have fewer than 3 properties, should not have more than 5 properties)" +`; + +exports[`Validation should fail validation for object #3 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectTest3 should be an object: + object { : number }" +`; + +exports[`Validation should fail validation for object #4 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectTest4 should be an object: + object { fao, fbo, c, … } (should have property matching pattern \\"f.*o\\")" +`; + +exports[`Validation should fail validation for object #5 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectTest4 misses the property 'c'." +`; + +exports[`Validation should fail validation for object #6 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectTest5['foo@gmail.com.com'] should be a string. + - configuration.objectTest5['foo1@bar.com'] should be a string." +`; + +exports[`Validation should fail validation for object #7 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectTest5 should be an object: + object { foo@bar.com, : string } (each property name should match format \\"email\\")" +`; + +exports[`Validation should fail validation for object #8 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectTest6 should be an object: + object { foo, … } (additional property names should match patterns \\"^fo.*$\\" | \\"^ba.*$\\")" +`; + +exports[`Validation should fail validation for object #9 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectTest7 should be an object: + object { prop, … } (should have properties 'bar', 'baz' when property 'foo' is present, should be valid according to the schema object { a, b, c, d, bar?, … } when property 'baz' is present)" +`; + +exports[`Validation should fail validation for object #9 2`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectTest8 should be an object: + object { prop, … }" +`; + +exports[`Validation should fail validation for object #10 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectTest7 misses the property 'd'. + -> Description about object, properties and methods." +`; + +exports[`Validation should fail validation for object #11 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectTest9 should be an object: + object { prop, … } (should have properties 'bar', 'baz' when property 'foo' is present, should be valid according to the schema object { other, prop, bar?, … } when property 'baz' is present)" +`; + +exports[`Validation should fail validation for object #12 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectTest9 misses the property 'prop'. + -> Description about object, properties and methods." +`; + +exports[`Validation should fail validation for object 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectTest should be an object: + object { a, b, c, d, f?, : number } (should not have fewer than 3 properties, should not have more than 5 properties)" +`; + +exports[`Validation should fail validation for object in object with anyOf 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.allOfRef.alias should be one of these: + object { : string } | [object { alias?, name?, onlyModule? }, ...] + -> Redirect module requests + Details: + * configuration.allOfRef.alias should be an object: + object { : string } + * configuration.allOfRef.alias should be an array: + [object { alias?, name?, onlyModule? }, ...]" +`; + +exports[`Validation should fail validation for object with dependencies #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectWithPropertyDependency2 should be an object: + object { foo?, … } (should have property 'bar' when property 'foo' is present)" +`; + +exports[`Validation should fail validation for object with dependencies #3 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectWithPropertyDependency3 should be an object: + object { foo?, … } (should be valid according to the schema object { bar?, … } when property 'foo' is present)" +`; + +exports[`Validation should fail validation for object with dependencies #4 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectWithPropertyDependency4 should be an object: + object { foo?, … }" +`; + +exports[`Validation should fail validation for object with dependencies 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.objectWithPropertyDependency should be an object: + object { foo?, … } (should have properties 'bar', 'baz' when property 'foo' is present)" +`; + +exports[`Validation should fail validation for object with required and properties 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.justAnObject should be an object: + object { foo, bar?, … }" +`; + +exports[`Validation should fail validation for object without items 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.nestedObjectWithoutItems should be one of these: + string | object { … } + Details: + * configuration.nestedObjectWithoutItems should be a string. + * configuration.nestedObjectWithoutItems should be an object: + object { … }" +`; + +exports[`Validation should fail validation for one const 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.oneConst should be equal to constant [\\"foo\\"]" +`; + +exports[`Validation should fail validation for oneOf 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.entry should be one of these: + function | object { : non-empty string | [non-empty string, ...] (should not have fewer than 1 item, should not have duplicate items) } (should not have fewer than 1 property) | non-empty string | [non-empty string, ...] (should not have fewer than 1 item, should not have duplicate items) + -> The entry point(s) of the compilation. + Details: + * configuration.entry['foo'] should be a non-empty string. + -> The string is resolved to a module which is loaded upon startup. + * configuration.entry['foo'] should be an array: + [non-empty string, ...] (should not have fewer than 1 item, should not have duplicate items) + -> A non-empty array of non-empty strings + * configuration.entry['foo'] should be one of these: + [non-empty string, ...] (should not have fewer than 1 item, should not have duplicate items) + -> All modules are loaded upon startup. The last one is exported. + * configuration.entry['foo'] should be one of these: + non-empty string | [non-empty string, ...] (should not have fewer than 1 item, should not have duplicate items) + -> An entry point with name" +`; + +exports[`Validation should fail validation for oneOf with description 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.oneOfnumberAndDescriptionAndArray should be one of these: + number | [any, ...] + Details: + * configuration.oneOfnumberAndDescriptionAndArray should be a number. + -> Description about number value. + * configuration.oneOfnumberAndDescriptionAndArray should be an array: + [any, ...] + -> Description about array value." +`; + +exports[`Validation should fail validation for oneOf with if 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.oneOfWithIf should be one of these: + if object { power?, … } then object { disbelief, … } else object { confidence, … } | integer + Details: + * configuration.oneOfWithIf should be an object: + if object { power?, … } then object { disbelief, … } else object { confidence, … } + * configuration.oneOfWithIf should be a integer." +`; + +exports[`Validation should fail validation for only items #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.onlyItems2[0] should be a integer. + - configuration.onlyItems2[1] should be a string." +`; + +exports[`Validation should fail validation for only items 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.onlyItems[1] should be a integer." +`; + +exports[`Validation should fail validation for only properties #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.onlyProperties2 has an unknown property 'break'. These properties are valid: + object { foo?, bar? }" +`; + +exports[`Validation should fail validation for only properties 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.onlyProperties.foo should be a string." +`; + +exports[`Validation should fail validation for only required 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.onlyRequired misses the property 'b'." +`; + +exports[`Validation should fail validation for pattern 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.customObject.patternKeyword should match pattern \\"[abc]+\\"." +`; + +exports[`Validation should fail validation for patternProperties #1 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.patternPropertiesKeyword2 has an unknown property 'a'. These properties are valid: + object (additional property names should match pattern \\"^[b-z0-9]+$\\")" +`; + +exports[`Validation should fail validation for patternProperties 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.patternPropertiesKeyword['foo'] should be a string." +`; + +exports[`Validation should fail validation for patternRequired #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.patternRequiredKeyword2 should have property matching pattern \\"b.*r\\"." +`; + +exports[`Validation should fail validation for patternRequired 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.patternRequiredKeyword should have property matching pattern \\"f.*o\\"." +`; + +exports[`Validation should fail validation for patternRequired without object type 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.patternRequiredWithoutType has an unknown property 'boo'. These properties are valid: + object (should have property matching pattern \\"b.*o\\")" +`; + +exports[`Validation should fail validation for postFormatter #1 1`] = ` +"Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. + - configuration has an unknown property 'minify'. These properties are valid: + object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, externals?, loader?, mode?, module?, name?, node?, optimization?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, serve?, stats?, target?, watch?, watchOptions?, minLengthOne?, minLengthTwo?, integerType?, nullType?, allOfRef?, customObject?, objectType?, anyOfKeyword?, nestedArrayWithoutItems?, nestedObjectWithoutItems?, arrayType?, arrayType2?, multipleTypes?, zeroMaxItems?, multipleContains?, multipleContains2?, exclusiveMinimumKeyword?, exclusiveMaximumKeyword?, uniqueItemsKeyword?, minPropertiesKeyword?, maxPropertiesKeyword?, requiredKeyword?, requiredKeywordWithAdditionalProperties?, enumKeyword?, formatMinimumKeyword?, formatMaximumKeyword?, formatExclusiveMinimumKeyword?, formatExclusiveMaximumKeyword?, formatMinMaxExclusiveMinKeyword?, formatMinMaxExclusiveMaxKeyword?, minItemsKeyword?, maxItemsKeyword?, itemsKeyword?, itemsKeyword2?, additionalItemsKeyword?, additionalItemsKeyword2?, additionalItemsKeyword3?, additionalItemsKeyword4?, propertiesKeyword?, patternPropertiesKeyword?, patternPropertiesKeyword2?, arrayWithOnlyNumber?, onlyRequired?, dependenciesKeyword?, dependenciesKeyword2?, patternRequiredKeyword?, patternRequiredKeyword2?, onlyProperties?, onlyProperties2?, onlyItems?, onlyItems2?, onlyAdditionalItems?, booleanType?, additionalPropertiesKeyword?, additionalPropertiesKeyword2?, propertyNamesKeyword?, constKeyword?, constKeyword2?, ifThenElseKeyword?, ifThenElseKeyword2?, stringKeyword?, arrayKeyword?, arrayKeyword2?, arrayKeyword3?, arrayKeyword4?, arrayKeyword5?, arrayKeyword6?, arrayKeyword7?, arrayKeyword8?, arrayKeyword9?, arrayKeyword10?, arrayKeyword11?, arrayKeyword12?, arrayKeyword13?, arrayKeyword14?, arrayKeyword15?, arrayKeyword16?, arrayKeyword17?, arrayKeyword18?, arrayKeyword19?, recursion?, extending?, longString?, integerWithMinimum?, integerWithExclusiveMinimum?, integerWithExclusiveMaximum?, numberWithMinimum?, multipleOfProp?, stringWithMinAndMaxLength?, strictFormat?, strictFormat2?, uniqueItemsProp?, numberAndDescription?, oneOfnumberAndDescriptionAndArray?, maxPropertiesAndMinProperties?, objectTest?, objectTest2?, objectTest3?, objectTest4?, objectTest5?, objectTest6?, objectTest7?, objectTest8?, objectTest9?, stringWithEmptyPattern?, likeArray?, arrayWithEmptyItemsAndEmptyAdditionalItemsAndEmptyContains?, numberWithoutType?, numberWithoutType2?, stringWithoutType?, arrayWithoutType?, additionalItemsFalse?, requiredWithoutType?, dependenciesWithoutType?, propertyNamesWithoutType?, patternRequiredWithoutType?, additionalPropertiesWithoutType?, minPropertiesWithoutType?, justAnObject?, arrayWithAbsolutePath?, allOfKeyword?, enumWithDescription?, constWithDescription?, itemsTrue?, emptyConst?, oneConst?, constWithEmptyString?, refAndAnyOf?, additionalPropertiesInsideOneOf?, additionalPropertiesInsideOneOf2?, singleContainsItems?, objectWithPropertyDependency?, objectWithPropertyDependency2?, objectWithPropertyDependency3?, objectWithPropertyDependency4?, oneOfWithIf?, constWithArrayNotation?, constWithObjectNotation?, additionalItemsWithoutType?, additionalItemsWithoutType2?, additionalItemsWithoutType3?, containsAndAdditionalItems?, containsInsideItem? } + For typos: please correct them. + For loader options: webpack >= v2.0.0 no longer allows custom properties in configuration. + Loaders should be updated to allow passing options via loader options in module.rules. + Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader: + plugins: [ + new webpack.LoaderOptionsPlugin({ + // test: /\\\\.xxx$/, // may apply this only for some modules + options: { + minify: … + } + }) + ]" +`; + +exports[`Validation should fail validation for postFormatter #2 1`] = ` +"Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. + - configuration.output.filename: A relative path is expected. However, the provided value \\"/bar\\" is an absolute path! + Please use output.path to specify absolute path and output.filename for the file name." +`; + +exports[`Validation should fail validation for postFormatter 1`] = ` +"Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. + - configuration has an unknown property 'debug'. These properties are valid: + object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, externals?, loader?, mode?, module?, name?, node?, optimization?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, serve?, stats?, target?, watch?, watchOptions?, minLengthOne?, minLengthTwo?, integerType?, nullType?, allOfRef?, customObject?, objectType?, anyOfKeyword?, nestedArrayWithoutItems?, nestedObjectWithoutItems?, arrayType?, arrayType2?, multipleTypes?, zeroMaxItems?, multipleContains?, multipleContains2?, exclusiveMinimumKeyword?, exclusiveMaximumKeyword?, uniqueItemsKeyword?, minPropertiesKeyword?, maxPropertiesKeyword?, requiredKeyword?, requiredKeywordWithAdditionalProperties?, enumKeyword?, formatMinimumKeyword?, formatMaximumKeyword?, formatExclusiveMinimumKeyword?, formatExclusiveMaximumKeyword?, formatMinMaxExclusiveMinKeyword?, formatMinMaxExclusiveMaxKeyword?, minItemsKeyword?, maxItemsKeyword?, itemsKeyword?, itemsKeyword2?, additionalItemsKeyword?, additionalItemsKeyword2?, additionalItemsKeyword3?, additionalItemsKeyword4?, propertiesKeyword?, patternPropertiesKeyword?, patternPropertiesKeyword2?, arrayWithOnlyNumber?, onlyRequired?, dependenciesKeyword?, dependenciesKeyword2?, patternRequiredKeyword?, patternRequiredKeyword2?, onlyProperties?, onlyProperties2?, onlyItems?, onlyItems2?, onlyAdditionalItems?, booleanType?, additionalPropertiesKeyword?, additionalPropertiesKeyword2?, propertyNamesKeyword?, constKeyword?, constKeyword2?, ifThenElseKeyword?, ifThenElseKeyword2?, stringKeyword?, arrayKeyword?, arrayKeyword2?, arrayKeyword3?, arrayKeyword4?, arrayKeyword5?, arrayKeyword6?, arrayKeyword7?, arrayKeyword8?, arrayKeyword9?, arrayKeyword10?, arrayKeyword11?, arrayKeyword12?, arrayKeyword13?, arrayKeyword14?, arrayKeyword15?, arrayKeyword16?, arrayKeyword17?, arrayKeyword18?, arrayKeyword19?, recursion?, extending?, longString?, integerWithMinimum?, integerWithExclusiveMinimum?, integerWithExclusiveMaximum?, numberWithMinimum?, multipleOfProp?, stringWithMinAndMaxLength?, strictFormat?, strictFormat2?, uniqueItemsProp?, numberAndDescription?, oneOfnumberAndDescriptionAndArray?, maxPropertiesAndMinProperties?, objectTest?, objectTest2?, objectTest3?, objectTest4?, objectTest5?, objectTest6?, objectTest7?, objectTest8?, objectTest9?, stringWithEmptyPattern?, likeArray?, arrayWithEmptyItemsAndEmptyAdditionalItemsAndEmptyContains?, numberWithoutType?, numberWithoutType2?, stringWithoutType?, arrayWithoutType?, additionalItemsFalse?, requiredWithoutType?, dependenciesWithoutType?, propertyNamesWithoutType?, patternRequiredWithoutType?, additionalPropertiesWithoutType?, minPropertiesWithoutType?, justAnObject?, arrayWithAbsolutePath?, allOfKeyword?, enumWithDescription?, constWithDescription?, itemsTrue?, emptyConst?, oneConst?, constWithEmptyString?, refAndAnyOf?, additionalPropertiesInsideOneOf?, additionalPropertiesInsideOneOf2?, singleContainsItems?, objectWithPropertyDependency?, objectWithPropertyDependency2?, objectWithPropertyDependency3?, objectWithPropertyDependency4?, oneOfWithIf?, constWithArrayNotation?, constWithObjectNotation?, additionalItemsWithoutType?, additionalItemsWithoutType2?, additionalItemsWithoutType3?, containsAndAdditionalItems?, containsInsideItem? } + The 'debug' property was removed in webpack 2.0.0. + Loaders should be updated to allow passing this option via loader options in module.rules. + Until loaders are updated one can use the LoaderOptionsPlugin to switch loaders into debug mode: + plugins: [ + new webpack.LoaderOptionsPlugin({ + debug: true + }) + ]" +`; + +exports[`Validation should fail validation for properties 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.propertiesKeyword.foo should be a string." +`; + +exports[`Validation should fail validation for propertyNames 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.propertyNamesKeyword property name 'foo' is invalid. Property names should be match format \\"email\\". + -> Description" +`; + +exports[`Validation should fail validation for propertyNames without object type 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.propertyNamesWithoutType has an unknown property 'foo'. These properties are valid: + object (each property name should match format \\"email\\")" +`; + +exports[`Validation should fail validation for recursion 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.recursion.person.children should be an array: + [object { name?, children?, … }, ...]" +`; + +exports[`Validation should fail validation for ref inside object inside allOf 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.refAndAnyOf misses the property 'foo'. Should be: + [RegExp | non-empty string | function | [(recursive), ...] | object { and?, exclude?, include?, not?, or?, test? }, ...]" +`; + +exports[`Validation should fail validation for relative path 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.output.filename: A relative path is expected. However, the provided value \\"/bar\\" is an absolute path!" +`; + +exports[`Validation should fail validation for repeated value 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.entry should not contain the item 'abc' twice. + -> A non-empty array of non-empty strings" +`; + +exports[`Validation should fail validation for required #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.requiredKeyword misses the property 'a'." +`; + +exports[`Validation should fail validation for required 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.requiredKeyword misses the property 'b'." +`; + +exports[`Validation should fail validation for required with additionalProperties 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.requiredKeywordWithAdditionalProperties misses the property 'a'." +`; + +exports[`Validation should fail validation for required without object type 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.requiredWithoutType has an unknown property 'b'. These properties are valid: + object { a }" +`; + +exports[`Validation should fail validation for single item in contains 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.singleContainsItems should be an array: + [integer, string, ...] (should contains at least one boolean item)" +`; + +exports[`Validation should fail validation for string #1 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.stringKeyword should match format \\"date\\"." +`; + +exports[`Validation should fail validation for string 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.stringKeyword should not be shorter than 11 characters." +`; + +exports[`Validation should fail validation for string with empty pattern 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.stringWithEmptyPattern should be a string." +`; + +exports[`Validation should fail validation for string with minLength and maxLength 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.stringWithMinAndMaxLength should match pattern \\"[bc]+\\"." +`; + +exports[`Validation should fail validation for string with minLength, maxLength and pattern 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.stringWithMinAndMaxLength should be a string (should not be shorter than 2 characters, should not be longer than 5 characters, should match pattern \\"[bc]+\\")." +`; + +exports[`Validation should fail validation for terser-webpack-plugin name 1`] = ` +"Invalid configuration object. Terser Plugin has been initialised using a configuration object that does not match the API schema. + - configuration.entry should be an non-empty string. + -> An entry point without name. The string is resolved to a module which is loaded upon startup." +`; + +exports[`Validation should fail validation for undefined configuration 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration should be an object: + object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, externals?, loader?, mode?, module?, name?, node?, optimization?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, serve?, stats?, target?, watch?, watchOptions?, minLengthOne?, minLengthTwo?, integerType?, nullType?, allOfRef?, customObject?, objectType?, anyOfKeyword?, nestedArrayWithoutItems?, nestedObjectWithoutItems?, arrayType?, arrayType2?, multipleTypes?, zeroMaxItems?, multipleContains?, multipleContains2?, exclusiveMinimumKeyword?, exclusiveMaximumKeyword?, uniqueItemsKeyword?, minPropertiesKeyword?, maxPropertiesKeyword?, requiredKeyword?, requiredKeywordWithAdditionalProperties?, enumKeyword?, formatMinimumKeyword?, formatMaximumKeyword?, formatExclusiveMinimumKeyword?, formatExclusiveMaximumKeyword?, formatMinMaxExclusiveMinKeyword?, formatMinMaxExclusiveMaxKeyword?, minItemsKeyword?, maxItemsKeyword?, itemsKeyword?, itemsKeyword2?, additionalItemsKeyword?, additionalItemsKeyword2?, additionalItemsKeyword3?, additionalItemsKeyword4?, propertiesKeyword?, patternPropertiesKeyword?, patternPropertiesKeyword2?, arrayWithOnlyNumber?, onlyRequired?, dependenciesKeyword?, dependenciesKeyword2?, patternRequiredKeyword?, patternRequiredKeyword2?, onlyProperties?, onlyProperties2?, onlyItems?, onlyItems2?, onlyAdditionalItems?, booleanType?, additionalPropertiesKeyword?, additionalPropertiesKeyword2?, propertyNamesKeyword?, constKeyword?, constKeyword2?, ifThenElseKeyword?, ifThenElseKeyword2?, stringKeyword?, arrayKeyword?, arrayKeyword2?, arrayKeyword3?, arrayKeyword4?, arrayKeyword5?, arrayKeyword6?, arrayKeyword7?, arrayKeyword8?, arrayKeyword9?, arrayKeyword10?, arrayKeyword11?, arrayKeyword12?, arrayKeyword13?, arrayKeyword14?, arrayKeyword15?, arrayKeyword16?, arrayKeyword17?, arrayKeyword18?, arrayKeyword19?, recursion?, extending?, longString?, integerWithMinimum?, integerWithExclusiveMinimum?, integerWithExclusiveMaximum?, numberWithMinimum?, multipleOfProp?, stringWithMinAndMaxLength?, strictFormat?, strictFormat2?, uniqueItemsProp?, numberAndDescription?, oneOfnumberAndDescriptionAndArray?, maxPropertiesAndMinProperties?, objectTest?, objectTest2?, objectTest3?, objectTest4?, objectTest5?, objectTest6?, objectTest7?, objectTest8?, objectTest9?, stringWithEmptyPattern?, likeArray?, arrayWithEmptyItemsAndEmptyAdditionalItemsAndEmptyContains?, numberWithoutType?, numberWithoutType2?, stringWithoutType?, arrayWithoutType?, additionalItemsFalse?, requiredWithoutType?, dependenciesWithoutType?, propertyNamesWithoutType?, patternRequiredWithoutType?, additionalPropertiesWithoutType?, minPropertiesWithoutType?, justAnObject?, arrayWithAbsolutePath?, allOfKeyword?, enumWithDescription?, constWithDescription?, itemsTrue?, emptyConst?, oneConst?, constWithEmptyString?, refAndAnyOf?, additionalPropertiesInsideOneOf?, additionalPropertiesInsideOneOf2?, singleContainsItems?, objectWithPropertyDependency?, objectWithPropertyDependency2?, objectWithPropertyDependency3?, objectWithPropertyDependency4?, oneOfWithIf?, constWithArrayNotation?, constWithObjectNotation?, additionalItemsWithoutType?, additionalItemsWithoutType2?, additionalItemsWithoutType3?, containsAndAdditionalItems?, containsInsideItem? }" +`; + +exports[`Validation should fail validation for uniqueItems #2 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.uniqueItemsProp should not contain the item '1' twice." +`; + +exports[`Validation should fail validation for uniqueItems 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.uniqueItemsKeyword should not contain the item '1' twice." +`; + +exports[`Validation should fail validation for uniqueItems 2`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.uniqueItemsProp should be an array: + [any, ...] (should not have duplicate items)" +`; + +exports[`Validation should fail validation for webpack name 1`] = ` +"Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. + - configuration.entry should be an non-empty string. + -> An entry point without name. The string is resolved to a module which is loaded upon startup." +`; + +exports[`Validation should fail validation for zero max items 1`] = ` +"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. + - configuration.zeroMaxItems should not have more than 0 items." `; diff --git a/test/fixtures/schema-custom-errors.json b/test/fixtures/schema-custom-errors.json deleted file mode 100644 index bc2836d..0000000 --- a/test/fixtures/schema-custom-errors.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "type": "object", - "properties": { - "string": { - "type": "string" - }, - "array": { - "type": "array", - "items": { - "type": "string" - } - }, - "object": { - "type": "object", - "properties": { - "prop": { - "type": "boolean" - }, - "object": { - "type": "object", - "properties": { - "prop": { - "type": "boolean" - } - }, - "errorMessage": { - "properties": { - "prop": "should be {Boolean} (https://github.com/org/repo#anchor)" - } - } - } - }, - "errorMessage": { - "properties": { - "prop": "should be {Boolean} (https://github.com/org/repo#anchor)", - "object": "should be {Object} (https://github.com/org/repo#anchor)" - } - } - }, - "boolean": { - "type": "boolean" - }, - "type": { - "typeof": "function" - }, - "instance": { - "instanceof": "RegExp" - } - }, - "errorMessage": { - "properties": { - "type": "should be {Function} (https://github.com/org/repo#anchor)", - "array": "should be {Array} (https://github.com/org/repo#anchor)", - "string": "should be {String} (https://github.com/org/repo#anchor)", - "object": "should be {Object} (https://github.com/org/repo#anchor)", - "boolean": "should be {Boolean} (https://github.com/org/repo#anchor)", - "instance": "should be {RegExp} (https://github.com/org/repo#anchor)" - } - }, - "additionalProperties": false -} diff --git a/test/fixtures/schema.json b/test/fixtures/schema.json index fccd288..12868cc 100644 --- a/test/fixtures/schema.json +++ b/test/fixtures/schema.json @@ -1,40 +1,3388 @@ { + "definitions": { + "ArrayOfStringOrStringArrayValues": { + "type": "array", + "items": { + "description": "string or array of strings", + "anyOf": [ + { + "type": "string", + "minLength": 1 + }, + { + "type": "array", + "items": { + "description": "A non-empty string", + "type": "string", + "minLength": 1 + } + } + ] + } + }, + "ArrayOfStringValues": { + "type": "array", + "items": { + "description": "A non-empty string", + "type": "string", + "minLength": 1 + } + }, + "Entry": { + "anyOf": [ + { + "$ref": "#/definitions/EntryDynamic" + }, + { + "$ref": "#/definitions/EntryStatic" + } + ] + }, + "EntryDynamic": { + "description": "A Function returning an entry object, an entry string, an entry array or a promise to these things.", + "instanceof": "Function", + "tsType": "(() => EntryStatic | Promise)" + }, + "EntryItem": { + "oneOf": [ + { + "description": "An entry point without name. The string is resolved to a module which is loaded upon startup.", + "type": "string", + "minLength": 1 + }, + { + "description": "An entry point without name. All modules are loaded upon startup. The last one is exported.", + "anyOf": [ + { + "$ref": "#/definitions/NonEmptyArrayOfUniqueStringValues" + } + ] + } + ] + }, + "Foo": { + "anyOf": [ + { + "$ref": "#/definitions/Bar" + }, + { + "$ref": "#/definitions/EntryItem" + } + ] + }, + "Bar": { + "type": "object", + "properties": { + "foo": { + "type": "string", + "minLength": 3 + } + } + }, + "Person": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "children": { + "type": "array", + "items": { "$ref": "#/definitions/Person" } + } + } + }, + "Address": { + "type": "object", + "properties": { + "street_address": { + "type": "string" + }, + "city": { + "type": "string" + }, + "state": { + "type": "string" + } + }, + "required": ["street_address", "city", "state"] + }, + "minInteger": { + "type": "integer", + "minimum": 0 + }, + "FooBar": { + "anyOf": [ + { + "$ref": "#/definitions/Foo" + } + ] + }, + "NestedNestedRef1": { + "type": "string" + }, + "NestedNestedRef2": { + "type": "array" + }, + "ArrayWithoutItems": { + "oneOf": [ + { + "$ref": "#/definitions/NestedNestedRef1" + }, + { + "$ref": "#/definitions/NestedNestedRef2" + } + ] + }, + "NestedNestedRef3": { + "type": "object" + }, + "ObjectWithoutItems": { + "oneOf": [ + { + "$ref": "#/definitions/NestedNestedRef1" + }, + { + "$ref": "#/definitions/NestedNestedRef3" + } + ] + }, + "MultipleContainsDef": { + "type": "array", + "contains": { "type": ["number", "string", "boolean"] } + }, + "EntryObject": { + "description": "Multiple entry bundles are created. The key is the chunk name. The value can be a string or an array.", + "type": "object", + "additionalProperties": { + "description": "An entry point with name", + "oneOf": [ + { + "description": "The string is resolved to a module which is loaded upon startup.", + "type": "string", + "minLength": 1 + }, + { + "description": "All modules are loaded upon startup. The last one is exported.", + "anyOf": [ + { + "$ref": "#/definitions/NonEmptyArrayOfUniqueStringValues" + } + ] + } + ] + }, + "minProperties": 1 + }, + "EntryStatic": { + "oneOf": [ + { + "$ref": "#/definitions/EntryObject" + }, + { + "$ref": "#/definitions/EntryItem" + } + ] + }, + "ExternalItem": { + "anyOf": [ + { + "description": "An exact matched dependency becomes external. The same string is used as external dependency.", + "type": "string" + }, + { + "description": "If an dependency matches exactly a property of the object, the property value is used as dependency.", + "type": "object", + "additionalProperties": { + "description": "The dependency used for the external", + "anyOf": [ + { + "type": "string" + }, + { + "type": "object" + }, + { + "$ref": "#/definitions/ArrayOfStringValues" + }, + { + "type": "boolean" + } + ] + } + }, + { + "description": "Every matched dependency becomes external.", + "instanceof": "RegExp", + "tsType": "RegExp" + } + ] + }, + "Externals": { + "anyOf": [ + { + "description": "`function(context, request, callback(err, result))` The function is called on each dependency.", + "instanceof": "Function", + "tsType": "((context: string, request: string, callback: (err?: Error, result?: string) => void) => void)" + }, + { + "$ref": "#/definitions/ExternalItem" + }, + { + "type": "array", + "items": { + "description": "External configuration", + "anyOf": [ + { + "description": "`function(context, request, callback(err, result))` The function is called on each dependency.", + "instanceof": "Function", + "tsType": "((context: string, request: string, callback: (err?: Error, result?: string) => void) => void)" + }, + { + "$ref": "#/definitions/ExternalItem" + } + ] + } + } + ] + }, + "FilterItemTypes": { + "anyOf": [ + { + "instanceof": "RegExp", + "tsType": "RegExp" + }, + { + "type": "string" + }, + { + "instanceof": "Function", + "tsType": "Function" + } + ] + }, + "FilterTypes": { + "anyOf": [ + { + "$ref": "#/definitions/FilterItemTypes" + }, + { + "type": "array", + "items": { + "description": "Rule to filter", + "anyOf": [ + { + "$ref": "#/definitions/FilterItemTypes" + } + ] + } + } + ] + }, + "LibraryCustomUmdObject": { + "type": "object", + "additionalProperties": false, + "properties": { + "amd": { + "description": "Name of the exposed AMD library in the UMD", + "type": "string" + }, + "commonjs": { + "description": "Name of the exposed commonjs export in the UMD", + "type": "string" + }, + "root": { + "description": "Name of the property exposed globally by a UMD library", + "anyOf": [ + { + "type": "string" + }, + { + "$ref": "#/definitions/ArrayOfStringValues" + } + ] + } + } + }, + "ModuleOptions": { + "type": "object", + "additionalProperties": false, + "properties": { + "defaultRules": { + "description": "An array of rules applied by default for modules.", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetRules" + } + ] + }, + "exprContextCritical": { + "description": "Enable warnings for full dynamic dependencies", + "type": "boolean" + }, + "exprContextRecursive": { + "description": "Enable recursive directory lookup for full dynamic dependencies", + "type": "boolean" + }, + "exprContextRegExp": { + "description": "Sets the default regular expression for full dynamic dependencies", + "anyOf": [ + { + "type": "boolean" + }, + { + "instanceof": "RegExp", + "tsType": "RegExp" + } + ] + }, + "exprContextRequest": { + "description": "Set the default request for full dynamic dependencies", + "type": "string" + }, + "noParse": { + "description": "Don't parse files matching. It's matched against the full resolved request.", + "anyOf": [ + { + "type": "array", + "items": { + "description": "A regular expression, when matched the module is not parsed", + "instanceof": "RegExp", + "tsType": "RegExp" + }, + "minItems": 1 + }, + { + "instanceof": "RegExp", + "tsType": "RegExp" + }, + { + "instanceof": "Function", + "tsType": "Function" + }, + { + "type": "array", + "items": { + "description": "An absolute path, when the module starts with this path it is not parsed", + "type": "string", + "absolutePath": true + }, + "minItems": 1 + }, + { + "type": "string", + "absolutePath": true + } + ] + }, + "rules": { + "description": "An array of rules applied for modules.", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetRules" + } + ] + }, + "strictExportPresence": { + "description": "Emit errors instead of warnings when imported names don't exist in imported module", + "type": "boolean" + }, + "strictThisContextOnImports": { + "description": "Handle the this context correctly according to the spec for namespace objects", + "type": "boolean" + }, + "unknownContextCritical": { + "description": "Enable warnings when using the require function in a not statically analyse-able way", + "type": "boolean" + }, + "unknownContextRecursive": { + "description": "Enable recursive directory lookup when using the require function in a not statically analyse-able way", + "type": "boolean" + }, + "unknownContextRegExp": { + "description": "Sets the regular expression when using the require function in a not statically analyse-able way", + "anyOf": [ + { + "type": "boolean" + }, + { + "instanceof": "RegExp", + "tsType": "RegExp" + } + ] + }, + "unknownContextRequest": { + "description": "Sets the request when using the require function in a not statically analyse-able way", + "type": "string" + }, + "unsafeCache": { + "description": "Cache the resolving of module requests", + "anyOf": [ + { + "type": "boolean" + }, + { + "instanceof": "Function", + "tsType": "Function" + } + ] + }, + "wrappedContextCritical": { + "description": "Enable warnings for partial dynamic dependencies", + "type": "boolean" + }, + "wrappedContextRecursive": { + "description": "Enable recursive directory lookup for partial dynamic dependencies", + "type": "boolean" + }, + "wrappedContextRegExp": { + "description": "Set the inner regular expression for partial dynamic dependencies", + "instanceof": "RegExp", + "tsType": "RegExp" + } + } + }, + "NodeOptions": { + "type": "object", + "additionalProperties": { + "description": "Include a polyfill for the node.js module", + "enum": [false, true, "mock", "empty"] + }, + "properties": { + "Buffer": { + "description": "Include a polyfill for the 'Buffer' variable", + "enum": [false, true, "mock"] + }, + "__dirname": { + "description": "Include a polyfill for the '__dirname' variable", + "enum": [false, true, "mock"] + }, + "__filename": { + "description": "Include a polyfill for the '__filename' variable", + "enum": [false, true, "mock"] + }, + "console": { + "description": "Include a polyfill for the 'console' variable", + "enum": [false, true, "mock"] + }, + "global": { + "description": "Include a polyfill for the 'global' variable", + "type": "boolean" + }, + "process": { + "description": "Include a polyfill for the 'process' variable", + "enum": [false, true, "mock"] + } + } + }, + "NonEmptyArrayOfUniqueStringValues": { + "description": "A non-empty array of non-empty strings", + "type": "array", + "items": { + "description": "A non-empty string", + "type": "string", + "minLength": 1 + }, + "minItems": 1, + "uniqueItems": true + }, + "OptimizationOptions": { + "description": "Enables/Disables integrated optimizations", + "type": "object", + "additionalProperties": false, + "properties": { + "checkWasmTypes": { + "description": "Check for incompatible wasm types when importing/exporting from/to ESM", + "type": "boolean" + }, + "chunkIds": { + "description": "Define the algorithm to choose chunk ids (named: readable ids for better debugging, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin)", + "enum": ["natural", "named", "size", "total-size", false] + }, + "concatenateModules": { + "description": "Concatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer", + "type": "boolean" + }, + "flagIncludedChunks": { + "description": "Also flag chunks as loaded which contain a subset of the modules", + "type": "boolean" + }, + "hashedModuleIds": { + "description": "Use hashed module id instead module identifiers for better long term caching (deprecated, used moduleIds: hashed instead)", + "type": "boolean" + }, + "mangleWasmImports": { + "description": "Reduce size of WASM by changing imports to shorter strings.", + "type": "boolean" + }, + "mergeDuplicateChunks": { + "description": "Merge chunks which contain the same modules", + "type": "boolean" + }, + "minimize": { + "description": "Enable minimizing the output. Uses optimization.minimizer.", + "type": "boolean" + }, + "minimizer": { + "description": "Minimizer(s) to use for minimizing the output", + "type": "array", + "items": { + "description": "Plugin of type object or instanceof Function", + "anyOf": [ + { + "$ref": "#/definitions/WebpackPluginInstance" + }, + { + "$ref": "#/definitions/WebpackPluginFunction" + } + ] + } + }, + "moduleIds": { + "description": "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: short hashes as ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin)", + "enum": ["natural", "named", "hashed", "size", "total-size", false] + }, + "namedChunks": { + "description": "Use readable chunk identifiers for better debugging (deprecated, used chunkIds: named instead)", + "type": "boolean" + }, + "namedModules": { + "description": "Use readable module identifiers for better debugging (deprecated, used moduleIds: named instead)", + "type": "boolean" + }, + "noEmitOnErrors": { + "description": "Avoid emitting assets when errors occur", + "type": "boolean" + }, + "nodeEnv": { + "description": "Set process.env.NODE_ENV to a specific value", + "anyOf": [ + { + "enum": [false] + }, + { + "type": "string" + } + ] + }, + "occurrenceOrder": { + "description": "Figure out a order of modules which results in the smallest initial bundle", + "type": "boolean" + }, + "portableRecords": { + "description": "Generate records with relative paths to be able to move the context folder", + "type": "boolean" + }, + "providedExports": { + "description": "Figure out which exports are provided by modules to generate more efficient code", + "type": "boolean" + }, + "removeAvailableModules": { + "description": "Removes modules from chunks when these modules are already included in all parents", + "type": "boolean" + }, + "removeEmptyChunks": { + "description": "Remove chunks which are empty", + "type": "boolean" + }, + "runtimeChunk": { + "description": "Create an additional chunk which contains only the webpack runtime and chunk hash maps", + "oneOf": [ + { + "type": "boolean" + }, + { + "enum": ["single", "multiple"] + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "name": { + "description": "The name or name factory for the runtime chunks", + "oneOf": [ + { + "type": "string" + }, + { + "instanceof": "Function", + "tsType": "Function" + } + ] + } + } + } + ] + }, + "sideEffects": { + "description": "Skip over modules which are flagged to contain no side effects when exports are not used", + "type": "boolean" + }, + "splitChunks": { + "description": "Optimize duplication and caching by splitting chunks by shared modules and cache group", + "oneOf": [ + { + "enum": [false] + }, + { + "$ref": "#/definitions/OptimizationSplitChunksOptions" + } + ] + }, + "usedExports": { + "description": "Figure out which exports are used by modules to mangle export names, omit unused exports and generate more efficient code", + "type": "boolean" + } + } + }, + "OptimizationSplitChunksOptions": { + "type": "object", + "additionalProperties": false, + "properties": { + "automaticNameDelimiter": { + "description": "Sets the name delimiter for created chunks", + "type": "string", + "minLength": 1 + }, + "automaticNameMaxLength": { + "description": "Sets the max length for the name of a created chunk", + "type": "number", + "minimum": 1 + }, + "cacheGroups": { + "description": "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks)", + "type": "object", + "additionalProperties": { + "description": "Configuration for a cache group", + "anyOf": [ + { + "enum": [false] + }, + { + "instanceof": "Function", + "tsType": "Function" + }, + { + "type": "string" + }, + { + "instanceof": "RegExp", + "tsType": "RegExp" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "automaticNameDelimiter": { + "description": "Sets the name delimiter for created chunks", + "type": "string", + "minLength": 1 + }, + "automaticNameMaxLength": { + "description": "Sets the max length for the name of a created chunk", + "type": "number", + "minimum": 1 + }, + "automaticNamePrefix": { + "description": "Sets the name prefix for created chunks", + "type": "string" + }, + "chunks": { + "description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML)", + "oneOf": [ + { + "enum": ["initial", "async", "all"] + }, + { + "instanceof": "Function", + "tsType": "Function" + } + ] + }, + "enforce": { + "description": "Ignore minimum size, minimum chunks and maximum requests and always create chunks for this cache group", + "type": "boolean" + }, + "filename": { + "description": "Sets the template for the filename for created chunks (Only works for initial chunks)", + "type": "string", + "minLength": 1 + }, + "maxAsyncRequests": { + "description": "Maximum number of requests which are accepted for on-demand loading", + "type": "number", + "minimum": 1 + }, + "maxInitialRequests": { + "description": "Maximum number of initial chunks which are accepted for an entry point", + "type": "number", + "minimum": 1 + }, + "maxSize": { + "description": "Maximal size hint for the created chunks", + "type": "number", + "minimum": 0 + }, + "minChunks": { + "description": "Minimum number of times a module has to be duplicated until it's considered for splitting", + "type": "number", + "minimum": 1 + }, + "minSize": { + "description": "Minimal size for the created chunk", + "type": "number", + "minimum": 0 + }, + "name": { + "description": "Give chunks for this cache group a name (chunks with equal name are merged)", + "oneOf": [ + { + "type": "boolean" + }, + { + "instanceof": "Function", + "tsType": "Function" + }, + { + "type": "string" + } + ] + }, + "priority": { + "description": "Priority of this cache group", + "type": "number" + }, + "reuseExistingChunk": { + "description": "Try to reuse existing chunk (with name) when it has matching modules", + "type": "boolean" + }, + "test": { + "description": "Assign modules to a cache group", + "oneOf": [ + { + "instanceof": "Function", + "tsType": "Function" + }, + { + "type": "string" + }, + { + "instanceof": "RegExp", + "tsType": "RegExp" + } + ] + } + } + } + ] + } + }, + "chunks": { + "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML)", + "oneOf": [ + { + "enum": ["initial", "async", "all"] + }, + { + "instanceof": "Function", + "tsType": "Function" + } + ] + }, + "fallbackCacheGroup": { + "description": "Options for modules not selected by any other cache group", + "type": "object", + "additionalProperties": false, + "properties": { + "automaticNameDelimiter": { + "description": "Sets the name delimiter for created chunks", + "type": "string", + "minLength": 1 + }, + "maxSize": { + "description": "Maximal size hint for the created chunks", + "type": "number", + "minimum": 0 + }, + "minSize": { + "description": "Minimal size for the created chunk", + "type": "number", + "minimum": 0 + } + } + }, + "filename": { + "description": "Sets the template for the filename for created chunks (Only works for initial chunks)", + "type": "string", + "minLength": 1 + }, + "hidePathInfo": { + "description": "Prevents exposing path info when creating names for parts splitted by maxSize", + "type": "boolean" + }, + "maxAsyncRequests": { + "description": "Maximum number of requests which are accepted for on-demand loading", + "type": "number", + "minimum": 1 + }, + "maxInitialRequests": { + "description": "Maximum number of initial chunks which are accepted for an entry point", + "type": "number", + "minimum": 1 + }, + "maxSize": { + "description": "Maximal size hint for the created chunks", + "type": "number", + "minimum": 0 + }, + "minChunks": { + "description": "Minimum number of times a module has to be duplicated until it's considered for splitting", + "type": "number", + "minimum": 1 + }, + "minSize": { + "description": "Minimal size for the created chunks", + "type": "number", + "minimum": 0 + }, + "name": { + "description": "Give chunks created a name (chunks with equal name are merged)", + "oneOf": [ + { + "type": "boolean" + }, + { + "instanceof": "Function", + "tsType": "Function" + }, + { + "type": "string" + } + ] + } + } + }, + "OutputOptions": { + "type": "object", + "additionalProperties": false, + "properties": { + "auxiliaryComment": { + "description": "Add a comment in the UMD wrapper.", + "anyOf": [ + { + "description": "Append the same comment above each import style.", + "type": "string" + }, + { + "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.", + "type": "object", + "additionalProperties": false, + "properties": { + "amd": { + "description": "Set comment for `amd` section in UMD", + "type": "string" + }, + "commonjs": { + "description": "Set comment for `commonjs` (exports) section in UMD", + "type": "string" + }, + "commonjs2": { + "description": "Set comment for `commonjs2` (module.exports) section in UMD", + "type": "string" + }, + "root": { + "description": "Set comment for `root` (global variable) section in UMD", + "type": "string" + } + } + } + ] + }, + "chunkCallbackName": { + "description": "The callback function name used by webpack for loading of chunks in WebWorkers.", + "type": "string" + }, + "chunkFilename": { + "description": "The filename of non-entry chunks as relative path inside the `output.path` directory.", + "type": "string", + "absolutePath": false + }, + "chunkLoadTimeout": { + "description": "Number of milliseconds before chunk request expires", + "type": "number" + }, + "crossOriginLoading": { + "description": "This option enables cross-origin loading of chunks.", + "enum": [false, "anonymous", "use-credentials"] + }, + "devtoolFallbackModuleFilenameTemplate": { + "description": "Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.", + "anyOf": [ + { + "type": "string" + }, + { + "instanceof": "Function", + "tsType": "Function" + } + ] + }, + "devtoolLineToLine": { + "description": "Enable line to line mapped mode for all/specified modules. Line to line mapped mode uses a simple SourceMap where each line of the generated source is mapped to the same line of the original source. It’s a performance optimization. Only use it if your performance need to be better and you are sure that input lines match which generated lines.", + "anyOf": [ + { + "description": "`true` enables it for all modules (not recommended)", + "type": "boolean" + }, + { + "description": "An object similar to `module.loaders` enables it for specific files.", + "type": "object" + } + ] + }, + "devtoolModuleFilenameTemplate": { + "description": "Filename template string of function for the sources array in a generated SourceMap.", + "anyOf": [ + { + "type": "string" + }, + { + "instanceof": "Function", + "tsType": "Function" + } + ] + }, + "devtoolNamespace": { + "description": "Module namespace to use when interpolating filename template string for the sources array in a generated SourceMap. Defaults to `output.library` if not set. It's useful for avoiding runtime collisions in sourcemaps from multiple webpack projects built as libraries.", + "type": "string" + }, + "filename": { + "description": "Specifies the name of each output file on disk. You must **not** specify an absolute path here! The `output.path` option determines the location on disk the files are written to, filename is used solely for naming the individual files.", + "anyOf": [ + { + "type": "string", + "absolutePath": false + }, + { + "instanceof": "Function", + "tsType": "Function" + } + ] + }, + "futureEmitAssets": { + "description": "Use the future version of asset emitting logic, which allows freeing memory of assets after emitting. It could break plugins which assume that assets are still readable after emitting. Will be the new default in the next major version.", + "type": "boolean" + }, + "globalObject": { + "description": "An expression which is used to address the global object/scope in runtime code", + "type": "string", + "minLength": 1 + }, + "hashDigest": { + "description": "Digest type used for the hash", + "type": "string" + }, + "hashDigestLength": { + "description": "Number of chars which are used for the hash", + "type": "number", + "minimum": 1 + }, + "hashFunction": { + "description": "Algorithm used for generation the hash (see node.js crypto package)", + "anyOf": [ + { + "type": "string", + "minLength": 1 + }, + { + "instanceof": "Function", + "tsType": "(new () => import('../lib/util/createHash').Hash)" + } + ] + }, + "hashSalt": { + "description": "Any string which is added to the hash to salt it", + "type": "string", + "minLength": 1 + }, + "hotUpdateChunkFilename": { + "description": "The filename of the Hot Update Chunks. They are inside the output.path directory.", + "anyOf": [ + { + "type": "string", + "absolutePath": false + }, + { + "instanceof": "Function", + "tsType": "Function" + } + ] + }, + "hotUpdateFunction": { + "description": "The JSONP function used by webpack for async loading of hot update chunks.", + "type": "string" + }, + "hotUpdateMainFilename": { + "description": "The filename of the Hot Update Main File. It is inside the `output.path` directory.", + "anyOf": [ + { + "type": "string", + "absolutePath": false + }, + { + "instanceof": "Function", + "tsType": "Function" + } + ] + }, + "jsonpFunction": { + "description": "The JSONP function used by webpack for async loading of chunks.", + "type": "string" + }, + "jsonpScriptType": { + "description": "This option enables loading async chunks via a custom script type, such as script type=\"module\"", + "enum": [false, "text/javascript", "module"] + }, + "library": { + "description": "If set, export the bundle as library. `output.library` is the name.", + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "description": "A part of the library name", + "type": "string" + } + }, + { + "$ref": "#/definitions/LibraryCustomUmdObject" + } + ] + }, + "libraryExport": { + "description": "Specify which export should be exposed as library", + "anyOf": [ + { + "type": "string" + }, + { + "$ref": "#/definitions/ArrayOfStringValues" + } + ] + }, + "libraryTarget": { + "description": "Type of library", + "enum": [ + "var", + "assign", + "this", + "window", + "self", + "global", + "commonjs", + "commonjs2", + "commonjs-module", + "amd", + "amd-require", + "umd", + "umd2", + "jsonp", + "system" + ] + }, + "path": { + "description": "The output directory as **absolute path** (required).", + "type": "string", + "absolutePath": true + }, + "pathinfo": { + "description": "Include comments with information about the modules.", + "type": "boolean" + }, + "publicPath": { + "description": "The `publicPath` specifies the public URL address of the output files when referenced in a browser.", + "anyOf": [ + { + "type": "string" + }, + { + "instanceof": "Function", + "tsType": "Function" + } + ] + }, + "sourceMapFilename": { + "description": "The filename of the SourceMaps for the JavaScript files. They are inside the `output.path` directory.", + "type": "string", + "absolutePath": false + }, + "sourcePrefix": { + "description": "Prefixes every line of the source in the bundle with this string.", + "type": "string" + }, + "strictModuleExceptionHandling": { + "description": "Handles exceptions in module loading correctly at a performance cost.", + "type": "boolean" + }, + "umdNamedDefine": { + "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.", + "type": "boolean" + }, + "webassemblyModuleFilename": { + "description": "The filename of WebAssembly modules as relative path inside the `output.path` directory.", + "type": "string", + "absolutePath": false + } + } + }, + "PerformanceOptions": { + "type": "object", + "additionalProperties": false, + "properties": { + "assetFilter": { + "description": "Filter function to select assets that are checked", + "instanceof": "Function", + "tsType": "Function" + }, + "hints": { + "description": "Sets the format of the hints: warnings, errors or nothing at all", + "enum": [false, "warning", "error"] + }, + "maxAssetSize": { + "description": "Filesize limit (in bytes) when exceeded, that webpack will provide performance hints", + "type": "number" + }, + "maxEntrypointSize": { + "description": "Total size of an entry point (in bytes)", + "type": "number" + } + } + }, + "ResolveOptions": { + "type": "object", + "additionalProperties": false, + "properties": { + "alias": { + "description": "Redirect module requests", + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "description": "New request", + "type": "string" + } + }, + { + "type": "array", + "items": { + "description": "Alias configuration", + "type": "object", + "additionalProperties": false, + "properties": { + "alias": { + "description": "New request", + "type": "string" + }, + "name": { + "description": "Request to be redirected", + "type": "string" + }, + "onlyModule": { + "description": "Redirect only exact matching request", + "type": "boolean" + } + } + } + } + ] + }, + "aliasFields": { + "description": "Fields in the description file (package.json) which are used to redirect requests inside the module", + "anyOf": [ + { + "$ref": "#/definitions/ArrayOfStringOrStringArrayValues" + } + ] + }, + "cachePredicate": { + "description": "Predicate function to decide which requests should be cached", + "instanceof": "Function", + "tsType": "Function" + }, + "cacheWithContext": { + "description": "Include the context information in the cache identifier when caching", + "type": "boolean" + }, + "concord": { + "description": "Enable concord resolving extras", + "type": "boolean" + }, + "descriptionFiles": { + "description": "Filenames used to find a description file", + "anyOf": [ + { + "$ref": "#/definitions/ArrayOfStringValues" + } + ] + }, + "enforceExtension": { + "description": "Enforce using one of the extensions from the extensions option", + "type": "boolean" + }, + "enforceModuleExtension": { + "description": "Enforce using one of the module extensions from the moduleExtensions option", + "type": "boolean" + }, + "extensions": { + "description": "Extensions added to the request when trying to find the file", + "anyOf": [ + { + "$ref": "#/definitions/ArrayOfStringValues" + } + ] + }, + "fileSystem": { + "description": "Filesystem for the resolver" + }, + "mainFields": { + "description": "Field names from the description file (package.json) which are used to find the default entry point", + "anyOf": [ + { + "$ref": "#/definitions/ArrayOfStringOrStringArrayValues" + } + ] + }, + "mainFiles": { + "description": "Filenames used to find the default entry point if there is no description file or main field", + "anyOf": [ + { + "$ref": "#/definitions/ArrayOfStringValues" + } + ] + }, + "moduleExtensions": { + "description": "Extensions added to the module request when trying to find the module", + "anyOf": [ + { + "$ref": "#/definitions/ArrayOfStringValues" + } + ] + }, + "modules": { + "description": "Folder names or directory paths where to find modules", + "anyOf": [ + { + "$ref": "#/definitions/ArrayOfStringValues" + } + ] + }, + "plugins": { + "description": "Plugins for the resolver", + "type": "array", + "items": { + "description": "Plugin of type object or instanceof Function", + "anyOf": [ + { + "$ref": "#/definitions/WebpackPluginInstance" + }, + { + "$ref": "#/definitions/WebpackPluginFunction" + } + ] + } + }, + "resolver": { + "description": "Custom resolver" + }, + "symlinks": { + "description": "Enable resolving symlinks to the original location", + "type": "boolean" + }, + "unsafeCache": { + "description": "Enable caching of successfully resolved requests", + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "object", + "additionalProperties": true + } + ] + }, + "useSyncFileSystemCalls": { + "description": "Use synchronous filesystem calls for the resolver", + "type": "boolean" + } + } + }, + "RuleSetCondition": { + "anyOf": [ + { + "instanceof": "RegExp", + "tsType": "RegExp" + }, + { + "type": "string", + "minLength": 1 + }, + { + "instanceof": "Function", + "tsType": "((value: string) => boolean)" + }, + { + "$ref": "#/definitions/RuleSetConditions" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "and": { + "description": "Logical AND", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditions" + } + ] + }, + "exclude": { + "description": "Exclude all modules matching any of these conditions", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionOrConditions" + } + ] + }, + "include": { + "description": "Exclude all modules matching not any of these conditions", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionOrConditions" + } + ] + }, + "not": { + "description": "Logical NOT", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditions" + } + ] + }, + "or": { + "description": "Logical OR", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditions" + } + ] + }, + "test": { + "description": "Exclude all modules matching any of these conditions", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionOrConditions" + } + ] + } + } + } + ] + }, + "RuleSetConditionAbsolute": { + "anyOf": [ + { + "instanceof": "RegExp", + "tsType": "RegExp" + }, + { + "type": "string", + "absolutePath": true + }, + { + "instanceof": "Function", + "tsType": "((value: string) => boolean)" + }, + { + "$ref": "#/definitions/RuleSetConditionsAbsolute" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "and": { + "description": "Logical AND", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionsAbsolute" + } + ] + }, + "exclude": { + "description": "Exclude all modules matching any of these conditions", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute" + } + ] + }, + "include": { + "description": "Exclude all modules matching not any of these conditions", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute" + } + ] + }, + "not": { + "description": "Logical NOT", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionsAbsolute" + } + ] + }, + "or": { + "description": "Logical OR", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionsAbsolute" + } + ] + }, + "test": { + "description": "Exclude all modules matching any of these conditions", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute" + } + ] + } + } + } + ] + }, + "RuleSetConditionOrConditions": { + "description": "One or multiple rule conditions", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetCondition" + }, + { + "$ref": "#/definitions/RuleSetConditions" + } + ] + }, + "RuleSetConditionOrConditionsAbsolute": { + "description": "One or multiple rule conditions", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionAbsolute" + }, + { + "$ref": "#/definitions/RuleSetConditionsAbsolute" + } + ] + }, + "RuleSetConditions": { + "type": "array", + "items": { + "description": "A rule condition", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetCondition" + } + ] + }, + "tsType": "RuleSetConditionsRecursive" + }, + "RuleSetConditionsAbsolute": { + "type": "array", + "items": { + "description": "A rule condition", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionAbsolute" + } + ] + }, + "tsType": "RuleSetConditionsAbsoluteRecursive" + }, + "RuleSetLoader": { + "type": "string", + "minLength": 1 + }, + "RuleSetQuery": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "string" + } + ] + }, + "RuleSetRule": { + "type": "object", + "additionalProperties": false, + "properties": { + "compiler": { + "description": "Match the child compiler name", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionOrConditions" + } + ] + }, + "enforce": { + "description": "Enforce this rule as pre or post step", + "enum": ["pre", "post"] + }, + "exclude": { + "description": "Shortcut for resource.exclude", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute" + } + ] + }, + "include": { + "description": "Shortcut for resource.include", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute" + } + ] + }, + "issuer": { + "description": "Match the issuer of the module (The module pointing to this module)", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute" + } + ] + }, + "loader": { + "description": "Shortcut for use.loader", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetLoader" + }, + { + "$ref": "#/definitions/RuleSetUse" + } + ] + }, + "loaders": { + "description": "Shortcut for use.loader", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetUse" + } + ] + }, + "oneOf": { + "description": "Only execute the first matching rule in this array", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetRules" + } + ] + }, + "options": { + "description": "Shortcut for use.options", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetQuery" + } + ] + }, + "parser": { + "description": "Options for parsing", + "type": "object", + "additionalProperties": true + }, + "query": { + "description": "Shortcut for use.query", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetQuery" + } + ] + }, + "resolve": { + "description": "Options for the resolver", + "type": "object", + "anyOf": [ + { + "$ref": "#/definitions/ResolveOptions" + } + ] + }, + "resource": { + "description": "Match the resource path of the module", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute" + } + ] + }, + "resourceQuery": { + "description": "Match the resource query of the module", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionOrConditions" + } + ] + }, + "rules": { + "description": "Match and execute these rules when this rule is matched", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetRules" + } + ] + }, + "sideEffects": { + "description": "Flags a module as with or without side effects", + "type": "boolean" + }, + "test": { + "description": "Shortcut for resource.test", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute" + } + ] + }, + "type": { + "description": "Module type to use for the module", + "enum": [ + "javascript/auto", + "javascript/dynamic", + "javascript/esm", + "json", + "webassembly/experimental" + ] + }, + "use": { + "description": "Modifiers applied to the module when rule is matched", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetUse" + } + ] + } + } + }, + "RuleSetRules": { + "type": "array", + "items": { + "description": "A rule", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetRule" + } + ] + } + }, + "RuleSetUse": { + "anyOf": [ + { + "$ref": "#/definitions/RuleSetUseItem" + }, + { + "instanceof": "Function", + "tsType": "Function" + }, + { + "type": "array", + "items": { + "description": "An use item", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetUseItem" + } + ] + } + } + ] + }, + "RuleSetUseItem": { + "anyOf": [ + { + "$ref": "#/definitions/RuleSetLoader" + }, + { + "instanceof": "Function", + "tsType": "Function" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "ident": { + "description": "Unique loader identifier", + "type": "string" + }, + "loader": { + "description": "Loader name", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetLoader" + } + ] + }, + "options": { + "description": "Loader options", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetQuery" + } + ] + }, + "query": { + "description": "Loader query", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetQuery" + } + ] + } + } + } + ] + }, + "StatsOptions": { + "type": "object", + "additionalProperties": false, + "properties": { + "all": { + "description": "fallback value for stats options when an option is not defined (has precedence over local webpack defaults)", + "type": "boolean" + }, + "assets": { + "description": "add assets information", + "type": "boolean" + }, + "assetsSort": { + "description": "sort the assets by that field", + "type": "string" + }, + "builtAt": { + "description": "add built at time information", + "type": "boolean" + }, + "cached": { + "description": "add also information about cached (not built) modules", + "type": "boolean" + }, + "cachedAssets": { + "description": "Show cached assets (setting this to `false` only shows emitted files)", + "type": "boolean" + }, + "children": { + "description": "add children information", + "type": "boolean" + }, + "chunkGroups": { + "description": "Display all chunk groups with the corresponding bundles", + "type": "boolean" + }, + "chunkModules": { + "description": "add built modules information to chunk information", + "type": "boolean" + }, + "chunkOrigins": { + "description": "add the origins of chunks and chunk merging info", + "type": "boolean" + }, + "chunks": { + "description": "add chunk information", + "type": "boolean" + }, + "chunksSort": { + "description": "sort the chunks by that field", + "type": "string" + }, + "colors": { + "description": "Enables/Disables colorful output", + "oneOf": [ + { + "description": "`webpack --colors` equivalent", + "type": "boolean" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "bold": { + "description": "Custom color for bold text", + "type": "string" + }, + "cyan": { + "description": "Custom color for cyan text", + "type": "string" + }, + "green": { + "description": "Custom color for green text", + "type": "string" + }, + "magenta": { + "description": "Custom color for magenta text", + "type": "string" + }, + "red": { + "description": "Custom color for red text", + "type": "string" + }, + "yellow": { + "description": "Custom color for yellow text", + "type": "string" + } + } + } + ] + }, + "context": { + "description": "context directory for request shortening", + "type": "string", + "absolutePath": true + }, + "depth": { + "description": "add module depth in module graph", + "type": "boolean" + }, + "entrypoints": { + "description": "Display the entry points with the corresponding bundles", + "type": "boolean" + }, + "env": { + "description": "add --env information", + "type": "boolean" + }, + "errorDetails": { + "description": "add details to errors (like resolving log)", + "type": "boolean" + }, + "errors": { + "description": "add errors", + "type": "boolean" + }, + "exclude": { + "description": "Please use excludeModules instead.", + "anyOf": [ + { + "$ref": "#/definitions/FilterTypes" + }, + { + "type": "boolean" + } + ] + }, + "excludeAssets": { + "description": "Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions", + "anyOf": [ + { + "$ref": "#/definitions/FilterTypes" + } + ] + }, + "excludeModules": { + "description": "Suppress modules that match the specified filters. Filters can be Strings, RegExps, Booleans or Functions", + "anyOf": [ + { + "$ref": "#/definitions/FilterTypes" + }, + { + "type": "boolean" + } + ] + }, + "hash": { + "description": "add the hash of the compilation", + "type": "boolean" + }, + "maxModules": { + "description": "Set the maximum number of modules to be shown", + "type": "number" + }, + "moduleAssets": { + "description": "add information about assets inside modules", + "type": "boolean" + }, + "moduleTrace": { + "description": "add dependencies and origin of warnings/errors", + "type": "boolean" + }, + "modules": { + "description": "add built modules information", + "type": "boolean" + }, + "modulesSort": { + "description": "sort the modules by that field", + "type": "string" + }, + "nestedModules": { + "description": "add information about modules nested in other modules (like with module concatenation)", + "type": "boolean" + }, + "optimizationBailout": { + "description": "show reasons why optimization bailed out for modules", + "type": "boolean" + }, + "outputPath": { + "description": "Add output path information", + "type": "boolean" + }, + "performance": { + "description": "add performance hint flags", + "type": "boolean" + }, + "providedExports": { + "description": "show exports provided by modules", + "type": "boolean" + }, + "publicPath": { + "description": "Add public path information", + "type": "boolean" + }, + "reasons": { + "description": "add information about the reasons why modules are included", + "type": "boolean" + }, + "source": { + "description": "add the source code of modules", + "type": "boolean" + }, + "timings": { + "description": "add timing information", + "type": "boolean" + }, + "usedExports": { + "description": "show exports used by modules", + "type": "boolean" + }, + "version": { + "description": "add webpack version information", + "type": "boolean" + }, + "warnings": { + "description": "add warnings", + "type": "boolean" + }, + "warningsFilter": { + "description": "Suppress warnings that match the specified filters. Filters can be Strings, RegExps or Functions", + "anyOf": [ + { + "$ref": "#/definitions/FilterTypes" + } + ] + } + } + }, + "WebpackPluginFunction": { + "description": "Function acting as plugin", + "instanceof": "Function", + "tsType": "(this: import('../lib/Compiler'), compiler: import('../lib/Compiler')) => void" + }, + "WebpackPluginInstance": { + "description": "Plugin instance", + "type": "object", + "additionalProperties": true, + "properties": { + "apply": { + "description": "The run point of the plugin, required method.", + "instanceof": "Function", + "tsType": "(compiler: import('../lib/Compiler')) => void" + } + }, + "required": ["apply"] + } + }, "type": "object", + "additionalProperties": false, "properties": { - "string": { + "amd": { + "description": "Set the value of `require.amd` and `define.amd`. Or disable AMD support.", + "anyOf": [ + { + "description": "You can pass `false` to disable AMD support.", + "enum": [false] + }, + { + "description": "You can pass an object to set the value of `require.amd` and `define.amd`.", + "type": "object" + } + ] + }, + "bail": { + "description": "Report the first error as a hard error instead of tolerating it.", + "type": "boolean" + }, + "cache": { + "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.", + "anyOf": [ + { + "description": "You can pass `false` to disable it.", + "type": "boolean" + }, + { + "description": "You can pass an object to enable it and let webpack use the passed object as cache. This way you can share the cache object between multiple compiler calls.", + "type": "object" + } + ] + }, + "context": { + "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.", + "type": "string", + "absolutePath": true + }, + "dependencies": { + "description": "References to other configurations to depend on.", + "type": "array", + "items": { + "description": "References to another configuration to depend on.", + "type": "string" + } + }, + "devServer": { + "description": "Options for the webpack-dev-server", + "type": "object" + }, + "devtool": { + "description": "A developer tool to enhance debugging.", + "anyOf": [ + { + "type": "string" + }, + { + "enum": [false] + } + ] + }, + "entry": { + "description": "The entry point(s) of the compilation.", + "anyOf": [ + { + "$ref": "#/definitions/Entry" + } + ] + }, + "externals": { + "description": "Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", + "anyOf": [ + { + "$ref": "#/definitions/Externals" + } + ] + }, + "loader": { + "description": "Custom values available in the loader context.", + "type": "object" + }, + "mode": { + "description": "Enable production optimizations or development hints.", + "enum": ["development", "production", "none"] + }, + "module": { + "description": "Options affecting the normal modules (`NormalModuleFactory`).", + "anyOf": [ + { + "$ref": "#/definitions/ModuleOptions" + } + ] + }, + "name": { + "description": "Name of the configuration. Used when loading multiple configurations.", "type": "string" }, - "array": { + "node": { + "description": "Include polyfills or mocks for various node stuff.", + "anyOf": [ + { + "enum": [false] + }, + { + "$ref": "#/definitions/NodeOptions" + } + ] + }, + "optimization": { + "description": "Enables/Disables integrated optimizations", + "anyOf": [ + { + "$ref": "#/definitions/OptimizationOptions" + } + ] + }, + "output": { + "description": "Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.", + "anyOf": [ + { + "$ref": "#/definitions/OutputOptions" + } + ] + }, + "parallelism": { + "description": "The number of parallel processed modules in the compilation.", + "type": "number", + "minimum": 1 + }, + "performance": { + "description": "Configuration for web performance recommendations.", + "anyOf": [ + { + "enum": [false] + }, + { + "$ref": "#/definitions/PerformanceOptions" + } + ] + }, + "plugins": { + "description": "Add additional plugins to the compiler.", + "type": "array", + "items": { + "description": "Plugin of type object or instanceof Function", + "anyOf": [ + { + "$ref": "#/definitions/WebpackPluginInstance" + }, + { + "$ref": "#/definitions/WebpackPluginFunction" + } + ] + } + }, + "profile": { + "description": "Capture timing information for each module.", + "type": "boolean" + }, + "recordsInputPath": { + "description": "Store compiler state to a json file.", + "type": "string", + "absolutePath": true + }, + "recordsOutputPath": { + "description": "Load compiler state from a json file.", + "type": "string", + "absolutePath": true + }, + "recordsPath": { + "description": "Store/Load compiler state from/to a json file. This will result in persistent ids of modules and chunks. An absolute path is expected. `recordsPath` is used for `recordsInputPath` and `recordsOutputPath` if they left undefined.", + "type": "string", + "absolutePath": true + }, + "resolve": { + "description": "Options for the resolver", + "anyOf": [ + { + "$ref": "#/definitions/ResolveOptions" + } + ] + }, + "resolveLoader": { + "description": "Options for the resolver when resolving loaders", + "anyOf": [ + { + "$ref": "#/definitions/ResolveOptions" + } + ] + }, + "serve": { + "description": "Options for webpack-serve", + "type": "object" + }, + "stats": { + "description": "Used by the webpack CLI program to pass stats options.", + "anyOf": [ + { + "$ref": "#/definitions/StatsOptions" + }, + { + "type": "boolean" + }, + { + "enum": [ + "none", + "errors-only", + "minimal", + "normal", + "detailed", + "verbose", + "errors-warnings" + ] + } + ] + }, + "target": { + "description": "Environment to build for", + "anyOf": [ + { + "enum": [ + "web", + "webworker", + "node", + "async-node", + "node-webkit", + "electron-main", + "electron-renderer", + "electron-preload" + ] + }, + { + "instanceof": "Function", + "tsType": "((compiler: import('../lib/Compiler')) => void)" + } + ] + }, + "watch": { + "description": "Enter watch mode, which rebuilds on file change.", + "type": "boolean" + }, + "watchOptions": { + "description": "Options for the watcher", + "type": "object", + "additionalProperties": false, + "properties": { + "aggregateTimeout": { + "description": "Delay the rebuilt after the first change. Value is a time in ms.", + "type": "number" + }, + "ignored": { + "description": "Ignore some files from watching" + }, + "poll": { + "description": "Enable polling mode for watching", + "anyOf": [ + { + "description": "`true`: use polling.", + "type": "boolean" + }, + { + "description": "`number`: use polling with specified interval.", + "type": "number" + } + ] + }, + "stdin": { + "description": "Stop watching when stdin stream has ended", + "type": "boolean" + } + } + }, + "minLengthOne": { + "type": "string", + "minLength": 1 + }, + "minLengthTwo": { + "type": "string", + "minLength": 2 + }, + "integerType": { + "type": "integer" + }, + "nullType": { + "type": "null" + }, + "allOfRef": { + "anyOf": [ + { + "$ref": "#/definitions/ResolveOptions" + } + ] + }, + "customObject": { + "description": "Options for the watcher", + "type": "object", + "additionalProperties": false, + "properties": { + "anyOfKeyword": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "maxLength": { + "anyOf": [ + { + "type": "string", + "maxLength": 3 + } + ] + }, + "maxItems": { + "anyOf": [ + { + "type": "array", + "maxItems": 3 + } + ] + }, + "maxProperties": { + "anyOf": [ + { + "type": "object", + "maxProperties": 3 + } + ] + }, + "minimumKeyword": { + "allOf": [ + { "minimum": 3 }, + { "type": "integer" } + ] + }, + "maximumKeyword": { + "allOf": [ + { "maximum": 3 }, + { "type": "integer" } + ] + }, + "multipleOfKeyword": { + "multipleOf": 5 + }, + "patternKeyword": { + "pattern": "[abc]+" + }, + "formatKeyword": { + "format": "ipv4" + }, + "containsKeyword": { + "contains": { "type": "integer" } + } + } + }, + "objectType": { + "type": "object", + "properties": { + "objectProperty": { + "oneOf": [ + { + "type": "array", + "items": { + "description": "string or array of strings", + "allOf": [ + { + "type": "string", + "minLength": 1 + }, + { + "type": "array", + "items": { + "description": "A non-empty string", + "type": "string", + "minLength": 1 + } + } + ] + } + }, + { + "type": "boolean" + } + ] + } + } + }, + "anyOfKeyword": { + "anyOf": [ + { + "$ref": "#/definitions/FooBar" + } + ] + }, + "nestedArrayWithoutItems": { + "oneOf": [ + { + "$ref": "#/definitions/ArrayWithoutItems" + } + ] + }, + "nestedObjectWithoutItems": { + "oneOf": [ + { + "$ref": "#/definitions/ObjectWithoutItems" + } + ] + }, + "arrayType": { + "type": "array" + }, + "arrayType2": { + "type": "array", + "items": { "type": ["number", "string", "boolean"] } + }, + "multipleTypes": { + "type": ["number", "string"] + }, + "zeroMaxItems": { + "type": "array", + "maxItems": 0 + }, + "multipleContains": { + "description": "Description", + "contains": { "type": ["number", "string", "boolean"] } + }, + "multipleContains2": { + "oneOf": [ + { + "$ref": "#/definitions/MultipleContainsDef" + }, + { + "type": "boolean" + } + ] + }, + "exclusiveMinimumKeyword": { + "type": "number", + "exclusiveMinimum": 5 + }, + "exclusiveMaximumKeyword": { + "type": "number", + "exclusiveMaximum": 5 + }, + "uniqueItemsKeyword": { + "uniqueItems": true + }, + "minPropertiesKeyword": { + "minProperties": 2 + }, + "maxPropertiesKeyword": { + "maxProperties": 2 + }, + "requiredKeyword": { + "required": ["a", "b"] + }, + "requiredKeywordWithAdditionalProperties": { + "required": ["a", "b"], + "additionalProperties": true + }, + "enumKeyword": { + "enum": [ 2, "foo", {"foo": "bar" }, [1, 2, 3] ] + }, + "formatMinimumKeyword": { + "format": "date", + "formatMinimum": "2016-02-06" + }, + "formatMaximumKeyword": { + "format": "date", + "formatMaximum": "2016-02-06" + }, + "formatExclusiveMinimumKeyword": { + "format": "date", + "formatMinimum": "2016-02-06", + "formatExclusiveMinimum": true + }, + "formatExclusiveMaximumKeyword": { + "format": "date", + "formatMaximum": "2016-02-06", + "formatExclusiveMaximum": true + }, + "formatMinMaxExclusiveMinKeyword": { + "format": "date", + "formatMinimum": "2016-02-06", + "formatMaximum": "2016-12-27", + "formatExclusiveMinimum": true + }, + "formatMinMaxExclusiveMaxKeyword": { + "format": "date", + "formatMinimum": "2016-02-06", + "formatMaximum": "2016-12-27", + "formatExclusiveMaximum": true + }, + "minItemsKeyword": { + "minItems": 2 + }, + "maxItemsKeyword": { + "maxItems": 2 + }, + "itemsKeyword": { + "items": { "type": "integer" } + }, + "itemsKeyword2": { + "items": [ + { "type": "integer" }, + { "type": "string" } + ] + }, + "additionalItemsKeyword": { + "items": { "type": "integer" }, + "additionalItems": { "type": "string" } + }, + "additionalItemsKeyword2": { + "items": [ + { "type": "integer" }, + { "type": "integer" } + ], + "additionalItems": true + }, + "additionalItemsKeyword3": { + "items": [ + { "type": "integer" }, + { "type": "integer" } + ], + "additionalItems": { "type": "string" } + }, + "additionalItemsKeyword4": { + "type": "array", + "items": [ + { "type": "integer" }, + { "type": "integer" } + ], + "additionalItems": false + }, + "propertiesKeyword": { + "properties": { + "foo": { "type": "string" }, + "bar": { + "type": "number", + "minimum": 2 + } + } + }, + "patternPropertiesKeyword": { + "patternProperties": { + "^fo.*$": { "type": "string" }, + "^ba.*$": { "type": "number" } + } + }, + "patternPropertiesKeyword2": { + "patternProperties": { + "^[b-z0-9]+$": { + "properties": { + "model": { + "type": "string" + }, + "made": { + "type": "string" + }, + "year": { + "type": "string" + } + } + } + }, + "additionalProperties": false + }, + "arrayWithOnlyNumber": { + "type": "array", + "items": { + "type": "number" + } + }, + "onlyRequired": { + "required": ["a", "b"] + }, + "dependenciesKeyword": { + "dependencies": { + "foo": ["bar", "baz"] + } + }, + "dependenciesKeyword2": { + "dependencies": { + "foo": { + "properties": { + "bar": { "type": "number" } + } + } + } + }, + "patternRequiredKeyword": { + "patternRequired": [ "f.*o" ] + }, + "patternRequiredKeyword2": { + "patternRequired": [ "f.*o", "b.*r" ] + }, + "onlyProperties": { + "properties": { + "foo": { "type": "string" }, + "bar": { + "type": "number", + "minimum": 2 + } + } + }, + "onlyProperties2": { + "properties": { + "foo": { "type": "string" }, + "bar": { + "type": "number", + "minimum": 2 + } + }, + "additionalProperties": false + }, + "onlyItems": { + "items": { "type": "integer" } + }, + "onlyItems2": { + "items": [ + { "type": "integer" }, + { "type": "string" } + ] + }, + "onlyAdditionalItems": { + "additionalItems": { + "type": "integer" + } + }, + "booleanType": { + "type": "boolean" + }, + "additionalPropertiesKeyword": { + "properties": { + "foo": { "type": "number" } + }, + "patternProperties": { + "^.*r$": { "type": "number" } + }, + "additionalProperties": false + }, + "additionalPropertiesKeyword2": { + "properties": { + "foo": { "type": "number" } + }, + "patternProperties": { + "^.*r$": { "type": "number" } + }, + "additionalProperties": { "type": "string" } + }, + "propertyNamesKeyword": { + "description": "Description", + "propertyNames": { "format": "email" } + }, + "constKeyword": { + "const": "foo" + }, + "constKeyword2": { + "const": ["foo", "bar"] + }, + "ifThenElseKeyword": { + "if": { + "properties": { + "power": { "minimum": 9000 } + } + }, + "then": { + "required": [ "disbelief" ] + }, + "else": { + "required": [ "confidence" ], + "minProperties": 3 + } + }, + "ifThenElseKeyword2": { + "type": "integer", + "minimum": 1, + "maximum": 1000, + "if": { "minimum": 100 }, + "then": { "multipleOf": 100 }, + "else": { + "if": { "minimum": 10 }, + "then": { "multipleOf": 10 } + } + }, + "stringKeyword": { + "type": "string", + "minLength": 11, + "format": "date", + "pattern": "[0-9\\-]+" + }, + "arrayKeyword": { + "type": "array", + "maxItems": 4, + "uniqueItems": true, + "items": [ + { "type": "integer" }, + { "type": "string" } + ] + }, + "arrayKeyword2": { + "type": "array", + "maxItems": 3, + "uniqueItems": true, + "items": [ + { "type": "integer" }, + { "type": "integer" } + ], + "additionalItems": true + }, + "arrayKeyword3": { + "maxItems": 3, + "uniqueItems": true, + "items": [ + { "type": "integer" }, + { "type": "integer" } + ], + "additionalItems": true + }, + "arrayKeyword4": { + "type": "array", + "maxItems": 3, + "uniqueItems": true, + "description": "Description", + "contains": { "type": "integer" } + }, + "arrayKeyword5": { + "type": "array", + "items": { + "type": "string" + } + }, + "arrayKeyword6": { "type": "array", "items": { "type": "string" + }, + "contains": { + "type": "boolean" + }, + "additionalItems": false + }, + "arrayKeyword7": { + "type": "array", + "items": [ + { + "type": "string" + }, + { + "type": "number" + } + ], + "contains": { + "type": "boolean" + }, + "additionalItems": true + }, + "arrayKeyword8": { + "type": "array", + "minItems": 4, + "maxItems": 8, + "items": [ + { + "type": "string" + }, + { + "type": "number" + } + ], + "contains": { + "type": "boolean" + }, + "additionalItems": { + "type": "string" + } + }, + "arrayKeyword9": { + "type": "array", + "items": true + }, + "arrayKeyword10": { + "type": "array", + "items": { + "type": "number" + } + }, + "arrayKeyword11": { + "type": "array", + "items": [ + { + "type": "number" + }, + { + "type": "string" + }, + { + "type": "string", + "enum": ["Street", "Avenue", "Boulevard"] + }, + { + "type": "string", + "enum": ["NW", "NE", "SW", "SE"] + } + ] + }, + "arrayKeyword12": { + "type": "array", + "items": [ + { "type": "integer" }, + { "type": "integer" } + ], + "additionalItems": true + }, + "arrayKeyword13": { + "type": "array", + "items": [ + { "type": "integer" }, + { "type": "integer" } + ], + "additionalItems": { "type": "string" } + }, + "arrayKeyword14": { + "type": "array", + "minItems": 4, + "maxItems": 8, + "items": [ + { "type": "integer" }, + { "type": "integer" } + ], + "additionalItems": { "type": "string" } + }, + "arrayKeyword15": { + "type": "array", + "items": [ + { "type": "integer" }, + { "type": "integer" } + ], + "additionalItems": false + }, + "arrayKeyword16": { + "type": "array", + "minItems": 4, + "maxItems": 8, + "items": [ + { "type": "integer" }, + { "type": "integer" } + ], + "additionalItems": { + "type": "object", + "properties": { + "foo": { "type": "string" }, + "bar": { + "type": "number", + "minimum": 2 + } + } + } + }, + "arrayKeyword17": { + "type": "array", + "description": "Description.", + "contains": { "type": "string" } + }, + "arrayKeyword18": { + "type": "array", + "description": "Description.", + "items": { "type": "boolean" } + }, + "arrayKeyword19": { + "type": "array", + "description": "Description.", + "contains": { "type": ["boolean", "integer"] } + }, + "recursion": { + "type": "object", + "properties": { + "person": { "$ref": "#/definitions/Person" } } }, - "object": { + "extending": { "type": "object", "properties": { - "prop": { - "type": "boolean" + "billing_address": { + "$ref": "#/definitions/Address" + }, + "shipping_address": { + "allOf": [ + { "$ref": "#/definitions/Address" }, + { + "properties": { + "type": { + "enum": [ "residential", "business" ] + } + }, + "required": ["type"] + } + ] + } + } + }, + "longString": { + "type": "array", + "items": { + "type": "string", + "minLength": 2 + } + }, + "integerWithMinimum": { + "type": "integer", + "minimum": 5, + "maximum": 20 + }, + "integerWithExclusiveMinimum": { + "type": "integer", + "exclusiveMinimum": 5 + }, + "integerWithExclusiveMaximum": { + "type": "integer", + "exclusiveMaximum": 0 + }, + "numberWithMinimum": { + "type": "number", + "minimum": 5, + "maximum": 20 + }, + "multipleOfProp": { + "type": "number", + "minimum": 5, + "maximum": 20, + "multipleOf": 5 + }, + "stringWithMinAndMaxLength": { + "type": "string", + "minLength": 2, + "maxLength": 5, + "pattern": "[bc]+" + }, + "strictFormat": { + "type": "string", + "format": "date", + "formatMaximum": "2016-02-06", + "formatExclusiveMaximum": true + }, + "strictFormat2": { + "type": "string", + "format": "date", + "formatMinimum": "2016-02-06", + "formatExclusiveMinimum": true + }, + "uniqueItemsProp": { + "type": "array", + "uniqueItems": true + }, + "numberAndDescription": { + "type": "number", + "description": "Description about option." + }, + "oneOfnumberAndDescriptionAndArray": { + "oneOf": [ + { + "type": "number", + "description": "Description about number value." + }, + { + "type": "array", + "description": "Description about array value." + } + ] + }, + "maxPropertiesAndMinProperties": { + "type": "object", + "minProperties": 3, + "maxProperties": 5, + "properties": { + "foo": { "type": "string" }, + "bar": { + "type": "number", + "minimum": 2 + } + } + }, + "objectTest": { + "type": "object", + "minProperties": 3, + "maxProperties": 5, + "properties": { + "a": { + "type": "number" + }, + "b": { + "type": "number" + }, + "c": { + "type": "number" }, - "object": { + "f": { + "type": "number" + } + }, + "required": ["a", "b", "c", "d"], + "additionalProperties": { + "type": "number" + } + }, + "objectTest2": { + "type": "object", + "minProperties": 3, + "maxProperties": 5, + "properties": { + "a": { + "type": "number" + }, + "b": { + "type": "number" + }, + "c": { + "type": "number" + } + }, + "required": ["a", "b", "c", "d"], + "additionalProperties": false + }, + "objectTest3": { + "type": "object", + "additionalProperties": { + "type": "number" + } + }, + "objectTest4": { + "type": "object", + "required": ["fao", "fbo", "c"], + "patternRequired": [ "f.*o" ] + }, + "objectTest5": { + "type": "object", + "properties": { + "foo@bar.com": { + "type": "number" + } + }, + "required": ["foo@bar.com"], + "propertyNames": { "format": "email" }, + "additionalProperties": { "type": "string" } + }, + "objectTest6": { + "type": "object", + "required": ["foo"], + "patternProperties": { + "^fo.*$": { "type": "string" }, + "^ba.*$": { "type": "number" } + } + }, + "objectTest7": { + "type": "object", + "required": ["prop"], + "dependencies": { + "foo": ["bar", "baz"], + "baz": { + "description": "Description about object, properties and methods.", + "required": ["a", "b", "c", "d"], + "properties": { + "bar": { "type": "number" } + } + } + } + }, + "objectTest8": { + "type": "object", + "required": ["prop"], + "dependencies": {} + }, + "objectTest9": { + "type": "object", + "required": ["prop"], + "dependencies": { + "foo": ["bar", "baz"], + "baz": { + "description": "Description about object, properties and methods.", + "required": ["other", "prop"], + "properties": { + "bar": { "type": "number" } + } + } + } + }, + "stringWithEmptyPattern": { + "type": "string", + "pattern": "" + }, + "likeArray": { + "items": [ + { "type": "integer" }, + { "type": "string" } + ], + "uniqueItems": true + }, + "arrayWithEmptyItemsAndEmptyAdditionalItemsAndEmptyContains": { + "type": "array", + "items": false, + "additionalItems": {}, + "contains": {} + }, + "numberWithoutType": { + "minimum": 5, + "maximum": 25, + "multipleOf": 5 + }, + "numberWithoutType2": { + "exclusiveMinimum": 5, + "exclusiveMaximum": 25, + "multipleOf": 5 + }, + "stringWithoutType": { + "minLength": 7, + "maxLength": 22, + "pattern": "127[.0-9]+", + "format": "ipv4" + }, + "arrayWithoutType": { + "minItems": 2, + "maxItems": 5, + "uniqueItems": true, + "items": [ + { "type": "integer" }, + { "type": "string" } + ], + "additionalItems": { "type": "boolean" } + }, + "additionalItemsFalse": { + "items": [ + { "type": "integer" }, + { "type": "integer" } + ], + "additionalItems": false + }, + "requiredWithoutType": { + "required": ["a"], + "additionalProperties": false + }, + "dependenciesWithoutType": { + "dependencies": { + "foo": ["bar", "baz"] + }, + "additionalProperties": false + }, + "propertyNamesWithoutType": { + "propertyNames": { "format": "email" }, + "additionalProperties": false + }, + "patternRequiredWithoutType": { + "patternRequired": [ "b.*o" ], + "additionalProperties": false + }, + "additionalPropertiesWithoutType": { + "additionalProperties": false + }, + "minPropertiesWithoutType": { + "maxProperties": 0, + "additionalProperties": false + }, + "justAnObject": { + "type": "object", + "required": ["foo"], + "properties": { + "foo": { + "type": "string" + }, + "bar": { + "type": "number", + "minimum": 2 + } + } + }, + "arrayWithAbsolutePath": { + "type": "array", + "items": [ + { + "type": "integer" + }, + { + "type": "string", + "absolutePath": true + } + ] + }, + "allOfKeyword": { + "allOf": [ + { "maximum": 3 }, + { "type": "integer" } + ] + }, + "enumWithDescription": { + "description": "Foo and Bar description.", + "enum": ["foo"] + }, + "constWithDescription": { + "description": "Foo and Bar description.", + "const": "foo" + }, + "itemsTrue": { + "type": "array", + "items": true + }, + "emptyConst": { + "const": "" + }, + "oneConst": { + "const": ["foo"] + }, + "constWithEmptyString": { + "const": ["foo", "", 2] + }, + "refAndAnyOf": { + "allOf": [ + { "type": "object", + "required": ["foo"], "properties": { - "prop": { - "type": "boolean" + "foo": { + "$ref": "#/definitions/RuleSetConditions" } } } + ] + }, + "additionalPropertiesInsideOneOf": { + "oneOf": [ + { + "type": "integer", + "maximum": 3 + }, + { + "type": "object", + "properties": { + "foo": { + "type": "integer" + } + }, + "additionalProperties": false + } + ] + }, + "additionalPropertiesInsideOneOf2": { + "oneOf": [ + { + "type": "integer", + "maximum": 3 + }, + { + "type": "object", + "properties": { + "foo": { + "type": "integer" + } + }, + "additionalProperties": true + } + ] + }, + "singleContainsItems": { + "type": "array", + "items": [ + { "type": "integer" }, + { "type": "string" } + ], + "contains": { "type": ["boolean"] } + }, + "objectWithPropertyDependency": { + "type": "object", + "properties": { + "foo": { + "type": "string" + } + }, + "dependencies": { + "foo": ["bar", "baz"] } }, - "boolean": { - "type": "boolean" + "objectWithPropertyDependency2": { + "type": "object", + "properties": { + "foo": { + "type": "string" + } + }, + "dependencies": { + "foo": ["bar"] + } + }, + "objectWithPropertyDependency3": { + "type": "object", + "properties": { + "foo": { + "type": "string" + } + }, + "dependencies": { + "foo": { + "properties": { + "bar": { "type": "number" } + } + } + } + }, + "objectWithPropertyDependency4": { + "type": "object", + "properties": { + "foo": { + "type": "string" + } + }, + "dependencies": {} + }, + "oneOfWithIf": { + "oneOf": [ + { + "type": "object", + "if": { + "properties": { + "power": { + "minimum": 9000 + } + } + }, + "then": { + "required": [ "disbelief" ] + }, + "else": { + "required": [ "confidence" ] + } + }, + { "type": "integer" } + ] + }, + "constWithArrayNotation": { + "const": [1, 2, 3] + }, + "constWithObjectNotation": { + "const": { + "foo": "bar", + "baz": 123 + } }, - "type": { - "typeof": "function" + "additionalItemsWithoutType" : { + "type": "array", + "items": { "type": "integer" }, + "additionalItems": { "type": "boolean" } + }, + "additionalItemsWithoutType2" : { + "type": "array", + "items": true, + "additionalItems": { "type": "boolean" } + }, + "additionalItemsWithoutType3" : { + "type": "array", + "items": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "additionalItems": { "type": ["boolean", "integer"] } + }, + "containsAndAdditionalItems": { + "type": "array", + "contains": { + "type": ["integer", "boolean"] + }, + "additionalItems": { + "type": "string" + } }, - "instance": { - "instanceof": "RegExp" + "containsInsideItem": { + "type": "array", + "items": { + "contains": { + "type": "integer" + } + } } - }, - "additionalProperties": false + } } diff --git a/test/index.test.js b/test/index.test.js index ddc0576..d225fd5 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -1,99 +1,2120 @@ -import validate from '../src/index'; - -describe('validateOptions method', () => { - describe('should not throws errors on', () => { - const options = { - type() {}, - array: ['a'], - string: 'hello', - object: { - prop: false, - object: { - prop: false, - }, - }, - boolean: true, - instance: new RegExp(''), - }; +import validate from '../src'; - it('valid schema', () => { - expect(() => - validate('test/fixtures/schema.json', options, '{Name}') - ).not.toThrow(); - }); - }); +import schema from './fixtures/schema.json'; - describe('should throws errors on', () => { - const options = { - type: null, - array: {}, - string: false, - object: { - prop: 1, - object: { - prop: 1, - }, - }, - boolean: 'hello', - instance() {}, - }; - - it('invalid schema', () => { - expect.assertions(3); +describe('Validation', () => { + function createSuccessTestCase(name, config, options = {}) { + it(`should pass validation for ${name}`, () => { + let error; try { - validate('test/fixtures/schema.json', options, '{Name}'); - } catch (error) { - expect(() => { - throw error; - }).toThrowErrorMatchingSnapshot(); - - const nestedErrors = error.errors.map( - (nestedError) => nestedError.dataPath - ); + validate(schema, config, options.name); + } catch (maybeValidationError) { + if (maybeValidationError.name !== 'ValidationError') { + throw maybeValidationError; + } - const expected = [ - '.string', - '.array', - '.object.prop', - '.object.object.prop', - '.boolean', - '.type', - '.instance', - ]; - - expect(nestedErrors).toMatchObject(expected); - expect(error.errors).toMatchSnapshot(); + error = maybeValidationError; } - }); - it('invalid schema and has custom error messages', () => { - expect.assertions(3); + expect(error).toBeUndefined(); + }); + } + function createFailedTestCase(name, config, fn, configuration = {}) { + it(`should fail validation for ${name}`, () => { try { - validate('test/fixtures/schema-custom-errors.json', options, '{Name}'); + validate(schema, config, configuration); } catch (error) { - expect(() => { + if (error.name !== 'ValidationError') { throw error; - }).toThrowErrorMatchingSnapshot(); + } - const nestedErrors = error.errors.map( - (nestedError) => nestedError.dataPath + expect(error.message).toMatch( + new RegExp( + `^Invalid ${configuration.baseDataPath || 'configuration'} object` + ) ); + fn(error.message); - const expected = [ - '.object.object.prop', - '.object.prop', - '.type', - '.array', - '.string', - '.boolean', - '.instance', - ]; - - expect(nestedErrors).toMatchObject(expected); - expect(error.errors).toMatchSnapshot(); + return; } + + throw new Error("Validation didn't fail"); }); + } + + createSuccessTestCase('empty array', { + arrayType: [], + }); + + createSuccessTestCase('non empty array', { + arrayType2: ['1', 2, true], + }); + + createSuccessTestCase('only additional items', { + onlyAdditionalItems: ['1', 2, true], + }); + + createSuccessTestCase('boolean type', { + booleanType: true, + }); + + createSuccessTestCase('number keywords without number type', { + numberWithoutType: true, + }); + + createSuccessTestCase('number keywords without number type #2', { + numberWithoutType: 25, + }); + + createSuccessTestCase('number keywords without number type #3', { + numberWithoutType2: true, + }); + + createSuccessTestCase('number keywords without number type #4', { + numberWithoutType2: 20, + }); + + createSuccessTestCase('string keywords without string type', { + stringWithoutType: true, + }); + + createSuccessTestCase('string keywords without string type', { + stringWithoutType: 127, + }); + + createSuccessTestCase('string keywords without string type #2', { + stringWithoutType: '127.0.0.1', + }); + + createSuccessTestCase('array keywords without array type', { + arrayWithoutType: true, + }); + + createSuccessTestCase('array keywords without array type #2', { + arrayWithoutType: [1, 'test', true, false], + }); + + createSuccessTestCase('array keywords without array type #3', { + arrayWithoutType: 'string', + }); + + createSuccessTestCase('object with required and properties', { + justAnObject: { foo: 'test', bar: 4, qwerty: 'qwerty' }, + }); + + createSuccessTestCase('object with patternRequired', { + objectTest4: { fao: true, fbo: true, c: true }, + }); + + createSuccessTestCase('array with items with true', { + itemsTrue: [1, 2, 3, 'test'], + }); + + createSuccessTestCase('empty const', { + emptyConst: '', + }); + + createSuccessTestCase('ref inside object inside allOf', { + refAndAnyOf: { foo: [/test/] }, + }); + + createSuccessTestCase('additionalProperties inside oneOf', { + additionalPropertiesInsideOneOf: { foo: 100 }, + }); + + createSuccessTestCase('additionalProperties inside oneOf #2', { + additionalPropertiesInsideOneOf2: { foo: 100, bar: 'baz' }, + }); + + createSuccessTestCase('single item in contains', { + singleContainsItems: [1, 'test', true], + }); + + createSuccessTestCase('array with contains', { + arrayKeyword17: [/test/, 1, 'test', true], + }); + + createSuccessTestCase('const', { + constKeyword: 'foo', + }); + + createSuccessTestCase('const #2', { + constKeyword2: ['foo', 'bar'], + }); + + createSuccessTestCase('const with array notation', { + constWithArrayNotation: [1, 2, 3], + }); + + createSuccessTestCase('const with object notation', { + constWithObjectNotation: { foo: 'bar', baz: 123 }, + }); + + createSuccessTestCase('items and additionalItems', { + additionalItemsWithoutType: [1, 2, 3, 4, 5], + }); + + createSuccessTestCase('items and additionalItems #2', { + additionalItemsWithoutType2: [ + 1, + true, + /test/, + 'string', + [1, 2, 3], + { foo: 'bar' }, + null, + ], + }); + + createSuccessTestCase('items and additionalItems #3', { + additionalItemsWithoutType3: ['string', 'other-string', 1, true, 2, false], + }); + + createSuccessTestCase('contains and additionalItems', { + containsAndAdditionalItems: [/test/, true, 'string'], + }); + + createSuccessTestCase('contains and additionalItems', { + containsAndAdditionalItems: [/test/, 1, 'string'], + }); + + createSuccessTestCase('contains inside items', { + containsInsideItem: [1, 'test', true, /test/], + }); + + createSuccessTestCase('contains inside items #2', { + containsInsideItem: ['test', 'test', 'test'], + }); + + createSuccessTestCase('contains inside items #3', { + containsInsideItem: [['test', 1], '1', /test/], + }); + + createSuccessTestCase('contains inside items #3', { + containsInsideItem: [[1, 'test'], '1', /test/], }); + + // The "name" option + createFailedTestCase( + 'webpack name', + { + entry: '', + }, + (msg) => expect(msg).toMatchSnapshot(), + { + name: 'Webpack', + } + ); + + createFailedTestCase( + 'css-loader name', + { + entry: '', + }, + (msg) => expect(msg).toMatchSnapshot(), + { + name: 'CSS Loader', + } + ); + + createFailedTestCase( + 'terser-webpack-plugin name', + { + entry: '', + }, + (msg) => expect(msg).toMatchSnapshot(), + { + name: 'Terser Plugin', + } + ); + + // The "dataPath" option + createFailedTestCase( + 'configuration dataPath', + { + entry: '', + }, + (msg) => expect(msg).toMatchSnapshot(), + { + name: 'Webpack', + baseDataPath: 'configuration', + } + ); + + createFailedTestCase( + 'configuration dataPath #1', + { + entry: '', + }, + (msg) => expect(msg).toMatchSnapshot(), + { + name: 'MyPlugin', + baseDataPath: 'options', + } + ); + + // The "postFormatter" option + createFailedTestCase( + 'postFormatter', + { + debug: true, + }, + (msg) => expect(msg).toMatchSnapshot(), + { + name: 'Webpack', + baseDataPath: 'configuration', + postFormatter: (formattedError, error) => { + if ( + error.keyword === 'additionalProperties' && + !error.dataPath && + error.params.additionalProperty === 'debug' + ) { + return ( + `${formattedError}\n` + + "The 'debug' property was removed in webpack 2.0.0.\n" + + 'Loaders should be updated to allow passing this option via loader options in module.rules.\n' + + 'Until loaders are updated one can use the LoaderOptionsPlugin to switch loaders into debug mode:\n' + + 'plugins: [\n' + + ' new webpack.LoaderOptionsPlugin({\n' + + ' debug: true\n' + + ' })\n' + + ']' + ); + } + + return formattedError; + }, + } + ); + + createFailedTestCase( + 'postFormatter #1', + { + minify: true, + }, + (msg) => expect(msg).toMatchSnapshot(), + { + name: 'Webpack', + baseDataPath: 'configuration', + postFormatter: (formattedError, error) => { + if ( + error.keyword === 'additionalProperties' && + !error.dataPath && + error.params.additionalProperty + ) { + return ( + `${formattedError}\n` + + 'For typos: please correct them.\n' + + 'For loader options: webpack >= v2.0.0 no longer allows custom properties in configuration.\n' + + ' Loaders should be updated to allow passing options via loader options in module.rules.\n' + + ' Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:\n' + + ' plugins: [\n' + + ' new webpack.LoaderOptionsPlugin({\n' + + ' // test: /\\.xxx$/, // may apply this only for some modules\n' + + ' options: {\n' + + ` ${error.params.additionalProperty}: …\n` + + ' }\n' + + ' })\n' + + ' ]' + ); + } + + return formattedError; + }, + } + ); + + createFailedTestCase( + 'postFormatter #2', + { + entry: 'foo.js', + output: { + filename: '/bar', + }, + }, + (msg) => expect(msg).toMatchSnapshot(), + { + name: 'Webpack', + baseDataPath: 'configuration', + postFormatter: (formattedError, error) => { + if ( + error.children && + error.children.some( + (child) => + child.keyword === 'absolutePath' && + child.dataPath === '.output.filename' + ) + ) { + return ( + `${formattedError}\n` + + 'Please use output.path to specify absolute path and output.filename for the file name.' + ); + } + + return formattedError; + }, + } + ); + + // eslint-disable-next-line no-undefined + createFailedTestCase('undefined configuration', undefined, (msg) => + expect(msg).toMatchSnapshot() + ); + + createFailedTestCase('null configuration', null, (msg) => + expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'empty entry string', + { + entry: '', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'empty entry bundle array', + { + entry: { + bundle: [], + }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'invalid instanceof', + { + entry: 'a', + module: { + wrappedContextRegExp: 1337, + }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'invalid minimum', + { + entry: 'a', + parallelism: 0, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'repeated value', + { + entry: ['abc', 'def', 'abc'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'multiple errors', + { + entry: [/a/], + output: { + filename: /a/, + }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'multiple configurations', + [ + { + entry: [/a/], + }, + { + entry: 'a', + output: { + filename: /a/, + }, + }, + ], + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'deep error', + { + entry: 'a', + module: { + rules: [ + { + oneOf: [ + { + test: '/a', + passer: { + amd: false, + }, + }, + ], + }, + ], + }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'additional key on root', + { + entry: 'a', + postcss: () => {}, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'enum', + { + entry: 'a', + devtool: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + // Require for integration with webpack + createFailedTestCase( + '! in path', + { + entry: 'foo.js', + output: { + path: '/somepath/!test', + filename: 'bar', + }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'relative path', + { + entry: 'foo.js', + output: { + filename: '/bar', + }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'absolute path', + { + entry: 'foo.js', + output: { + filename: 'bar', + }, + context: 'baz', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'missing stats option', + { + entry: 'foo.js', + stats: { + foobar: true, + }, + }, + (msg) => { + expect( + msg + .replace(/object \{ .* \}/g, 'object {...}') + .replace(/"none" \| .+/g, '"none" | ...') + ).toMatchSnapshot(); + } + ); + + createFailedTestCase( + 'invalid plugin provided: bool', + { + entry: 'foo.js', + plugins: [false], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'invalid plugin provided: array', + { + entry: 'foo.js', + plugins: [[]], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'invalid plugin provided: string', + { + entry: 'foo.js', + plugins: ['abc123'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'Invalid plugin provided: int', + { + entry: 'foo.js', + plugins: [12], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'Invalid plugin provided: object without apply function', + { + entry: 'foo.js', + plugins: [{}], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'invalid mode', + { + mode: 'protuction', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'min length', + { + minLengthTwo: '1', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'min properties', + { + entry: {}, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'integer type', + { + integerType: 'type', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'null type', + { + nullType: 'type', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'boolean type', + { + bail: 'true', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array type', + { + dependencies: {}, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'number type', + { + parallelism: '1', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object in object with anyOf', + { + allOfRef: { alias: 123 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'non empty string in object with anyOf', + { + allOfRef: { aliasFields: 123 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'boolean and object in object with anyOf', + { + allOfRef: { unsafeCache: [] }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'boolean and number in object with anyOf', + { + watchOptions: { poll: '1' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'integer and null in object with anyOf', + { + customObject: { anyOfKeyword: '1' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'maxLength', + { + customObject: { maxLength: '11111' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'maxItems', + { + customObject: { maxItems: ['1', '2', '3', '4'] }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'maxProperties', + { + customObject: { + maxProperties: { one: 'one', two: 'two', three: 'three', four: 'four' }, + }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'minimum', + { + customObject: { minimumKeyword: 1 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'maximum', + { + customObject: { maximumKeyword: 11111 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'multipleOf', + { + customObject: { multipleOfKeyword: 11111 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'pattern', + { + customObject: { patternKeyword: 'def' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'format', + { + customObject: { formatKeyword: 'def' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'contains', + { + customObject: { containsKeyword: ['def'] }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'contains #1', + { + multipleContains2: [/test/], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'oneOf', + { + entry: { foo: () => [] }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'allOf', + { + objectType: { objectProperty: 1 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'anyOf', + { + anyOfKeyword: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array without items', + { + nestedArrayWithoutItems: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object without items', + { + nestedObjectWithoutItems: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'multiple types in array', + { + arrayType2: ['1', 2, true, /test/], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'multiple types', + { + multipleTypes: /test/, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'zero max items', + { + zeroMaxItems: [1], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'multiple types in contains', + { + multipleContains: [/test/], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'exclusiveMinimum', + { + exclusiveMinimumKeyword: 4.5, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'exclusiveMaximum', + { + exclusiveMaximumKeyword: 5.5, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'uniqueItems', + { + uniqueItemsKeyword: [1, 2, 1], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'minProperties', + { + minPropertiesKeyword: { foo: 'bar' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'maxProperties', + { + maxPropertiesKeyword: { foo: 'bar', bar: 'foo', foobaz: 'foobaz' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'required', + { + requiredKeyword: {}, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'required #2', + { + requiredKeyword: { b: 1 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'required with additionalProperties', + { + requiredKeywordWithAdditionalProperties: { b: 1 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'enum', + { + enumKeyword: 1, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'formatMinimum', + { + formatMinimumKeyword: '2016-02-05', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'formatMaximum', + { + formatMaximumKeyword: '2016-02-07', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'formatExclusiveMinimum', + { + formatExclusiveMinimumKeyword: '2016-02-06', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'formatExclusiveMaximum', + { + formatExclusiveMaximumKeyword: '2016-02-06', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'format and formatMinimum and formatMaximum and formatExclusiveMaximum', + { + formatMinMaxExclusiveMinKeyword: '2016-02-05', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'format and formatMinimum and formatMaximum and formatExclusiveMaximum', + { + formatMinMaxExclusiveMaxKeyword: '2016-02-05', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'minItems Keyword', + { + minItemsKeyword: ['1'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'maxItems Keyword', + { + maxItemsKeyword: ['1', '2', '3', '4'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'items', + { + itemsKeyword: ['1'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'items', + { + itemsKeyword2: [true], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'additionalItems', + { + additionalItemsKeyword: [1, 'abc'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'additionalItems #2', + { + additionalItemsKeyword2: ['abc'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'additionalItems #3', + { + additionalItemsKeyword3: ['abc'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'additionalItems #4', + { + additionalItemsKeyword4: [1, 1, 'foo'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'properties', + { + propertiesKeyword: { foo: 1 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'patternProperties', + { + patternPropertiesKeyword: { foo: 1 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'patternProperties #1', + { + patternPropertiesKeyword2: { a: 't' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array with only number', + { + arrayWithOnlyNumber: ['foo'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'only required', + { + onlyRequired: {}, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'dependencies', + { + dependenciesKeyword: { foo: 1, bar: 2 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'dependencies #2', + { + dependenciesKeyword2: { foo: 1, bar: '2' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'patternRequired', + { + patternRequiredKeyword: { bar: 2 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'patternRequired #2', + { + patternRequiredKeyword2: { foo: 1 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'only properties', + { + onlyProperties: { foo: 1 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'only properties #2', + { + onlyProperties2: { foo: 'a', bar: 2, break: 'test' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'only items', + { + onlyItems: [1, 'abc'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'only items #2', + { + onlyItems2: ['abc', 1], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'additionalProperties', + { + additionalPropertiesKeyword: { a: 3 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'additionalProperties #2', + { + additionalPropertiesKeyword: { foo: 1, baz: 3 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'additionalProperties #3', + { + additionalPropertiesKeyword: { foo: '1', baz: 3 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'additionalProperties #4', + { + additionalPropertiesKeyword2: { a: 3 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'additionalProperties #5', + { + additionalPropertiesKeyword2: { foo: 1, baz: 3 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'additionalProperties #6', + { + additionalPropertiesKeyword2: { foo: 1, bar: '3' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'propertyNames', + { + propertyNamesKeyword: { foo: 'any value' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'constKeyword', + { + constKeyword: 'bar', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'constKeyword #2', + { + constKeyword2: 'baz', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'if/then/else', + { + ifThenElseKeyword: { power: 10000 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'if/then/else #2', + { + ifThenElseKeyword: { power: 10000, confidence: true }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'if/then/else #3', + { + ifThenElseKeyword: { power: 1000 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'if/then/else #4', + { + ifThenElseKeyword2: 11, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'if/then/else #5', + { + ifThenElseKeyword2: 2000, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'if/then/else #6', + { + ifThenElseKeyword2: 0, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'string', + { + stringKeyword: '2016-02-06', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'string #1', + { + stringKeyword: 'abc', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array', + { + arrayKeyword: 'abc', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #1', + { + arrayKeyword: ['abc'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #2', + { + arrayKeyword: [1, 'string', 1], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #3', + { + arrayKeyword: [1, 'string', '1', 'other', 'foo'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #4', + { + arrayKeyword2: [1, '1', 1], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #5', + { + arrayKeyword2: [1, 2, true, false], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #4', + { + arrayKeyword3: ['1', '2', '3'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #5', + { + arrayKeyword3: [1, '1', 1], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #6', + { + arrayKeyword3: [1, 2, true, false], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #7', + { + arrayKeyword4: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #8', + { + arrayKeyword5: [1], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #9', + { + arrayKeyword6: [1], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #10', + { + arrayKeyword6: ['true', '1'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #11', + { + arrayKeyword6: [true, '1'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #12', + { + arrayKeyword7: ['test', 1, /test/], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #13', + { + arrayKeyword8: ['test', 1, 'test', true], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #14', + { + arrayKeyword8: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #15', + { + arrayKeyword9: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #16', + { + arrayKeyword10: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #17', + { + arrayKeyword11: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #18', + { + arrayKeyword12: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #19', + { + arrayKeyword13: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #20', + { + arrayKeyword14: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #21', + { + arrayKeyword15: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #22', + { + arrayKeyword16: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #23', + { + arrayKeyword17: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #24', + { + arrayKeyword17: [1, /test/, () => {}], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #25', + { + arrayKeyword18: [1, 2, 3], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array #26', + { + arrayKeyword19: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'recursion', + { + recursion: { person: { name: 'Foo', children: {} } }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'extending', + { + extending: { + shipping_address: { + street_address: '1600 Pennsylvania Avenue NW', + city: 'Washington', + state: 'DC', + }, + }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'module', + { + module: { rules: [{ compiler: true }] }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array with string items and minLength', + { + longString: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'integer with minimum', + { + integerWithMinimum: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'integer with minimum and maximum', + { + integerWithMinimum: 1, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'integer with exclusive minimum', + { + integerWithExclusiveMinimum: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'integer with exclusive minimum', + { + integerWithExclusiveMinimum: 1, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'integer with exclusive maximum', + { + integerWithExclusiveMaximum: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'integer with exclusive maximum', + { + integerWithExclusiveMaximum: 1, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'number with minimum and maximum', + { + numberWithMinimum: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'multipleOf with minimum and maximum', + { + multipleOfProp: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'string with minLength, maxLength and pattern', + { + stringWithMinAndMaxLength: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'string with minLength and maxLength', + { + stringWithMinAndMaxLength: 'def', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'format, formatMaximum and formatExclusiveMaximum', + { + strictFormat: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'format, formatMaximum and formatExclusiveMaximum #2', + { + strictFormat: '2016-02-07', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'format, formatMinimum and formatExclusiveMinimum', + { + strictFormat2: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'format, formatMinimum and formatExclusiveMinimum #2', + { + strictFormat2: '2016-02-06', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'uniqueItems', + { + uniqueItemsProp: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'uniqueItems #2', + { + uniqueItemsProp: [1, 1], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'maxProperties and minProperties', + { + maxPropertiesAndMinProperties: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'maxProperties and minProperties #2', + { + maxPropertiesAndMinProperties: {}, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'maxProperties and minProperties #3', + { + maxPropertiesAndMinProperties: { a: 1, b: 2, c: 3, d: 4, e: 5, f: 6 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object', + { + objectTest: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object #2', + { + objectTest2: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object #3', + { + objectTest3: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object #4', + { + objectTest4: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object #5', + { + objectTest4: { foo: 'test', b: 'test' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object #6', + { + objectTest5: { + 'foo@gmail.com.com': 1, + 'foo1@bar.com': 1, + 'foo@bar.com': 1, + }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object #7', + { + objectTest5: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object #8', + { + objectTest6: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object #9', + { + objectTest7: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object #9', + { + objectTest8: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object #10', + { + objectTest7: { baz: 'test' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object #11', + { + objectTest9: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object #12', + { + objectTest9: { foo: 'test', baz: 'test', bar: 1 }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'string with empty pattern', + { + stringWithEmptyPattern: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array keywords without array type', + { + likeArray: ['test'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array with empty items, empty additionalItems, empty contains', + { + arrayWithEmptyItemsAndEmptyAdditionalItemsAndEmptyContains: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'additionalItems with false', + { + additionalItemsFalse: [1, 1, 'foo'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'required without object type', + { + requiredWithoutType: { b: 'test' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'dependencies without object type', + { + dependenciesWithoutType: { foo: 'test' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'propertyNames without object type', + { + propertyNamesWithoutType: { foo: 'test' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'patternRequired without object type', + { + patternRequiredWithoutType: { boo: 'test' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'additionalProperties without object type', + { + additionalPropertiesWithoutType: { boo: 'test' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'minProperties without object type', + { + minPropertiesWithoutType: { boo: 'test' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object with required and properties', + { + justAnObject: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array with absolutePath item', + { + arrayWithAbsolutePath: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'allOf', + { + allOfKeyword: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'allOf #1', + { + allOfKeyword: 4.5, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'allOf #2', + { + allOfKeyword: 5, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'oneOf with description', + { + oneOfnumberAndDescriptionAndArray: '2016-02-06', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'number and description', + { + numberAndDescription: '2016-02-06', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'const with description', + { + constWithDescription: '2016-02-06', + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'array with items with true', + { + itemsTrue: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'empty const', + { + emptyConst: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'one const', + { + oneConst: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'const with empty string', + { + constWithEmptyString: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'ref inside object inside allOf', + { + refAndAnyOf: {}, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'additionalProperties inside oneOf', + { + additionalPropertiesInsideOneOf: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'additionalProperties inside oneOf #2', + { + additionalPropertiesInsideOneOf: { foo: 100, bar: 'test' }, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'additionalProperties inside oneOf #3', + { + additionalPropertiesInsideOneOf2: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'single item in contains', + { + singleContainsItems: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object with dependencies', + { + objectWithPropertyDependency: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object with dependencies #2', + { + objectWithPropertyDependency2: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object with dependencies #3', + { + objectWithPropertyDependency3: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'object with dependencies #4', + { + objectWithPropertyDependency4: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'oneOf with if', + { + oneOfWithIf: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'const with array notation', + { + constWithArrayNotation: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'const with object notation', + { + constWithObjectNotation: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'items and additionalItems', + { + additionalItemsWithoutType: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'items and additionalItems #2', + { + additionalItemsWithoutType2: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'items and additionalItems #3', + { + additionalItemsWithoutType3: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'contains and additionalItems', + { + containsAndAdditionalItems: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'contains and additionalItems #2', + { + containsAndAdditionalItems: [/test/, 'string'], + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'contains inside items', + { + containsInsideItem: true, + }, + (msg) => expect(msg).toMatchSnapshot() + ); + + createFailedTestCase( + 'contains inside items #2', + { + containsInsideItem: [['test'], '1', /test/], + }, + (msg) => expect(msg).toMatchSnapshot() + ); });