@enplug/scripts 1.11.4-dev55 → 1.11.4-dev57

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.
@@ -209,9 +209,7 @@ async function addCrowdinFile(credentials, crowdinPath, storageId, folderId) {
209
209
  const body = {
210
210
  "storageId": storageId,
211
211
  "name": "en.json",
212
- "branchId": null,
213
212
  "directoryId": folderId,
214
- "title": null,
215
213
  "context": null,
216
214
  "type": "json",
217
215
  "parserVersion": 1,
@@ -84,13 +84,12 @@ async function syncTranslations(s3Client, bucket) {
84
84
  if(fileId) {
85
85
  const storageId = await uploadFileToCrowdinStorage(credentials, config.localPath);
86
86
  if(fileId && storageId) {
87
- const response = await updateCrowdinFile(credentials, crowdinPath, storageId.data.data.id, fileId);
87
+ updateCrowdinFile(credentials, crowdinPath, storageId.data.data.id, fileId);
88
88
  }
89
89
  } else {
90
- // console.error(`Could not find ${chalk.yellow.bold(`${crowdinPathSections[3]}`)} file, create it in the Crowdin panel first.`);
91
90
  const storageId = await uploadFileToCrowdinStorage(credentials, config.localPath);
92
91
  if(storageId) {
93
- const response = await addCrowdinFile(credentials, crowdinPath, storageId.data.data.id, folderId);
92
+ addCrowdinFile(credentials, crowdinPath, storageId.data.data.id, folderId);
94
93
  }
95
94
  }
96
95
  } else if(crowdinPathSections[0] === 'dashboard' && appDirectoryId) {
@@ -99,7 +98,7 @@ async function syncTranslations(s3Client, bucket) {
99
98
  if(fileId) {
100
99
  const storageId = await uploadFileToCrowdinStorage(credentials, config.localPath);
101
100
  if(fileId && storageId) {
102
- const response = await updateCrowdinFile(credentials, crowdinPath, storageId.data.data.id, fileId);
101
+ updateCrowdinFile(credentials, crowdinPath, storageId.data.data.id, fileId);
103
102
  }
104
103
  } else {
105
104
  console.error(`Could not upload ${chalk.yellow.bold(`[${rowdinPathSections[1]}]`)}. Only en.json supported.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enplug/scripts",
3
- "version": "1.11.4-dev55",
3
+ "version": "1.11.4-dev57",
4
4
  "description": "Enplug scripts",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",