vscode-nls
Advanced tools
Comparing version 5.0.0-next.1 to 5.0.0-next.2
"use strict"; | ||
/* -------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
@@ -10,6 +14,8 @@ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.config = exports.loadMessageBundle = void 0; | ||
var ral_1 = require("../common/ral"); | ||
var common_1 = require("../common/common"); | ||
var common_2 = require("../common/common"); | ||
exports.MessageFormat = common_2.MessageFormat; | ||
exports.BundleFormat = common_2.BundleFormat; | ||
Object.defineProperty(exports, "MessageFormat", { enumerable: true, get: function () { return common_2.MessageFormat; } }); | ||
Object.defineProperty(exports, "BundleFormat", { enumerable: true, get: function () { return common_2.BundleFormat; } }); | ||
function loadMessageBundle(_file) { | ||
@@ -35,2 +41,6 @@ return function (key, message) { | ||
exports.config = config; | ||
ral_1.default.install(Object.freeze({ | ||
loadMessageBundle: loadMessageBundle, | ||
config: config | ||
})); | ||
//# sourceMappingURL=main.js.map |
@@ -68,2 +68,4 @@ export declare enum MessageFormat { | ||
export declare function localize(_key: string | LocalizeInfo, message: string, ...args: any[]): string; | ||
export declare function loadMessageBundle(file?: string): LocalizeFunc; | ||
export declare function config(opts?: Options): LoadFunc; | ||
//# sourceMappingURL=common.d.ts.map |
"use strict"; | ||
/* -------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* ------------------------------------------------------------------------------------------ */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.config = exports.loadMessageBundle = exports.localize = exports.format = exports.setPseudo = exports.isPseudo = exports.isDefined = exports.BundleFormat = exports.MessageFormat = void 0; | ||
var ral_1 = require("./ral"); | ||
var MessageFormat; | ||
@@ -66,2 +72,10 @@ (function (MessageFormat) { | ||
exports.localize = localize; | ||
function loadMessageBundle(file) { | ||
return ral_1.default().loadMessageBundle(file); | ||
} | ||
exports.loadMessageBundle = loadMessageBundle; | ||
function config(opts) { | ||
return ral_1.default().config(opts); | ||
} | ||
exports.config = config; | ||
//# sourceMappingURL=common.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* -------------------------------------------------------------------------------------------- | ||
@@ -7,8 +6,11 @@ * Copyright (c) Microsoft Corporation. All rights reserved. | ||
* ------------------------------------------------------------------------------------------ */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.config = exports.loadMessageBundle = void 0; | ||
var path = require("path"); | ||
var fs = require("fs"); | ||
var ral_1 = require("../common/ral"); | ||
var common_1 = require("../common/common"); | ||
var common_2 = require("../common/common"); | ||
exports.MessageFormat = common_2.MessageFormat; | ||
exports.BundleFormat = common_2.BundleFormat; | ||
Object.defineProperty(exports, "MessageFormat", { enumerable: true, get: function () { return common_2.MessageFormat; } }); | ||
Object.defineProperty(exports, "BundleFormat", { enumerable: true, get: function () { return common_2.BundleFormat; } }); | ||
var toString = Object.prototype.toString; | ||
@@ -444,2 +446,6 @@ function isNumber(value) { | ||
exports.config = config; | ||
ral_1.default.install(Object.freeze({ | ||
loadMessageBundle: loadMessageBundle, | ||
config: config | ||
})); | ||
//# sourceMappingURL=main.js.map |
{ | ||
"name": "vscode-nls", | ||
"version": "5.0.0-next.1", | ||
"version": "5.0.0-next.2", | ||
"description": "NPM module to externalize and localize VSCode extensions", | ||
@@ -37,9 +37,12 @@ "author": "Microsoft Corporation", | ||
"files": [ | ||
"common", | ||
"browser", | ||
"node", | ||
"lib/common", | ||
"lib/browser", | ||
"lib/node" | ||
"lib/node", | ||
"!lib/*/test", | ||
"!lib/**/*.tsbuildinfo", | ||
"node.js", | ||
"node.d.ts", | ||
"browser.js", | ||
"browser.d.ts" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
694
0
51083