@enplug/scripts 1.11.4-dev30 → 1.11.4-dev32

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.
@@ -6,7 +6,7 @@ const inquirer = require('inquirer');
6
6
  const loadDevPrivateFile = require('../loadDevPrivateFile');
7
7
  const rootPath = __dirname.split('node_modules')[0];
8
8
  const getPackageJson = require('../getPackageJson');
9
- const { Blob } = require('buffer');
9
+ const Blob = require('buffer');
10
10
 
11
11
  const { from, throwError } = require('rxjs');
12
12
  const { catchError, switchMap, tap, filter } = require('rxjs/operators');
@@ -115,11 +115,10 @@ function generateFormData(crowdinPath, localPath) {
115
115
  console.log('localPath', localPath);
116
116
  const file = fs.readFileSync('./'+localPath);
117
117
  console.log('file', file);
118
- let blob = new Blob([file]);
119
- console.log('blob', blob);
118
+
120
119
  // formData.append('update_option', 'update_without_changes'); // Previous translations should remain valid
121
120
  // formData.append('json', '');
122
- formData.append('file', blob, 'en.json');
121
+ formData.append('file', file, 'en.json');
123
122
  // formData.append(`export_patterns[${crowdinPath}]`, '%locale%.json');
124
123
  return formData;
125
124
  }
@@ -132,8 +131,8 @@ function generateFormData(crowdinPath, localPath) {
132
131
  console.log('formData', formData);
133
132
  return axios.post(url, formData, { headers: {
134
133
  "Authorization": AuthStr,
135
- "Content-Type": "application/json",
136
- "Crowdin-API-FileName": "en.json"
134
+ "Content-Type": 'application/json',
135
+ "Crowdin-API-FileName": 'en.json'
137
136
  } });
138
137
  }
139
138
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enplug/scripts",
3
- "version": "1.11.4-dev30",
3
+ "version": "1.11.4-dev32",
4
4
  "description": "Enplug scripts",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",