From b33e5ecb11021c7d16f33eed1ce282e7ec6ea1c8 Mon Sep 17 00:00:00 2001 From: Arie Trouw Date: Wed, 30 Oct 2024 17:38:04 -0700 Subject: [PATCH] usePromise ability to report to rollbar 5.2.15 --- package.json | 3 +- packages/accordion/package.json | 2 +- packages/animation/package.json | 2 +- packages/app-settings/package.json | 6 +- packages/appbar/package.json | 2 +- packages/async-effect/package.json | 2 +- packages/base-page/package.json | 2 +- packages/button/package.json | 2 +- packages/common/package.json | 2 +- packages/cookie-consent/package.json | 2 +- packages/crypto/package.json | 2 +- packages/dialogs/package.json | 2 +- packages/error/package.json | 2 +- packages/experiments/package.json | 2 +- packages/flexbox/package.json | 2 +- packages/hooks/package.json | 2 +- packages/identicon/package.json | 2 +- packages/invertible-theme/package.json | 2 +- packages/link/package.json | 4 +- packages/mixpanel/package.json | 2 +- packages/number-status/package.json | 2 +- packages/pixel-debugger/package.json | 2 +- packages/pixel/package.json | 2 +- packages/portal/package.json | 2 +- packages/promise/package.json | 3 +- packages/promise/src/global.d.ts | 5 + packages/promise/src/usePromise.ts | 17 ++- packages/quick-tip-button/package.json | 2 +- packages/render-spin-check/package.json | 2 +- packages/rich-result/package.json | 2 +- packages/scroll-to-top/package.json | 2 +- packages/select/package.json | 2 +- packages/shared/package.json | 2 +- packages/webapp/package.json | 6 +- yarn.lock | 161 ++++++++++++++++++++++-- 35 files changed, 206 insertions(+), 53 deletions(-) create mode 100644 packages/promise/src/global.d.ts diff --git a/package.json b/package.json index 8dfc7d9f..3ccbc258 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/sdk-react", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", @@ -116,6 +116,7 @@ "buffer": "^6.0.3", "eslint": "^9.13.0", "eslint-import-resolver-typescript": "^3.6.3", + "knip": "^5.34.4", "react": "^18.3.1", "react-dom": "^18.3.1", "remark-gfm": "^4.0.0", diff --git a/packages/accordion/package.json b/packages/accordion/package.json index 99a06e75..124e1aa3 100644 --- a/packages/accordion/package.json +++ b/packages/accordion/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-accordion", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/animation/package.json b/packages/animation/package.json index a3474360..12b47f4b 100644 --- a/packages/animation/package.json +++ b/packages/animation/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-animation", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/app-settings/package.json b/packages/app-settings/package.json index 6e98ad7f..1ed30670 100644 --- a/packages/app-settings/package.json +++ b/packages/app-settings/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-app-settings", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", @@ -37,10 +37,6 @@ }, "module": "dist/browser/index.mjs", "types": "dist/browser/index.d.ts", - "scripts": { - "license": "yarn license-checker --exclude \"MIT, ISC, Apache-2.0, BSD, BSD-2-Clause, CC-BY-4.0, Unlicense, CC-BY-3.0, CC0-1.0\"", - "lint-pkg": "npmPkgJsonLint ." - }, "dependencies": { "@xylabs/assert": "^4.3.3" }, diff --git a/packages/appbar/package.json b/packages/appbar/package.json index a29a2d22..b93a5dfd 100644 --- a/packages/appbar/package.json +++ b/packages/appbar/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-appbar", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/async-effect/package.json b/packages/async-effect/package.json index 41b1517a..5cd3c061 100644 --- a/packages/async-effect/package.json +++ b/packages/async-effect/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-async-effect", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/base-page/package.json b/packages/base-page/package.json index 6755bf58..630bc537 100644 --- a/packages/base-page/package.json +++ b/packages/base-page/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-base-page", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/button/package.json b/packages/button/package.json index d871063e..bb0428c4 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-button", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/common/package.json b/packages/common/package.json index 893e0735..488b1061 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-common", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/cookie-consent/package.json b/packages/cookie-consent/package.json index 4b016988..22eeb95f 100644 --- a/packages/cookie-consent/package.json +++ b/packages/cookie-consent/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-cookie-consent", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/crypto/package.json b/packages/crypto/package.json index 35a85378..8e284233 100644 --- a/packages/crypto/package.json +++ b/packages/crypto/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-crypto", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/dialogs/package.json b/packages/dialogs/package.json index 1b738a1b..cfa193cd 100644 --- a/packages/dialogs/package.json +++ b/packages/dialogs/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-dialogs", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/error/package.json b/packages/error/package.json index 89637339..bdf6e965 100644 --- a/packages/error/package.json +++ b/packages/error/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-error", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/experiments/package.json b/packages/experiments/package.json index 269ea1e6..665b5d0d 100644 --- a/packages/experiments/package.json +++ b/packages/experiments/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-experiments", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/flexbox/package.json b/packages/flexbox/package.json index cf85bf31..0d4424a8 100644 --- a/packages/flexbox/package.json +++ b/packages/flexbox/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-flexbox", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/hooks/package.json b/packages/hooks/package.json index b142ca1e..25574da5 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-hooks", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/identicon/package.json b/packages/identicon/package.json index c7853618..1f77a67e 100644 --- a/packages/identicon/package.json +++ b/packages/identicon/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-identicon", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/invertible-theme/package.json b/packages/invertible-theme/package.json index 7117e1a6..af038efb 100644 --- a/packages/invertible-theme/package.json +++ b/packages/invertible-theme/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-invertible-theme", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/link/package.json b/packages/link/package.json index 71919b95..d5e4e17c 100644 --- a/packages/link/package.json +++ b/packages/link/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-link", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", @@ -44,7 +44,7 @@ "@mui/material": "^6.1.6", "@storybook/react": "^8.3.6", "@types/react": "^18.3.12", - "@xylabs/react-flexbox": "^5.2.14", + "@xylabs/react-flexbox": "^5.2.15", "@xylabs/react-pixel": "workspace:^", "@xylabs/ts-scripts-yarn3": "^4.2.3", "@xylabs/tsconfig-react": "^4.2.3", diff --git a/packages/mixpanel/package.json b/packages/mixpanel/package.json index 73b906fd..c8c3aedd 100644 --- a/packages/mixpanel/package.json +++ b/packages/mixpanel/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-mixpanel", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/number-status/package.json b/packages/number-status/package.json index 6c93c023..1f9aa12d 100644 --- a/packages/number-status/package.json +++ b/packages/number-status/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-number-status", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/pixel-debugger/package.json b/packages/pixel-debugger/package.json index 968ced7b..7c0f0956 100644 --- a/packages/pixel-debugger/package.json +++ b/packages/pixel-debugger/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-pixel-debugger", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/pixel/package.json b/packages/pixel/package.json index a27101e8..b78f11b1 100644 --- a/packages/pixel/package.json +++ b/packages/pixel/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-pixel", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/portal/package.json b/packages/portal/package.json index a56730bf..3b5023c7 100644 --- a/packages/portal/package.json +++ b/packages/portal/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-portal", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/promise/package.json b/packages/promise/package.json index ba77ee7e..57abb261 100644 --- a/packages/promise/package.json +++ b/packages/promise/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-promise", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", @@ -48,6 +48,7 @@ "@xylabs/tsconfig-react": "^4.2.3", "react": "^18.3.1", "react-dom": "^18.3.1", + "rollbar": "^2.26.4", "storybook": "^8.3.6", "typescript": "^5.6.3" }, diff --git a/packages/promise/src/global.d.ts b/packages/promise/src/global.d.ts new file mode 100644 index 00000000..1f93a2e5 --- /dev/null +++ b/packages/promise/src/global.d.ts @@ -0,0 +1,5 @@ +import type Rollbar from 'rollbar' + +declare global { + var rollbar: Rollbar +} diff --git a/packages/promise/src/usePromise.ts b/packages/promise/src/usePromise.ts index 67850c3b..ba6c0b7b 100644 --- a/packages/promise/src/usePromise.ts +++ b/packages/promise/src/usePromise.ts @@ -28,7 +28,7 @@ export const usePromise = ( dependencies: DependencyList, config?: UsePromiseConfig, ): [TResult | undefined, Error | undefined, UsePromiseState | undefined] => { - const { logErrors } = usePromiseSettings() + const { logErrors = true } = usePromiseSettings() const [result, setResult] = useState(config?.defaultValue) const [error, setError] = useState() const [state, setState] = useState('pending') @@ -45,7 +45,10 @@ export const usePromise = ( return promise?.() } catch (ex) { const error = ex as Error - if (logErrors) console.error(`usePromise-memo: ${error}`) + if (logErrors) { + console.error(`usePromise-memo: ${error}`) + rollbar?.error(error) + } if (config?.debug) console.log(`usePromise [${config?.debug}]: useMemo rejection [${typeof promise}]`) setResult(undefined) setError(error) @@ -73,7 +76,10 @@ export const usePromise = ( }) .catch((e) => { const error = e as Error - console.error(`usePromise: ${error.message}`) + if (logErrors) { + console.error(error) + rollbar?.error(error) + } if (loaded) { setResult(undefined) setError(error) @@ -84,7 +90,10 @@ export const usePromise = ( }) .catch((ex) => { const error = ex as Error - if (logErrors) console.error(`usePromise-memo: ${error}`) + if (logErrors) { + console.error(`usePromise-memo: ${error}`) + rollbar?.error(error) + } if (loaded) { setResult(undefined) setError(error) diff --git a/packages/quick-tip-button/package.json b/packages/quick-tip-button/package.json index 9ac90252..4e48938a 100644 --- a/packages/quick-tip-button/package.json +++ b/packages/quick-tip-button/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-quick-tip-button", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/render-spin-check/package.json b/packages/render-spin-check/package.json index 5083badd..39e59a53 100644 --- a/packages/render-spin-check/package.json +++ b/packages/render-spin-check/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-render-spin-check", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/rich-result/package.json b/packages/rich-result/package.json index 8d783b37..b07e638b 100644 --- a/packages/rich-result/package.json +++ b/packages/rich-result/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-rich-result", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/scroll-to-top/package.json b/packages/scroll-to-top/package.json index 6ed86d7a..51e749f9 100644 --- a/packages/scroll-to-top/package.json +++ b/packages/scroll-to-top/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-scroll-to-top", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/select/package.json b/packages/select/package.json index 98b7fc43..75e02d10 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-select", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/shared/package.json b/packages/shared/package.json index 46cdd92b..7a6de195 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-shared", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", diff --git a/packages/webapp/package.json b/packages/webapp/package.json index 53551c0e..60002782 100644 --- a/packages/webapp/package.json +++ b/packages/webapp/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/react-webapp", - "version": "5.2.14", + "version": "5.2.15", "description": "Common React library for all XY Labs projects that use React", "keywords": [ "utility", @@ -37,10 +37,6 @@ }, "module": "dist/browser/index.mjs", "types": "dist/browser/index.d.ts", - "scripts": { - "license": "yarn license-checker --exclude \"MIT, ISC, Apache-2.0, BSD, BSD-2-Clause, CC-BY-4.0, Unlicense, CC-BY-3.0, CC0-1.0\"", - "lint-pkg": "npmPkgJsonLint ." - }, "dependencies": { "@mui/icons-material": "^6.1.6", "@mui/material": "^6.1.6", diff --git a/yarn.lock b/yarn.lock index 214474ea..f094eece 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2914,7 +2914,7 @@ __metadata: languageName: node linkType: hard -"@nodelib/fs.walk@npm:^1.2.3": +"@nodelib/fs.walk@npm:1.2.8, @nodelib/fs.walk@npm:^1.2.3": version: 1.2.8 resolution: "@nodelib/fs.walk@npm:1.2.8" dependencies: @@ -3358,6 +3358,19 @@ __metadata: languageName: node linkType: hard +"@snyk/github-codeowners@npm:1.1.0": + version: 1.1.0 + resolution: "@snyk/github-codeowners@npm:1.1.0" + dependencies: + commander: "npm:^4.1.1" + ignore: "npm:^5.1.8" + p-map: "npm:^4.0.0" + bin: + github-codeowners: dist/cli.js + checksum: 10c0/92d860a904a1e67f8563d4ac4d540cc613f71193f7968933b4a4b1526e80a97f536f52d27762c158e3e39d48c2f3db4906ec78846309351c741abb1a28653af9 + languageName: node + linkType: hard + "@storybook/addon-actions@npm:8.3.6, @storybook/addon-actions@npm:^8.3.6": version: 8.3.6 resolution: "@storybook/addon-actions@npm:8.3.6" @@ -5390,7 +5403,7 @@ __metadata: languageName: unknown linkType: soft -"@xylabs/react-flexbox@npm:^5.2.14, @xylabs/react-flexbox@workspace:^, @xylabs/react-flexbox@workspace:packages/flexbox": +"@xylabs/react-flexbox@npm:^5.2.15, @xylabs/react-flexbox@workspace:^, @xylabs/react-flexbox@workspace:packages/flexbox": version: 0.0.0-use.local resolution: "@xylabs/react-flexbox@workspace:packages/flexbox" dependencies: @@ -5490,7 +5503,7 @@ __metadata: "@mui/material": "npm:^6.1.6" "@storybook/react": "npm:^8.3.6" "@types/react": "npm:^18.3.12" - "@xylabs/react-flexbox": "npm:^5.2.14" + "@xylabs/react-flexbox": "npm:^5.2.15" "@xylabs/react-pixel": "workspace:^" "@xylabs/ts-scripts-yarn3": "npm:^4.2.3" "@xylabs/tsconfig-react": "npm:^4.2.3" @@ -5628,6 +5641,7 @@ __metadata: async-mutex: "npm:^0.5.0" react: "npm:^18.3.1" react-dom: "npm:^18.3.1" + rollbar: "npm:^2.26.4" storybook: "npm:^8.3.6" typescript: "npm:^5.6.3" peerDependencies: @@ -5838,6 +5852,7 @@ __metadata: buffer: "npm:^6.0.3" eslint: "npm:^9.13.0" eslint-import-resolver-typescript: "npm:^3.6.3" + knip: "npm:^5.34.4" react: "npm:^18.3.1" react-dom: "npm:^18.3.1" remark-gfm: "npm:^4.0.0" @@ -7024,6 +7039,13 @@ __metadata: languageName: node linkType: hard +"clone@npm:^1.0.2": + version: 1.0.4 + resolution: "clone@npm:1.0.4" + checksum: 10c0/2176952b3649293473999a95d7bebfc9dc96410f6cbd3d2595cf12fd401f63a4bf41a7adbfd3ab2ff09ed60cb9870c58c6acdd18b87767366fabfc163700f13b + languageName: node + linkType: hard + "clsx@npm:^2.1.1": version: 2.1.1 resolution: "clsx@npm:2.1.1" @@ -7100,7 +7122,7 @@ __metadata: languageName: node linkType: hard -"commander@npm:^4.0.0": +"commander@npm:^4.0.0, commander@npm:^4.1.1": version: 4.1.1 resolution: "commander@npm:4.1.1" checksum: 10c0/84a76c08fe6cc08c9c93f62ac573d2907d8e79138999312c92d4155bc2325d487d64d13f669b2000c9f8caf70493c1be2dac74fec3c51d5a04f8bc3ae1830bab @@ -7537,6 +7559,15 @@ __metadata: languageName: node linkType: hard +"defaults@npm:^1.0.3": + version: 1.0.4 + resolution: "defaults@npm:1.0.4" + dependencies: + clone: "npm:^1.0.2" + checksum: 10c0/9cfbe498f5c8ed733775db62dfd585780387d93c17477949e1670bfcfb9346e0281ce8c4bf9f4ac1fc0f9b851113bd6dc9e41182ea1644ccd97de639fa13c35a + languageName: node + linkType: hard + "define-data-property@npm:^1.0.1, define-data-property@npm:^1.1.4": version: 1.1.4 resolution: "define-data-property@npm:1.1.4" @@ -7760,6 +7791,19 @@ __metadata: languageName: node linkType: hard +"easy-table@npm:1.2.0": + version: 1.2.0 + resolution: "easy-table@npm:1.2.0" + dependencies: + ansi-regex: "npm:^5.0.1" + wcwidth: "npm:^1.0.1" + dependenciesMeta: + wcwidth: + optional: true + checksum: 10c0/2d37937cd608586ba02e1ec479f90ccec581d366b3b0d1bb26b99ee6005f8d724e32a07a873759893461ca45b99e2d08c30326529d967ce9eedc1e9b68d4aa63 + languageName: node + linkType: hard + "ee-first@npm:1.1.1": version: 1.1.1 resolution: "ee-first@npm:1.1.1" @@ -7818,7 +7862,7 @@ __metadata: languageName: node linkType: hard -"enhanced-resolve@npm:^5.15.0, enhanced-resolve@npm:^5.7.0": +"enhanced-resolve@npm:^5.15.0, enhanced-resolve@npm:^5.17.1, enhanced-resolve@npm:^5.7.0": version: 5.17.1 resolution: "enhanced-resolve@npm:5.17.1" dependencies: @@ -10225,7 +10269,7 @@ __metadata: languageName: node linkType: hard -"ignore@npm:^5.1.1, ignore@npm:^5.2.0, ignore@npm:^5.2.4, ignore@npm:^5.3.1": +"ignore@npm:^5.1.1, ignore@npm:^5.1.8, ignore@npm:^5.2.0, ignore@npm:^5.2.4, ignore@npm:^5.3.1": version: 5.3.2 resolution: "ignore@npm:5.3.2" checksum: 10c0/f9f652c957983634ded1e7f02da3b559a0d4cc210fca3792cb67f1b153623c9c42efdc1c4121af171e295444459fc4a9201101fb041b1104a3c000bccb188337 @@ -10865,6 +10909,15 @@ __metadata: languageName: node linkType: hard +"jiti@npm:^2.3.3": + version: 2.3.3 + resolution: "jiti@npm:2.3.3" + bin: + jiti: lib/jiti-cli.mjs + checksum: 10c0/d71e40fb3c359cddafa2a6a03aea7e5e3a571aedeb5bec7627d5bc67c1e66c6275be5c03b4e0b10cd22cde9d39c892f27f6598a4e63bde030b607efc5051fd7f + languageName: node + linkType: hard + "joycon@npm:^3.1.1": version: 3.1.1 resolution: "joycon@npm:3.1.1" @@ -11149,6 +11202,36 @@ __metadata: languageName: node linkType: hard +"knip@npm:^5.34.4": + version: 5.34.4 + resolution: "knip@npm:5.34.4" + dependencies: + "@nodelib/fs.walk": "npm:1.2.8" + "@snyk/github-codeowners": "npm:1.1.0" + easy-table: "npm:1.2.0" + enhanced-resolve: "npm:^5.17.1" + fast-glob: "npm:^3.3.2" + jiti: "npm:^2.3.3" + js-yaml: "npm:^4.1.0" + minimist: "npm:^1.2.8" + picocolors: "npm:^1.1.0" + picomatch: "npm:^4.0.1" + pretty-ms: "npm:^9.0.0" + smol-toml: "npm:^1.3.0" + strip-json-comments: "npm:5.0.1" + summary: "npm:2.1.0" + zod: "npm:^3.22.4" + zod-validation-error: "npm:^3.0.3" + peerDependencies: + "@types/node": ">=18" + typescript: ">=5.0.4" + bin: + knip: bin/knip.js + knip-bun: bin/knip-bun.js + checksum: 10c0/c17ef1d56f1ad82a073928bcedb2d48b2efe598399cd584a77c9773539f9169258b90028c4da55b42f55c7910b7a016d23e98086b69c2512df7fbc3081865a2b + languageName: node + linkType: hard + "language-subtag-registry@npm:^0.3.20": version: 0.3.23 resolution: "language-subtag-registry@npm:0.3.23" @@ -12224,7 +12307,7 @@ __metadata: languageName: node linkType: hard -"minimist@npm:^1.2.0, minimist@npm:^1.2.6": +"minimist@npm:^1.2.0, minimist@npm:^1.2.6, minimist@npm:^1.2.8": version: 1.2.8 resolution: "minimist@npm:1.2.8" checksum: 10c0/19d3fcdca050087b84c2029841a093691a91259a47def2f18222f41e7645a0b7c44ef4b40e88a1e58a40c84d2ef0ee6047c55594d298146d0eb3f6b737c20ce6 @@ -12962,6 +13045,13 @@ __metadata: languageName: node linkType: hard +"parse-ms@npm:^4.0.0": + version: 4.0.0 + resolution: "parse-ms@npm:4.0.0" + checksum: 10c0/a7900f4f1ebac24cbf5e9708c16fb2fd482517fad353aecd7aefb8c2ba2f85ce017913ccb8925d231770404780df46244ea6fec598b3bde6490882358b4d2d16 + languageName: node + linkType: hard + "parse-passwd@npm:^1.0.0": version: 1.0.0 resolution: "parse-passwd@npm:1.0.0" @@ -13087,7 +13177,7 @@ __metadata: languageName: node linkType: hard -"picomatch@npm:^4.0.2": +"picomatch@npm:^4.0.1, picomatch@npm:^4.0.2": version: 4.0.2 resolution: "picomatch@npm:4.0.2" checksum: 10c0/7c51f3ad2bb42c776f49ebf964c644958158be30d0a510efd5a395e8d49cb5acfed5b82c0c5b365523ce18e6ab85013c9ebe574f60305892ec3fa8eee8304ccc @@ -13246,6 +13336,15 @@ __metadata: languageName: node linkType: hard +"pretty-ms@npm:^9.0.0": + version: 9.1.0 + resolution: "pretty-ms@npm:9.1.0" + dependencies: + parse-ms: "npm:^4.0.0" + checksum: 10c0/fd111aad8800a04dfd654e6016da69bdaa6fc6a4c280f8e727cffd8b5960558e94942f1a94d4aa6e4d179561a0fbb0366a9ebe0ccefbbb0f8ff853b129cdefb9 + languageName: node + linkType: hard + "proc-log@npm:^4.1.0, proc-log@npm:^4.2.0": version: 4.2.0 resolution: "proc-log@npm:4.2.0" @@ -15210,6 +15309,13 @@ __metadata: languageName: node linkType: hard +"smol-toml@npm:^1.3.0": + version: 1.3.0 + resolution: "smol-toml@npm:1.3.0" + checksum: 10c0/442b4d033236ff6dd05bf91d57695fd9070a8221af080a5b2782cb2d9fad8bc31f698c61de5308a351907c1200202ba3ee51d52c5704f5349149e7c374f5fe90 + languageName: node + linkType: hard + "socks-proxy-agent@npm:^8.0.3": version: 8.0.4 resolution: "socks-proxy-agent@npm:8.0.4" @@ -15688,6 +15794,13 @@ __metadata: languageName: node linkType: hard +"strip-json-comments@npm:5.0.1": + version: 5.0.1 + resolution: "strip-json-comments@npm:5.0.1" + checksum: 10c0/c9d9d55a0167c57aa688df3aa20628cf6f46f0344038f189eaa9d159978e80b2bfa6da541a40d83f7bde8a3554596259bf6b70578b2172356536a0e3fa5a0982 + languageName: node + linkType: hard + "strip-json-comments@npm:^3.0.1, strip-json-comments@npm:^3.1.1": version: 3.1.1 resolution: "strip-json-comments@npm:3.1.1" @@ -15720,6 +15833,13 @@ __metadata: languageName: node linkType: hard +"summary@npm:2.1.0": + version: 2.1.0 + resolution: "summary@npm:2.1.0" + checksum: 10c0/2743c1f940fb303c496ef1b085e654704a6c16872957b6b76648c34bd32c8f0b7a3c5ec4e0f8bfb71dcb8473e34d172fef31026b85562af589cf220aa901698d + languageName: node + linkType: hard + "superagent@npm:^9.0.1": version: 9.0.2 resolution: "superagent@npm:9.0.2" @@ -17020,6 +17140,15 @@ __metadata: languageName: node linkType: hard +"wcwidth@npm:^1.0.1": + version: 1.0.1 + resolution: "wcwidth@npm:1.0.1" + dependencies: + defaults: "npm:^1.0.3" + checksum: 10c0/5b61ca583a95e2dd85d7078400190efd452e05751a64accb8c06ce4db65d7e0b0cde9917d705e826a2e05cc2548f61efde115ffa374c3e436d04be45c889e5b4 + languageName: node + linkType: hard + "webauthn-p256@npm:0.0.10": version: 0.0.10 resolution: "webauthn-p256@npm:0.0.10" @@ -17352,6 +17481,22 @@ __metadata: languageName: node linkType: hard +"zod-validation-error@npm:^3.0.3": + version: 3.4.0 + resolution: "zod-validation-error@npm:3.4.0" + peerDependencies: + zod: ^3.18.0 + checksum: 10c0/aaadb0e65c834aacb12fa088663d52d9f4224b5fe6958f09b039f4ab74145fda381c8a7d470bfddf7ddd9bbb5fdfbb52739cd66958ce6d388c256a44094d1fba + languageName: node + linkType: hard + +"zod@npm:^3.22.4": + version: 3.23.8 + resolution: "zod@npm:3.23.8" + checksum: 10c0/8f14c87d6b1b53c944c25ce7a28616896319d95bc46a9660fe441adc0ed0a81253b02b5abdaeffedbeb23bdd25a0bf1c29d2c12dd919aef6447652dd295e3e69 + languageName: node + linkType: hard + "zwitch@npm:^2.0.0, zwitch@npm:^2.0.4": version: 2.0.4 resolution: "zwitch@npm:2.0.4"