From 7b271af344b1dec17707c231d8eb957e89d14c69 Mon Sep 17 00:00:00 2001 From: Dave Sag Date: Tue, 29 Sep 2020 12:58:52 +1000 Subject: [PATCH 1/4] n/a updated development dependencies --- package-lock.json | 38 +++++++++++++++++++------------------- package.json | 6 +++--- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index aa8e717..baaaa60 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "sequelize-test-helpers", - "version": "1.2.3", + "version": "1.3.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -2718,9 +2718,9 @@ } }, "eslint": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.9.0.tgz", - "integrity": "sha512-V6QyhX21+uXp4T+3nrNfI3hQNBDa/P8ga7LoQOenwrlEFXrEnUEE+ok1dMtaS3b6rmLXhT1TkTIsG75HMLbknA==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.10.0.tgz", + "integrity": "sha512-BDVffmqWl7JJXqCjAK6lWtcQThZB/aP1HXSH1JKwGwv0LQEdvpR7qzNrUT487RM39B5goWuboFad5ovMBmD8yA==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", @@ -2731,7 +2731,7 @@ "debug": "^4.0.1", "doctrine": "^3.0.0", "enquirer": "^2.3.5", - "eslint-scope": "^5.1.0", + "eslint-scope": "^5.1.1", "eslint-utils": "^2.1.0", "eslint-visitor-keys": "^1.3.0", "espree": "^7.3.0", @@ -2939,9 +2939,9 @@ } }, "eslint-plugin-import": { - "version": "2.22.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.22.0.tgz", - "integrity": "sha512-66Fpf1Ln6aIS5Gr/55ts19eUuoDhAbZgnr6UxK5hbDx6l/QgQgx61AePq+BV4PP2uXQFClgMVzep5zZ94qqsxg==", + "version": "2.22.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.22.1.tgz", + "integrity": "sha512-8K7JjINHOpH64ozkAhpT3sd+FswIZTfMZTjdx052pnWrgRCVfp8op9tbjpAk3DdUeI/Ba4C8OjdC0r90erHEOw==", "dev": true, "requires": { "array-includes": "^3.1.1", @@ -2949,7 +2949,7 @@ "contains-path": "^0.1.0", "debug": "^2.6.9", "doctrine": "1.5.0", - "eslint-import-resolver-node": "^0.3.3", + "eslint-import-resolver-node": "^0.3.4", "eslint-module-utils": "^2.6.0", "has": "^1.0.3", "minimatch": "^3.0.4", @@ -6714,9 +6714,9 @@ "dev": true }, "snyk": { - "version": "1.401.0", - "resolved": "https://registry.npmjs.org/snyk/-/snyk-1.401.0.tgz", - "integrity": "sha512-8D9M1JcCegAKcsUmyn/9uXTIJwEEofYMSLpY86yDKWdk1ZvgSjM264GHWlJf0B29TtGPKqWbqSm8aGUdvJQAWA==", + "version": "1.402.0", + "resolved": "https://registry.npmjs.org/snyk/-/snyk-1.402.0.tgz", + "integrity": "sha512-9MXsezqolfdzc0YJgHuFdRW+Ac44HoJ9E5stEMsKQZVTKVqyG5tOD4qKJMlmuMAVX0PUveAIhDWkpUZ0L5vmjQ==", "dev": true, "requires": { "@snyk/cli-interface": "2.9.2", @@ -6742,7 +6742,7 @@ "semver": "^6.0.0", "snyk-config": "3.1.1", "snyk-cpp-plugin": "2.0.0", - "snyk-docker-plugin": "3.23.0", + "snyk-docker-plugin": "3.24.0", "snyk-go-plugin": "1.16.2", "snyk-gradle-plugin": "3.6.3", "snyk-module": "3.1.0", @@ -7021,9 +7021,9 @@ } }, "snyk-docker-plugin": { - "version": "3.23.0", - "resolved": "https://registry.npmjs.org/snyk-docker-plugin/-/snyk-docker-plugin-3.23.0.tgz", - "integrity": "sha512-krMQ7hw+7j+DFJnSPMfPHry2BN8nZDtK8hI8PJf6U82C1s+nVARD8pD/PFhisBQUGLBqX8nNSI9FSWNP/seMaA==", + "version": "3.24.0", + "resolved": "https://registry.npmjs.org/snyk-docker-plugin/-/snyk-docker-plugin-3.24.0.tgz", + "integrity": "sha512-ZKYNZkfCv90/SzBvZcQlEbfJ5ctOvfltZ5Km/z6N5IF+Peetos6VRwxcX8Jenq204ec0bTnBQ0h0OpTIGkMQnQ==", "dev": true, "requires": { "@snyk/rpm-parser": "^2.0.0", @@ -7792,9 +7792,9 @@ } }, "spdx-license-ids": { - "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==", + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.6.tgz", + "integrity": "sha512-+orQK83kyMva3WyPf59k1+Y525csj5JejicWut55zeTWANuN17qSiSLUXWtzHeNWORSvT7GLDJ/E/XiIWoXBTw==", "dev": true }, "split-ca": { diff --git a/package.json b/package.json index be5b638..2bfe3b0 100644 --- a/package.json +++ b/package.json @@ -57,10 +57,10 @@ "ajv": "^6.12.5", "chai": "^4.2.0", "chai-as-promised": "^7.1.1", - "eslint": "^7.9.0", + "eslint": "^7.10.0", "eslint-config-prettier": "^6.12.0", "eslint-config-standard": "^14.1.1", - "eslint-plugin-import": "^2.22.0", + "eslint-plugin-import": "^2.22.1", "eslint-plugin-mocha": "^8.0.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^3.1.4", @@ -74,7 +74,7 @@ "proxyquire": "^2.1.3", "sinon": "^9.0.3", "sinon-chai": "^3.5.0", - "snyk": "^1.401.0" + "snyk": "^1.402.0" }, "peerDependencies": { "chai": ">= 4", From 0afc9683dfa1293cb05e76a01ee02db8dbdf51eb Mon Sep 17 00:00:00 2001 From: Gerhard Mudde Date: Tue, 29 Sep 2020 09:47:50 +0200 Subject: [PATCH 2/4] Add support for scopes --- src/sequelize.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sequelize.js b/src/sequelize.js index a25fe3d..f990ae6 100644 --- a/src/sequelize.js +++ b/src/sequelize.js @@ -42,6 +42,7 @@ const sequelize = { Object.keys(modelDefn).forEach(attachProp) model.prototype.indexes = metaData.indexes + model.prototype.scopes = metaData.scopes return model } } From 35111f7155d166656d25af9b1b8ae26ddc14740e Mon Sep 17 00:00:00 2001 From: Dave Sag Date: Wed, 30 Sep 2020 07:12:02 +1000 Subject: [PATCH 3/4] n/a updated snyk and sinon --- package-lock.json | 36 ++++++++++++++++++------------------ package.json | 4 ++-- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/package-lock.json b/package-lock.json index baaaa60..b9d58c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4567,9 +4567,9 @@ } }, "just-extend": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-4.1.0.tgz", - "integrity": "sha512-ApcjaOdVTJ7y4r08xI5wIqpvwS48Q0PBG4DJROcEkH1f8MdAiNFyFxz3xoL0LWAVwjrwPYZdVHHxhRHcx/uGLA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-4.1.1.tgz", + "integrity": "sha512-aWgeGFW67BP3e5181Ep1Fv2v8z//iBJfrvyTnq8wG86vEESwmonn1zPBJ0VfmT9CJq2FIT0VsETtrNFm2a+SHA==", "dev": true }, "keyv": { @@ -5737,9 +5737,9 @@ } }, "open": { - "version": "7.2.1", - "resolved": "https://registry.npmjs.org/open/-/open-7.2.1.tgz", - "integrity": "sha512-xbYCJib4spUdmcs0g/2mK1nKo/jO2T7INClWd/beL7PFkXRWgr8B23ssDHX/USPn2M2IjDR5UdpYs6I67SnTSA==", + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/open/-/open-7.3.0.tgz", + "integrity": "sha512-mgLwQIx2F/ye9SmbrUkurZCnkoXyXyu9EbHtJZrICjVAJfyMArdHp3KkixGdZx1ZHFPNIwl0DDM1dFFqXbTLZw==", "dev": true, "requires": { "is-docker": "^2.0.0", @@ -6653,9 +6653,9 @@ "dev": true }, "sinon": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-9.0.3.tgz", - "integrity": "sha512-IKo9MIM111+smz9JGwLmw5U1075n1YXeAq8YeSFlndCLhAL5KGn6bLgu7b/4AYHTV/LcEMcRm2wU2YiL55/6Pg==", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-9.1.0.tgz", + "integrity": "sha512-9zQShgaeylYH6qtsnNXlTvv0FGTTckuDfHBi+qhgj5PvW2r2WslHZpgc3uy3e/ZAoPkqaOASPi+juU6EdYRYxA==", "dev": true, "requires": { "@sinonjs/commons": "^1.7.2", @@ -6674,9 +6674,9 @@ "dev": true }, "supports-color": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", - "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -6714,9 +6714,9 @@ "dev": true }, "snyk": { - "version": "1.402.0", - "resolved": "https://registry.npmjs.org/snyk/-/snyk-1.402.0.tgz", - "integrity": "sha512-9MXsezqolfdzc0YJgHuFdRW+Ac44HoJ9E5stEMsKQZVTKVqyG5tOD4qKJMlmuMAVX0PUveAIhDWkpUZ0L5vmjQ==", + "version": "1.404.0", + "resolved": "https://registry.npmjs.org/snyk/-/snyk-1.404.0.tgz", + "integrity": "sha512-9PhhvGte85PCSzEaHkrr6L51Xbd+cR066dKz2eiX8wFZEVEkzZd/APPV27uIgCl0CdO9zlwO5Ufx0G6gef1Utg==", "dev": true, "requires": { "@snyk/cli-interface": "2.9.2", @@ -8329,9 +8329,9 @@ "dev": true }, "update-notifier": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.1.tgz", - "integrity": "sha512-9y+Kds0+LoLG6yN802wVXoIfxYEwh3FlZwzMwpCZp62S2i1/Jzeqb9Eeeju3NSHccGGasfGlK5/vEHbAifYRDg==", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.3.tgz", + "integrity": "sha512-Yld6Z0RyCYGB6ckIjffGOSOmHXj1gMeE7aROz4MG+XMkmixBX4jUngrGXNYz7wPKBmtoD4MnBa2Anu7RSKht/A==", "dev": true, "requires": { "boxen": "^4.2.0", diff --git a/package.json b/package.json index 2bfe3b0..0d367b5 100644 --- a/package.json +++ b/package.json @@ -72,9 +72,9 @@ "nyc": "^15.1.0", "prettier": "^2.1.2", "proxyquire": "^2.1.3", - "sinon": "^9.0.3", + "sinon": "^9.1.0", "sinon-chai": "^3.5.0", - "snyk": "^1.402.0" + "snyk": "^1.404.0" }, "peerDependencies": { "chai": ">= 4", From 1d764286e61177f4eb845a117f535fd995b30893 Mon Sep 17 00:00:00 2001 From: Dave Sag Date: Wed, 30 Sep 2020 07:35:59 +1000 Subject: [PATCH 4/4] 1.3.1 bumped version and added contributors --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0d367b5..22fe67d 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,11 @@ { "name": "sequelize-test-helpers", - "version": "1.3.0", + "version": "1.3.1", "description": "A collection of utilities to help with unit-testing sequelize models", "author": "Dave Sag ", + "contributors": [ + "gerhardkubion (https://github.com/gerhardkubion)" + ], "type": "commonjs", "license": "MIT", "funding": {