ti2 1.0.73 → 1.0.74

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 +3 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -262,7 +262,9 @@ module.exports = async ({
262
262
 
263
263
  app.use(async (req, res, next) => {
264
264
  try {
265
- const currentPlugin = plugins.find(p => p.name === req.pathParams.appKey);
265
+ const currentPlugin = req.pathParams
266
+ ? plugins.find(p => p.name === req.pathParams.appKey)
267
+ : null;
266
268
  const cachingOperations = [
267
269
  ...cacheSettings['*'],
268
270
  ...(currentPlugin ? R.pathOr([], [currentPlugin.name], cacheSettings) : []),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "description": "Tourist Industry Exchange (TI2)",
5
5
  "main": "index.js",
6
6
  "scripts": {