@centeredgesoft/runtime-mock-routes 2.9.1-alpha.3 → 2.9.1
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/build/src/appV2.js +1 -1
- package/package.json +1 -1
- package/src/appV2.ts +1 -1
package/build/src/appV2.js
CHANGED
|
@@ -99,7 +99,7 @@ const appFactory = (runtimeCollection) => {
|
|
|
99
99
|
type: ['application/json', 'application/*+json', 'text/json']
|
|
100
100
|
}));
|
|
101
101
|
// log the request
|
|
102
|
-
if (process.env.
|
|
102
|
+
if (process.env.LOG_MOCK_REQUESTS === 'true') {
|
|
103
103
|
app.use((req, res, next) => {
|
|
104
104
|
console.log(`Request: ${req.method} ${req.url}`);
|
|
105
105
|
console.log('Headers:', req.headers);
|
package/package.json
CHANGED
package/src/appV2.ts
CHANGED
|
@@ -115,7 +115,7 @@ export const appFactory = (runtimeCollection?: RuntimeRequestCollection) => {
|
|
|
115
115
|
}));
|
|
116
116
|
|
|
117
117
|
// log the request
|
|
118
|
-
if (process.env.
|
|
118
|
+
if (process.env.LOG_MOCK_REQUESTS === 'true') {
|
|
119
119
|
app.use((req, res, next) => {
|
|
120
120
|
console.log(`Request: ${req.method} ${req.url}`);
|
|
121
121
|
console.log('Headers:', req.headers);
|