diff --git a/package.json b/package.json index 2f0d135..9f8394b 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "@nuxtjs/moment": "^1.1.0", "@nuxtjs/sentry": "^5.1.7", "@nuxtjs/vuetify": "^1.12.3", + "@snyk/protect": "^1.935.0", "@u3u/vue-hooks": "^2.0.1", "@vue/apollo-composable": "^4.0.0-alpha.17", "@vue/apollo-option": "^4.0.0-alpha.17", @@ -33,7 +34,6 @@ "node-sass": "^7.0.1", "nuxt": "^2.15.8", "sass-loader": "^7.0.3", - "snyk": "^1.935.0", "vue": "^2.6.14", "vue-numeral-filter": "^2.2.0", "vue-server-renderer": "^2.6.14", @@ -48,12 +48,12 @@ "generate-gql": "graphql-codegen", "precommit": "yarn lint", "prepush": "yarn test", + "prepare": "yarn run snyk-protect", + "snyk-protect": "snyk-protect", "start": "node server/index.js", "start:ci": "NODE_ENV=production CI=true node server/index.js", "test:cypress": "cypress run", - "wait": "wait-on http://localhost:3000", - "snyk-protect": "snyk protect", - "prepublish": "yarn run snyk-protect" + "wait": "wait-on http://localhost:3000" }, "devDependencies": { "@babel/runtime-corejs3": "^7.18.0", diff --git a/yarn.lock b/yarn.lock index a751fe3..c803656 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2450,6 +2450,11 @@ resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea" integrity sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ== +"@snyk/protect@^1.935.0": + version "1.935.0" + resolved "https://registry.yarnpkg.com/@snyk/protect/-/protect-1.935.0.tgz#cbb4403429ca73a0f5d46508007ad89d32b62097" + integrity sha512-dgHj6qIoq7iSeUOyCKv1XyOJjbmiQV/aJggORKN3eG76kuiQFE1UuL2zyK00kiS9aPA0ZxRXSekWuJEp5FC1SQ== + "@szmarczak/http-timer@^1.1.2": version "1.1.2" resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421" @@ -11944,11 +11949,6 @@ snapdragon@^0.8.1: source-map-resolve "^0.5.0" use "^3.1.0" -snyk@^1.935.0: - version "1.935.0" - resolved "https://registry.yarnpkg.com/snyk/-/snyk-1.935.0.tgz#4c5a7eecf71cb910c4b90e6f7b73c726ae8a122f" - integrity sha512-KStOS0UdEh/Qi9ac4uCcCrXf8hrcxBTgVW9xST/+/XoLh87xa49LYkyOuFOotZi1EGHTfQWRrd34nKLeWu3E8A== - socks-proxy-agent@^6.0.0: version "6.1.1" resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-6.1.1.tgz#e664e8f1aaf4e1fb3df945f09e3d94f911137f87"