Skip to content
Myr

fix: update prebuild script and regenerate nanoid.js (#558)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

The update-prebuild.js script used replaceAll('urlAlphabet', 'a') to inline the alphabet, but index.browser.js now uses scopedUrlAlphabet (imported as alias). Since replaceAll is case-sensitive, 'urlAlphabet' did not match the uppercase 'Url' in 'scopedUrlAlphabet', producing broken output referencing an undefined variable. This also regenerates nanoid.js which was stale and missing the |= 0 pool pollution fix from v5.0.9.

authored by Mahmoud Hamdy · committed by GitHub · parent b31cb61 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Andrey Sitnik <andrey@sitnik.ru>

Diff stats

2 files+2 added−2 removed

  • tests:+1 added−1 removed
  • other:+1 added−1 removed

2 files+2 added−2 removed

modified:test/update-prebuild.js+1 added-1 removed
modified:nanoid.js+1 added-1 removed