Socket
Socket
Sign inDemoInstall

vscode-nls

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-nls - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

LICENSE

2

lib/main.d.ts

@@ -17,2 +17,2 @@ export interface Options {

export declare function loadMessageBundle(file?: string): LocalizeFunc;
export declare function config(options: Options): LoadFunc;
export declare function config(options?: Options): LoadFunc;

@@ -8,3 +8,3 @@ /* --------------------------------------------------------------------------------------------

var fs = require('fs');
var _options = { locale: 'en-US', cacheLanguageResolution: true };
var _options = { locale: undefined, cacheLanguageResolution: true };
var _isPseudo = false;

@@ -137,9 +137,11 @@ var _resolvedLanguage = null;

function config(options) {
if (isString(options.locale)) {
_options.locale = options.locale;
_resolvedLanguage = null;
if (options) {
if (isString(options.locale)) {
_options.locale = options.locale;
_resolvedLanguage = null;
}
if (isBoolean(options.cacheLanguageResolution)) {
_options.cacheLanguageResolution = options.cacheLanguageResolution;
}
}
if (isBoolean(options.cacheLanguageResolution)) {
_options.cacheLanguageResolution = options.cacheLanguageResolution;
}
_isPseudo = _options.locale === 'pseudo';

@@ -146,0 +148,0 @@ return loadMessageBundle;

{
"name": "vscode-nls",
"version": "1.0.2",
"version": "1.0.3",
"description": "NPM module to externalize and localize VSCode extensions",

@@ -5,0 +5,0 @@ "author": "Microsoft Corporation",

@@ -37,2 +37,6 @@ # vscode-nls

* vowels are doubled
* the string is prefixed with '\uFF3B' (Unicode zenkaku representation for [) and postfixed with '\uFF3D' (Unicode zenkaku representation for ])
* the string is prefixed with '\uFF3B' (Unicode zenkaku representation for [) and postfixed with '\uFF3D' (Unicode zenkaku representation for ])
*
## LICENSE
[MIT](LICENSE)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc