Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
});
// $ExpectError
const v: string = Cookie.get('version');
const all: Object = Cookie.get();
// $ExpectError
Cookie.set(12, 'should fail');
Cookie.remove('version', {
path: '/'
});
// $ExpectError
Cookie.removeCookie()
Cookie.set('data', {
a: 1,
b: 3
}, { secure: true });
// $ExpectError
Cookie.getJson();
const data: Object = Cookie.getJSON('data');
const otherCookie = Cookie.noConflict();
otherCookie.set('name', 'OtherCookie');