From 97a1b543431f86878b9973d874929bb14ff6fd85 Mon Sep 17 00:00:00 2001 From: Hank Stoever Date: Mon, 11 Sep 2023 11:00:48 -0700 Subject: [PATCH] feat: nprogress --- pnpm-lock.yaml | 616 ++++++++++++++++++++++++++------------- web/package.json | 2 + web/pages/_app.tsx | 14 +- web/public/nprogress.css | 86 ++++++ 4 files changed, 516 insertions(+), 202 deletions(-) create mode 100644 web/public/nprogress.css diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 86dc86f..90cf330 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -342,7 +342,7 @@ importers: version: 29.3.1(@types/node@18.11.9) ts-jest: specifier: ^29.0.3 - version: 29.0.3(@babel/core@7.20.5)(esbuild@0.17.7)(jest@29.3.1)(typescript@4.9.5) + version: 29.0.3(@babel/core@7.22.9)(esbuild@0.17.7)(jest@29.3.1)(typescript@4.9.5) tsup: specifier: ^6.7.0 version: 6.7.0(@swc/core@1.3.14)(typescript@4.9.5) @@ -756,6 +756,9 @@ importers: nostr-tools: specifier: ^1.7.4 version: 1.7.4 + nprogress: + specifier: ^0.2.0 + version: 0.2.0 punycode: specifier: ^2.1.1 version: 2.1.1 @@ -814,6 +817,9 @@ importers: '@bns-x/api-types': specifier: workspace:* version: link:../packages/api-types + '@types/nprogress': + specifier: ^0.2.0 + version: 0.2.0 autoprefixer: specifier: ^10.4.14 version: 10.4.14(postcss@8.4.21) @@ -886,8 +892,8 @@ packages: - supports-color dev: true - /@artilleryio/int-core@2.0.11: - resolution: {integrity: sha512-QDiudPJcwHjqb2YkH8dPH/1XvpPCmuxPRnlAB1LW3JHVwU5vSEUZuAOgC1DZZoJtFjGhB5FZcLutu/CAc/szcw==} + /@artilleryio/int-core@2.1.0: + resolution: {integrity: sha512-wzGZ7/0s89ZctSJb8KeOZgBc3sLlvWUHqVwAlkr6hh/nMqx00Txc+r5y5qbtrF5sZvaYTLrWUXglpGaCalNYRQ==} dependencies: '@artilleryio/int-commons': 2.0.1 '@artilleryio/sketches-js': 2.1.1 @@ -911,6 +917,7 @@ packages: hpagent: 0.1.2 https-proxy-agent: 5.0.1 lodash: 4.17.21 + ms: 2.1.3 protobufjs: 7.2.4 proxy: 1.0.2 socket.io-client: 4.6.0 @@ -3390,6 +3397,25 @@ packages: tslib: 2.5.0 dev: false + /@grpc/grpc-js@1.9.2: + resolution: {integrity: sha512-Lf2pUhNTaviEdEaGgjU+29qw3arX7Qd/45q66F3z1EV5hroE6wM9xSHPvjB8EY+b1RmKZgwnLWXQorC6fZ9g5g==} + engines: {node: ^8.13.0 || >=10.10.0} + dependencies: + '@grpc/proto-loader': 0.7.9 + '@types/node': 18.11.9 + dev: true + + /@grpc/proto-loader@0.7.9: + resolution: {integrity: sha512-YJsOehVXzgurc+lLAxYnlSMc1p/Gu6VAvnfx0ATi2nzvr0YZcjhmZDeY8SeAKv1M7zE3aEJH0Xo9mK1iZ8GYoQ==} + engines: {node: '>=6'} + hasBin: true + dependencies: + lodash.camelcase: 4.3.0 + long: 5.2.3 + protobufjs: 7.2.4 + yargs: 17.7.2 + dev: true + /@gwhitney/detect-indent@7.0.1: resolution: {integrity: sha512-7bQW+gkKa2kKZPeJf6+c6gFK9ARxQfn+FKy9ScTBppyKRWH2KzsmweXUoklqeEiHiNVWaeP5csIdsNq6w7QhzA==} engines: {node: '>=12.20'} @@ -4209,6 +4235,269 @@ packages: lodash: 4.17.21 dev: true + /@opentelemetry/api-logs@0.41.2: + resolution: {integrity: sha512-JEV2RAqijAFdWeT6HddYymfnkiRu2ASxoTBr4WsnGJhOjWZkEy6vp+Sx9ozr1NaIODOa2HUyckExIqQjn6qywQ==} + engines: {node: '>=14'} + dependencies: + '@opentelemetry/api': 1.5.0 + dev: true + + /@opentelemetry/api@1.5.0: + resolution: {integrity: sha512-636km3y3pVyJldKGp9qM+lPvxuOvhThUED9cHNPsERkp+APbdtCtj0sALW+mZsbQqnqQkNRHqoGw/Uc82UP6fQ==} + engines: {node: '>=8.0.0'} + dev: true + + /@opentelemetry/core@1.15.2(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-+gBv15ta96WqkHZaPpcDHiaz0utiiHZVfm2YOYSqFGrUaJpPkMoSuLBB58YFQGi6Rsb9EHos84X6X5+9JspmLw==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.5.0' + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/semantic-conventions': 1.15.2 + dev: true + + /@opentelemetry/core@1.16.0(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-JMxz7kzAqmIDUDEpoRrumHk257vrA9ZGVdHLB829gu6i/ryKlnjXIzJk86pgjhmxjLMX43BY6J0nbzOhy0QGtw==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.6.0' + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/semantic-conventions': 1.16.0 + dev: true + + /@opentelemetry/exporter-metrics-otlp-grpc@0.41.2(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-gQuCcd5QSMkfi1XIriWAoak/vaRvFzpvtzh2hjziIvbnA3VtoGD3bDb2dzEzOA1iSWO0/tHwnBsSmmUZsETyOA==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': ^1.3.0 + dependencies: + '@grpc/grpc-js': 1.9.2 + '@opentelemetry/api': 1.5.0 + '@opentelemetry/core': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/exporter-metrics-otlp-http': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/otlp-grpc-exporter-base': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/otlp-transformer': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/resources': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/sdk-metrics': 1.15.2(@opentelemetry/api@1.5.0) + dev: true + + /@opentelemetry/exporter-metrics-otlp-http@0.41.2(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-+YeIcL4nuldWE89K8NBLImpXCvih04u1MBnn8EzvoywG2TKR5JC3CZEPepODIxlsfGSgP8W5khCEP1NHZzftYw==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': ^1.3.0 + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/core': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/otlp-exporter-base': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/otlp-transformer': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/resources': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/sdk-metrics': 1.15.2(@opentelemetry/api@1.5.0) + dev: true + + /@opentelemetry/exporter-metrics-otlp-proto@0.41.2(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-OLNs6wF84uhxn8TJ8Bv1q2ltdJqjKA9oUEtICcUDDzXIiztPxZ9ur/4xdMk9T3ZJeFMfrhj8eYDkpETBy+fjCg==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': ^1.3.0 + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/core': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/exporter-metrics-otlp-http': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/otlp-exporter-base': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/otlp-proto-exporter-base': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/otlp-transformer': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/resources': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/sdk-metrics': 1.15.2(@opentelemetry/api@1.5.0) + dev: true + + /@opentelemetry/exporter-trace-otlp-http@0.41.2(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-Y0fGLipjZXLMelWtlS1/MDtrPxf25oM408KukRdkN31a1MEFo4h/ZkNwS7ZfmqHGUa+4rWRt2bi6JBiqy7Ytgw==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': ^1.0.0 + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/core': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/otlp-exporter-base': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/otlp-transformer': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/resources': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/sdk-trace-base': 1.15.2(@opentelemetry/api@1.5.0) + dev: true + + /@opentelemetry/exporter-trace-otlp-proto@0.41.2(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-IGZga9IIckqYE3IpRE9FO9G5umabObIrChlXUHYpMJtDgx797dsb3qXCvLeuAwB+HoB8NsEZstlzmLnoa6/HmA==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': ^1.0.0 + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/core': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/otlp-exporter-base': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/otlp-proto-exporter-base': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/otlp-transformer': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/resources': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/sdk-trace-base': 1.15.2(@opentelemetry/api@1.5.0) + dev: true + + /@opentelemetry/exporter-zipkin@1.16.0(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-cg5N7GOB/AwWsdkLwObzQguLZLbR8EvE1CyJwb1FG608YkVa8mAOe83cgIzBtNVzGDOw3KK9xWhTjeFdXC7e8g==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': ^1.0.0 + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/core': 1.16.0(@opentelemetry/api@1.5.0) + '@opentelemetry/resources': 1.16.0(@opentelemetry/api@1.5.0) + '@opentelemetry/sdk-trace-base': 1.16.0(@opentelemetry/api@1.5.0) + '@opentelemetry/semantic-conventions': 1.16.0 + dev: true + + /@opentelemetry/otlp-exporter-base@0.41.2(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-pfwa6d+Dax3itZcGWiA0AoXeVaCuZbbqUTsCtOysd2re8C2PWXNxDONUfBWsn+KgxAdi+ljwTjJGiaVLDaIEvQ==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': ^1.0.0 + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/core': 1.15.2(@opentelemetry/api@1.5.0) + dev: true + + /@opentelemetry/otlp-grpc-exporter-base@0.41.2(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-OErK8dYjXG01XIMIpmOV2SzL9ctkZ0Nyhf2UumICOAKtgLvR5dG1JMlsNVp8Jn0RzpsKc6Urv7JpP69wzRXN+A==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': ^1.0.0 + dependencies: + '@grpc/grpc-js': 1.9.2 + '@opentelemetry/api': 1.5.0 + '@opentelemetry/core': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/otlp-exporter-base': 0.41.2(@opentelemetry/api@1.5.0) + protobufjs: 7.2.4 + dev: true + + /@opentelemetry/otlp-proto-exporter-base@0.41.2(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-BxmEMiP6tHiFroe5/dTt9BsxCci7BTLtF7A6d4DKHLiLweWWZxQ9l7hON7qt/IhpKrQcAFD1OzZ1Gq2ZkNzhCw==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': ^1.0.0 + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/core': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/otlp-exporter-base': 0.41.2(@opentelemetry/api@1.5.0) + protobufjs: 7.2.4 + dev: true + + /@opentelemetry/otlp-transformer@0.41.2(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-jJbPwB0tNu2v+Xi0c/v/R3YBLJKLonw1p+v3RVjT2VfzeUyzSp/tBeVdY7RZtL6dzZpA9XSmp8UEfWIFQo33yA==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.3.0 <1.5.0' + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/api-logs': 0.41.2 + '@opentelemetry/core': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/resources': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/sdk-logs': 0.41.2(@opentelemetry/api-logs@0.41.2)(@opentelemetry/api@1.5.0) + '@opentelemetry/sdk-metrics': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/sdk-trace-base': 1.15.2(@opentelemetry/api@1.5.0) + dev: true + + /@opentelemetry/resources@1.15.2(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-xmMRLenT9CXmm5HMbzpZ1hWhaUowQf8UB4jMjFlAxx1QzQcsD3KFNAVX/CAWzFPtllTyTplrA4JrQ7sCH3qmYw==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.5.0' + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/core': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/semantic-conventions': 1.15.2 + dev: true + + /@opentelemetry/resources@1.16.0(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-Z2LdmfbLDYtn1vMJrPDdbRozwj9+WX8G4dxnUeqIVIYjwolV3kLjV+fWgvxoo0N00kNZBCvor+iD81iXx3sDpA==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.6.0' + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/core': 1.16.0(@opentelemetry/api@1.5.0) + '@opentelemetry/semantic-conventions': 1.16.0 + dev: true + + /@opentelemetry/sdk-logs@0.41.2(@opentelemetry/api-logs@0.41.2)(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-smqKIw0tTW15waj7BAPHFomii5c3aHnSE4LQYTszGoK5P9nZs8tEAIpu15UBxi3aG31ZfsLmm4EUQkjckdlFrw==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.4.0 <1.5.0' + '@opentelemetry/api-logs': '>=0.39.1' + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/api-logs': 0.41.2 + '@opentelemetry/core': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/resources': 1.15.2(@opentelemetry/api@1.5.0) + dev: true + + /@opentelemetry/sdk-metrics@1.15.2(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-9aIlcX8GnhcsAHW/Wl8bzk4ZnWTpNlLtud+fxUfBtFATu6OZ6TrGrF4JkT9EVrnoxwtPIDtjHdEsSjOqisY/iA==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.3.0 <1.5.0' + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/core': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/resources': 1.15.2(@opentelemetry/api@1.5.0) + lodash.merge: 4.6.2 + dev: true + + /@opentelemetry/sdk-metrics@1.16.0(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-58obaKzBY0CB6ZQS/sxcGvihqZk2zL2KDCQe734NofVfE7JpKMn/TtyzA8O4nw9sXIO2N9Wx2zzKRyGFXVGrcw==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.3.0 <1.6.0' + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/core': 1.16.0(@opentelemetry/api@1.5.0) + '@opentelemetry/resources': 1.16.0(@opentelemetry/api@1.5.0) + lodash.merge: 4.6.2 + dev: true + + /@opentelemetry/sdk-trace-base@1.15.2(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-BEaxGZbWtvnSPchV98qqqqa96AOcb41pjgvhfzDij10tkBhIu9m0Jd6tZ1tJB5ZHfHbTffqYVYE0AOGobec/EQ==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.5.0' + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/core': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/resources': 1.15.2(@opentelemetry/api@1.5.0) + '@opentelemetry/semantic-conventions': 1.15.2 + dev: true + + /@opentelemetry/sdk-trace-base@1.16.0(@opentelemetry/api@1.5.0): + resolution: {integrity: sha512-UvV8v8cN0Bx5BI40IJ+sMWcbwWekPa9ngMHSOfCWtSAVKbzwFdDV4Jrs/ejC6uR/SI6CKFQB9ItHp/0nZzVbIQ==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.6.0' + dependencies: + '@opentelemetry/api': 1.5.0 + '@opentelemetry/core': 1.16.0(@opentelemetry/api@1.5.0) + '@opentelemetry/resources': 1.16.0(@opentelemetry/api@1.5.0) + '@opentelemetry/semantic-conventions': 1.16.0 + dev: true + + /@opentelemetry/semantic-conventions@1.15.2: + resolution: {integrity: sha512-CjbOKwk2s+3xPIMcd5UNYQzsf+v94RczbdNix9/kQh38WiQkM90sUOi3if8eyHFgiBjBjhwXrA7W3ydiSQP9mw==} + engines: {node: '>=14'} + dev: true + + /@opentelemetry/semantic-conventions@1.16.0: + resolution: {integrity: sha512-jpbpOY0ahD/uTF16h4/NkFatwlulCpkvecK8zVJgHRfjK/ymJAw1Cg45KXiVSJML8uiMmRBciea/+gebrD398g==} + engines: {node: '>=14'} + dev: true + /@peculiar/asn1-schema@2.3.3: resolution: {integrity: sha512-6GptMYDMyWBHTUKndHaDsRZUO/XMSgIns2krxcm2L7SEExRHwawFvSwNBhqNPR9HJwv3MruAiF1bhN0we6j6GQ==} dependencies: @@ -6511,9 +6800,8 @@ packages: tippy.js: 6.3.7 dev: false - /@tootallnate/once@1.1.2: - resolution: {integrity: sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==} - engines: {node: '>= 6'} + /@tootallnate/quickjs-emscripten@0.23.0: + resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} dev: true /@trpc-playground/html@1.0.4(@types/node@18.11.9): @@ -6806,6 +7094,10 @@ packages: resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} dev: true + /@types/nprogress@0.2.0: + resolution: {integrity: sha512-1cYJrqq9GezNFPsWTZpFut/d4CjpZqA0vhqDUPFWYKF1oIyBz5qnoYMzR+0C/T96t3ebLAC1SSnwrVOm5/j74A==} + dev: true + /@types/pako@2.0.0: resolution: {integrity: sha512-10+iaz93qR5WYxTo+PMifD5TSxiOtdRaxBf7INGGXMQgTCu8Z/7GYWYFUOS3q/G0nE5boj1r4FEB+WSy7s5gbA==} dev: true @@ -7405,7 +7697,6 @@ packages: debug: 4.3.4(supports-color@8.1.1) transitivePeerDependencies: - supports-color - dev: false /agentkeepalive@4.2.1: resolution: {integrity: sha512-Zn4cw2NEqd+9fiSVWMscnjyQ1a8Yfoc5oBajLeo5w+YBHgDUcEBY2hS4YpTz6iN5f/2zQiktcuM6tS8x1p9dpA==} @@ -7641,9 +7932,10 @@ packages: - supports-color dev: true - /artillery-plugin-ensure@1.1.5: - resolution: {integrity: sha512-6z2/t/en2LgpeSMrlNCx1qrSnaVAJypoklx3k4xw+2sGBekCty2VT5nzFBKQ39O6UpmOG86R7REHEXIfKpCrUg==} + /artillery-plugin-ensure@1.2.0: + resolution: {integrity: sha512-o8P8amtnJDO/H7ZQJ/CIhLqsvw3UJaI4nTV7WSNpamQwb2Y8E4dt9r01dhKddzaBX7lwQvbhX5il9buw2NAwrg==} dependencies: + chalk: 2.4.2 debug: 4.3.4(supports-color@8.1.1) filtrex: 2.2.3 transitivePeerDependencies: @@ -7670,16 +7962,27 @@ packages: - supports-color dev: true - /artillery-plugin-publish-metrics@2.6.0: - resolution: {integrity: sha512-ptN16qcibvnjrtvW5QgRs79HOhWxaIMDEU71f8HCS5WGV+XloETXrbTKT2tIoinHX1TSlnYs6zf5phOd09Fyzw==} + /artillery-plugin-publish-metrics@2.7.0: + resolution: {integrity: sha512-c9tTHGODvvmiCMobQI02fTaiJPfihZEi2Avb4lHgLXic0TS69W6VqoHnKOXm+7DseUuc4KOPZ5wEx7MoX7IBUw==} dependencies: '@aws-sdk/client-cloudwatch': 3.388.0 + '@opentelemetry/api': 1.5.0 + '@opentelemetry/exporter-metrics-otlp-grpc': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/exporter-metrics-otlp-http': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/exporter-metrics-otlp-proto': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/exporter-trace-otlp-http': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/exporter-trace-otlp-proto': 0.41.2(@opentelemetry/api@1.5.0) + '@opentelemetry/exporter-zipkin': 1.16.0(@opentelemetry/api@1.5.0) + '@opentelemetry/resources': 1.16.0(@opentelemetry/api@1.5.0) + '@opentelemetry/sdk-metrics': 1.16.0(@opentelemetry/api@1.5.0) + '@opentelemetry/sdk-trace-base': 1.16.0(@opentelemetry/api@1.5.0) + '@opentelemetry/semantic-conventions': 1.16.0 async: 2.6.4 datadog-metrics: 0.9.3 debug: 4.3.4(supports-color@8.1.1) dogapi: 2.8.4 hot-shots: 6.8.7 - libhoney: 4.0.1 + libhoney: 4.1.0 lightstep-tracer: 0.31.2 mixpanel: 0.13.0 opentracing: 0.14.7 @@ -7699,17 +8002,17 @@ packages: hasBin: true dependencies: '@artilleryio/int-commons': 2.0.1 - '@artilleryio/int-core': 2.0.11 + '@artilleryio/int-core': 2.1.0 '@aws-sdk/credential-providers': 3.264.0 '@oclif/command': 1.8.22(@oclif/config@1.18.8) '@oclif/config': 1.18.8 '@oclif/plugin-help': 3.3.1 '@oclif/plugin-not-found': 2.3.18 archiver: 5.3.1 - artillery-plugin-ensure: 1.1.5 + artillery-plugin-ensure: 1.2.0 artillery-plugin-expect: 2.3.2 artillery-plugin-metrics-by-endpoint: 1.2.0 - artillery-plugin-publish-metrics: 2.6.0 + artillery-plugin-publish-metrics: 2.7.0 async: 2.6.4 aws-sdk: 2.1356.0 chalk: 2.4.2 @@ -8012,6 +8315,11 @@ packages: resolution: {integrity: sha512-Y7OBvWn+JnW45JWHLY6ybYub2k9cXCMrtCyO1Hds2s6eqClqWhPnOQpgXUPjAiMHj+A8TEPIQQ1dYENnJoBOHQ==} dev: true + /basic-ftp@5.0.3: + resolution: {integrity: sha512-QHX8HLlncOLpy54mh+k/sWIFd0ThmRqwe9ZjELybGZK+tZ8rUb9VO0saKJUROTbE+KhzDUT7xziGpGrW8Kmd+g==} + engines: {node: '>=10.0.0'} + dev: true + /better-path-resolve@1.0.0: resolution: {integrity: sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g==} engines: {node: '>=4'} @@ -8247,6 +8555,7 @@ packages: /bytes@3.1.2: resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} engines: {node: '>= 0.8'} + dev: false /cac@6.7.14: resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} @@ -8916,16 +9225,16 @@ packages: resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==} dev: true - /data-uri-to-buffer@3.0.1: - resolution: {integrity: sha512-WboRycPNsVw3B3TL559F7kuBUM4d8CgMEvk6xEJlOp7OBPjt6G7z8WMWlD2rOFZLk6OYfFIUGsCOWzcQH9K2og==} - engines: {node: '>= 6'} - dev: true - /data-uri-to-buffer@4.0.1: resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==} engines: {node: '>= 12'} dev: false + /data-uri-to-buffer@5.0.1: + resolution: {integrity: sha512-a9l6T1qqDogvvnw0nKlfZzqsyikEBZBClF39V3TFoKhDtGBqHu2HkuomJc02j5zft8zrUaXEuoicLeW54RkzPg==} + engines: {node: '>= 14'} + dev: true + /datadog-metrics@0.9.3: resolution: {integrity: sha512-BVsBX2t+4yA3tHs7DnB5H01cHVNiGJ/bHA8y6JppJDyXG7s2DLm6JaozPGpgsgVGd42Is1CHRG/yMDQpt877Xg==} dependencies: @@ -9080,14 +9389,13 @@ packages: has-property-descriptors: 1.0.0 object-keys: 1.1.1 - /degenerator@3.0.2: - resolution: {integrity: sha512-c0mef3SNQo56t6urUU6tdQAs+ThoD0o9B9MJ8HEt7NQcGEILCRFqQb7ZbP9JAv+QF1Ky5plydhMR/IrqWDm+TQ==} - engines: {node: '>= 6'} + /degenerator@5.0.1: + resolution: {integrity: sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==} + engines: {node: '>= 14'} dependencies: ast-types: 0.13.4 - escodegen: 1.14.3 + escodegen: 2.1.0 esprima: 4.0.1 - vm2: 3.9.14 dev: true /delayed-stream@1.0.0: @@ -9101,6 +9409,7 @@ packages: /depd@2.0.0: resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} engines: {node: '>= 0.8'} + dev: false /dequal@2.0.3: resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} @@ -9664,15 +9973,14 @@ packages: engines: {node: '>=10'} dev: true - /escodegen@1.14.3: - resolution: {integrity: sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==} - engines: {node: '>=4.0'} + /escodegen@2.1.0: + resolution: {integrity: sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==} + engines: {node: '>=6.0'} hasBin: true dependencies: esprima: 4.0.1 - estraverse: 4.3.0 + estraverse: 5.3.0 esutils: 2.0.3 - optionator: 0.8.3 optionalDependencies: source-map: 0.6.1 dev: true @@ -10436,11 +10744,6 @@ packages: dev: true optional: true - /file-uri-to-path@2.0.0: - resolution: {integrity: sha512-hjPFI8oE/2iQPVe4gbrJ73Pp+Xfub2+WI2LlXDbsaJBwT5wuMh35WNWVYYTpnz895shtwfyutMFLFywpQAFdLg==} - engines: {node: '>= 6'} - dev: true - /filelist@1.0.4: resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==} dependencies: @@ -10655,14 +10958,6 @@ packages: requiresBuild: true optional: true - /ftp@0.3.10: - resolution: {integrity: sha512-faFVML1aBx2UoDStmLwv2Wptt4vw5x03xxX172nhA5Y5HBshW5JweqQ2W4xL4dezQTG8inJsuYcpPHHU3X5OTQ==} - engines: {node: '>=0.8.0'} - dependencies: - readable-stream: 1.1.14 - xregexp: 2.0.0 - dev: true - /function-bind@1.1.1: resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} @@ -10736,16 +11031,14 @@ packages: /get-tsconfig@4.4.0: resolution: {integrity: sha512-0Gdjo/9+FzsYhXCEFueo2aY1z1tpXrxWZzP7k8ul9qt1U5o8rYJwTJYmaeHdrVosYIVYkOy2iwCJ9FdpocJhPQ==} - /get-uri@3.0.2: - resolution: {integrity: sha512-+5s0SJbGoyiJTZZ2JTpFPLMPSch72KEqGOTvQsBqg0RBWvwhWUSYZFAtz3TPW0GXJuLBJPts1E241iHg+VRfhg==} - engines: {node: '>= 6'} + /get-uri@6.0.1: + resolution: {integrity: sha512-7ZqONUVqaabogsYNWlYj0t3YZaL6dhuEueZXGF+/YVmf6dHmaFg8/6psJKqhx9QykIDKzpGcy2cn4oV4YC7V/Q==} + engines: {node: '>= 14'} dependencies: - '@tootallnate/once': 1.1.2 - data-uri-to-buffer: 3.0.1 + basic-ftp: 5.0.3 + data-uri-to-buffer: 5.0.1 debug: 4.3.4(supports-color@8.1.1) - file-uri-to-path: 2.0.0 fs-extra: 8.1.0 - ftp: 0.3.10 transitivePeerDependencies: - supports-color dev: true @@ -11050,13 +11343,13 @@ packages: setprototypeof: 1.2.0 statuses: 2.0.1 toidentifier: 1.0.1 + dev: false - /http-proxy-agent@4.0.1: - resolution: {integrity: sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==} - engines: {node: '>= 6'} + /http-proxy-agent@7.0.0: + resolution: {integrity: sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==} + engines: {node: '>= 14'} dependencies: - '@tootallnate/once': 1.1.2 - agent-base: 6.0.2 + agent-base: 7.1.0 debug: 4.3.4(supports-color@8.1.1) transitivePeerDependencies: - supports-color @@ -11099,6 +11392,16 @@ packages: - supports-color dev: false + /https-proxy-agent@7.0.2: + resolution: {integrity: sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==} + engines: {node: '>= 14'} + dependencies: + agent-base: 7.1.0 + debug: 4.3.4(supports-color@8.1.1) + transitivePeerDependencies: + - supports-color + dev: true + /human-id@1.0.2: resolution: {integrity: sha512-UNopramDEhHJD+VR+ehk8rOslwSfByxPIZyJRfV739NDhN5LF1fa1MqnzKm2lGTQRjNrjK19Q5fhkgIfjlVUKw==} dev: true @@ -11471,10 +11774,6 @@ packages: is-docker: 2.2.1 dev: true - /isarray@0.0.1: - resolution: {integrity: sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==} - dev: true - /isarray@1.0.0: resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} dev: true @@ -12339,14 +12638,6 @@ packages: engines: {node: '>=6'} dev: true - /levn@0.3.0: - resolution: {integrity: sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==} - engines: {node: '>= 0.8.0'} - dependencies: - prelude-ls: 1.1.2 - type-check: 0.3.2 - dev: true - /levn@0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} @@ -12355,12 +12646,12 @@ packages: type-check: 0.4.0 dev: true - /libhoney@4.0.1: - resolution: {integrity: sha512-8qiWJqDPfXpAVEoUv+8jVl6IgWwTYr+RKuPYh+Rf7aRZdXUo4t2N5JbGchrkGH0pI46RhFkwZ4BBeNm07R3w7A==} + /libhoney@4.1.0: + resolution: {integrity: sha512-U8oCouZXzjlO67wAhDyvnskn9MJFIzTWkxpzsAawUU4nQLMSdISgaGL64eqAeElLRnjlA4hhREr8zOz1So0+yg==} engines: {node: '>= 14.*'} dependencies: + proxy-agent: 6.3.1 superagent: 8.0.9 - superagent-proxy: 3.0.0(superagent@8.0.9) url-join: 5.0.0 transitivePeerDependencies: - supports-color @@ -12463,6 +12754,10 @@ packages: resolution: {integrity: sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA==} dev: false + /lodash.camelcase@4.3.0: + resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==} + dev: true + /lodash.clonedeep@4.5.0: resolution: {integrity: sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==} dev: false @@ -12578,6 +12873,11 @@ packages: dependencies: yallist: 4.0.0 + /lru-cache@7.18.3: + resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==} + engines: {node: '>=12'} + dev: true + /lru_map@0.3.3: resolution: {integrity: sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ==} dev: false @@ -13175,6 +13475,10 @@ packages: path-key: 4.0.0 dev: false + /nprogress@0.2.0: + resolution: {integrity: sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==} + dev: false + /nth-check@2.1.1: resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} dependencies: @@ -13317,18 +13621,6 @@ packages: resolution: {integrity: sha512-d/gTkTb1i1GKz5k3XE3XFV/PxQ1k45zDqGP2OA7YhgsaLoqm6qRvARAZOFer1fcXritWlGBRCu/UgeS4HAnXAA==} dev: true - /optionator@0.8.3: - resolution: {integrity: sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==} - engines: {node: '>= 0.8.0'} - dependencies: - deep-is: 0.1.4 - fast-levenshtein: 2.0.6 - levn: 0.3.0 - prelude-ls: 1.1.2 - type-check: 0.3.2 - word-wrap: 1.2.3 - dev: true - /optionator@0.9.1: resolution: {integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==} engines: {node: '>= 0.8.0'} @@ -13465,28 +13757,27 @@ packages: engines: {node: '>=6'} dev: true - /pac-proxy-agent@5.0.0: - resolution: {integrity: sha512-CcFG3ZtnxO8McDigozwE3AqAw15zDvGH+OjXO4kzf7IkEKkQ4gxQ+3sdF50WmhQ4P/bVusXcqNE2S3XrNURwzQ==} - engines: {node: '>= 8'} + /pac-proxy-agent@7.0.1: + resolution: {integrity: sha512-ASV8yU4LLKBAjqIPMbrgtaKIvxQri/yh2OpI+S6hVa9JRkUI3Y3NPFbfngDtY7oFtSMD3w31Xns89mDa3Feo5A==} + engines: {node: '>= 14'} dependencies: - '@tootallnate/once': 1.1.2 - agent-base: 6.0.2 + '@tootallnate/quickjs-emscripten': 0.23.0 + agent-base: 7.1.0 debug: 4.3.4(supports-color@8.1.1) - get-uri: 3.0.2 - http-proxy-agent: 4.0.1 - https-proxy-agent: 5.0.1 - pac-resolver: 5.0.1 - raw-body: 2.5.1 - socks-proxy-agent: 5.0.1 + get-uri: 6.0.1 + http-proxy-agent: 7.0.0 + https-proxy-agent: 7.0.2 + pac-resolver: 7.0.0 + socks-proxy-agent: 8.0.2 transitivePeerDependencies: - supports-color dev: true - /pac-resolver@5.0.1: - resolution: {integrity: sha512-cy7u00ko2KVgBAjuhevqpPeHIkCIqPe1v24cydhWjmeuzaBfmUWFCZJ1iAh5TuVzVZoUzXIW7K8sMYOZ84uZ9Q==} - engines: {node: '>= 8'} + /pac-resolver@7.0.0: + resolution: {integrity: sha512-Fd9lT9vJbHYRACT8OhCbZBbxr6KRSawSovFpy8nDGshaK99S/EBhVIHp9+crhxrsZOuvLpgL1n23iyPg6Rl2hg==} + engines: {node: '>= 14'} dependencies: - degenerator: 3.0.2 + degenerator: 5.0.1 ip: 1.1.8 netmask: 2.0.2 dev: true @@ -13813,11 +14104,6 @@ packages: which-pm: 2.0.0 dev: true - /prelude-ls@1.1.2: - resolution: {integrity: sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==} - engines: {node: '>= 0.8.0'} - dev: true - /prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -13936,18 +14222,18 @@ packages: ipaddr.js: 1.9.1 dev: false - /proxy-agent@5.0.0: - resolution: {integrity: sha512-gkH7BkvLVkSfX9Dk27W6TyNOWWZWRilRfk1XxGNWOYJ2TuedAv1yFpCaU9QSBmBe716XOTNpYNOzhysyw8xn7g==} - engines: {node: '>= 8'} + /proxy-agent@6.3.1: + resolution: {integrity: sha512-Rb5RVBy1iyqOtNl15Cw/llpeLH8bsb37gM1FUfKQ+Wck6xHlbAhWGUFiTRHtkjqGTA5pSHz6+0hrPW/oECihPQ==} + engines: {node: '>= 14'} dependencies: - agent-base: 6.0.2 + agent-base: 7.1.0 debug: 4.3.4(supports-color@8.1.1) - http-proxy-agent: 4.0.1 - https-proxy-agent: 5.0.1 - lru-cache: 5.1.1 - pac-proxy-agent: 5.0.0 + http-proxy-agent: 7.0.0 + https-proxy-agent: 7.0.2 + lru-cache: 7.18.3 + pac-proxy-agent: 7.0.1 proxy-from-env: 1.1.0 - socks-proxy-agent: 5.0.1 + socks-proxy-agent: 8.0.2 transitivePeerDependencies: - supports-color dev: true @@ -14070,6 +14356,7 @@ packages: http-errors: 2.0.0 iconv-lite: 0.4.24 unpipe: 1.0.0 + dev: false /rc@1.2.8: resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==} @@ -14318,15 +14605,6 @@ packages: strip-bom: 4.0.0 dev: true - /readable-stream@1.1.14: - resolution: {integrity: sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==} - dependencies: - core-util-is: 1.0.3 - inherits: 2.0.4 - isarray: 0.0.1 - string_decoder: 0.10.31 - dev: true - /readable-stream@2.3.7: resolution: {integrity: sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==} dependencies: @@ -14708,6 +14986,7 @@ packages: /setprototypeof@1.2.0: resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} + dev: false /sha.js@2.4.11: resolution: {integrity: sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==} @@ -14892,11 +15171,11 @@ packages: resolution: {integrity: sha512-Bf3ioZq15Z2yhFLDasRvbYitg82rwm+5AuER5kQvEQHhNFf4R4K5o/h57nEpN7A59T9FyRtTj34HZfMWAruw/A==} dev: true - /socks-proxy-agent@5.0.1: - resolution: {integrity: sha512-vZdmnjb9a2Tz6WEQVIurybSwElwPxMZaIc7PzqbJTrezcKNznv6giT7J7tZDZ1BojVaa1jvO/UiUdhDVB0ACoQ==} - engines: {node: '>= 6'} + /socks-proxy-agent@8.0.2: + resolution: {integrity: sha512-8zuqoLv1aP/66PHF5TqwJ7Czm3Yv32urJQHrVyhD7mmA6d61Zv8cIXQYPTWwmg6qlupnPvs/QKDmfa4P/qct2g==} + engines: {node: '>= 14'} dependencies: - agent-base: 6.0.2 + agent-base: 7.1.0 debug: 4.3.4(supports-color@8.1.1) socks: 2.7.1 transitivePeerDependencies: @@ -15084,6 +15363,7 @@ packages: /statuses@2.0.1: resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==} engines: {node: '>= 0.8'} + dev: false /std-env@3.3.3: resolution: {integrity: sha512-Rz6yejtVyWnVjC1RFvNmYL10kgjC49EOghxWn0RFqlCHGFpQx+Xe7yW3I4ceK1SGrWIGMjD5Kbue8W/udkbMJg==} @@ -15163,10 +15443,6 @@ packages: es-abstract: 1.20.5 dev: true - /string_decoder@0.10.31: - resolution: {integrity: sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==} - dev: true - /string_decoder@1.1.1: resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} dependencies: @@ -15291,19 +15567,6 @@ packages: pirates: 4.0.5 ts-interface-checker: 0.1.13 - /superagent-proxy@3.0.0(superagent@8.0.9): - resolution: {integrity: sha512-wAlRInOeDFyd9pyonrkJspdRAxdLrcsZ6aSnS+8+nu4x1aXbz6FWSTT9M6Ibze+eG60szlL7JA8wEIV7bPWuyQ==} - engines: {node: '>=6'} - peerDependencies: - superagent: '>= 0.15.4 || 1 || 2 || 3' - dependencies: - debug: 4.3.4(supports-color@8.1.1) - proxy-agent: 5.0.0 - superagent: 8.0.9 - transitivePeerDependencies: - - supports-color - dev: true - /superagent@8.0.9: resolution: {integrity: sha512-4C7Bh5pyHTvU33KpZgwrNKh/VQnvgtCSqPRfJAUdmrtSYePVzVg4E4OzsrbkhJj9O7SO6Bnv75K/F8XVZT8YHA==} engines: {node: '>=6.4.0 <13 || >=14'} @@ -15561,6 +15824,7 @@ packages: /toidentifier@1.0.1: resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} engines: {node: '>=0.6'} + dev: false /tough-cookie@4.1.2: resolution: {integrity: sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==} @@ -15674,41 +15938,6 @@ packages: /ts-interface-checker@0.1.13: resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} - /ts-jest@29.0.3(@babel/core@7.20.5)(esbuild@0.17.7)(jest@29.3.1)(typescript@4.9.5): - resolution: {integrity: sha512-Ibygvmuyq1qp/z3yTh9QTwVVAbFdDy/+4BtIQR2sp6baF2SJU/8CKK/hhnGIDY2L90Az2jIqTwZPnN2p+BweiQ==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - hasBin: true - peerDependencies: - '@babel/core': '>=7.0.0-beta.0 <8' - '@jest/types': ^29.0.0 - babel-jest: ^29.0.0 - esbuild: '*' - jest: ^29.0.0 - typescript: '>=4.3' - peerDependenciesMeta: - '@babel/core': - optional: true - '@jest/types': - optional: true - babel-jest: - optional: true - esbuild: - optional: true - dependencies: - '@babel/core': 7.20.5 - bs-logger: 0.2.6 - esbuild: 0.17.7 - fast-json-stable-stringify: 2.1.0 - jest: 29.3.1(@types/node@18.11.9) - jest-util: 29.3.1 - json5: 2.2.3 - lodash.memoize: 4.1.2 - make-error: 1.3.6 - semver: 7.3.8 - typescript: 4.9.5 - yargs-parser: 21.1.1 - dev: true - /ts-jest@29.0.3(@babel/core@7.22.9)(esbuild@0.15.18)(jest@29.3.1)(typescript@4.9.5): resolution: {integrity: sha512-Ibygvmuyq1qp/z3yTh9QTwVVAbFdDy/+4BtIQR2sp6baF2SJU/8CKK/hhnGIDY2L90Az2jIqTwZPnN2p+BweiQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -15986,13 +16215,6 @@ packages: turbo-windows-arm64: 1.7.0 dev: false - /type-check@0.3.2: - resolution: {integrity: sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==} - engines: {node: '>= 0.8.0'} - dependencies: - prelude-ls: 1.1.2 - dev: true - /type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -16128,6 +16350,7 @@ packages: /unpipe@1.0.0: resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} engines: {node: '>= 0.8'} + dev: false /update-browserslist-db@1.0.10(browserslist@4.21.5): resolution: {integrity: sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==} @@ -16458,16 +16681,6 @@ packages: - terser dev: true - /vm2@3.9.14: - resolution: {integrity: sha512-HgvPHYHeQy8+QhzlFryvSteA4uQLBCOub02mgqdR+0bN/akRZ48TGB1v0aCv7ksyc0HXx16AZtMHKS38alc6TA==} - engines: {node: '>=6.0'} - deprecated: The library contains critical security issues and should not be used for production! The maintenance of the project has been discontinued. Consider migrating your code to isolated-vm. - hasBin: true - dependencies: - acorn: 8.8.2 - acorn-walk: 8.2.0 - dev: true - /vscode-oniguruma@1.7.0: resolution: {integrity: sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==} dev: true @@ -16790,10 +17003,6 @@ packages: resolution: {integrity: sha512-QKxVRxiRACQcVuQEYFsI1hhkrMlrXHPegbbd1yn9UHOmRxY+si12nQYzri3vbzt8VdTTRviqcKxcyllFas5z2A==} engines: {node: '>=0.4.0'} - /xregexp@2.0.0: - resolution: {integrity: sha512-xl/50/Cf32VsGq/1R8jJE5ajH1yMCQkpmoS10QbFZWl2Oor4H0Me64Pu2yxvsRWK3m6soJbmGfzSR7BYmDcWAA==} - dev: true - /xss@1.0.14: resolution: {integrity: sha512-og7TEJhXvn1a7kzZGQ7ETjdQVS2UfZyTlsEdDOqvQF7GoxNfY+0YLCzBy1kPdsDDx4QuNAonQPddpsn6Xl/7sw==} engines: {node: '>= 0.10.0'} @@ -16892,6 +17101,19 @@ packages: yargs-parser: 21.1.1 dev: true + /yargs@17.7.2: + resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} + engines: {node: '>=12'} + dependencies: + cliui: 8.0.1 + escalade: 3.1.1 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 21.1.1 + dev: true + /yeast@0.1.2: resolution: {integrity: sha512-8HFIh676uyGYP6wP13R/j6OJ/1HwJ46snpvzE7aHAN3Ryqh2yX6Xox2B4CUmTwwOIzlG3Bs7ocsP5dZH/R1Qbg==} dev: false diff --git a/web/package.json b/web/package.json index 6f6bcb8..19463ad 100644 --- a/web/package.json +++ b/web/package.json @@ -79,6 +79,7 @@ "neverthrow": "^6.0.0", "next": "12.2.2", "nostr-tools": "^1.7.4", + "nprogress": "^0.2.0", "punycode": "^2.1.1", "random-gradient": "^0.0.2", "react": "18.2.0", @@ -100,6 +101,7 @@ }, "devDependencies": { "@bns-x/api-types": "workspace:*", + "@types/nprogress": "^0.2.0", "autoprefixer": "^10.4.14", "eslint": "8.20.0", "eslint-config-next": "12.2.2", diff --git a/web/pages/_app.tsx b/web/pages/_app.tsx index fbd6887..fc16a05 100755 --- a/web/pages/_app.tsx +++ b/web/pages/_app.tsx @@ -1,8 +1,9 @@ import '../styles/globals.css'; import { ClientProvider } from '@micro-stacks/react'; -import { useCallback, useMemo } from 'react'; +import { useCallback, useEffect, useMemo } from 'react'; import { destroySession, saveSession } from '../common/fetchers'; import '../public/fonts.css'; +import '../public/nprogress.css'; import { JotaiClientProvider } from '@components/jotai-provider'; import { queryClientAtom } from 'jotai-tanstack-query'; import { queryClient } from '@store/query-client'; @@ -20,6 +21,7 @@ import { AccountProvider } from '@components/account-provider'; import { QueryClientProvider } from '@tanstack/react-query'; import { ReactQueryDevtools } from '@tanstack/react-query-devtools'; import { AuthGuard } from '@components/logged-out'; +import nProgress from 'nprogress'; export interface PageProps { dehydratedState: string | null; @@ -62,6 +64,12 @@ function MyApp({ Component, pageProps }: AppCustomProps) { ); } + useEffect(() => { + router.events.on('routeChangeStart', () => nProgress.start()); + router.events.on('routeChangeComplete', () => nProgress.done()); + router.events.on('routeChangeError', () => nProgress.done()); + }, [router]); + const hydratedAtoms: AtomPair[] = [[queryClientAtom, queryClient]]; if (pageProps?.meta) { @@ -73,10 +81,6 @@ function MyApp({ Component, pageProps }: AppCustomProps) { const showAuthGuard = !!(!pageProps?.stxAddress && Component.authRequired); - console.log('showAuthGuard', showAuthGuard); - console.log('Component.authRequired', Component.authRequired); - console.log('Component', Component); - return (