Files
pnpm/network/auth-header
Khải f071d00815 refactor: replace forEach with for-loops (#8535)
* refactor: replace `forEach` with `for`-loops

Changes:
* Most `Object.keys(o).forEach` are replaced by `for in`.
* Most `Array.filter(c).forEach` are replaced by `for of` + `if continue`.
* `return` in `forEach` callbacks are replaced by `continue`.

There may be minor improvement to memory footprint as this change would
reduce the creations of temporary arrays and temporary functions.

* fix: return -> continue

* refactor: remove the commented out code
2024-09-18 03:58:25 +02:00
..
2024-05-12 01:57:58 +02:00
2024-06-27 21:18:27 +02:00

@pnpm/network.auth-header

Gets the authorization header for the given URI

npm version

Installation

pnpm add @pnpm/network.auth-header

License

MIT