ti2 1.0.87 → 1.0.88

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/controllers/app.js +17 -1
  2. package/package.json +1 -1
@@ -44,7 +44,23 @@ const tokenTemplate = async (req, res, next) => {
44
44
  },
45
45
  });
46
46
  template = R.map(safeRegExp, template);
47
- return res.json({ template });
47
+ return res.json({
48
+ template: {
49
+ ...template,
50
+ // ttlProducts and doNotCallPluginForProducts are being used at ti2 level
51
+ // hence we should just by default allow them for all ti2 plugins
52
+ ttlForProducts: {
53
+ type: 'number',
54
+ regExp: /.+/,
55
+ default: 60 * 60 * 24, // 1 day
56
+ },
57
+ doNotCallPluginForProducts: {
58
+ type: 'boolean',
59
+ regExp: /.+/,
60
+ default: false,
61
+ },
62
+ },
63
+ });
48
64
  } catch (err) {
49
65
  return next(err);
50
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2",
3
- "version": "1.0.87",
3
+ "version": "1.0.88",
4
4
  "description": "Tourist Industry Exchange (TI2)",
5
5
  "main": "index.js",
6
6
  "scripts": {