diff --git a/package-lock.json b/package-lock.json index cb1b50ea..44d5acae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,7 +36,7 @@ "@commitlint/config-conventional": "11.0.0", "@commitlint/travis-cli": "11.0.0", "@lykmapipo/express-test-helpers": "0.9.16", - "@lykmapipo/mongoose-test-helpers": "0.7.25", + "@lykmapipo/mongoose-test-helpers": "0.8.6", "chai": "4.3.0", "commitizen": "4.2.3", "coveralls": "3.1.0", @@ -1407,7 +1407,8 @@ "node_modules/@benmaruchu/faker": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/@benmaruchu/faker/-/faker-4.3.0.tgz", - "integrity": "sha512-aT7+EnSqjfDuzM8pxhS7ckoaFLDf/0ThJ86dmzS8+dVHR7p5mi+WpWBsmYpFmTnKAbIeqpiDgCn3DY3zISWbAg==" + "integrity": "sha512-aT7+EnSqjfDuzM8pxhS7ckoaFLDf/0ThJ86dmzS8+dVHR7p5mi+WpWBsmYpFmTnKAbIeqpiDgCn3DY3zISWbAg==", + "dev": true }, "node_modules/@codetanzania/majifix-common": { "version": "0.17.0", @@ -2697,20 +2698,38 @@ } }, "node_modules/@lykmapipo/mongoose-common": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-common/-/mongoose-common-0.25.11.tgz", - "integrity": "sha512-pj0jd0xGfEKxX3jd08nLzQQ3fAPKnpaq9ohMqMoiRiBtX5rpILKIRUUT8NYowJFLQo4YMjB0UkWedBtm9+M1mg==", + "version": "0.39.0", + "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-common/-/mongoose-common-0.39.0.tgz", + "integrity": "sha512-Cu1jGXjo/WSeNwQR24hugDOIR9T3R1XMq6gDjOCfN4CIPpPAW7RS2aKKEXoAH4S2VI/T0Ra8l9/92Qrx+BmfDQ==", "dependencies": { - "@lykmapipo/common": ">=0.25.2", - "@lykmapipo/env": ">=0.12.2", - "@lykmapipo/include": ">=0.2.6", - "async": ">=3.1.0", - "lodash": ">=4.17.15", - "mongoose-schema-jsonschema": ">=1.2.1", - "mongoose-valid8": ">=1.5.13" + "@lykmapipo/common": ">=0.42.5", + "@lykmapipo/env": ">=0.17.25", + "@lykmapipo/mongoose-connection": ">=0.4.0", + "async": ">=3.2.0", + "lodash": ">=4.17.20", + "mongoose-schema-jsonschema": ">=1.4.4", + "mongoose-valid8": ">=1.7.0" }, "peerDependencies": { - "mongoose": ">=5.6.11" + "mongoose": ">=5.11.9" + } + }, + "node_modules/@lykmapipo/mongoose-connection": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-connection/-/mongoose-connection-0.4.0.tgz", + "integrity": "sha512-pVhth3GwtOAEeL+Dr1Dg9a8ouNv2zyXTgz4DRRODbCbcmGFesWi+v212jQvW1gz+bCIRBtCykj888QqiIVto6Q==", + "dependencies": { + "@lykmapipo/common": ">=0.42.5", + "@lykmapipo/env": ">=0.17.25", + "async": ">=3.2.0", + "lodash": ">=4.17.20" + }, + "engines": { + "node": ">=8.11.1", + "npm": ">=5.6.0" + }, + "peerDependencies": { + "mongoose": ">=5.11.9" } }, "node_modules/@lykmapipo/mongoose-exportable": { @@ -2740,15 +2759,17 @@ } }, "node_modules/@lykmapipo/mongoose-faker": { - "version": "0.9.12", - "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-faker/-/mongoose-faker-0.9.12.tgz", - "integrity": "sha512-jRXs5VwSWQ75hmUuNc+2pWG4Fi5T2UfdXpRZTFBihM90xi3MJiW4pQI+ekScQx1wHwZOSxtTQAWALOk7Nth6pQ==", + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-faker/-/mongoose-faker-0.11.2.tgz", + "integrity": "sha512-wCmXsAwHm1QS0OFveon9xXNB04oH7Zt2XwL+Q8kUHTVlbsWOLiKYSgTgNpNQoEcubBw0ZpS9boY7j3LQnn0aIA==", "dependencies": { - "@benmaruchu/faker": ">=4.3.0", - "lodash": ">=4.17.15" + "@lykmapipo/common": ">=0.42.5", + "@lykmapipo/mongoose-common": ">=0.39.0", + "faker": ">=5.1.0", + "lodash": ">=4.17.20" }, "peerDependencies": { - "mongoose": ">=5.6.9" + "mongoose": ">=5.11.9" } }, "node_modules/@lykmapipo/mongoose-taggable": { @@ -2769,123 +2790,38 @@ } }, "node_modules/@lykmapipo/mongoose-test-helpers": { - "version": "0.7.25", - "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-test-helpers/-/mongoose-test-helpers-0.7.25.tgz", - "integrity": "sha512-eKlES3phPvMrszYqa4IY5WVCZCmcxCmTKon7YmV6U6s8v5eRe7l2mZOSYWkUvRk6exLeWdirvd6jQycxFoJ9Ag==", - "dev": true, - "dependencies": { - "@benmaruchu/faker": ">=4.3.0", - "@lykmapipo/mongoose-common": ">=0.26.4", - "@lykmapipo/mongoose-faker": ">=0.10.3", - "@lykmapipo/test-helpers": ">=0.4.7", - "async": ">=3.1.0", - "lodash": ">=4.17.15", - "sinon": ">=7.5.0", - "sinon-chai": ">=3.3.0", - "sinon-mongoose": ">=2.3.0" - }, - "peerDependencies": { - "mongoose": ">=5.7.6" - } - }, - "node_modules/@lykmapipo/mongoose-test-helpers/node_modules/@lykmapipo/include": { - "version": "0.2.10", - "resolved": "https://registry.npmjs.org/@lykmapipo/include/-/include-0.2.10.tgz", - "integrity": "sha512-+sQDfjc0yHCCnKBsurq/MjQd9agaIlqpXueY1mkgKV38nTWXa4+fB5w1LVhOLmRW5WsHj780fd9IIGUTtZOSIg==", - "dev": true, - "dependencies": { - "lodash": ">=4.17.15" - }, - "engines": { - "node": ">=8.3.0" - } - }, - "node_modules/@lykmapipo/mongoose-test-helpers/node_modules/@lykmapipo/mongoose-common": { - "version": "0.26.4", - "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-common/-/mongoose-common-0.26.4.tgz", - "integrity": "sha512-+1oQyAIXB7O+E0aG16kh2ISnfgeKTPLlOe6ieDo0wPtd/1KohAtCsyOFDxItztZoiPX4avh+Io8XqIN7k4bk8g==", - "dev": true, - "dependencies": { - "@lykmapipo/common": ">=0.28.5", - "@lykmapipo/env": ">=0.14.7", - "@lykmapipo/include": ">=0.2.10", - "async": ">=3.1.0", - "lodash": ">=4.17.15", - "mongoose-schema-jsonschema": ">=1.2.1", - "mongoose-valid8": ">=1.5.18" - }, - "peerDependencies": { - "mongoose": ">=5.7.6" - } - }, - "node_modules/@lykmapipo/mongoose-test-helpers/node_modules/@lykmapipo/mongoose-faker": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-faker/-/mongoose-faker-0.10.3.tgz", - "integrity": "sha512-p+MBRWlH3XD2SlX2kv1eqhN9RhKKURnTJn6WrReQiLVSrRGRWVutJ/EPzhvLXH7IaG5e4BCOH4vLfrl3eb5/qA==", + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-test-helpers/-/mongoose-test-helpers-0.8.6.tgz", + "integrity": "sha512-ucMaqy/xpHFvL1F5TrGRy48IvuKYc7yCuhIsfffdePrP+eX55En/eCQqNXUyv9fD5phbSPoYvSG/3k1JrXOHJQ==", "dev": true, "dependencies": { "@benmaruchu/faker": ">=4.3.0", - "@lykmapipo/common": ">=0.28.5", - "@lykmapipo/mongoose-common": ">=0.26.4", - "lodash": ">=4.17.15" - }, - "peerDependencies": { - "mongoose": ">=5.7.6" - } - }, - "node_modules/@lykmapipo/mongoose-test-helpers/node_modules/@lykmapipo/phone": { - "version": "0.5.10", - "resolved": "https://registry.npmjs.org/@lykmapipo/phone/-/phone-0.5.10.tgz", - "integrity": "sha512-fVpdq4QYy5tr0d7G+2uT1F2UWajFyzUnt+buAfzwFS3XUAKbgGH0sbTLf068iH6YUtf/rC1m8jBEVNeTJevcvg==", - "dev": true, - "dependencies": { - "@lykmapipo/common": ">=0.28.5", - "@lykmapipo/env": ">=0.14.7", - "google-libphonenumber": ">=3.2.6", - "lodash": ">=4.17.15" - }, - "engines": { - "node": ">=8.11.1", - "npm": ">=5.6.0" - } - }, - "node_modules/@lykmapipo/mongoose-test-helpers/node_modules/google-libphonenumber": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/google-libphonenumber/-/google-libphonenumber-3.2.6.tgz", - "integrity": "sha512-6QCQAaKJlSd/1dUqvdQf7zzfb3uiZHsG8yhCfOdCVRfMuPZ/VDIEB47y5SYwjPQJPs7ebfW5jj6PeobB9JJ4JA==", - "dev": true, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/@lykmapipo/mongoose-test-helpers/node_modules/mongoose-valid8": { - "version": "1.5.18", - "resolved": "https://registry.npmjs.org/mongoose-valid8/-/mongoose-valid8-1.5.18.tgz", - "integrity": "sha512-m8UP+Jlap9Sh0zYYChHEXVsYGpWu8WbyvvGTPAavb3Xuf8SJ44Jx3UK/bcuc6sQsI+8wp4uRaPfEB4KATTD3lw==", - "dev": true, - "dependencies": { - "@lykmapipo/env": ">=0.14.7", - "@lykmapipo/phone": ">=0.5.10", - "lodash": ">=4.17.15", - "validator": ">=11.1.0" + "@lykmapipo/mongoose-common": ">=0.39.0", + "@lykmapipo/mongoose-connection": ">=0.4.0", + "@lykmapipo/mongoose-faker": ">=0.11.2", + "@lykmapipo/test-helpers": ">=0.6.7", + "async": ">=3.2.0", + "lodash": ">=4.17.20", + "sinon": ">=9.2.2", + "sinon-chai": ">=3.5.0" }, "peerDependencies": { - "mongoose": ">=5.7.6" + "mongoose": ">=5.11.9" } }, "node_modules/@lykmapipo/phone": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/@lykmapipo/phone/-/phone-0.5.5.tgz", - "integrity": "sha512-/IhHWY25Rv6DFMyBSyRSkQ7y0a6TakGdutuJCibH0OCFhkuQ/PREFmjshaQYyRvNhCHY8lzJpeiKPebsM1gRlA==", + "version": "0.7.12", + "resolved": "https://registry.npmjs.org/@lykmapipo/phone/-/phone-0.7.12.tgz", + "integrity": "sha512-ZNRjukK2vgkgf56OYWgqK76z73NCsdV5z1oOmcespyi1JVVtNRjfELCCR64aRplUYGFKdMRXXEfrfb8g1/fLGg==", "dependencies": { - "@lykmapipo/common": ">=0.25.2", - "@lykmapipo/env": ">=0.12.2", - "google-libphonenumber": ">=3.2.3", - "lodash": ">=4.17.15" + "@lykmapipo/common": ">=0.42.9", + "@lykmapipo/env": ">=0.17.29", + "google-libphonenumber": ">=3.2.16", + "lodash": ">=4.17.20" }, "engines": { - "node": ">=8.11.1", - "npm": ">=5.6.0" + "node": ">=12.4.0", + "npm": ">=6.9.0" } }, "node_modules/@lykmapipo/test-helpers": { @@ -2902,85 +2838,6 @@ "sinon-chai": ">=3.5.0" } }, - "node_modules/@lykmapipo/test-helpers/node_modules/@sinonjs/samsam": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-5.3.1.tgz", - "integrity": "sha512-1Hc0b1TtyfBu8ixF/tpfSHTVWKwCBLY4QJbkgnE7HcwyvT2xArDxb4K7dMgqRm3szI+LJbzmW/s4xxEhv6hwDg==", - "dependencies": { - "@sinonjs/commons": "^1.6.0", - "lodash.get": "^4.4.2", - "type-detect": "^4.0.8" - } - }, - "node_modules/@lykmapipo/test-helpers/node_modules/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/@lykmapipo/test-helpers/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@lykmapipo/test-helpers/node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" - }, - "node_modules/@lykmapipo/test-helpers/node_modules/nise": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/nise/-/nise-4.0.4.tgz", - "integrity": "sha512-bTTRUNlemx6deJa+ZyoCUTRvH3liK5+N6VQZ4NIw90AgDXY6iPnsqplNFf6STcj+ePk0H/xqxnP75Lr0J0Fq3A==", - "dependencies": { - "@sinonjs/commons": "^1.7.0", - "@sinonjs/fake-timers": "^6.0.0", - "@sinonjs/text-encoding": "^0.7.1", - "just-extend": "^4.0.2", - "path-to-regexp": "^1.7.0" - } - }, - "node_modules/@lykmapipo/test-helpers/node_modules/path-to-regexp": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", - "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", - "dependencies": { - "isarray": "0.0.1" - } - }, - "node_modules/@lykmapipo/test-helpers/node_modules/sinon": { - "version": "9.2.4", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-9.2.4.tgz", - "integrity": "sha512-zljcULZQsJxVra28qIAL6ow1Z9tpattkCTEJR4RBP3TGc00FcttsP5pK284Nas5WjMZU5Yzy3kAIp3B3KRf5Yg==", - "dependencies": { - "@sinonjs/commons": "^1.8.1", - "@sinonjs/fake-timers": "^6.0.1", - "@sinonjs/samsam": "^5.3.1", - "diff": "^4.0.2", - "nise": "^4.0.4", - "supports-color": "^7.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/sinon" - } - }, - "node_modules/@lykmapipo/test-helpers/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@mrmlnc/readdir-enhanced": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz", @@ -3039,23 +2896,14 @@ "@sinonjs/commons": "^1.7.0" } }, - "node_modules/@sinonjs/formatio": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-3.2.1.tgz", - "integrity": "sha512-tsHvOB24rvyvV2+zKMmPkZ7dXX6LSLKZ7aOtXY6Edklp0uRcgGpOsQTTGTcWViFyx4uhWc6GV8QdnALbIbIdeQ==", - "dependencies": { - "@sinonjs/commons": "^1", - "@sinonjs/samsam": "^3.1.0" - } - }, "node_modules/@sinonjs/samsam": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-3.3.2.tgz", - "integrity": "sha512-ILO/rR8LfAb60Y1Yfp9vxfYAASK43NFC2mLzpvLUbCQY/Qu8YwReboseu8aheCEkyElZF2L2T9mHcR2bgdvZyA==", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-5.3.1.tgz", + "integrity": "sha512-1Hc0b1TtyfBu8ixF/tpfSHTVWKwCBLY4QJbkgnE7HcwyvT2xArDxb4K7dMgqRm3szI+LJbzmW/s4xxEhv6hwDg==", "dependencies": { - "@sinonjs/commons": "^1.0.2", - "array-from": "^2.1.1", - "lodash": "^4.17.11" + "@sinonjs/commons": "^1.6.0", + "lodash.get": "^4.4.2", + "type-detect": "^4.0.8" } }, "node_modules/@sinonjs/text-encoding": { @@ -4643,11 +4491,6 @@ "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" }, - "node_modules/array-from": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/array-from/-/array-from-2.1.1.tgz", - "integrity": "sha1-z+nYwmYoudxa7MYqn12PHzUsEZU=" - }, "node_modules/array-ify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", @@ -6566,9 +6409,9 @@ } }, "node_modules/diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", "engines": { "node": ">=0.3.1" } @@ -8879,9 +8722,9 @@ } }, "node_modules/google-libphonenumber": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/google-libphonenumber/-/google-libphonenumber-3.2.3.tgz", - "integrity": "sha512-8n4JyRptifaIRlHANKRlfqLR8fANm7+Q+1qvDuUsUeStSLtLGTVsZWe1llWDfgWTm1y07cEUyiRuNIv6cs2ovg==", + "version": "3.2.17", + "resolved": "https://registry.npmjs.org/google-libphonenumber/-/google-libphonenumber-3.2.17.tgz", + "integrity": "sha512-T1fBQ3ujlpo4VUe0palZVHxBkY1zsfCShkS3l1rNq/d5C6C1SIijo8aXzgpJeGQFB8Bk+C36o6jhLl05NtfQ3w==", "engines": { "node": ">=0.10" } @@ -11180,11 +11023,6 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" }, - "node_modules/lolex": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-4.2.0.tgz", - "integrity": "sha512-gKO5uExCXvSm6zbF562EvM+rd1kQDnB9AZBbiQVzf1ZmdDpxUSvpnAaVOP83N/31mRK8Ml8/VE8DMvsAZQ+7wg==" - }, "node_modules/longest": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/longest/-/longest-2.0.1.tgz", @@ -12131,28 +11969,28 @@ } }, "node_modules/mongoose-schema-jsonschema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/mongoose-schema-jsonschema/-/mongoose-schema-jsonschema-1.2.1.tgz", - "integrity": "sha512-bV2UusuxLFhmMJahk834XkiEK7DPyfaKI+BQPLVFPqqH/ZmInaecmFMHauo7v4kfu4K1jYkB6sR6zXZ84TFj2Q==", + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/mongoose-schema-jsonschema/-/mongoose-schema-jsonschema-1.4.4.tgz", + "integrity": "sha512-kC56X/tYKSPHJfW84qMbnD0HynmsM9z4CoFBoEzlcUFycxisVWrUylnRIQcqWWVK9A9nRYoTXzkoS4bHNuO+6Q==", "dependencies": { - "pluralize": "^7.0.0" + "pluralize": "^8.0.0" }, "peerDependencies": { - "mongoose": ">= 4.8.5 <= 5.x" + "mongoose": "^5.0.0" } }, "node_modules/mongoose-valid8": { - "version": "1.5.14", - "resolved": "https://registry.npmjs.org/mongoose-valid8/-/mongoose-valid8-1.5.14.tgz", - "integrity": "sha512-tuBx1VlguQP+L1vNJhYPt2XGEAaqTrdXEZ80qYlhGR5RGvA/KcaYlXjDUojb+wT4sOXSeKY74WLVIzWomHQyrg==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/mongoose-valid8/-/mongoose-valid8-1.7.0.tgz", + "integrity": "sha512-uEzHF33on9lAiwcSrS6ngqukBm2YtQS5oc2jkpwZln+PwK/Hj/YpvEvJ9jS9KrMbASokNXWD146415ylF69jlQ==", "dependencies": { - "@lykmapipo/env": ">=0.12.2", - "@lykmapipo/phone": ">=0.5.4", - "lodash": ">=4.17.15", - "validator": ">=11.1.0" + "@lykmapipo/env": ">=0.17.25", + "@lykmapipo/phone": ">=0.7.10", + "lodash": ">=4.17.20", + "validator": ">=13.5.2" }, "peerDependencies": { - "mongoose": ">=5.6.11" + "mongoose": ">=5.11.9" } }, "node_modules/mongoose/node_modules/mpath": { @@ -12320,14 +12158,14 @@ "dev": true }, "node_modules/nise": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/nise/-/nise-1.5.2.tgz", - "integrity": "sha512-/6RhOUlicRCbE9s+94qCUsyE+pKlVJ5AhIv+jEE7ESKwnbXqulKZ1FYU+XAtHHWE9TinYvAxDUJAb912PwPoWA==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/nise/-/nise-4.0.4.tgz", + "integrity": "sha512-bTTRUNlemx6deJa+ZyoCUTRvH3liK5+N6VQZ4NIw90AgDXY6iPnsqplNFf6STcj+ePk0H/xqxnP75Lr0J0Fq3A==", "dependencies": { - "@sinonjs/formatio": "^3.2.1", + "@sinonjs/commons": "^1.7.0", + "@sinonjs/fake-timers": "^6.0.0", "@sinonjs/text-encoding": "^0.7.1", "just-extend": "^4.0.2", - "lolex": "^4.1.0", "path-to-regexp": "^1.7.0" } }, @@ -12337,9 +12175,9 @@ "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" }, "node_modules/nise/node_modules/path-to-regexp": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.7.0.tgz", - "integrity": "sha1-Wf3g9DW62suhA6hOnTvGTpa5k30=", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", + "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", "dependencies": { "isarray": "0.0.1" } @@ -13337,9 +13175,9 @@ } }, "node_modules/pluralize": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-7.0.0.tgz", - "integrity": "sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", + "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", "engines": { "node": ">=4" } @@ -14421,17 +14259,20 @@ "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" }, "node_modules/sinon": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-7.5.0.tgz", - "integrity": "sha512-AoD0oJWerp0/rY9czP/D6hDTTUYGpObhZjMpd7Cl/A6+j0xBE+ayL/ldfggkBXUs0IkvIiM1ljM8+WkOc5k78Q==", + "version": "9.2.4", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-9.2.4.tgz", + "integrity": "sha512-zljcULZQsJxVra28qIAL6ow1Z9tpattkCTEJR4RBP3TGc00FcttsP5pK284Nas5WjMZU5Yzy3kAIp3B3KRf5Yg==", "dependencies": { - "@sinonjs/commons": "^1.4.0", - "@sinonjs/formatio": "^3.2.1", - "@sinonjs/samsam": "^3.3.3", - "diff": "^3.5.0", - "lolex": "^4.2.0", - "nise": "^1.5.2", - "supports-color": "^5.5.0" + "@sinonjs/commons": "^1.8.1", + "@sinonjs/fake-timers": "^6.0.1", + "@sinonjs/samsam": "^5.3.1", + "diff": "^4.0.2", + "nise": "^4.0.4", + "supports-color": "^7.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/sinon" } }, "node_modules/sinon-chai": { @@ -14443,23 +14284,23 @@ "sinon": ">=4.0.0 <10.0.0" } }, - "node_modules/sinon-mongoose": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/sinon-mongoose/-/sinon-mongoose-2.3.0.tgz", - "integrity": "sha512-d0rrL53wuDDs91GMCFAvQam64IpdVfkaxA4cGLTZfw1d5tTg6+F/D7F080d1n3d1gSHJBZLUf9pGpijC/x7xKQ==", - "dev": true, - "peerDependencies": { - "sinon": "5 - 7" + "node_modules/sinon/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" } }, - "node_modules/sinon/node_modules/@sinonjs/samsam": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-3.3.3.tgz", - "integrity": "sha512-bKCMKZvWIjYD0BLGnNrxVuw4dkWCYsLqFOUWw8VgKF/+5Y+mE7LfHWPIYoDXowH+3a9LsWDMo0uAP8YDosPvHQ==", + "node_modules/sinon/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dependencies": { - "@sinonjs/commons": "^1.3.0", - "array-from": "^2.1.1", - "lodash": "^4.17.15" + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, "node_modules/skmeans": { @@ -16159,9 +16000,9 @@ } }, "node_modules/validator": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/validator/-/validator-11.1.0.tgz", - "integrity": "sha512-qiQ5ktdO7CD6C/5/mYV4jku/7qnqzjrxb3C/Q5wR3vGGinHTgJZN/TdFT3ZX4vXhX2R1PXx42fB1cn5W+uJ4lg==", + "version": "13.5.2", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.5.2.tgz", + "integrity": "sha512-mD45p0rvHVBlY2Zuy3F3ESIe1h5X58GPfAtslBjY7EtTqGquZTj+VX/J4RnHWN8FKq0C9WRVt1oWAcytWRuYLQ==", "engines": { "node": ">= 0.10" } @@ -17790,7 +17631,8 @@ "@benmaruchu/faker": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/@benmaruchu/faker/-/faker-4.3.0.tgz", - "integrity": "sha512-aT7+EnSqjfDuzM8pxhS7ckoaFLDf/0ThJ86dmzS8+dVHR7p5mi+WpWBsmYpFmTnKAbIeqpiDgCn3DY3zISWbAg==" + "integrity": "sha512-aT7+EnSqjfDuzM8pxhS7ckoaFLDf/0ThJ86dmzS8+dVHR7p5mi+WpWBsmYpFmTnKAbIeqpiDgCn3DY3zISWbAg==", + "dev": true }, "@codetanzania/majifix-common": { "version": "0.17.0", @@ -18778,17 +18620,28 @@ } }, "@lykmapipo/mongoose-common": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-common/-/mongoose-common-0.25.11.tgz", - "integrity": "sha512-pj0jd0xGfEKxX3jd08nLzQQ3fAPKnpaq9ohMqMoiRiBtX5rpILKIRUUT8NYowJFLQo4YMjB0UkWedBtm9+M1mg==", + "version": "0.39.0", + "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-common/-/mongoose-common-0.39.0.tgz", + "integrity": "sha512-Cu1jGXjo/WSeNwQR24hugDOIR9T3R1XMq6gDjOCfN4CIPpPAW7RS2aKKEXoAH4S2VI/T0Ra8l9/92Qrx+BmfDQ==", "requires": { - "@lykmapipo/common": ">=0.25.2", - "@lykmapipo/env": ">=0.12.2", - "@lykmapipo/include": ">=0.2.6", - "async": ">=3.1.0", - "lodash": ">=4.17.15", - "mongoose-schema-jsonschema": ">=1.2.1", - "mongoose-valid8": ">=1.5.13" + "@lykmapipo/common": ">=0.42.5", + "@lykmapipo/env": ">=0.17.25", + "@lykmapipo/mongoose-connection": ">=0.4.0", + "async": ">=3.2.0", + "lodash": ">=4.17.20", + "mongoose-schema-jsonschema": ">=1.4.4", + "mongoose-valid8": ">=1.7.0" + } + }, + "@lykmapipo/mongoose-connection": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-connection/-/mongoose-connection-0.4.0.tgz", + "integrity": "sha512-pVhth3GwtOAEeL+Dr1Dg9a8ouNv2zyXTgz4DRRODbCbcmGFesWi+v212jQvW1gz+bCIRBtCykj888QqiIVto6Q==", + "requires": { + "@lykmapipo/common": ">=0.42.5", + "@lykmapipo/env": ">=0.17.25", + "async": ">=3.2.0", + "lodash": ">=4.17.20" } }, "@lykmapipo/mongoose-exportable": { @@ -18814,12 +18667,14 @@ } }, "@lykmapipo/mongoose-faker": { - "version": "0.9.12", - "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-faker/-/mongoose-faker-0.9.12.tgz", - "integrity": "sha512-jRXs5VwSWQ75hmUuNc+2pWG4Fi5T2UfdXpRZTFBihM90xi3MJiW4pQI+ekScQx1wHwZOSxtTQAWALOk7Nth6pQ==", + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-faker/-/mongoose-faker-0.11.2.tgz", + "integrity": "sha512-wCmXsAwHm1QS0OFveon9xXNB04oH7Zt2XwL+Q8kUHTVlbsWOLiKYSgTgNpNQoEcubBw0ZpS9boY7j3LQnn0aIA==", "requires": { - "@benmaruchu/faker": ">=4.3.0", - "lodash": ">=4.17.15" + "@lykmapipo/common": ">=0.42.5", + "@lykmapipo/mongoose-common": ">=0.39.0", + "faker": ">=5.1.0", + "lodash": ">=4.17.20" } }, "@lykmapipo/mongoose-taggable": { @@ -18837,99 +18692,31 @@ } }, "@lykmapipo/mongoose-test-helpers": { - "version": "0.7.25", - "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-test-helpers/-/mongoose-test-helpers-0.7.25.tgz", - "integrity": "sha512-eKlES3phPvMrszYqa4IY5WVCZCmcxCmTKon7YmV6U6s8v5eRe7l2mZOSYWkUvRk6exLeWdirvd6jQycxFoJ9Ag==", + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-test-helpers/-/mongoose-test-helpers-0.8.6.tgz", + "integrity": "sha512-ucMaqy/xpHFvL1F5TrGRy48IvuKYc7yCuhIsfffdePrP+eX55En/eCQqNXUyv9fD5phbSPoYvSG/3k1JrXOHJQ==", "dev": true, "requires": { "@benmaruchu/faker": ">=4.3.0", - "@lykmapipo/mongoose-common": ">=0.26.4", - "@lykmapipo/mongoose-faker": ">=0.10.3", - "@lykmapipo/test-helpers": ">=0.4.7", - "async": ">=3.1.0", - "lodash": ">=4.17.15", - "sinon": ">=7.5.0", - "sinon-chai": ">=3.3.0", - "sinon-mongoose": ">=2.3.0" - }, - "dependencies": { - "@lykmapipo/include": { - "version": "0.2.10", - "resolved": "https://registry.npmjs.org/@lykmapipo/include/-/include-0.2.10.tgz", - "integrity": "sha512-+sQDfjc0yHCCnKBsurq/MjQd9agaIlqpXueY1mkgKV38nTWXa4+fB5w1LVhOLmRW5WsHj780fd9IIGUTtZOSIg==", - "dev": true, - "requires": { - "lodash": ">=4.17.15" - } - }, - "@lykmapipo/mongoose-common": { - "version": "0.26.4", - "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-common/-/mongoose-common-0.26.4.tgz", - "integrity": "sha512-+1oQyAIXB7O+E0aG16kh2ISnfgeKTPLlOe6ieDo0wPtd/1KohAtCsyOFDxItztZoiPX4avh+Io8XqIN7k4bk8g==", - "dev": true, - "requires": { - "@lykmapipo/common": ">=0.28.5", - "@lykmapipo/env": ">=0.14.7", - "@lykmapipo/include": ">=0.2.10", - "async": ">=3.1.0", - "lodash": ">=4.17.15", - "mongoose-schema-jsonschema": ">=1.2.1", - "mongoose-valid8": ">=1.5.18" - } - }, - "@lykmapipo/mongoose-faker": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/@lykmapipo/mongoose-faker/-/mongoose-faker-0.10.3.tgz", - "integrity": "sha512-p+MBRWlH3XD2SlX2kv1eqhN9RhKKURnTJn6WrReQiLVSrRGRWVutJ/EPzhvLXH7IaG5e4BCOH4vLfrl3eb5/qA==", - "dev": true, - "requires": { - "@benmaruchu/faker": ">=4.3.0", - "@lykmapipo/common": ">=0.28.5", - "@lykmapipo/mongoose-common": ">=0.26.4", - "lodash": ">=4.17.15" - } - }, - "@lykmapipo/phone": { - "version": "0.5.10", - "resolved": "https://registry.npmjs.org/@lykmapipo/phone/-/phone-0.5.10.tgz", - "integrity": "sha512-fVpdq4QYy5tr0d7G+2uT1F2UWajFyzUnt+buAfzwFS3XUAKbgGH0sbTLf068iH6YUtf/rC1m8jBEVNeTJevcvg==", - "dev": true, - "requires": { - "@lykmapipo/common": ">=0.28.5", - "@lykmapipo/env": ">=0.14.7", - "google-libphonenumber": ">=3.2.6", - "lodash": ">=4.17.15" - } - }, - "google-libphonenumber": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/google-libphonenumber/-/google-libphonenumber-3.2.6.tgz", - "integrity": "sha512-6QCQAaKJlSd/1dUqvdQf7zzfb3uiZHsG8yhCfOdCVRfMuPZ/VDIEB47y5SYwjPQJPs7ebfW5jj6PeobB9JJ4JA==", - "dev": true - }, - "mongoose-valid8": { - "version": "1.5.18", - "resolved": "https://registry.npmjs.org/mongoose-valid8/-/mongoose-valid8-1.5.18.tgz", - "integrity": "sha512-m8UP+Jlap9Sh0zYYChHEXVsYGpWu8WbyvvGTPAavb3Xuf8SJ44Jx3UK/bcuc6sQsI+8wp4uRaPfEB4KATTD3lw==", - "dev": true, - "requires": { - "@lykmapipo/env": ">=0.14.7", - "@lykmapipo/phone": ">=0.5.10", - "lodash": ">=4.17.15", - "validator": ">=11.1.0" - } - } + "@lykmapipo/mongoose-common": ">=0.39.0", + "@lykmapipo/mongoose-connection": ">=0.4.0", + "@lykmapipo/mongoose-faker": ">=0.11.2", + "@lykmapipo/test-helpers": ">=0.6.7", + "async": ">=3.2.0", + "lodash": ">=4.17.20", + "sinon": ">=9.2.2", + "sinon-chai": ">=3.5.0" } }, "@lykmapipo/phone": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/@lykmapipo/phone/-/phone-0.5.5.tgz", - "integrity": "sha512-/IhHWY25Rv6DFMyBSyRSkQ7y0a6TakGdutuJCibH0OCFhkuQ/PREFmjshaQYyRvNhCHY8lzJpeiKPebsM1gRlA==", + "version": "0.7.12", + "resolved": "https://registry.npmjs.org/@lykmapipo/phone/-/phone-0.7.12.tgz", + "integrity": "sha512-ZNRjukK2vgkgf56OYWgqK76z73NCsdV5z1oOmcespyi1JVVtNRjfELCCR64aRplUYGFKdMRXXEfrfb8g1/fLGg==", "requires": { - "@lykmapipo/common": ">=0.25.2", - "@lykmapipo/env": ">=0.12.2", - "google-libphonenumber": ">=3.2.3", - "lodash": ">=4.17.15" + "@lykmapipo/common": ">=0.42.9", + "@lykmapipo/env": ">=0.17.29", + "google-libphonenumber": ">=3.2.16", + "lodash": ">=4.17.20" } }, "@lykmapipo/test-helpers": { @@ -18944,74 +18731,6 @@ "nock": ">=13.0.7", "sinon": ">=9.2.4", "sinon-chai": ">=3.5.0" - }, - "dependencies": { - "@sinonjs/samsam": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-5.3.1.tgz", - "integrity": "sha512-1Hc0b1TtyfBu8ixF/tpfSHTVWKwCBLY4QJbkgnE7HcwyvT2xArDxb4K7dMgqRm3szI+LJbzmW/s4xxEhv6hwDg==", - "requires": { - "@sinonjs/commons": "^1.6.0", - "lodash.get": "^4.4.2", - "type-detect": "^4.0.8" - } - }, - "diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" - }, - "nise": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/nise/-/nise-4.0.4.tgz", - "integrity": "sha512-bTTRUNlemx6deJa+ZyoCUTRvH3liK5+N6VQZ4NIw90AgDXY6iPnsqplNFf6STcj+ePk0H/xqxnP75Lr0J0Fq3A==", - "requires": { - "@sinonjs/commons": "^1.7.0", - "@sinonjs/fake-timers": "^6.0.0", - "@sinonjs/text-encoding": "^0.7.1", - "just-extend": "^4.0.2", - "path-to-regexp": "^1.7.0" - } - }, - "path-to-regexp": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", - "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", - "requires": { - "isarray": "0.0.1" - } - }, - "sinon": { - "version": "9.2.4", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-9.2.4.tgz", - "integrity": "sha512-zljcULZQsJxVra28qIAL6ow1Z9tpattkCTEJR4RBP3TGc00FcttsP5pK284Nas5WjMZU5Yzy3kAIp3B3KRf5Yg==", - "requires": { - "@sinonjs/commons": "^1.8.1", - "@sinonjs/fake-timers": "^6.0.1", - "@sinonjs/samsam": "^5.3.1", - "diff": "^4.0.2", - "nise": "^4.0.4", - "supports-color": "^7.1.0" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } } }, "@mrmlnc/readdir-enhanced": { @@ -19066,23 +18785,14 @@ "@sinonjs/commons": "^1.7.0" } }, - "@sinonjs/formatio": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-3.2.1.tgz", - "integrity": "sha512-tsHvOB24rvyvV2+zKMmPkZ7dXX6LSLKZ7aOtXY6Edklp0uRcgGpOsQTTGTcWViFyx4uhWc6GV8QdnALbIbIdeQ==", - "requires": { - "@sinonjs/commons": "^1", - "@sinonjs/samsam": "^3.1.0" - } - }, "@sinonjs/samsam": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-3.3.2.tgz", - "integrity": "sha512-ILO/rR8LfAb60Y1Yfp9vxfYAASK43NFC2mLzpvLUbCQY/Qu8YwReboseu8aheCEkyElZF2L2T9mHcR2bgdvZyA==", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-5.3.1.tgz", + "integrity": "sha512-1Hc0b1TtyfBu8ixF/tpfSHTVWKwCBLY4QJbkgnE7HcwyvT2xArDxb4K7dMgqRm3szI+LJbzmW/s4xxEhv6hwDg==", "requires": { - "@sinonjs/commons": "^1.0.2", - "array-from": "^2.1.1", - "lodash": "^4.17.11" + "@sinonjs/commons": "^1.6.0", + "lodash.get": "^4.4.2", + "type-detect": "^4.0.8" } }, "@sinonjs/text-encoding": { @@ -20636,11 +20346,6 @@ "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" }, - "array-from": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/array-from/-/array-from-2.1.1.tgz", - "integrity": "sha1-z+nYwmYoudxa7MYqn12PHzUsEZU=" - }, "array-ify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", @@ -22179,9 +21884,9 @@ "dev": true }, "diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==" + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==" }, "dir-glob": { "version": "2.2.2", @@ -23963,9 +23668,9 @@ } }, "google-libphonenumber": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/google-libphonenumber/-/google-libphonenumber-3.2.3.tgz", - "integrity": "sha512-8n4JyRptifaIRlHANKRlfqLR8fANm7+Q+1qvDuUsUeStSLtLGTVsZWe1llWDfgWTm1y07cEUyiRuNIv6cs2ovg==" + "version": "3.2.17", + "resolved": "https://registry.npmjs.org/google-libphonenumber/-/google-libphonenumber-3.2.17.tgz", + "integrity": "sha512-T1fBQ3ujlpo4VUe0palZVHxBkY1zsfCShkS3l1rNq/d5C6C1SIijo8aXzgpJeGQFB8Bk+C36o6jhLl05NtfQ3w==" }, "got": { "version": "6.7.1", @@ -25692,11 +25397,6 @@ } } }, - "lolex": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-4.2.0.tgz", - "integrity": "sha512-gKO5uExCXvSm6zbF562EvM+rd1kQDnB9AZBbiQVzf1ZmdDpxUSvpnAaVOP83N/31mRK8Ml8/VE8DMvsAZQ+7wg==" - }, "longest": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/longest/-/longest-2.0.1.tgz", @@ -26408,22 +26108,22 @@ } }, "mongoose-schema-jsonschema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/mongoose-schema-jsonschema/-/mongoose-schema-jsonschema-1.2.1.tgz", - "integrity": "sha512-bV2UusuxLFhmMJahk834XkiEK7DPyfaKI+BQPLVFPqqH/ZmInaecmFMHauo7v4kfu4K1jYkB6sR6zXZ84TFj2Q==", + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/mongoose-schema-jsonschema/-/mongoose-schema-jsonschema-1.4.4.tgz", + "integrity": "sha512-kC56X/tYKSPHJfW84qMbnD0HynmsM9z4CoFBoEzlcUFycxisVWrUylnRIQcqWWVK9A9nRYoTXzkoS4bHNuO+6Q==", "requires": { - "pluralize": "^7.0.0" + "pluralize": "^8.0.0" } }, "mongoose-valid8": { - "version": "1.5.14", - "resolved": "https://registry.npmjs.org/mongoose-valid8/-/mongoose-valid8-1.5.14.tgz", - "integrity": "sha512-tuBx1VlguQP+L1vNJhYPt2XGEAaqTrdXEZ80qYlhGR5RGvA/KcaYlXjDUojb+wT4sOXSeKY74WLVIzWomHQyrg==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/mongoose-valid8/-/mongoose-valid8-1.7.0.tgz", + "integrity": "sha512-uEzHF33on9lAiwcSrS6ngqukBm2YtQS5oc2jkpwZln+PwK/Hj/YpvEvJ9jS9KrMbASokNXWD146415ylF69jlQ==", "requires": { - "@lykmapipo/env": ">=0.12.2", - "@lykmapipo/phone": ">=0.5.4", - "lodash": ">=4.17.15", - "validator": ">=11.1.0" + "@lykmapipo/env": ">=0.17.25", + "@lykmapipo/phone": ">=0.7.10", + "lodash": ">=4.17.20", + "validator": ">=13.5.2" } }, "monotone-convex-hull-2d": { @@ -26539,14 +26239,14 @@ "dev": true }, "nise": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/nise/-/nise-1.5.2.tgz", - "integrity": "sha512-/6RhOUlicRCbE9s+94qCUsyE+pKlVJ5AhIv+jEE7ESKwnbXqulKZ1FYU+XAtHHWE9TinYvAxDUJAb912PwPoWA==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/nise/-/nise-4.0.4.tgz", + "integrity": "sha512-bTTRUNlemx6deJa+ZyoCUTRvH3liK5+N6VQZ4NIw90AgDXY6iPnsqplNFf6STcj+ePk0H/xqxnP75Lr0J0Fq3A==", "requires": { - "@sinonjs/formatio": "^3.2.1", + "@sinonjs/commons": "^1.7.0", + "@sinonjs/fake-timers": "^6.0.0", "@sinonjs/text-encoding": "^0.7.1", "just-extend": "^4.0.2", - "lolex": "^4.1.0", "path-to-regexp": "^1.7.0" }, "dependencies": { @@ -26556,9 +26256,9 @@ "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" }, "path-to-regexp": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.7.0.tgz", - "integrity": "sha1-Wf3g9DW62suhA6hOnTvGTpa5k30=", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", + "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", "requires": { "isarray": "0.0.1" } @@ -27312,9 +27012,9 @@ } }, "pluralize": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-7.0.0.tgz", - "integrity": "sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow==" + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", + "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==" }, "point-in-polygon": { "version": "1.0.1", @@ -28192,27 +27892,29 @@ } }, "sinon": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-7.5.0.tgz", - "integrity": "sha512-AoD0oJWerp0/rY9czP/D6hDTTUYGpObhZjMpd7Cl/A6+j0xBE+ayL/ldfggkBXUs0IkvIiM1ljM8+WkOc5k78Q==", + "version": "9.2.4", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-9.2.4.tgz", + "integrity": "sha512-zljcULZQsJxVra28qIAL6ow1Z9tpattkCTEJR4RBP3TGc00FcttsP5pK284Nas5WjMZU5Yzy3kAIp3B3KRf5Yg==", "requires": { - "@sinonjs/commons": "^1.4.0", - "@sinonjs/formatio": "^3.2.1", - "@sinonjs/samsam": "^3.3.3", - "diff": "^3.5.0", - "lolex": "^4.2.0", - "nise": "^1.5.2", - "supports-color": "^5.5.0" + "@sinonjs/commons": "^1.8.1", + "@sinonjs/fake-timers": "^6.0.1", + "@sinonjs/samsam": "^5.3.1", + "diff": "^4.0.2", + "nise": "^4.0.4", + "supports-color": "^7.1.0" }, "dependencies": { - "@sinonjs/samsam": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-3.3.3.tgz", - "integrity": "sha512-bKCMKZvWIjYD0BLGnNrxVuw4dkWCYsLqFOUWw8VgKF/+5Y+mE7LfHWPIYoDXowH+3a9LsWDMo0uAP8YDosPvHQ==", + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "requires": { - "@sinonjs/commons": "^1.3.0", - "array-from": "^2.1.1", - "lodash": "^4.17.15" + "has-flag": "^4.0.0" } } } @@ -28223,13 +27925,6 @@ "integrity": "sha512-IifbusYiQBpUxxFJkR3wTU68xzBN0+bxCScEaKMjBvAQERg6FnTTc1F17rseLb1tjmkJ23730AXpFI0c47FgAg==", "requires": {} }, - "sinon-mongoose": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/sinon-mongoose/-/sinon-mongoose-2.3.0.tgz", - "integrity": "sha512-d0rrL53wuDDs91GMCFAvQam64IpdVfkaxA4cGLTZfw1d5tTg6+F/D7F080d1n3d1gSHJBZLUf9pGpijC/x7xKQ==", - "dev": true, - "requires": {} - }, "skmeans": { "version": "0.9.7", "resolved": "https://registry.npmjs.org/skmeans/-/skmeans-0.9.7.tgz", @@ -29578,9 +29273,9 @@ } }, "validator": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/validator/-/validator-11.1.0.tgz", - "integrity": "sha512-qiQ5ktdO7CD6C/5/mYV4jku/7qnqzjrxb3C/Q5wR3vGGinHTgJZN/TdFT3ZX4vXhX2R1PXx42fB1cn5W+uJ4lg==" + "version": "13.5.2", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.5.2.tgz", + "integrity": "sha512-mD45p0rvHVBlY2Zuy3F3ESIe1h5X58GPfAtslBjY7EtTqGquZTj+VX/J4RnHWN8FKq0C9WRVt1oWAcytWRuYLQ==" }, "vary": { "version": "1.1.2", diff --git a/package.json b/package.json index 3d61cb24..9945c19e 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "@commitlint/config-conventional": "11.0.0", "@commitlint/travis-cli": "11.0.0", "@lykmapipo/express-test-helpers": "0.9.16", - "@lykmapipo/mongoose-test-helpers": "0.7.25", + "@lykmapipo/mongoose-test-helpers": "0.8.6", "chai": "4.3.0", "commitizen": "4.2.3", "coveralls": "3.1.0",