Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_getMap() {
if (!this._map) {
if (fs.existsSync(this._path)) {
this._map = serializer.readFileSync(this._path);
} else {
this._map = new Map();
}
}
}
_store() {
serializer.writeFileSync(this._path, this._map);
this._timeout = null;
}
}