diff --git a/package.json b/package.json index 09bd8ee..ebfff15 100644 --- a/package.json +++ b/package.json @@ -36,10 +36,10 @@ "travisDeployKey": "./bin/generate_travis_deploy_key" }, "dependencies": { - "cozy-konnector-libs": "4.56.4" + "cozy-konnector-libs": "5.12.0" }, "devDependencies": { - "cozy-jobs-cli": "1.20.2", + "cozy-jobs-cli": "2.4.3", "cozy-konnector-build": "1.7.0" } } diff --git a/yarn.lock b/yarn.lock index 11a1fb6..f28e6d3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1982,6 +1982,22 @@ blueimp-md5@^2.10.0: resolved "https://registry.yarnpkg.com/blueimp-md5/-/blueimp-md5-2.19.0.tgz#b53feea5498dcb53dc6ec4b823adb84b729c4af0" integrity sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w== +body-parser@1.19.0: + version "1.19.0" + resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.19.0.tgz#96b2709e57c9c4e09a6fd66a8fd979844f69f08a" + integrity sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw== + dependencies: + bytes "3.1.0" + content-type "~1.0.4" + debug "2.6.9" + depd "~1.1.2" + http-errors "1.7.2" + iconv-lite "0.4.24" + on-finished "~2.3.0" + qs "6.7.0" + raw-body "2.4.0" + type-is "~1.6.17" + body-parser@1.19.2, body-parser@^1.19.0: version "1.19.2" resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.19.2.tgz#4714ccd9c157d44797b8b5607d72c0b89952f26e" @@ -2080,6 +2096,11 @@ buffer-from@^1.0.0: resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== +bytes@3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6" + integrity sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg== + bytes@3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" @@ -2452,16 +2473,17 @@ cozy-client-js@^0.20.0: pouchdb-browser "7.0.0" pouchdb-find "7.0.0" -cozy-client@29.2.0: - version "29.2.0" - resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-29.2.0.tgz#d474fd4268311ae7e23af4966e189a83d348a4ab" - integrity sha512-BtWTB+s+YIqPxvvvyrWELVBxVuVfDeI7RFEU2gn+tU4Ef2AKLuciy3hBX14tuHiAB6U+FHYpqCDK2JW8SdNo8w== +cozy-client@45.14.1: + version "45.14.1" + resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-45.14.1.tgz#dc0e77e93b48b0a8a302a6f7dc3217d8a6d046c1" + integrity sha512-K2Fm1J60XFeRyAhfPywSU9+Kj7FHVcBP+B2K/lwWVOS3dob/iCBlrjgpRNjViErY0kVevgemt3oscZjbnr0mdQ== dependencies: "@cozy/minilog" "1.0.0" "@types/jest" "^26.0.20" "@types/lodash" "^4.14.170" btoa "^1.2.1" - cozy-stack-client "^29.2.0" + cozy-stack-client "^45.13.0" + date-fns "2.29.3" json-stable-stringify "^1.0.1" lodash "^4.17.13" microee "^0.0.6" @@ -2476,16 +2498,17 @@ cozy-client@29.2.0: sift "^6.0.0" url-search-params-polyfill "^8.0.0" -cozy-client@^33.2.0: - version "33.2.0" - resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-33.2.0.tgz#276835cce8b230c56631b3cfa98611ea900079d8" - integrity sha512-z+oA0Ri+m4vsAE1Gznab+vSP8j/uEa0zv9+qzB5ORIJvQ0QNHuLBWDoy+0FT4Rz4z+qLqDXxYyVVDBuwps4atQ== +cozy-client@^45.14.1: + version "45.15.0" + resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-45.15.0.tgz#bb95b20f331676ee09e425233c36758cca10ce38" + integrity sha512-/137/DInGvMTitlhqLrtKXa+7Co2dnlbvu1jRwZ9+qaFbKZ1NMCPYi5mBWVcRy2HHqB++ph9HrjXEORVVky0/g== dependencies: "@cozy/minilog" "1.0.0" "@types/jest" "^26.0.20" "@types/lodash" "^4.14.170" btoa "^1.2.1" - cozy-stack-client "^33.2.0" + cozy-stack-client "^45.13.0" + date-fns "2.29.3" json-stable-stringify "^1.0.1" lodash "^4.17.13" microee "^0.0.6" @@ -2525,10 +2548,10 @@ cozy-flags@^2.8.7: dependencies: microee "^0.0.6" -cozy-jobs-cli@1.20.2: - version "1.20.2" - resolved "https://registry.yarnpkg.com/cozy-jobs-cli/-/cozy-jobs-cli-1.20.2.tgz#1090bc5d1ad1f15695d17734618c8326d41a437e" - integrity sha512-IujczIbEdI3BaWB8vakV+EjGMzLGqrPVtMfB2Ie6ldJ/04rs9sVz975hlSPKkxnl+ziDkC4245pDxnsgpzYSIA== +cozy-jobs-cli@2.4.3: + version "2.4.3" + resolved "https://registry.yarnpkg.com/cozy-jobs-cli/-/cozy-jobs-cli-2.4.3.tgz#236dc335ae5903c50a724e2e7a3c13cf5c02c16b" + integrity sha512-R1opCWcooYyQ6m6o6kK7WStpbP/sdk3Z0J9ekXq6U4GvzSxC+EY6ZHzvkr+57Ylfx7NEOAvzoB0yOJYLvlpdqg== dependencies: "@pollyjs/adapter-node-http" "5.1.1" "@pollyjs/core" "5.1.1" @@ -2539,11 +2562,12 @@ cozy-jobs-cli@1.20.2: cheerio "1.0.0-rc.12" cli-highlight "2.1.11" commander "7.2.0" - cozy-client "29.2.0" + cozy-client "45.14.1" cozy-device-helper "^2.1.0" cozy-flags "^2.8.7" - cozy-konnector-libs "^4.56.4" + cozy-konnector-libs "^5.12.0" cozy-logger "1.9.0" + node-fetch "2.7.0" open "8.4.0" pretty "2.0.0" strip-json-comments "3.1.1" @@ -2564,18 +2588,19 @@ cozy-konnector-build@1.7.0: webpack "5.76.0" webpack-cli "4.9.2" -cozy-konnector-libs@4.56.4, cozy-konnector-libs@^4.56.4: - version "4.56.4" - resolved "https://registry.yarnpkg.com/cozy-konnector-libs/-/cozy-konnector-libs-4.56.4.tgz#139fcda7569173be8c585b141132ea85e260fc28" - integrity sha512-GSrOxKkpGSkBCAqVcdAht3+7Tv0l6cw+GtwYOCPl3YiCvcN5PzxfiaXndBXu9VDNHTgNFmAKMNdJVNDedlRKuQ== +cozy-konnector-libs@5.12.0, cozy-konnector-libs@^5.12.0: + version "5.12.0" + resolved "https://registry.yarnpkg.com/cozy-konnector-libs/-/cozy-konnector-libs-5.12.0.tgz#44d714b67c81682fb6b6577b837a82df3905864e" + integrity sha512-ZrfjuMMaFe7S+y8c5DNfwhuN3VwYxbD4hxQvwM4rzDGZrk3y3r2nG5hX1yyPtw5aQ83y2xCmtMb2nphWVeFRXw== dependencies: babel-runtime "^6.26.0" bluebird "^3.7.2" bluebird-retry "^0.11.0" + body-parser "1.19.0" btoa "1.2.1" cheerio "^1.0.0-rc.9" classificator "^0.3.3" - cozy-client "^33.2.0" + cozy-client "^45.14.1" cozy-client-js "^0.20.0" cozy-device-helper "^2.1.0" cozy-doctypes "^1.83.8" @@ -2584,6 +2609,7 @@ cozy-konnector-libs@4.56.4, cozy-konnector-libs@^4.56.4: date-fns "^2.22.1" file-type "^16.5.0" geco "git+https://github.com/konnectors/geco.git#0.11.2" + lodash "^4.17.21" lodash-id "^0.14.0" lowdb "^1.0.0" mime-types "^2.1.31" @@ -2594,6 +2620,7 @@ cozy-konnector-libs@4.56.4, cozy-konnector-libs@^4.56.4: request-debug "^0.2.0" request-promise "^4.2.6" strip-json-comments "^3.1.1" + tough-cookie "^2.5.0" cozy-logger@1.9.0, cozy-logger@^1.9.0: version "1.9.0" @@ -2611,19 +2638,10 @@ cozy-logger@^1.8.0: chalk "^2.4.2" json-stringify-safe "5.0.1" -cozy-stack-client@^29.2.0: - version "29.2.0" - resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-29.2.0.tgz#48e9d043cc869c59155979bb1666e4455d5dd0e4" - integrity sha512-QD8Bn/t9gLcKdxc0L65zGed6L5KdP/tNt4z63XrAVR2HBuqJcrlt6NucP7TH2FJYOj46mp9fW7iODk9hRD03UA== - dependencies: - detect-node "^2.0.4" - mime "^2.4.0" - qs "^6.7.0" - -cozy-stack-client@^33.2.0: - version "33.2.0" - resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-33.2.0.tgz#97b80514d68da2b6392f74d280f9867165b7d606" - integrity sha512-50vTnZvjCEYGx5nN+2rLhf63JZICNq9bXKY0QUFmfuMBfOTdD4EGw+EVA0YGxQYaz3E3FLrmMuIw5TtLzCDgcA== +cozy-stack-client@^45.13.0: + version "45.13.0" + resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-45.13.0.tgz#394b21a153b752be99ac6c79d073159fd024a4f4" + integrity sha512-ruigDMH6XB1Pxa+e3doAMjXihgKSdNZpNPlEcpd7l8MfHazUaHVs/D8Kyop1n+VGM/4va2DU1c1nE7ainT7+jw== dependencies: detect-node "^2.0.4" mime "^2.4.0" @@ -2753,6 +2771,11 @@ dashdash@^1.12.0: dependencies: assert-plus "^1.0.0" +date-fns@2.29.3: + version "2.29.3" + resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.29.3.tgz#27402d2fc67eb442b511b70bbdf98e6411cd68a8" + integrity sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA== + date-fns@^1.30.1: version "1.30.1" resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-1.30.1.tgz#2e71bf0b119153dbb4cc4e88d9ea5acfb50dc05c" @@ -3745,6 +3768,17 @@ htmlparser2@^8.0.1: domutils "^3.0.1" entities "^4.3.0" +http-errors@1.7.2: + version "1.7.2" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.2.tgz#4f5029cf13239f31036e5b2e55292bcfbcc85c8f" + integrity sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg== + dependencies: + depd "~1.1.2" + inherits "2.0.3" + setprototypeof "1.1.1" + statuses ">= 1.5.0 < 2" + toidentifier "1.0.0" + http-errors@1.8.1: version "1.8.1" resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.8.1.tgz#7c3f28577cbc8a207388455dbd62295ed07bd68c" @@ -4527,6 +4561,13 @@ node-fetch@2.6.7, node-fetch@^2.0.0, node-fetch@^2.6.1: dependencies: whatwg-url "^5.0.0" +node-fetch@2.7.0: + version "2.7.0" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" + integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== + dependencies: + whatwg-url "^5.0.0" + node-polyglot@2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/node-polyglot/-/node-polyglot-2.4.2.tgz#e4876e6710b70dc00b1351a9a68de4af47a5d61d" @@ -5088,6 +5129,11 @@ q@^1.1.2: resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" integrity sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc= +qs@6.7.0: + version "6.7.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.7.0.tgz#41dc1a015e3d581f1621776be31afb2876a9b1bc" + integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ== + qs@6.9.7: version "6.9.7" resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.7.tgz#4610846871485e1e048f44ae3b94033f0e675afe" @@ -5138,6 +5184,16 @@ raven@^2.6.4: timed-out "4.0.1" uuid "3.3.2" +raw-body@2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.4.0.tgz#a1ce6fb9c9bc356ca52e89256ab59059e13d0332" + integrity sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q== + dependencies: + bytes "3.1.0" + http-errors "1.7.2" + iconv-lite "0.4.24" + unpipe "1.0.0" + raw-body@2.4.3: version "2.4.3" resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.4.3.tgz#8f80305d11c2a0a545c2d9d89d7a0286fcead43c" @@ -5523,6 +5579,11 @@ set-cookie-parser@^2.3.5: resolved "https://registry.yarnpkg.com/set-cookie-parser/-/set-cookie-parser-2.4.8.tgz#d0da0ed388bc8f24e706a391f9c9e252a13c58b2" integrity sha512-edRH8mBKEWNVIVMKejNnuJxleqYE/ZSdcT8/Nem9/mmosx12pctd80s2Oy00KNZzrogMZS5mauK2/ymL1bvlvg== +setprototypeof@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.1.tgz#7e95acb24aa92f5885e0abef5ba131330d4ae683" + integrity sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw== + setprototypeof@1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" @@ -5877,6 +5938,11 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" +toidentifier@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553" + integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw== + toidentifier@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" @@ -5896,7 +5962,7 @@ token-types@^4.1.1: dependencies: bolgia ">=2.7.4" -tough-cookie@^2.3.1, tough-cookie@^2.3.3, tough-cookie@~2.5.0: +tough-cookie@^2.3.1, tough-cookie@^2.3.3, tough-cookie@^2.5.0, tough-cookie@~2.5.0: version "2.5.0" resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== @@ -5950,7 +6016,7 @@ type-fest@^0.20.2: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== -type-is@~1.6.18: +type-is@~1.6.17, type-is@~1.6.18: version "1.6.18" resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==