expressjs-session 4.0.0 → 4.4.0

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.
Files changed (2) hide show
  1. package/index.js +7 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -129,12 +129,11 @@ function createApplication() {
129
129
  return app;
130
130
  }
131
131
 
132
+ const app = createApplication();
133
+ const req = { method: 'GET', url: '/' };
134
+ const res = { statusCode: 200, end: () => {} };
135
+ app(req, res);
136
+
137
+
132
138
  module.exports = createApplication;
133
- module.exports.default = createApplication;
134
-
135
- if (require.main === module) {
136
- const app = createApplication();
137
- const req = { method: 'GET', url: '/' };
138
- const res = { statusCode: 200, end: () => {} };
139
- app(req, res);
140
- }
139
+ module.exports.default = createApplication;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expressjs-session",
3
- "version": "4.0.0",
3
+ "version": "4.4.0",
4
4
  "description": "This is a Node.js module available through the npm registry",
5
5
  "main": "index.js",
6
6
  "scripts": {