@crowdin/app-project-module 0.79.0 → 0.79.1

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.
@@ -226,7 +226,7 @@ class SQLiteStorage {
226
226
  yield this.addColumns(['app_secret', 'domain', 'user_id', 'agent_id', 'organization_id', 'base_url'], 'crowdin_credentials');
227
227
  yield this.addColumns(['crowdin_id'], 'app_metadata');
228
228
  yield this.addColumn('job', 'attempt', 'DEFAULT 0');
229
- yield this.addColumn('managers', 'integration_credentials', 'null');
229
+ yield this.addColumn('integration_credentials', 'managers', 'null');
230
230
  });
231
231
  }
232
232
  moveIntegrationSettings() {
@@ -1027,7 +1027,7 @@
1027
1027
  .then(restParams => fetch('api/users' + restParams))
1028
1028
  .then(checkResponse)
1029
1029
  .then((res) => {
1030
- let userOptions = res.data.users.map(user => `<option value="${user.id}">${user.name}</option>`).join('');
1030
+ let userOptions = res.data.users.map(user => `<option value="${user.id}">${sanitizeHTML(user.name)}</option>`).join('');
1031
1031
  select.innerHTML = userOptions;
1032
1032
  select.value = JSON.stringify(res.data.managers);
1033
1033
  })
@@ -1107,7 +1107,7 @@
1107
1107
 
1108
1108
  let affectedUsers = '<ul>';
1109
1109
  for (const user of users) {
1110
- affectedUsers += `<li><crowdin-p>${user.name}</crowdin-p></li>`;
1110
+ affectedUsers += `<li><crowdin-p>${sanitizeHTML(user.name)}</crowdin-p></li>`;
1111
1111
  }
1112
1112
  affectedUsers += '</ul>';
1113
1113
  userList.innerHTML = affectedUsers;
@@ -1139,7 +1139,7 @@
1139
1139
 
1140
1140
  tooltip.innerHTML = notAvailableElement;
1141
1141
  for (const user of usersData.usersWhoNotIssetInApplicationInstallation) {
1142
- affectedUsers += `<li><crowdin-p>${user.name}</crowdin-p></li>`;
1142
+ affectedUsers += `<li><crowdin-p>${sanitizeHTML(user.name)}</crowdin-p></li>`;
1143
1143
  }
1144
1144
  userList.innerHTML = affectedUsers + '</ul>';
1145
1145
  } else if (!usersData.usersWhoNotIssetInApplicationInstallation.length) {
@@ -1149,7 +1149,7 @@
1149
1149
  if (usersData.isAdmin) {
1150
1150
  tooltip.innerHTML = willGrantedElement;
1151
1151
  for (const user of usersData.usersWhoNotIssetInApplicationInstallation) {
1152
- affectedUsers += `<li><crowdin-p>${user.name}</crowdin-p></li>`;
1152
+ affectedUsers += `<li><crowdin-p>${sanitizeHTML(user.name)}</crowdin-p></li>`;
1153
1153
  }
1154
1154
  userList.innerHTML = affectedUsers + '</ul>';
1155
1155
  } else {
@@ -1160,7 +1160,7 @@
1160
1160
 
1161
1161
  tooltip.innerHTML = notAvailableElement;
1162
1162
  for (const user of usersData.usersWhoNotIssetInApplicationInstallation) {
1163
- affectedUsers += `<li><crowdin-p>${user.name}</crowdin-p></li>`;
1163
+ affectedUsers += `<li><crowdin-p>${sanitizeHTML(user.name)}</crowdin-p></li>`;
1164
1164
  }
1165
1165
  userList.innerHTML = affectedUsers + '</ul>';
1166
1166
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "0.79.0",
3
+ "version": "0.79.1",
4
4
  "description": "Module that generates for you all common endpoints for serving standalone Crowdin App",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",