Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / @skava/cookies   js

Repository URL to install this package:

Version: 4.0.5 

/ dist / deps / attemptToDecodeURIComponent.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.attemptToDecodeURIComponent = (key) => {
    try {
        return decodeURIComponent(key);
    }
    catch (decodingException) {
        console.error(`Could not decode cookie with key "${key}"`, decodingException);
        // why undefined
        // return undefined
        return key;
    }
};
//# sourceMappingURL=attemptToDecodeURIComponent.js.map