locizify 5.5.0 → 5.5.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 5.5.1
2
+
3
+ - update deps
4
+
1
5
  ### 5.5.0
2
6
 
3
7
  - update deps
@@ -2924,8 +2924,8 @@
2924
2924
 
2925
2925
  var headers = defaults({}, typeof options.customHeaders === 'function' ? options.customHeaders() : options.customHeaders);
2926
2926
 
2927
- if (typeof window === 'undefined' && typeof process !== 'undefined' && process.versions && process.versions.node) {
2928
- headers['User-Agent'] = "i18next-http-backend (node/".concat(process.version, "; ").concat(process.platform, " ").concat(process.arch, ")");
2927
+ if (typeof window === 'undefined' && typeof global !== 'undefined' && typeof global.process !== 'undefined' && global.process.versions && global.process.versions.node) {
2928
+ headers['User-Agent'] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")");
2929
2929
  }
2930
2930
 
2931
2931
  if (payload) headers['Content-Type'] = 'application/json';
@@ -8424,8 +8424,8 @@
8424
8424
  var requestWithFetch$1 = function requestWithFetch(options, url, payload, callback) {
8425
8425
  var headers = {};
8426
8426
 
8427
- if (typeof window === 'undefined' && typeof process !== 'undefined' && process.versions && process.versions.node) {
8428
- headers['User-Agent'] = "i18next-locize-backend (node/".concat(process.version, "; ").concat(process.platform, " ").concat(process.arch, ")");
8427
+ if (typeof window === 'undefined' && typeof global !== 'undefined' && typeof global.process !== 'undefined' && global.process.versions && global.process.versions.node) {
8428
+ headers['User-Agent'] = "i18next-locize-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")");
8429
8429
  }
8430
8430
 
8431
8431
  if (options.authorize && options.apiKey) {