diff --git a/package.json b/package.json index 25e071d..38f4468 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@nestjs/websockets": "^7.0.7", "@nestjsx/crud": "^4.4.2", "@nestjsx/crud-typeorm": "^4.4.2", - "apollo-server-express": "^2.9.3", + "apollo-server-express": "^2.14.2", "cache-manager": "^2.10.0", "class-transformer": "^0.2.3", "class-validator": "^0.10.0", diff --git a/yarn.lock b/yarn.lock index 4c3ed12..fabc8d9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -867,7 +867,7 @@ "@types/node" "*" "@types/range-parser" "*" -"@types/express@*": +"@types/express@*", "@types/express@4.17.4": version "4.17.4" resolved "https://registry.npm.taobao.org/@types/express/download/@types/express-4.17.4.tgz#e78bf09f3f530889575f4da8a94cd45384520aac" integrity sha1-54vwnz9TCIlXX02oqUzUU4RSCqw= @@ -886,15 +886,6 @@ "@types/express-serve-static-core" "*" "@types/serve-static" "*" -"@types/express@4.17.2": - version "4.17.2" - resolved "https://registry.npm.taobao.org/@types/express/download/@types/express-4.17.2.tgz#a0fb7a23d8855bac31bc01d5a58cadd9b2173e6c" - integrity sha1-oPt6I9iFW6wxvAHVpYyt2bIXPmw= - dependencies: - "@types/body-parser" "*" - "@types/express-serve-static-core" "*" - "@types/serve-static" "*" - "@types/fs-capacitor@*": version "2.0.0" resolved "https://registry.npm.taobao.org/@types/fs-capacitor/download/@types/fs-capacitor-2.0.0.tgz?cache=0&sync_timestamp=1580842840371&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Ffs-capacitor%2Fdownload%2F%40types%2Ffs-capacitor-2.0.0.tgz#17113e25817f584f58100fb7a08eed288b81956e" @@ -1134,10 +1125,10 @@ resolved "https://registry.npm.taobao.org/@types/validator/download/@types/validator-10.11.3.tgz?cache=0&sync_timestamp=1580873460639&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fvalidator%2Fdownload%2F%40types%2Fvalidator-10.11.3.tgz#945799bef24a953c5bc02011ca8ad79331a3ef25" integrity sha1-lFeZvvJKlTxbwCARyorXkzGj7yU= -"@types/ws@^6.0.0": - version "6.0.4" - resolved "https://registry.npm.taobao.org/@types/ws/download/@types/ws-6.0.4.tgz#7797707c8acce8f76d8c34b370d4645b70421ff1" - integrity sha1-d5dwfIrM6PdtjDSzcNRkW3BCH/E= +"@types/ws@^7.0.0": + version "7.2.5" + resolved "https://registry.yarnpkg.com/@types/ws/-/ws-7.2.5.tgz#513f28b04a1ea1aa9dc2cad3f26e8e37c88aae49" + integrity sha512-4UEih9BI1nBKii385G9id1oFrSkLcClbwtDfcYj8HJLQqZVAtb/42vXVrYvRWCcufNF/a+rZD3MxNwghA7UmCg== dependencies: "@types/node" "*" @@ -1325,21 +1316,21 @@ anymatch@^3.0.3, anymatch@~3.1.1: normalize-path "^3.0.0" picomatch "^2.0.4" -apollo-cache-control@^0.9.0: - version "0.9.0" - resolved "https://registry.npm.taobao.org/apollo-cache-control/download/apollo-cache-control-0.9.0.tgz#43d2eec16d40248683f46b9b28937a89ad3b5c54" - integrity sha1-Q9LuwW1AJIaD9GubKJN6ia07XFQ= +apollo-cache-control@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/apollo-cache-control/-/apollo-cache-control-0.11.0.tgz#7075492d04c5424e7c6769380b503e8f75b39d61" + integrity sha512-dmRnQ9AXGw2SHahVGLzB/p4UW/taFBAJxifxubp8hqY5p9qdlSu4MPRq8zvV2ULMYf50rBtZyC4C+dZLqmHuHQ== dependencies: - apollo-server-env "^2.4.3" - graphql-extensions "^0.11.0" + apollo-server-env "^2.4.4" + apollo-server-plugin-base "^0.9.0" -apollo-datasource@^0.7.0: - version "0.7.0" - resolved "https://registry.npm.taobao.org/apollo-datasource/download/apollo-datasource-0.7.0.tgz?cache=0&sync_timestamp=1583931418090&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fapollo-datasource%2Fdownload%2Fapollo-datasource-0.7.0.tgz#2a6d82edb2eba21b4ddf21877009ba39ff821945" - integrity sha1-Km2C7bLrohtN3yGHcAm6Of+CGUU= +apollo-datasource@^0.7.1: + version "0.7.1" + resolved "https://registry.yarnpkg.com/apollo-datasource/-/apollo-datasource-0.7.1.tgz#0b06da999ace50b7f5fe509f2a03f7de97974334" + integrity sha512-h++/jQAY7GA+4TBM+7ezvctFmmGNLrAPf51KsagZj+NkT9qvxp585rdsuatynVbSl59toPK2EuVmc6ilmQHf+g== dependencies: apollo-server-caching "^0.5.1" - apollo-server-env "^2.4.3" + apollo-server-env "^2.4.4" apollo-engine-reporting-protobuf@^0.4.4: version "0.4.4" @@ -1348,19 +1339,27 @@ apollo-engine-reporting-protobuf@^0.4.4: dependencies: "@apollo/protobufjs" "^1.0.3" -apollo-engine-reporting@^1.7.0: - version "1.7.0" - resolved "https://registry.npm.taobao.org/apollo-engine-reporting/download/apollo-engine-reporting-1.7.0.tgz#34a54ef96da5cfe1dea3a4fdf02768d1cc7e154f" - integrity sha1-NKVO+W2lz+Heo6T98Cdo0cx+FU8= +apollo-engine-reporting-protobuf@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/apollo-engine-reporting-protobuf/-/apollo-engine-reporting-protobuf-0.5.1.tgz#b6e66e6e382f9bcdc2ac8ed168b047eb1470c1a8" + integrity sha512-TSfr9iAaInV8dhXkesdcmqsthRkVcJkzznmiM+1Ob/GScK7r6hBYCjVDt2613EHAg9SUzTOltIKlGD+N+GJRUw== dependencies: - apollo-engine-reporting-protobuf "^0.4.4" + "@apollo/protobufjs" "^1.0.3" + +apollo-engine-reporting@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/apollo-engine-reporting/-/apollo-engine-reporting-2.0.0.tgz#af007b4a8a481fa97baef0eac51a7824f1ec3310" + integrity sha512-FvNwORsh3nxEfvQqd2xbd468a0q/R3kYar/Bk6YQdBX5qwqUhqmOcOSxLFk8Zb77HpwHij5CPpPWJb53TU1zcA== + dependencies: + apollo-engine-reporting-protobuf "^0.5.1" apollo-graphql "^0.4.0" apollo-server-caching "^0.5.1" - apollo-server-env "^2.4.3" - apollo-server-errors "^2.4.0" - apollo-server-types "^0.3.0" + apollo-server-env "^2.4.4" + apollo-server-errors "^2.4.1" + apollo-server-plugin-base "^0.9.0" + apollo-server-types "^0.5.0" async-retry "^1.2.1" - graphql-extensions "^0.11.0" + uuid "^8.0.0" apollo-env@^0.6.1, apollo-env@^0.6.2: version "0.6.2" @@ -1406,29 +1405,30 @@ apollo-server-caching@^0.5.1: dependencies: lru-cache "^5.0.0" -apollo-server-core@^2.11.0: - version "2.11.0" - resolved "https://registry.npm.taobao.org/apollo-server-core/download/apollo-server-core-2.11.0.tgz#91a055ce6cf12a8b43e8a4811d465d97fa324eac" - integrity sha1-kaBVzmzxKotD6KSBHUZdl/oyTqw= +apollo-server-core@^2.11.0, apollo-server-core@^2.14.2: + version "2.14.2" + resolved "https://registry.yarnpkg.com/apollo-server-core/-/apollo-server-core-2.14.2.tgz#4ab055b96b8be7821a726c81e8aa412deb7f3644" + integrity sha512-8G6Aoz+k+ecuQco1KNLFbMrxhe/8uR4AOaOYEvT/N5m/6lrkPYzvBAxbpRIub5AxEwpBPcIrI452rR3PD9DItA== dependencies: "@apollographql/apollo-tools" "^0.4.3" "@apollographql/graphql-playground-html" "1.6.24" "@types/graphql-upload" "^8.0.0" - "@types/ws" "^6.0.0" - apollo-cache-control "^0.9.0" - apollo-datasource "^0.7.0" - apollo-engine-reporting "^1.7.0" + "@types/ws" "^7.0.0" + apollo-cache-control "^0.11.0" + apollo-datasource "^0.7.1" + apollo-engine-reporting "^2.0.0" apollo-server-caching "^0.5.1" - apollo-server-env "^2.4.3" - apollo-server-errors "^2.4.0" - apollo-server-plugin-base "^0.7.0" - apollo-server-types "^0.3.0" - apollo-tracing "^0.9.0" + apollo-server-env "^2.4.4" + apollo-server-errors "^2.4.1" + apollo-server-plugin-base "^0.9.0" + apollo-server-types "^0.5.0" + apollo-tracing "^0.11.0" fast-json-stable-stringify "^2.0.0" - graphql-extensions "^0.11.0" + graphql-extensions "^0.12.2" graphql-tag "^2.9.2" graphql-tools "^4.0.0" graphql-upload "^8.0.2" + loglevel "^1.6.7" sha.js "^2.4.11" subscriptions-transport-ws "^0.9.11" ws "^6.0.0" @@ -1441,24 +1441,32 @@ apollo-server-env@^2.4.3: node-fetch "^2.1.2" util.promisify "^1.0.0" -apollo-server-errors@^2.4.0: - version "2.4.0" - resolved "https://registry.npm.taobao.org/apollo-server-errors/download/apollo-server-errors-2.4.0.tgz#3096db02b6ae8d434a6b2678f74eddaad8b98452" - integrity sha1-MJbbAraujUNKayZ4907dqti5hFI= +apollo-server-env@^2.4.4: + version "2.4.4" + resolved "https://registry.yarnpkg.com/apollo-server-env/-/apollo-server-env-2.4.4.tgz#12d2d0896dcb184478cba066c7a683ab18689ca1" + integrity sha512-c2oddDS3lwAl6QNCIKCLEzt/dF9M3/tjjYRVdxOVN20TidybI7rAbnT4QOzf4tORnGXtiznEAvr/Kc9ahhKADg== + dependencies: + node-fetch "^2.1.2" + util.promisify "^1.0.0" + +apollo-server-errors@^2.4.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/apollo-server-errors/-/apollo-server-errors-2.4.1.tgz#16ad49de6c9134bfb2b7dede9842e73bb239dbe2" + integrity sha512-7oEd6pUxqyWYUbQ9TA8tM0NU/3aGtXSEibo6+txUkuHe7QaxfZ2wHRp+pfT1LC1K3RXYjKj61/C2xEO19s3Kdg== -apollo-server-express@^2.9.3: - version "2.11.0" - resolved "https://registry.npm.taobao.org/apollo-server-express/download/apollo-server-express-2.11.0.tgz#ef59a15f6f9ba8a8fb90cfa8b7c4c436be6e84c0" - integrity sha1-71mhX2+bqKj7kM+ot8TENr5uhMA= +apollo-server-express@^2.14.2: + version "2.14.2" + resolved "https://registry.yarnpkg.com/apollo-server-express/-/apollo-server-express-2.14.2.tgz#662dfeb9c794c1eca59dd93e57e74487a8195ae6" + integrity sha512-iYyZm0kQqkM561i9l0WC9HbJsGZJbHP9bhnWaa1Itd+yNBS2AJFp6mRR3hQacsWXUw7ewaKAracMIggvfSH5Aw== dependencies: "@apollographql/graphql-playground-html" "1.6.24" "@types/accepts" "^1.3.5" "@types/body-parser" "1.19.0" "@types/cors" "^2.8.4" - "@types/express" "4.17.2" + "@types/express" "4.17.4" accepts "^1.3.5" - apollo-server-core "^2.11.0" - apollo-server-types "^0.3.0" + apollo-server-core "^2.14.2" + apollo-server-types "^0.5.0" body-parser "^1.18.3" cors "^2.8.4" express "^4.17.1" @@ -1468,12 +1476,12 @@ apollo-server-express@^2.9.3: subscriptions-transport-ws "^0.9.16" type-is "^1.6.16" -apollo-server-plugin-base@^0.7.0: - version "0.7.0" - resolved "https://registry.npm.taobao.org/apollo-server-plugin-base/download/apollo-server-plugin-base-0.7.0.tgz#5c52ee311c8ef884b8b17be1b7e9d4597966dae1" - integrity sha1-XFLuMRyO+IS4sXvht+nUWXlm2uE= +apollo-server-plugin-base@^0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/apollo-server-plugin-base/-/apollo-server-plugin-base-0.9.0.tgz#777f720a1ee827a66b8c159073ca30645f8bc625" + integrity sha512-LWcPrsy2+xqwlNseh/QaGa/MPNopS8c4qGgh0g0cAn0lZBRrJ9Yab7dq+iQ6vdUBwIhUWYN6s9dwUWCZw2SL8g== dependencies: - apollo-server-types "^0.3.0" + apollo-server-types "^0.5.0" apollo-server-types@^0.3.0: version "0.3.0" @@ -1484,13 +1492,22 @@ apollo-server-types@^0.3.0: apollo-server-caching "^0.5.1" apollo-server-env "^2.4.3" -apollo-tracing@^0.9.0: - version "0.9.0" - resolved "https://registry.npm.taobao.org/apollo-tracing/download/apollo-tracing-0.9.0.tgz#673916ae674b9a8d72603f73af0b8561dfd38306" - integrity sha1-ZzkWrmdLmo1yYD9zrwuFYd/TgwY= +apollo-server-types@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/apollo-server-types/-/apollo-server-types-0.5.0.tgz#51f39c5fa610ece8b07f1fbcf63c47d4ac150340" + integrity sha512-zhtsqqqfdeoJQAfc41Sy6WnnBVxKNgZ34BKXf/Q+kXmw7rbZ/B5SG3SJMvj1iFsbzZxILmWdUsE9aD20lEr0bg== dependencies: - apollo-server-env "^2.4.3" - graphql-extensions "^0.11.0" + apollo-engine-reporting-protobuf "^0.5.1" + apollo-server-caching "^0.5.1" + apollo-server-env "^2.4.4" + +apollo-tracing@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/apollo-tracing/-/apollo-tracing-0.11.0.tgz#8821eb60692f77c06660fb6bc147446f600aecfe" + integrity sha512-I9IFb/8lkBW8ZwOAi4LEojfT7dMfUSkpnV8LHQI8Rcj0HtzL9HObQ3woBmzyGHdGHLFuD/6/VHyFD67SesSrJg== + dependencies: + apollo-server-env "^2.4.4" + apollo-server-plugin-base "^0.9.0" apollo-utilities@^1.0.1, apollo-utilities@^1.3.0: version "1.3.3" @@ -3528,6 +3545,15 @@ graphql-extensions@^0.11.0: apollo-server-env "^2.4.3" apollo-server-types "^0.3.0" +graphql-extensions@^0.12.2: + version "0.12.2" + resolved "https://registry.yarnpkg.com/graphql-extensions/-/graphql-extensions-0.12.2.tgz#f22210e812939b7caa2127589f30e6a1c671540f" + integrity sha512-vFaZua5aLiCOOzxfY5qzHZ6S52BCqW7VVOwzvV52Wb5edRm3dn6u+1MR9yYyEqUHSf8LvdhEojYlOkKiaQ4ghA== + dependencies: + "@apollographql/apollo-tools" "^0.4.3" + apollo-server-env "^2.4.4" + apollo-server-types "^0.5.0" + graphql-subscriptions@^1.0.0, graphql-subscriptions@^1.1.0: version "1.1.0" resolved "https://registry.npm.taobao.org/graphql-subscriptions/download/graphql-subscriptions-1.1.0.tgz#5f2fa4233eda44cf7570526adfcf3c16937aef11" @@ -4891,6 +4917,11 @@ loglevel@^1.4.0, loglevel@^1.6.1: resolved "https://registry.npm.taobao.org/loglevel/download/loglevel-1.6.7.tgz#b3e034233188c68b889f5b862415306f565e2c56" integrity sha1-s+A0IzGIxouIn1uGJBUwb1ZeLFY= +loglevel@^1.6.7: + version "1.6.8" + resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.6.8.tgz#8a25fb75d092230ecd4457270d80b54e28011171" + integrity sha512-bsU7+gc9AJ2SqpzxwU3+1fedl8zAntbtC5XYlt3s2j1hJcn2PsXSmgN8TaLG/J1/2mod4+cE/3vNL70/c1RNCA== + lolex@^5.0.0: version "5.1.2" resolved "https://registry.npm.taobao.org/lolex/download/lolex-5.1.2.tgz#953694d098ce7c07bc5ed6d0e42bc6c0c6d5a367" @@ -7273,6 +7304,11 @@ uuid@^3.1.0, uuid@^3.3.2: resolved "https://registry.npm.taobao.org/uuid/download/uuid-3.4.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fuuid%2Fdownload%2Fuuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha1-sj5DWK+oogL+ehAK8fX4g/AgB+4= +uuid@^8.0.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.1.0.tgz#6f1536eb43249f473abc6bd58ff983da1ca30d8d" + integrity sha512-CI18flHDznR0lq54xBycOVmphdCYnQLKn8abKn7PXUiKUGdEd+/l9LWNJmugXel4hXq7S+RMNl34ecyC9TntWg== + v8-to-istanbul@^4.0.1: version "4.1.3" resolved "https://registry.npm.taobao.org/v8-to-istanbul/download/v8-to-istanbul-4.1.3.tgz#22fe35709a64955f49a08a7c7c959f6520ad6f20"