UNPKG

@swaggerexpert/cookie

Version:

RFC 6265 compliant cookie parser, validator and serializer.

7 lines 274 B
import testCookieValue from "../../../cookie/test/cookie-value.mjs"; const cookieValueStrictValidator = cookieValue => { if (!testCookieValue(cookieValue)) { throw new TypeError(`Invalid cookie value: ${cookieValue}`); } }; export default cookieValueStrictValidator;