From cac29df6bf62aabddc461f54580ed0b912d0c812 Mon Sep 17 00:00:00 2001 From: Aldarund Date: Wed, 13 Jul 2022 17:43:39 +0300 Subject: [PATCH] fix: support nuxt bridge chore: update appins version --- lib/appinsights.server.js | 10 +- lib/module.js | 12 +- package.json | 4 +- yarn.lock | 343 ++++++++++++++++++++------------------ 4 files changed, 201 insertions(+), 168 deletions(-) diff --git a/lib/appinsights.server.js b/lib/appinsights.server.js index 73839fa..51f469e 100644 --- a/lib/appinsights.server.js +++ b/lib/appinsights.server.js @@ -1,4 +1,12 @@ +import * as applicationinsights from 'applicationinsights' + export default function (ctx, inject) { // Inject AppInsights to the context as $appInsights - inject('appInsights', process.appInsights || {}) + const config = <%= serialize(options.config) %> + const appInsightsServer = applicationinsights.setup(<%= serialize(options.instrumentationKey) %>) + applicationinsights.defaultClient.config = config + if (optionsServer.initialize) { + appInsightsServer.start() + } + inject('appInsights', applicationinsights || {}) } diff --git a/lib/module.js b/lib/module.js index de8915c..0ed5683 100644 --- a/lib/module.js +++ b/lib/module.js @@ -60,22 +60,28 @@ module.exports = function appInsights (moduleOptions) { const optionsServer = deepMerge.all([options, privateRuntimeConfig]) const appInsightsServer = AppInsights.setup(optionsServer.instrumentationKey) + const config = { ...AppInsights.defaultClient.config, ...optionsServer.serverConfig } - AppInsights.defaultClient.config = { ...AppInsights.defaultClient.config, ...optionsServer.serverConfig } + AppInsights.defaultClient.config = config // Initialize AppInsights if (optionsServer.initialize) { appInsightsServer.start() } const appInsightsClient = AppInsights.defaultClient - process.appInsights = appInsightsClient logger.success('Started logging errors to AppInsights') this.addPlugin({ src: path.resolve(__dirname, 'appinsights.server.js'), fileName: 'appinsights.server.js', - mode: 'server' + mode: 'server', + options: { + instrumentationKey: optionsServer.instrumentationKey, + config, + initialize: optionsServer.initialize + } }) + this.nuxt.hook('render:setupMiddleware', app => app.use(requestHandler(appInsightsClient))) this.nuxt.hook('render:errorMiddleware', app => app.use(errorHandler(appInsightsClient))) this.nuxt.hook('generate:routeFailed', ({ errors }) => { diff --git a/package.json b/package.json index aab5e3a..2121256 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,8 @@ "nuxt": "node --inspect=0.0.0.0 node_modules/nuxt-edge/bin/nuxt test/fixture" }, "dependencies": { - "applicationinsights": "^2.1.2", - "@microsoft/applicationinsights-web": "^2.6.3", + "applicationinsights": "^2.3.3", + "@microsoft/applicationinsights-web": "^2.8.5", "consola": "^2.15.0", "deepmerge": "^4.2.2" }, diff --git a/yarn.lock b/yarn.lock index 3ab34ce..e7db8b9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9,11 +9,6 @@ dependencies: tslib "^2.0.0" -"@azure/core-asynciterator-polyfill@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@azure/core-asynciterator-polyfill/-/core-asynciterator-polyfill-1.0.0.tgz#dcccebb88406e5c76e0e1d52e8cc4c43a68b3ee7" - integrity sha512-kmv8CGrPfN9SwMwrkiBK9VTQYxdFQEGe0BmQk+M8io56P9KNzpAxcWE/1fxJj7uouwN4kXF0BHW8DNlgx+wtCg== - "@azure/core-auth@^1.3.0": version "1.3.0" resolved "https://registry.yarnpkg.com/@azure/core-auth/-/core-auth-1.3.0.tgz#0d55517cf0650aefe755669aca8a2f3724fcf536" @@ -22,20 +17,19 @@ "@azure/abort-controller" "^1.0.0" tslib "^2.0.0" -"@azure/core-http@^1.2.5": - version "1.2.6" - resolved "https://registry.yarnpkg.com/@azure/core-http/-/core-http-1.2.6.tgz#9cd508418572d2062fd3175274219438772bdb65" - integrity sha512-odtH7UMKtekc5YQ86xg9GlVHNXR6pq2JgJ5FBo7/jbOjNGdBqcrIVrZx2bevXVJz/uUTSx6vUf62gzTXTfqYSQ== +"@azure/core-http@^2.2.3": + version "2.2.5" + resolved "https://registry.yarnpkg.com/@azure/core-http/-/core-http-2.2.5.tgz#e8cf8345d4a7f0ee7c8304a300c43d2df992ddbe" + integrity sha512-kctMqSQ6zfnlFpuYzfUKadeTyOQYbIQ+3Rj7dzVC3Dk1dOnHroTwR9hLYKX8/n85iJpkyaksaXpuh5L7GJRYuQ== dependencies: "@azure/abort-controller" "^1.0.0" - "@azure/core-asynciterator-polyfill" "^1.0.0" "@azure/core-auth" "^1.3.0" - "@azure/core-tracing" "1.0.0-preview.11" + "@azure/core-tracing" "1.0.0-preview.13" "@azure/logger" "^1.0.0" "@types/node-fetch" "^2.5.0" - "@types/tunnel" "^0.0.1" - form-data "^3.0.0" - node-fetch "^2.6.0" + "@types/tunnel" "^0.0.3" + form-data "^4.0.0" + node-fetch "^2.6.7" process "^0.11.10" tough-cookie "^4.0.0" tslib "^2.2.0" @@ -43,14 +37,13 @@ uuid "^8.3.0" xml2js "^0.4.19" -"@azure/core-tracing@1.0.0-preview.11": - version "1.0.0-preview.11" - resolved "https://registry.yarnpkg.com/@azure/core-tracing/-/core-tracing-1.0.0-preview.11.tgz#bdfb2ba73cd6c39b7d6c207b9522eb98e08b4ddd" - integrity sha512-frF0pJc9HTmKncVokhBxCqipjbql02DThQ1ZJ9wLi7SDMLdPAFyDI5xZNzX5guLz+/DtPkY+SGK2li9FIXqshQ== +"@azure/core-tracing@1.0.0-preview.13": + version "1.0.0-preview.13" + resolved "https://registry.yarnpkg.com/@azure/core-tracing/-/core-tracing-1.0.0-preview.13.tgz#55883d40ae2042f6f1e12b17dd0c0d34c536d644" + integrity sha512-KxDlhXyMlh2Jhj2ykX6vNEU0Vou4nHr025KoSEiz7cS3BNiHNaZcdECk/DmLkEB0as5T7b/TpRcehJ5yV6NeXQ== dependencies: - "@opencensus/web-types" "0.0.7" - "@opentelemetry/api" "1.0.0-rc.0" - tslib "^2.0.0" + "@opentelemetry/api" "^1.0.1" + tslib "^2.2.0" "@azure/logger@^1.0.0": version "1.0.2" @@ -1553,86 +1546,86 @@ "@types/yargs" "^15.0.0" chalk "^4.0.0" -"@microsoft/applicationinsights-analytics-js@2.6.3": - version "2.6.3" - resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-analytics-js/-/applicationinsights-analytics-js-2.6.3.tgz#8d7678232f042757fbb5e9081c592a939b2cd4f4" - integrity sha512-zCmtqTh83BciH3cVTBfjt+0y5rkfio8rnlAmpBYrIcYS16NcfESgUlcaH5vQeE5sXX10TZtXbj3R2lyoSR31YQ== - dependencies: - "@microsoft/applicationinsights-common" "2.6.3" - "@microsoft/applicationinsights-core-js" "2.6.3" - "@microsoft/applicationinsights-shims" "2.0.0" - "@microsoft/dynamicproto-js" "^1.1.4" - -"@microsoft/applicationinsights-channel-js@2.6.3": - version "2.6.3" - resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-channel-js/-/applicationinsights-channel-js-2.6.3.tgz#d89bef7b1033d19a7e07d98a3378c8889fbea231" - integrity sha512-9YnrWpy5TkSiPt6E+Uovdg1mXHSNcQVmSPjOBgw2QPKc8m0O6nXG5yqHuH89qpxlqhtZrzFYBClgejmwNF+NZg== - dependencies: - "@microsoft/applicationinsights-common" "2.6.3" - "@microsoft/applicationinsights-core-js" "2.6.3" - "@microsoft/applicationinsights-shims" "2.0.0" - "@microsoft/dynamicproto-js" "^1.1.4" - -"@microsoft/applicationinsights-common@2.6.3": - version "2.6.3" - resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-common/-/applicationinsights-common-2.6.3.tgz#40b81199c40e16bdf3958f0cab96e856ea5f8412" - integrity sha512-a9F0U44iZK4K+rdBS+fsRZp6Rj+Cn/AtNoOOXZ1jVLOL922avOHHb9Hwx+04+4Yp5+QbPiSa/cH5FOnC4w49yg== - dependencies: - "@microsoft/applicationinsights-core-js" "2.6.3" - "@microsoft/applicationinsights-shims" "2.0.0" - "@microsoft/dynamicproto-js" "^1.1.4" - -"@microsoft/applicationinsights-core-js@2.6.3": - version "2.6.3" - resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-core-js/-/applicationinsights-core-js-2.6.3.tgz#5ca8afc88b338526ebb3aa1631e8e51044fafd21" - integrity sha512-h45VrOyFrMs8c2S5JQdk7fBjI6Respyu0G5o/HFyJC0EWFnarCdOC/Nxdl8yHJYxyCSGIHedZBAL4CVuugCQDA== - dependencies: - "@microsoft/applicationinsights-shims" "2.0.0" - "@microsoft/dynamicproto-js" "^1.1.4" - -"@microsoft/applicationinsights-dependencies-js@2.6.3": - version "2.6.3" - resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-dependencies-js/-/applicationinsights-dependencies-js-2.6.3.tgz#e1a47530910e66486b3da6113e45220019e73950" - integrity sha512-PJndKkQpKGlbNcGV3mi1gfO7SdJG8F+VV3TL65z/aJYeIMBWwz5AjLcGwth9rGx+eEBENnEYl97z2MrDKnKrgg== - dependencies: - "@microsoft/applicationinsights-common" "2.6.3" - "@microsoft/applicationinsights-core-js" "2.6.3" - "@microsoft/applicationinsights-shims" "2.0.0" - "@microsoft/dynamicproto-js" "^1.1.4" - -"@microsoft/applicationinsights-properties-js@2.6.3": - version "2.6.3" - resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-properties-js/-/applicationinsights-properties-js-2.6.3.tgz#180efd0f25e5537bab0d7fd1aa50a33251b2d67e" - integrity sha512-W3NgiwZYqWGVXO3EvaiX1EXeO603yvXNfGLrMxv8fTT73lWXxRqa4SEFPIvHwEoEHFAo/e2cCQWV+d8w0YdN5Q== - dependencies: - "@microsoft/applicationinsights-common" "2.6.3" - "@microsoft/applicationinsights-core-js" "2.6.3" - "@microsoft/applicationinsights-shims" "2.0.0" - "@microsoft/dynamicproto-js" "^1.1.4" - -"@microsoft/applicationinsights-shims@2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-shims/-/applicationinsights-shims-2.0.0.tgz#ee622588f14e58ae3c055b12431da8ed55d71991" - integrity sha512-OaKew7f7acuNFgKYjMSPrRTRQi93xUyONWeeCeBlJSx7oRNJaL0TqbTvW6j5GHnSr3mhinPtAQ+rCQWASBnOrg== - -"@microsoft/applicationinsights-web@^2.6.3": - version "2.6.3" - resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-web/-/applicationinsights-web-2.6.3.tgz#3e14e50e8a7b7643de4d8ce12b434660f0532ef1" - integrity sha512-OQ0d8cXDRokeAjs2C9xHnbK/F+IMiUKzel2fCRE/D6yzPnw7hq1K06P4Lw88vrJZNmTzEW1wBlEDUS2ymqzZ3Q== - dependencies: - "@microsoft/applicationinsights-analytics-js" "2.6.3" - "@microsoft/applicationinsights-channel-js" "2.6.3" - "@microsoft/applicationinsights-common" "2.6.3" - "@microsoft/applicationinsights-core-js" "2.6.3" - "@microsoft/applicationinsights-dependencies-js" "2.6.3" - "@microsoft/applicationinsights-properties-js" "2.6.3" - "@microsoft/applicationinsights-shims" "2.0.0" - "@microsoft/dynamicproto-js" "^1.1.4" - -"@microsoft/dynamicproto-js@^1.1.4": - version "1.1.4" - resolved "https://registry.yarnpkg.com/@microsoft/dynamicproto-js/-/dynamicproto-js-1.1.4.tgz#40e1c0ad20743fcee1604a7df2c57faf0aa1af87" - integrity sha512-Ot53G927ykMF8cQ3/zq4foZtdk+Tt1YpX7aUTHxBU7UHNdkEiBvBfZSq+rnlUmKCJ19VatwPG4mNzvcGpBj4og== +"@microsoft/applicationinsights-analytics-js@2.8.5": + version "2.8.5" + resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-analytics-js/-/applicationinsights-analytics-js-2.8.5.tgz#732fdcf16b0f19c0b522556e8950c07b55ee5027" + integrity sha512-wlAUuTuONFfX6V0bPGH8FkN0DJUvcQD4KMyaw1DYTdVWg1Lsv7OewsfEIQBm8OS9phv7ALzMt0tEY3mNp3dtEQ== + dependencies: + "@microsoft/applicationinsights-common" "2.8.5" + "@microsoft/applicationinsights-core-js" "2.8.5" + "@microsoft/applicationinsights-shims" "2.0.1" + "@microsoft/dynamicproto-js" "^1.1.6" + +"@microsoft/applicationinsights-channel-js@2.8.5": + version "2.8.5" + resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-channel-js/-/applicationinsights-channel-js-2.8.5.tgz#18ae13d02c9646e34fc06f32099141ef1c9c5706" + integrity sha512-jiK1lzgrn8PnRvhwDSUQQWZgGrywuvQOq/HbVFI6jdK9qqV7u+ndwFc4GbsTZQdNoWZLmcY8W1qjos8VX0+Zww== + dependencies: + "@microsoft/applicationinsights-common" "2.8.5" + "@microsoft/applicationinsights-core-js" "2.8.5" + "@microsoft/applicationinsights-shims" "2.0.1" + "@microsoft/dynamicproto-js" "^1.1.6" + +"@microsoft/applicationinsights-common@2.8.5": + version "2.8.5" + resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-common/-/applicationinsights-common-2.8.5.tgz#568eb911c2b26473e304ceda1f9509da3a19a94a" + integrity sha512-oiGyz+4Bg+92RuvZn/1GrSwczhbyGrKyuVi/CExQjPKeqAm3ib2Uvlo0gZEm26AsSq0qPklG7H7n5s3y/krXhw== + dependencies: + "@microsoft/applicationinsights-core-js" "2.8.5" + "@microsoft/applicationinsights-shims" "2.0.1" + "@microsoft/dynamicproto-js" "^1.1.6" + +"@microsoft/applicationinsights-core-js@2.8.5": + version "2.8.5" + resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-core-js/-/applicationinsights-core-js-2.8.5.tgz#02adb1b9a7dca83897a9a06a98d1aecdc7526b6f" + integrity sha512-7/EgK6r8GiDVluo84skCMNthgnPa6P7TXiJqHBJbuCf11N4YqkZoGjKs+Fo7h6XIPuYMUHVMNLpBObI7oS7HsQ== + dependencies: + "@microsoft/applicationinsights-shims" "2.0.1" + "@microsoft/dynamicproto-js" "^1.1.6" + +"@microsoft/applicationinsights-dependencies-js@2.8.5": + version "2.8.5" + resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-dependencies-js/-/applicationinsights-dependencies-js-2.8.5.tgz#2ba74e212651ef6842da06907713cafbfb2e2848" + integrity sha512-UwOpIxZjv3l8KtgrPd5WEmuvaXty3yTc/S279t7hSjxqOk+LDg0Q2dxap80EuQ5qHoGW32qhVkv+nHaASLoRkg== + dependencies: + "@microsoft/applicationinsights-common" "2.8.5" + "@microsoft/applicationinsights-core-js" "2.8.5" + "@microsoft/applicationinsights-shims" "2.0.1" + "@microsoft/dynamicproto-js" "^1.1.6" + +"@microsoft/applicationinsights-properties-js@2.8.5": + version "2.8.5" + resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-properties-js/-/applicationinsights-properties-js-2.8.5.tgz#1fd98967aaa64a65679fe75264e93307026cbf31" + integrity sha512-qlG17DPns2WPW2eL3gYR9mMe+I4Ro2Sp21VRELuVyRH+htkIoeCXcVWn8UPIGO3YonK3DU8mkN9cEx6ov9Aw+Q== + dependencies: + "@microsoft/applicationinsights-common" "2.8.5" + "@microsoft/applicationinsights-core-js" "2.8.5" + "@microsoft/applicationinsights-shims" "2.0.1" + "@microsoft/dynamicproto-js" "^1.1.6" + +"@microsoft/applicationinsights-shims@2.0.1": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-shims/-/applicationinsights-shims-2.0.1.tgz#5d72fb7aaf4056c4fda54f9d7c93ccf8ca9bcbfd" + integrity sha512-G0MXf6R6HndRbDy9BbEj0zrLeuhwt2nsXk2zKtF0TnYo39KgYqhYC2ayIzKPTm2KAE+xzD7rgyLdZnrcRvt9WQ== + +"@microsoft/applicationinsights-web@^2.8.5": + version "2.8.5" + resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-web/-/applicationinsights-web-2.8.5.tgz#e0bae482f258ec7d0c307306e9835fba2e443f2d" + integrity sha512-smgLYbDxiV8qmJOfvSL8FhcqXCXnOMJANcyc6FxL6TVn3ZqepG8r+ekV+b4iYn7vBcAc7XLU+zIEAuFC9IV0kA== + dependencies: + "@microsoft/applicationinsights-analytics-js" "2.8.5" + "@microsoft/applicationinsights-channel-js" "2.8.5" + "@microsoft/applicationinsights-common" "2.8.5" + "@microsoft/applicationinsights-core-js" "2.8.5" + "@microsoft/applicationinsights-dependencies-js" "2.8.5" + "@microsoft/applicationinsights-properties-js" "2.8.5" + "@microsoft/applicationinsights-shims" "2.0.1" + "@microsoft/dynamicproto-js" "^1.1.6" + +"@microsoft/dynamicproto-js@^1.1.6": + version "1.1.6" + resolved "https://registry.yarnpkg.com/@microsoft/dynamicproto-js/-/dynamicproto-js-1.1.6.tgz#6fe03468862861f5f88ac4c3959a652b3797f1bc" + integrity sha512-D1Oivw1A4bIXhzBIy3/BBPn3p2On+kpO2NiYt9shICDK7L/w+cR6FFBUsBZ05l6iqzTeL+Jm8lAYn0g6G7DmDg== "@nodelib/fs.scandir@2.1.3": version "2.1.3" @@ -2002,49 +1995,39 @@ mustache "^2.3.0" stack-trace "0.0.10" -"@opencensus/web-types@0.0.7": - version "0.0.7" - resolved "https://registry.yarnpkg.com/@opencensus/web-types/-/web-types-0.0.7.tgz#4426de1fe5aa8f624db395d2152b902874f0570a" - integrity sha512-xB+w7ZDAu3YBzqH44rCmG9/RlrOmFuDPt/bpf17eJr8eZSrLt7nc7LnWdxM9Mmoj/YKMHpxRg28txu3TcpiL+g== - -"@opentelemetry/api@1.0.0-rc.0": - version "1.0.0-rc.0" - resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.0.0-rc.0.tgz#0c7c3f5e1285f99cedb563d74ad1adb9822b5144" - integrity sha512-iXKByCMfrlO5S6Oh97BuM56tM2cIBB0XsL/vWF/AtJrJEKx4MC/Xdu0xDsGXMGcNWpqF7ujMsjjnp0+UHBwnDQ== - -"@opentelemetry/api@^0.18.1": - version "0.18.1" - resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-0.18.1.tgz#fb499e07afa1f55acffc47b2469eb218dcdee2a2" - integrity sha512-pKNxHe3AJ5T2N5G3AlT9gx6FyF5K2FS9ZNc+FipC+f1CpVF/EY+JHTJ749dnM2kWIgZTbDJFiGMuc0FYjNSCOg== +"@opentelemetry/api@^1.0.1", "@opentelemetry/api@^1.0.4": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.1.0.tgz#563539048255bbe1a5f4f586a4a10a1bb737f44a" + integrity sha512-hf+3bwuBwtXsugA2ULBc95qxrOqP2pOekLz34BJhcAKawt94vfeNyUKpYc0lZQ/3sCP6LqRa7UAdHA7i5UODzQ== -"@opentelemetry/core@0.19.0": - version "0.19.0" - resolved "https://registry.yarnpkg.com/@opentelemetry/core/-/core-0.19.0.tgz#5018e16d1d3081da0657476e58d9c2dce7c511a2" - integrity sha512-t83FleVbHH6SWdUegclZbsnHn0OaHjq17Hd1zsJIRMM6WNuVzbXWA+3V6LCKXqUYyu3qwtZ/w45u/Nqfr5mEeQ== +"@opentelemetry/core@1.4.0", "@opentelemetry/core@^1.0.1": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@opentelemetry/core/-/core-1.4.0.tgz#26839ab9e36583a174273a1e1c5b33336c163725" + integrity sha512-faq50VFEdyC7ICAOlhSi+yYZ+peznnGjTJToha9R63i9fVopzpKrkZt7AIdXUmz2+L2OqXrcJs7EIdN/oDyr5w== dependencies: - semver "^7.1.3" + "@opentelemetry/semantic-conventions" "1.4.0" -"@opentelemetry/resources@0.19.0": - version "0.19.0" - resolved "https://registry.yarnpkg.com/@opentelemetry/resources/-/resources-0.19.0.tgz#3813610f8956a01a353fd961ac393c00995e6d3f" - integrity sha512-wrgclhxBH4ZO86u6veSXRtH3hv9q2kaQ1/cfstWun2y6YqjajpqAdyEHrlFWYyjr3t1ze0R68GjYQxPVWYURzg== +"@opentelemetry/resources@1.4.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@opentelemetry/resources/-/resources-1.4.0.tgz#5e23b0d7976158861059dec17e0ee36a35a5ab85" + integrity sha512-Q3pI5+pCM+Ur7YwK9GbG89UBipwJbfmuzSPAXTw964ZHFzSrz+JAgrETC9rqsUOYdUlj/V7LbRMG5bo72xE0Xw== dependencies: - "@opentelemetry/core" "0.19.0" + "@opentelemetry/core" "1.4.0" + "@opentelemetry/semantic-conventions" "1.4.0" -"@opentelemetry/semantic-conventions@0.19.0": - version "0.19.0" - resolved "https://registry.yarnpkg.com/@opentelemetry/semantic-conventions/-/semantic-conventions-0.19.0.tgz#3e49b45b52426c62740a24fcf5818cb690b446ef" - integrity sha512-MMXhYEvNakvXC+oa5muX8KS2z+rsXLXwabjuzXcbJPH+rvo5XFNQ1c7svxb0B1xPpm4KT7fnH2DVfYqQzsCteQ== - -"@opentelemetry/tracing@^0.19.0": - version "0.19.0" - resolved "https://registry.yarnpkg.com/@opentelemetry/tracing/-/tracing-0.19.0.tgz#8c94cf2b6d2542d8866a98631825965f5dbce5c4" - integrity sha512-RUmPZLQi4+nlHwTFpHqU45TMW+osIraDtf0jcFKLacKltGIft65tVxIEVn1uF9N9eG7NZzjXLo3jsvCzpavJ8Q== +"@opentelemetry/sdk-trace-base@^1.0.1": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.4.0.tgz#e54d09c1258cd53d3fe726053ed1cbda9d74f023" + integrity sha512-l7EEjcOgYlKWK0hfxz4Jtkkk2DuGiqBDWmRZf7g2Is9RVneF1IgcrbYZTKGaVfBKA7lPuVtUiQ2qTv3R+dKJrw== dependencies: - "@opentelemetry/core" "0.19.0" - "@opentelemetry/resources" "0.19.0" - "@opentelemetry/semantic-conventions" "0.19.0" - lodash.merge "^4.6.2" + "@opentelemetry/core" "1.4.0" + "@opentelemetry/resources" "1.4.0" + "@opentelemetry/semantic-conventions" "1.4.0" + +"@opentelemetry/semantic-conventions@1.4.0", "@opentelemetry/semantic-conventions@^1.0.1": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@opentelemetry/semantic-conventions/-/semantic-conventions-1.4.0.tgz#facf2c67d6063b9918d5a5e3fdf25f3a30d547b6" + integrity sha512-Hzl8soGpmyzja9w3kiFFcYJ7n5HNETpplY6cb67KR4QPlxp4FTTresO06qXHgHDhyIInmbLJXuwARjjpsKYGuQ== "@polka/url@^1.0.0-next.15": version "1.0.0-next.15" @@ -2207,10 +2190,10 @@ resolved "https://registry.yarnpkg.com/@types/tapable/-/tapable-1.0.6.tgz#a9ca4b70a18b270ccb2bc0aaafefd1d486b7ea74" integrity sha512-W+bw9ds02rAQaMvaLYxAbJ6cvguW/iJXNT6lTssS1ps6QdrMKttqEAMEG/b5CR8TZl3/L7/lH0ZV5nNR1LXikA== -"@types/tunnel@^0.0.1": - version "0.0.1" - resolved "https://registry.yarnpkg.com/@types/tunnel/-/tunnel-0.0.1.tgz#0d72774768b73df26f25df9184273a42da72b19c" - integrity sha512-AOqu6bQu5MSWwYvehMXLukFHnupHrpZ8nvgae5Ggie9UwzDR1CCwoXgSSWNZJuyOlCdfdsWMA5F2LlmvyoTv8A== +"@types/tunnel@^0.0.3": + version "0.0.3" + resolved "https://registry.yarnpkg.com/@types/tunnel/-/tunnel-0.0.3.tgz#f109e730b072b3136347561fc558c9358bb8c6e9" + integrity sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA== dependencies: "@types/node" "*" @@ -2777,18 +2760,20 @@ anymatch@~3.1.2: normalize-path "^3.0.0" picomatch "^2.0.4" -applicationinsights@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/applicationinsights/-/applicationinsights-2.1.2.tgz#be134a7c9aafbdc7a687a45735ab440b15c4cea7" - integrity sha512-dH1A7f321eNq5aCUG0bpkBGs5fSAW/4sPnVREdog/ST46akpxEeS2vTBMcOfF/5OfDcLSEIsFdth5/0wEklA/Q== - dependencies: - "@azure/core-http" "^1.2.5" - "@opentelemetry/api" "^0.18.1" - "@opentelemetry/tracing" "^0.19.0" +applicationinsights@^2.3.3: + version "2.3.3" + resolved "https://registry.yarnpkg.com/applicationinsights/-/applicationinsights-2.3.3.tgz#2c92aaccf85cc75c7212be1764cc51c55f10501c" + integrity sha512-Q4o6gexNhzukgmzzWYzXLa2gdJ6DhM+c35tw0lRNNjc/qldWxGHVxV65DMRYrQIp4vetLdCK7Pyd/dmEsGO4qA== + dependencies: + "@azure/core-http" "^2.2.3" + "@opentelemetry/api" "^1.0.4" + "@opentelemetry/core" "^1.0.1" + "@opentelemetry/sdk-trace-base" "^1.0.1" + "@opentelemetry/semantic-conventions" "^1.0.1" cls-hooked "^4.2.2" continuation-local-storage "^3.2.1" - diagnostic-channel "1.0.0" - diagnostic-channel-publishers "1.0.0" + diagnostic-channel "1.1.0" + diagnostic-channel-publishers "1.0.5" aproba@^1.0.3, aproba@^1.1.1: version "1.2.0" @@ -4694,15 +4679,15 @@ devalue@^2.0.1: resolved "https://registry.yarnpkg.com/devalue/-/devalue-2.0.1.tgz#5d368f9adc0928e47b77eea53ca60d2f346f9762" integrity sha512-I2TiqT5iWBEyB8GRfTDP0hiLZ0YeDJZ+upDxjBfOC2lebO5LezQMv7QvIUTzdb64jQyAKLf1AHADtGN+jw6v8Q== -diagnostic-channel-publishers@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/diagnostic-channel-publishers/-/diagnostic-channel-publishers-1.0.0.tgz#b5ecbffd87524a25b784520c78e31f0c0265923b" - integrity sha512-FTiMLPZa735iTsCVp3T9rgTC8tfOdEZVgpa0akPJrMXcsFBRQdskL1MWIW53xoZsWTBWHLQMjWUH75nz4NJHCw== +diagnostic-channel-publishers@1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/diagnostic-channel-publishers/-/diagnostic-channel-publishers-1.0.5.tgz#df8c317086c50f5727fdfb5d2fce214d2e4130ae" + integrity sha512-dJwUS0915pkjjimPJVDnS/QQHsH0aOYhnZsLJdnZIMOrB+csj8RnZhWTuwnm8R5v3Z7OZs+ksv5luC14DGB7eg== -diagnostic-channel@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/diagnostic-channel/-/diagnostic-channel-1.0.0.tgz#6d5611784ddb3d48086dd45a07d7431a945200aa" - integrity sha512-v7Clmg5HG9XwIhqgbBRfwFzwZhxjvESZ33uu1cgcCLkdb9ZxgtY78eAgQMEQ39UecQ//4K5W75iq6LFBtAQD8w== +diagnostic-channel@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/diagnostic-channel/-/diagnostic-channel-1.1.0.tgz#6985e9dfedfbc072d91dc4388477e4087147756e" + integrity sha512-fwujyMe1gj6rk6dYi9hMZm0c8Mz8NDMVl2LB4iaYh3+LIAThZC8RKFGXWG0IML2OxAit/ZFRgZhMkhQ3d/bobQ== dependencies: semver "^5.3.0" @@ -5734,6 +5719,15 @@ form-data@^3.0.0: combined-stream "^1.0.8" mime-types "^2.1.12" +form-data@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" + integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + form-data@~2.3.2: version "2.3.3" resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" @@ -8303,11 +8297,18 @@ no-case@^3.0.4: lower-case "^2.0.2" tslib "^2.0.3" -node-fetch@^2.6.0, node-fetch@^2.6.1: +node-fetch@^2.6.1: version "2.6.1" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw== +node-fetch@^2.6.7: + version "2.6.7" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" + integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== + dependencies: + whatwg-url "^5.0.0" + node-html-parser@^3.3.4: version "3.3.5" resolved "https://registry.yarnpkg.com/node-html-parser/-/node-html-parser-3.3.5.tgz#b312174fda86145b9572218955e400a731c60326" @@ -10433,7 +10434,7 @@ semver@^7.1.1, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4: dependencies: lru-cache "^6.0.0" -semver@^7.1.3, semver@^7.3.5: +semver@^7.3.5: version "7.3.5" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== @@ -11432,6 +11433,11 @@ tr46@^2.0.2: dependencies: punycode "^2.1.1" +tr46@~0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" + integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== + trim-newlines@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613" @@ -11952,6 +11958,11 @@ watchpack@^2.2.0: glob-to-regexp "^0.4.1" graceful-fs "^4.1.2" +webidl-conversions@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" + integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== + webidl-conversions@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-5.0.0.tgz#ae59c8a00b121543a2acc65c0434f57b0fc11aff" @@ -12073,6 +12084,14 @@ whatwg-mimetype@^2.3.0: resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== +whatwg-url@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" + integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== + dependencies: + tr46 "~0.0.3" + webidl-conversions "^3.0.0" + whatwg-url@^8.0.0: version "8.4.0" resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.4.0.tgz#50fb9615b05469591d2b2bd6dfaed2942ed72837"