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.3 to 1.0.4

License.txt

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(opt?: Options | string): LoadFunc;

@@ -135,3 +135,15 @@ /* --------------------------------------------------------------------------------------------

exports.loadMessageBundle = loadMessageBundle;
function config(options) {
function config(opt) {
var options;
if (isString(opt)) {
try {
options = JSON.parse(opt);
}
catch (e) {
console.error("Error parsing nls options: " + opt);
}
}
else {
options = opt;
}
if (options) {

@@ -138,0 +150,0 @@ if (isString(options.locale)) {

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

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

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