catto.js 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Server.js +3 -1
- package/package.json +1 -1
- package/request.js +11 -1
package/Server.js
CHANGED
|
@@ -67,7 +67,9 @@ class Server extends EventEmitter {
|
|
|
67
67
|
}
|
|
68
68
|
if (this.options.secret) {
|
|
69
69
|
this.app.use(session({
|
|
70
|
-
"store": new FileStore(this.options.storeOptions
|
|
70
|
+
"store": new FileStore(Object.assign(this.options.storeOptions, {
|
|
71
|
+
"logFn": () => {}
|
|
72
|
+
})),
|
|
71
73
|
"secret": this.options.secret,
|
|
72
74
|
"cookie": {
|
|
73
75
|
"secure": this.options.secureCookie,
|
package/package.json
CHANGED
package/request.js
CHANGED
|
@@ -71,6 +71,16 @@ function put(options) {
|
|
|
71
71
|
return wrap("put", options);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
/**
|
|
75
|
+
* DELETE request.
|
|
76
|
+
* @param {object} options
|
|
77
|
+
* @return {promise}
|
|
78
|
+
*/
|
|
79
|
+
function _delete(options) {
|
|
80
|
+
return wrap("delete", options);
|
|
81
|
+
}
|
|
82
|
+
|
|
74
83
|
module.exports = {
|
|
75
|
-
get, post, patch, put
|
|
84
|
+
get, post, patch, put,
|
|
85
|
+
"delete": _delete
|
|
76
86
|
};
|