@halospv3/hce.shared-config
Version:
Automate commit message quality, changelogs, and CI/CD releases. Exports a semantic-release shareable configuration deserialized from this package's '.releaserc.yml'. Shared resources for .NET projects are also distributed with this package.
34 lines (33 loc) • 755 B
JavaScript
/**
* https://stackoverflow.com/a/50022230/14894786
* licensed under CC BY-SA 4.0
* changes: add overrides, remove "as any", remove empty lines
*/
class CaseInsensitiveMap extends Map {
delete(key) {
if (typeof key === 'string') {
key = key.toLowerCase();
}
return super.delete(key);
}
get(key) {
if (typeof key === 'string') {
key = key.toLowerCase();
}
return super.get(key);
}
has(key) {
if (typeof key === 'string') {
key = key.toLowerCase();
}
return super.has(key);
}
set(key, value) {
if (typeof key === 'string') {
key = key.toLowerCase();
}
return super.set(key, value);
}
}
export { CaseInsensitiveMap };
//# sourceMappingURL=CaseInsensitiveMap.mjs.map