yaml-admin-api 0.0.28 → 0.0.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yaml-admin-api",
3
- "version": "0.0.28",
3
+ "version": "0.0.31",
4
4
  "license": "MIT",
5
5
  "description": "YAML Admin API package",
6
6
  "type": "commonjs",
@@ -278,6 +278,9 @@ const generateChartApi = async (app, db, yml) => {
278
278
  ]
279
279
  }
280
280
  */
281
+ /**
282
+ * TODO : globalFilterDelegate not implemented
283
+ */
281
284
  app.get(`/api/chart/${id}`, auth.isAuthenticated, async (req, res) => {
282
285
  try {
283
286
  const { x } = chart;
package/src/login/auth.js CHANGED
@@ -79,7 +79,7 @@ const withConfig = (config) => {
79
79
  next);
80
80
  }
81
81
  else {
82
- var memberProjection = { projection: { _id: false, name: true, email: true, password: true, super: true, id: true } };
82
+ const memberProjection = { projection: { _id: false, name: true, email: true, password: true, super: true, id: true } };
83
83
  if (type === 'email') {
84
84
  memberProjection['password'] = true;
85
85
  let member = await db.collection('admin').findOne({ email: email }, memberProjection)