@enplug/scripts 1.11.4-dev38 → 1.11.4-dev39

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.
@@ -161,7 +161,7 @@ async function uploadFileToCrowdinStorage(credentials, crowdinPath, localPath) {
161
161
 
162
162
  // const response = await postFileToCrowdin(credentials, crowdinPath, localPath)
163
163
  // return response
164
- return postFileToCrowdin(credentials, crowdinPath, localPath).pipe(
164
+ return postFileToCrowdin(credentials, localPath).pipe(
165
165
  catchError(error => {
166
166
  console('ERROR could not upload file to crowdin storage')
167
167
  return throwError(error);
@@ -78,7 +78,7 @@ async function syncTranslations(s3Client, bucket) {
78
78
  if(folderId === undefined) {
79
79
  console.error(`Could not find ${chalk.yellow.bold(`[${subfolderName}]`)} folder`);
80
80
  }
81
- const fileId = await getFileIdIfExists(credentials, folderId, crowdiPath.split('/')[3]); // en.json file id to update
81
+ const fileId = await getFileIdIfExists(credentials, folderId, crowdinPathSections[3]); // en.json file id to update
82
82
  if(fileId) {
83
83
  const storageId = await uploadFileToCrowdinStorage(credentials, crowdiPath, config.localPath);
84
84
  if(fileId && storageId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enplug/scripts",
3
- "version": "1.11.4-dev38",
3
+ "version": "1.11.4-dev39",
4
4
  "description": "Enplug scripts",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",