diff --git a/package.json b/package.json index 4b4c811..e28dbcf 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "travisDeployKey": "./bin/generate_travis_deploy_key" }, "dependencies": { - "cozy-konnector-libs": "4.56.4", + "cozy-konnector-libs": "5.12.1", "fb": "2.0.0" }, "devDependencies": { @@ -43,7 +43,7 @@ "clear": "0.1.0", "configstore": "5.0.1", "cozy-client": "27.26.4", - "cozy-jobs-cli": "1.20.2", + "cozy-jobs-cli": "2.4.4", "cozy-konnector-build": "1.7.0", "figlet": "1.5.2", "minimist": "1.2.8" diff --git a/yarn.lock b/yarn.lock index ebd518d..ba44f44 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2039,6 +2039,22 @@ blueimp-md5@^2.10.0: resolved "https://registry.yarnpkg.com/blueimp-md5/-/blueimp-md5-2.17.0.tgz#f4fcac088b115f7b4045f19f5da59e9d01b1bb96" integrity sha512-x5PKJHY5rHQYaADj6NwPUR2QRCUVSggPzrUKkeENpj871o9l9IefJbO2jkT5UvYykeOK9dx0VmkIo6dZ+vThYw== +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.20.1, body-parser@^1.19.0: version "1.20.1" resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.1.tgz#b1812a8912c195cd371a3ee5e66faa2338a5c668" @@ -2585,16 +2601,17 @@ cozy-client@27.26.4: sift "^6.0.0" url-search-params-polyfill "^8.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" @@ -2609,16 +2626,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" @@ -2672,10 +2690,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.4: + version "2.4.4" + resolved "https://registry.yarnpkg.com/cozy-jobs-cli/-/cozy-jobs-cli-2.4.4.tgz#41b72d1ceed93f268c623abc806bd5bdd8edf161" + integrity sha512-fXXAwfdxbPh4RqQhYCv7sM9+Lev4RW7TQK+mqJhJAA/i3LnlCYC/bmMHh7iWLzGRUYiOemKFjM7VJr1u57PZAg== dependencies: "@pollyjs/adapter-node-http" "5.1.1" "@pollyjs/core" "5.1.1" @@ -2686,11 +2704,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.1" cozy-logger "1.9.0" + node-fetch "2.7.0" open "8.4.0" pretty "2.0.0" strip-json-comments "3.1.1" @@ -2711,18 +2730,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.1, cozy-konnector-libs@^5.12.1: + version "5.12.1" + resolved "https://registry.yarnpkg.com/cozy-konnector-libs/-/cozy-konnector-libs-5.12.1.tgz#06962950df0997fcf1cccd28574c722a81467676" + integrity sha512-9JWYeTzg4l9KTcSlTmtw/9ttWcXo11+dZ2LhN9D/AjQoe8HqmNhKDvbBc52GHBXjZK6GHGFyOX5QjAP2mxzDnQ== 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" @@ -2731,16 +2751,18 @@ 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" - node-fetch "^2.6.1" + node-fetch "^2.7.0" raven "^2.6.4" raw-body "^2.4.1" request "^2.88.2" 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" @@ -2776,19 +2798,10 @@ cozy-stack-client@^27.26.0: mime "^2.4.0" qs "^6.7.0" -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" @@ -2918,6 +2931,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" @@ -4036,6 +4054,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.7.3: version "1.7.3" resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.3.tgz#6c619e4f9c60308c38519498c14fbb10aacebb06" @@ -4917,6 +4946,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, 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" @@ -5575,6 +5611,11 @@ qs@6.11.0, qs@^6.7.0: dependencies: side-channel "^1.0.4" +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.5.2: version "6.5.3" resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad" @@ -5608,6 +5649,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.5.1: version "2.5.1" resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.1.tgz#fe1b1628b181b700215e5fd42389f98b71392857" @@ -6419,7 +6470,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== @@ -6478,7 +6529,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==