ti2 1.0.61 → 1.0.63

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 +4 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -20,7 +20,7 @@ const cacheSettings = {
20
20
  'getAffiliateAgents',
21
21
  'getAffiliateDesks',
22
22
  'getPickupPoints',
23
- 'bookingsProductSearch',
23
+ // 'bookingsProductSearch',
24
24
  ],
25
25
  ventrata: [],
26
26
  fareharbor: [],
@@ -298,12 +298,12 @@ module.exports = async ({
298
298
  app.use(middleware.mock());
299
299
  // global error Handling
300
300
  app.use((err, req, res, next) => {
301
- if (res.headersSent) {
302
- return next(err);
303
- }
304
301
  if (process.env.CONSOLE_ERRORS || process.env.JEST_WORKER_ID) {
305
302
  console.error(R.pathOr(err, ['response', 'data'], err));
306
303
  }
304
+ if (res.headersSent) {
305
+ return next(err);
306
+ }
307
307
  return res.status((() => {
308
308
  if (!isNumber(err.status)) return 500;
309
309
  return Number(err.status);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "description": "Tourist Industry Exchange (TI2)",
5
5
  "main": "index.js",
6
6
  "scripts": {