A small loader fetches a storefront badge by market and locale, caches the result, and returns it to the caller. After a regression, badges sometimes come from the wrong locale, and reusing the result in one place unexpectedly affects subsequent reads from the cache.
loadStoreBadge accepts market, locale, and fetcher.market or locale values must be rejected with an error.market + locale pair after input normalization.label is a non-empty string;highlights is an array of strings.node --loader ts-node/esm src/demo.ts
market, but a different locale, gets data for the first locale from the cache;highlights array on a previously received result affects subsequent cache reads.("EU", "ru") and ("EU", "en") should be stored and read as separate cache entries.loadStoreBadge call for an already cached entry should return data with the same content, but without a shared mutable reference to the cache.22.x5.8.x with strict=trueES modulesnode --loader ts-node/esm src/demo.tsts-node is installed with ESM supportUse line comments to explain the problem, its impact, the fix and how to test it.