@jaypie/express 1.1.4 → 1.1.5
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/dist/module.cjs +1 -1
- package/dist/module.esm.js +1 -1
- package/package.json +2 -2
- package/src/cors.helper.js +1 -1
package/dist/module.cjs
CHANGED
|
@@ -111,7 +111,7 @@ var cors_helper = (config) => {
|
|
|
111
111
|
res.status(error.status);
|
|
112
112
|
res.setHeader("Content-Type", "application/json");
|
|
113
113
|
console.log("Return cors error");
|
|
114
|
-
return res.json(error.
|
|
114
|
+
return res.json(error.body());
|
|
115
115
|
}
|
|
116
116
|
console.log("Allow next");
|
|
117
117
|
next();
|
package/dist/module.esm.js
CHANGED
|
@@ -109,7 +109,7 @@ var cors_helper = (config) => {
|
|
|
109
109
|
res.status(error.status);
|
|
110
110
|
res.setHeader("Content-Type", "application/json");
|
|
111
111
|
console.log("Return cors error");
|
|
112
|
-
return res.json(error.
|
|
112
|
+
return res.json(error.body());
|
|
113
113
|
}
|
|
114
114
|
console.log("Allow next");
|
|
115
115
|
next();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jaypie/express",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Finlayson Studio",
|
|
6
6
|
"type": "module",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "44e6d5a4206b911c40d980e177f644ce682a6ca4"
|
|
47
47
|
}
|
package/src/cors.helper.js
CHANGED
|
@@ -94,7 +94,7 @@ export default (config) => {
|
|
|
94
94
|
res.status(error.status);
|
|
95
95
|
res.setHeader("Content-Type", "application/json");
|
|
96
96
|
console.log("Return cors error");
|
|
97
|
-
return res.json(error.
|
|
97
|
+
return res.json(error.body());
|
|
98
98
|
}
|
|
99
99
|
console.log("Allow next");
|
|
100
100
|
next();
|