vscode-nls
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -252,3 +252,3 @@ /* -------------------------------------------------------------------------------------------- | ||
result = JSON.parse(fs.readFileSync(bundle, { encoding: 'utf8', flag: 'r' })); | ||
touch(bundle); | ||
touch(root); | ||
return result; | ||
@@ -351,4 +351,10 @@ } | ||
var header = JSON.parse(fs.readFileSync(headerFile, 'utf8')); | ||
var nlsBundle = loadNlsBundle(header, bundlePath); | ||
bundle = cacheBundle(bundlePath, nlsBundle ? { header: header, nlsBundle: nlsBundle } : null); | ||
try { | ||
var nlsBundle = loadNlsBundle(header, bundlePath); | ||
bundle = cacheBundle(bundlePath, nlsBundle ? { header: header, nlsBundle: nlsBundle } : null); | ||
} | ||
catch (err) { | ||
console.error('Failed to load nls bundle', err); | ||
bundle = cacheBundle(bundlePath, null); | ||
} | ||
} | ||
@@ -355,0 +361,0 @@ catch (err) { |
{ | ||
"name": "vscode-nls", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "NPM module to externalize and localize VSCode extensions", | ||
@@ -5,0 +5,0 @@ "author": "Microsoft Corporation", |
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
21498
446