Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

office-addin-cli

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

office-addin-cli - npm Package Compare versions

Comparing version 1.6.5 to 2.0.0

39

lib/cli.js
#!/usr/bin/env node
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const commander = __importStar(require("commander"));
const commander_1 = __importDefault(require("commander"));
const office_addin_usage_data_1 = require("office-addin-usage-data");
/* global process */
commander.name("office-addin-cli");
commander.version(process.env.npm_package_version || "(version not available)");
commander_1.default.name("office-addin-cli");
commander_1.default.version(process.env.npm_package_version || "(version not available)");
// if the command is not known, display an error
commander.on("command:*", function () {
commander_1.default.on("command:*", function () {
(0, office_addin_usage_data_1.logErrorMessage)(`The command syntax is not valid.\n`);
process.exitCode = 1;
commander.help();
commander_1.default.help();
});
if (process.argv.length > 2) {
commander.parse(process.argv);
commander_1.default.parse(process.argv);
}
else {
commander.help();
commander_1.default.help();
}
//# sourceMappingURL=cli.js.map

@@ -0,1 +1,2 @@

"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.

@@ -2,0 +3,0 @@ // Licensed under the MIT license.

@@ -0,1 +1,2 @@

"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.

@@ -2,0 +3,0 @@ // Licensed under the MIT license.

@@ -0,1 +1,2 @@

"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.

@@ -2,0 +3,0 @@ // Licensed under the MIT license.

@@ -0,1 +1,2 @@

"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.

@@ -15,3 +16,3 @@ // Licensed under the MIT license.

}
catch (err) {
catch (_a) {
throw new Error(errorMessage);

@@ -18,0 +19,0 @@ }

{
"name": "office-addin-cli",
"version": "1.6.5",
"version": "2.0.0",
"description": "A command-line interface for Office Add-ins.",

@@ -32,10 +32,9 @@ "main": "./lib/main.js",

"@types/node-fetch": "^2.5.10",
"@types/sinon": "^7.5.2",
"concurrently": "^6.2.2",
"eslint": "^8.57.0",
"eslint-plugin-office-addins": "^3.0.3",
"eslint-plugin-office-addins": "^4.0.0",
"eslint-plugin-prettier": "^3.4.0",
"mocha": "^9.1.1",
"office-addin-prettier-config": "^1.2.1",
"office-addin-usage-data": "^1.6.14",
"office-addin-prettier-config": "^2.0.0",
"office-addin-usage-data": "^2.0.0",
"prettier": "^2.1.2",

@@ -55,3 +54,3 @@ "rimraf": "^3.0.2",

"prettier": "office-addin-prettier-config",
"gitHead": "0e956d0c18bc933d013d04e814ab31a44db0887c"
"gitHead": "08984754d1d9f53c91aaa3cb5ee0c5c8a018e4f3"
}

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

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