i18next-scanner
Advanced tools
Comparing version 2.4.2 to 2.4.3
@@ -112,5 +112,15 @@ 'use strict'; | ||
var contents = null; | ||
try { | ||
// "Buffer.from(string[, encoding])" is added in Node.js v5.10.0 | ||
contents = Buffer.from(text); | ||
} catch (e) { | ||
// Fallback to "new Buffer(string[, encoding])" which is deprecated since Node.js v6.0.0 | ||
contents = new Buffer(text); | ||
} | ||
_this.push(new _vinyl2.default({ | ||
path: resPath, | ||
contents: typeof Buffer.from === 'function' ? Buffer.from(text) : new Buffer(text) // new Buffer() is deprecated since Node.js v5 | ||
contents: contents | ||
})); | ||
@@ -117,0 +127,0 @@ }); |
{ | ||
"name": "i18next-scanner", | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"description": "Scan your code, extract translation keys/values, and merge them into i18n resource files.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/i18next/i18next-scanner", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74330
11
1048