Files
agency/.pnpm-store/v11/files/65/245e24057817efaba500e22771d0d3a52b001da7c29327b1c2e7f55b09e310a941cc4633095d8f183331f93016a19f14c51652d35efedabffe441e9eafb0da
hanzo-agent 5af6960b87 run project
Run: sess_f37640604ae254cb4d11dc6217f7b721
2026-09-30 00:04:56 +00:00

13 lines
412 B
Plaintext

// warning: extremely hot code path.
// This has been meticulously optimized for use
// within npm install on large package trees.
// Do not edit without careful benchmarking.
const normalizeCache = Object.create(null)
const { hasOwnProperty } = Object.prototype
module.exports = s => {
if (!hasOwnProperty.call(normalizeCache, s)) {
normalizeCache[s] = s.normalize('NFD')
}
return normalizeCache[s]
}