lib/converters/v1.0.0/converter-v1-to-v2.js
function (cookieV1) {
        return {
            expires: (new Date(cookieV1.expirationDate * 1000)).toString(),
            hostOnly: cookieV1.hostOnly,
            httpOnly: cookieV1.httpOnly,
            domain: cookieV1.domain,
            path: cookieV1.path,
            secure: cookieV1.secure,
            session: cookieV1.session,
            value: cookieV1.value,
            key: cookieV1.name
        };
    }
function (cookieV1) {
        return {
            expires: (new Date(cookieV1.expirationDate * 1000)).toString(),
            hostOnly: cookieV1.hostOnly,
            httpOnly: cookieV1.httpOnly,
            domain: cookieV1.domain,
            path: cookieV1.path,
            secure: cookieV1.secure,
            session: cookieV1.session,
            value: cookieV1.value,
            key: cookieV1.name
        };
    }
function ( cookieV1 ) { return { expires : ( new Date ( cookieV1 . expirationDate * 1000 ) ) . toString ( ) , hostOnly : cookieV1 . hostOnly , httpOnly : cookieV1 . httpOnly , domain : cookieV1 . domain , path : cookieV1 . path , secure : cookieV1 . secure , session : cookieV1 . session , value : cookieV1 . value , key : cookieV1 . name } ; }
Converts a V1 cookie to a V2 cookie.

@param {Object} cookieV1 - The v1 cookie object to convert.
@returns {{expires: string, hostOnly: *, httpOnly: *, domain: *, path: *, secure: *, session: *, value: *}}
Converts a V1 cookie to a V2 cookie .