Skip to content

Commit 930a302

Browse files
author
John Edward
committed
initial commit
0 parents  commit 930a302

File tree

7 files changed

+95
-0
lines changed

7 files changed

+95
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.vscode
2+
*.log
3+
npm-debug.log*
4+
/node_modules
5+
/test-app

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Express.js Synchronous Middleware
2+
3+
> Uses stack and Async/Await approach
4+
5+
Use this as a regular express middleware for your routes if you need those concurrent requests to behave synchronously. If you don't need every request to be queued for a route (unique requests), we can do that too!

package.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"name": "express-sync-middleware",
3+
"version": "1.0.0",
4+
"description": "Configurably queues url requests",
5+
"repository": "https://github.com/jeescu/express-sync-middleware",
6+
"author": "John Edward <johnedwardescuyos@gmail.com>",
7+
"license": "MIT",
8+
"main": "dist/index.js",
9+
"engines": {
10+
"node": "~6.9.1",
11+
"npm": ">=3.10.0"
12+
},
13+
"scripts": {
14+
"prestart": "npm run -s build",
15+
"start": "node dist/index.js",
16+
"dev": "nodemon src/index.js --exec \"node -r dotenv/config -r babel-register\"",
17+
"clean": "rimraf dist",
18+
"build": "npm run clean && mkdir -p dist && babel src -s -D -d dist",
19+
"test": "jest --watch",
20+
"lint": "esw -w src test"
21+
},
22+
"keywords": [],
23+
"dependencies": {
24+
"babel-cli": "^6.26.0",
25+
"babel-plugin-transform-class-properties": "^6.24.1",
26+
"babel-plugin-transform-object-rest-spread": "^6.26.0",
27+
"babel-preset-env": "^1.6.1",
28+
"body-parser": "^1.18.2",
29+
"rimraf": "^2.6.2"
30+
},
31+
"devDependencies": {
32+
"babel-eslint": "^8.0.3",
33+
"babel-jest": "^21.2.0",
34+
"babel-register": "^6.26.0",
35+
"dotenv": "^4.0.0",
36+
"eslint": "^4.12.1",
37+
"eslint-plugin-import": "^2.8.0",
38+
"eslint-plugin-jest": "^21.3.2",
39+
"eslint-watch": "^3.1.3",
40+
"jest": "^21.2.1",
41+
"nodemon": "^1.12.1",
42+
"supertest": "^3.0.0"
43+
},
44+
"babel": {
45+
"presets": [
46+
[
47+
"env",
48+
{
49+
"targets": {
50+
"node": "current"
51+
}
52+
}
53+
]
54+
],
55+
"plugins": [
56+
"transform-object-rest-spread",
57+
"transform-class-properties"
58+
]
59+
},
60+
"eslintConfig": {
61+
"parser": "babel-eslint",
62+
"plugins": [
63+
"import",
64+
"jest"
65+
],
66+
"parserOptions": {
67+
"ecmaVersion": 2018,
68+
"sourceType": "module"
69+
},
70+
"env": {
71+
"node": true,
72+
"jest": true
73+
},
74+
"extends": [
75+
"eslint:recommended"
76+
],
77+
"rules": {
78+
"jest/no-focused-tests": 2,
79+
"jest/no-identical-title": 2
80+
}
81+
},
82+
"jest": {
83+
"testEnvironment": "node"
84+
}
85+
}

src/RequestEmitter.js

Whitespace-only changes.

src/RequestStackManager.js

Whitespace-only changes.

src/index.js

Whitespace-only changes.

test/index.test.js

Whitespace-only changes.

0 commit comments

Comments
 (0)