This commit is contained in:
2021-11-18 20:48:04 +03:00
parent 4e9df6c81b
commit 5e7b4c6707
22 changed files with 1160 additions and 345 deletions
+7 -3
View File
@@ -1,3 +1,6 @@
/**
* @module cookie
**/
kit.PluginManager.register('cookie', function(module, exports, require){
var defaultConverter = {
@@ -96,9 +99,9 @@ kit.PluginManager.register('cookie', function(module, exports, require){
/**
* @class kitCookie
* @memberOf kit
*/
return Object.create(
var cookie = Object.create(
{
set: set,
get: get,
@@ -122,7 +125,8 @@ kit.PluginManager.register('cookie', function(module, exports, require){
attributes: { value: Object.freeze(defaultAttributes) },
converter: { value: Object.freeze(converter) }
}
)
);
return cookie;
}
module.exports = init(defaultConverter, { path: '/' });