| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This pull request migrates the repository to a pnpm workspace, updating numerous .gitignore and CONTRIBUTING.md files, adjusting CI scripts, and updating generated protobuf files. Feedback on these changes highlights several improvement opportunities: nested npm scripts in gax/package.json should be updated to pnpm, stubbed tests in pack-n-play should be explicitly skipped using it.skip rather than left empty, and relative file: paths in package dependencies should be replaced with the workspace: protocol. Additionally, the reviewer advises against using 'as any' type assertions in apirequest.ts and hapi.ts, recommending instead that workspace dependency versions be aligned or safer type casting be implemented to preserve TypeScript's type safety.
Sorry, something went wrong.
| .setUrl(urlString) | ||
| .setUserAgent(getSingleHeader(req!.headers['user-agent'])) | ||
| .setReferrer(getSingleHeader(req!.headers.referrer)) | ||
| .setUserAgent(getSingleHeader(req!.headers['user-agent'] as any)) | ||
| .setReferrer(getSingleHeader(req!.headers.referrer as any)) | ||
| .setStatusCode(attemptToExtractStatusCode(req!)) |
There was a problem hiding this comment.
Using as any here discards type safety. If the type mismatch is due to req.headers being typed as IncomingHttpHeaders (where header values can be string | string[] | undefined) and getSingleHeader expecting a specific type, it is safer to cast to the expected type (e.g., string | string[] or string) or handle the undefined case explicitly, rather than using as any.
Sorry, something went wrong.
…ng minimatch in c8
…pendencies are installed
… update bigtable dependencies
…haustion and restore generator-tests
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
| Back | FazBrowse Home | New Git URL |
Migrate to PNPM workspace. This will speed up dependency installation, reduces disk space usage by globally hoisting packages, and provides stricter dependency resolution.