office-addin-manifest-converter
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -41,5 +41,3 @@ #!/usr/bin/env node | ||
utilities_1.Utilities.setShowDebugInfo(dbg); | ||
if (dbg) { | ||
console.log('convert ' + xmlManifestFile + ' ' + JSON.stringify(options)); | ||
} | ||
utilities_1.Utilities.logDebug('Command line: convert ' + xmlManifestFile + ' ' + JSON.stringify(options)); | ||
yield main.convert(xmlManifestFile, output, imageDownload, verbose) | ||
@@ -46,0 +44,0 @@ .catch((e) => { |
@@ -125,3 +125,4 @@ import { OSF } from '../lib/osfmos'; | ||
private _doesHostHaveContentInManifest; | ||
private static _legacyLaunchEventToMosEventType; | ||
} | ||
//# sourceMappingURL=converter.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
const osfmos_1 = require("../lib/osfmos"); | ||
const xmldom_1 = require("xmldom"); | ||
const xmldom_1 = require("@xmldom/xmldom"); | ||
var Utils; | ||
@@ -8,0 +8,0 @@ (function (Utils) { |
@@ -14,2 +14,3 @@ export declare class Utilities { | ||
static logError(message?: any, ...optionalParams: any[]): void; | ||
static logDebug(message?: any, ...optionalParams: any[]): void; | ||
static assert(condition: boolean, message?: any, ...optionalParams: any[]): void; | ||
@@ -16,0 +17,0 @@ static createLocaleFileName(locale: string): string; |
@@ -43,3 +43,3 @@ "use strict"; | ||
if (!fs.existsSync(folderPath)) { | ||
fs.mkdirSync(folderPath); | ||
fs.mkdirSync(folderPath, { recursive: true }); | ||
} | ||
@@ -66,5 +66,10 @@ } | ||
} | ||
static logDebug(message, ...optionalParams) { | ||
if (Utilities._showDebugInfo) { | ||
console.log(constants_1.Constants.LoggingPrefix + message, ...optionalParams); | ||
} | ||
} | ||
static assert(condition, message, ...optionalParams) { | ||
if (Utilities._showDebugInfo) { | ||
(0, console_1.assert)(condition, message, ...optionalParams); | ||
console_1.assert(condition, message, ...optionalParams); | ||
} | ||
@@ -99,5 +104,5 @@ } | ||
exports.Utilities = Utilities; | ||
Utilities._showDebugInfo = true; | ||
Utilities._verboseLogging = true; | ||
Utilities._downloadImages = true; | ||
Utilities._showDebugInfo = false; | ||
Utilities._verboseLogging = false; | ||
Utilities._downloadImages = false; | ||
//# sourceMappingURL=utilities.js.map |
{ | ||
"name": "office-addin-manifest-converter", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A tool to convert Microsoft Office add-in manifests from XML format to JSON format.", | ||
@@ -18,3 +18,3 @@ "main": "./lib/main.js", | ||
"dependencies": { | ||
"xmldom": "^0.6.0", | ||
"@xmldom/xmldom": "^0.7.5", | ||
"terser": "^5.6.0", | ||
@@ -21,0 +21,0 @@ "commander": "^9.0.0" |
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
2674374
21821
+ Added@xmldom/xmldom@^0.7.5
+ Added@xmldom/xmldom@0.7.13(transitive)
- Removedxmldom@^0.6.0
- Removedxmldom@0.6.0(transitive)