zet-lib 1.0.39 → 1.0.41

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/lib/debug.js CHANGED
@@ -7,10 +7,10 @@ const connection = require("./connection");
7
7
  module.exports = (req, res, err) => {
8
8
  let post = {
9
9
  table: res.locals.routeName || "",
10
- company_id: res.locals.companyId,
10
+ company_id: res.locals.companyId || 1,
11
11
  route: res.locals.routeName || "",
12
12
  description : err.toString(),
13
- created_by : res.locals.userId
13
+ created_by : res.locals.userId || 1
14
14
  };
15
15
  connection.insert({
16
16
  table : "zerror",
@@ -84,6 +84,9 @@ langs.change_password_success = 'successfully change your password';
84
84
  langs.link_expired = 'Your link has expired!!!';
85
85
  langs.password_combine = 'password combine char and number, min 6 chars';
86
86
  langs.user_access = "User Access";
87
+ langs.help_center = 'Help Center';
88
+ langs.base_currency = 'Base Currency';
89
+ langs.settings_and_privacy = 'Settings and Privacy';
87
90
 
88
91
  langs['required_not_empty'] ='Required & can not empty ';
89
92
  langs['delete_confirm'] = 'Do you really want to delete selected ?';
@@ -61,7 +61,8 @@ langs['update'] = 'Update';
61
61
  langs['delete'] = 'Delete';
62
62
  langs['view'] = 'View';
63
63
  langs['upload'] = 'Upload';
64
- langs['approve'] = 'Approval';
64
+ langs['approval'] = 'Approval';
65
+ langs['approve'] = 'Approve';
65
66
  langs['logout'] = 'Logout';
66
67
  langs.download = 'Download';
67
68
  langs.all = 'all';
@@ -83,6 +84,9 @@ langs.change_password_success = 'successfully change your password';
83
84
  langs.link_expired = 'Your link has expired!!!';
84
85
  langs.password_combine = 'password combine char and number, min 6 chars';
85
86
  langs.user_access = "User Access";
87
+ langs.help_center = 'Help Center';
88
+ langs.base_currency = 'Base Currency';
89
+ langs.settings_and_privacy = 'Settings and Privacy';
86
90
 
87
91
  langs['required_not_empty'] ='Required & can not empty ';
88
92
  langs['delete_confirm'] = 'Do you really want to delete selected ?';
@@ -84,7 +84,9 @@ langs.change_password_success = 'Sukses merubah password anda';
84
84
  langs.link_expired = 'Tautan telah kadaluarsa!!!';
85
85
  langs.password_combine = 'Kombinasi pasword huruf dan angka, minimal 6 karakter ';
86
86
  langs.user_access = "Akses Pengguna";
87
-
87
+ langs.help_center = 'Pusat Bantuan';
88
+ langs.base_currency = 'Mata uang dasar';
89
+ langs.settings_and_privacy = 'Pengaturan dan Kerahasiaan';
88
90
 
89
91
  langs['required_not_empty'] ='Wajib diisi ';
90
92
  langs['delete_confirm'] = 'Hapus data ?';
@@ -61,7 +61,8 @@ langs['update'] = 'Update';
61
61
  langs['delete'] = 'Delete';
62
62
  langs['view'] = 'View';
63
63
  langs['upload'] = 'Upload';
64
- langs['approve'] = 'Approval';
64
+ langs['approval'] = 'Approval';
65
+ langs['approve'] = 'Approve';
65
66
  langs['logout'] = 'Logout';
66
67
  langs.download = 'Download';
67
68
  langs.all = 'all';
@@ -83,6 +84,9 @@ langs.change_password_success = 'successfully change your password';
83
84
  langs.link_expired = 'Your link has expired!!!';
84
85
  langs.password_combine = 'password combine char and number, min 6 chars';
85
86
  langs.user_access = "User Access";
87
+ langs.help_center = 'Help Center';
88
+ langs.base_currency = 'Base Currency';
89
+ langs.settings_and_privacy = 'Settings and Privacy';
86
90
 
87
91
  langs['required_not_empty'] ='Required & can not empty ';
88
92
  langs['delete_confirm'] = 'Do you really want to delete selected ?';
package/lib/zRoute.js CHANGED
@@ -1002,7 +1002,6 @@ zRoute.loginAjax = async (username, password, req, res, isSocialLogin, url = "")
1002
1002
  }
1003
1003
  } catch (err) {
1004
1004
  debug(req, res, err);
1005
- res.json("Error : " + err.toString());
1006
1005
  }
1007
1006
  return data;
1008
1007
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"