@ionic/cli-framework
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [6.0.1](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework@6.0.0...@ionic/cli-framework@6.0.1) (2023-12-19) | ||
### Bug Fixes | ||
* **cli:** resolve vm2 security vulnerability ([#5070](https://github.com/ionic-team/ionic-cli/issues/5070)) ([4050419](https://github.com/ionic-team/ionic-cli/commit/4050419bef70fb92e58b0a83cd4b68b48090e596)) | ||
# [6.0.0](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework@5.1.7...@ionic/cli-framework@6.0.0) (2023-11-08) | ||
@@ -8,0 +19,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.IPCError = exports.CommandNotFoundError = exports.InputValidationError = exports.BaseError = exports.ERROR_IPC_UNKNOWN_PROCEDURE = exports.ERROR_IPC_MODULE_INACCESSIBLE = exports.ERROR_COMMAND_NOT_FOUND = exports.ERROR_INPUT_VALIDATION = void 0; | ||
const util = require("util"); | ||
const tslib_1 = require("tslib"); | ||
const util = tslib_1.__importStar(require("util")); | ||
exports.ERROR_INPUT_VALIDATION = 'ERR_ICF_INPUT_VALIDATION'; | ||
@@ -6,0 +7,0 @@ exports.ERROR_COMMAND_NOT_FOUND = 'ERR_ICF_COMMAND_NOT_FOUND'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NO_COLORS = exports.DEFAULT_COLORS = void 0; | ||
const chalk = require("chalk"); | ||
const lodash = require("lodash"); | ||
const tslib_1 = require("tslib"); | ||
const chalk_1 = tslib_1.__importDefault(require("chalk")); | ||
const lodash = tslib_1.__importStar(require("lodash")); | ||
exports.DEFAULT_COLORS = Object.freeze({ | ||
strong: chalk.bold, | ||
weak: chalk.dim, | ||
input: chalk.cyan, | ||
success: chalk.green, | ||
failure: chalk.red, | ||
ancillary: chalk.cyan, | ||
strong: chalk_1.default.bold, | ||
weak: chalk_1.default.dim, | ||
input: chalk_1.default.cyan, | ||
success: chalk_1.default.green, | ||
failure: chalk_1.default.red, | ||
ancillary: chalk_1.default.cyan, | ||
log: Object.freeze({ | ||
DEBUG: chalk.magenta, | ||
INFO: chalk.white, | ||
WARN: chalk.yellow, | ||
ERROR: chalk.red, | ||
DEBUG: chalk_1.default.magenta, | ||
INFO: chalk_1.default.white, | ||
WARN: chalk_1.default.yellow, | ||
ERROR: chalk_1.default.red, | ||
}), | ||
help: Object.freeze({ | ||
title: chalk.bold, | ||
title: chalk_1.default.bold, | ||
group: Object.freeze({ | ||
["deprecated" /* MetadataGroup.DEPRECATED */]: chalk.yellow, | ||
["beta" /* MetadataGroup.BETA */]: chalk.magenta, | ||
["experimental" /* MetadataGroup.EXPERIMENTAL */]: chalk.red, | ||
["paid" /* MetadataGroup.PAID */]: chalk.green, | ||
["deprecated" /* MetadataGroup.DEPRECATED */]: chalk_1.default.yellow, | ||
["beta" /* MetadataGroup.BETA */]: chalk_1.default.magenta, | ||
["experimental" /* MetadataGroup.EXPERIMENTAL */]: chalk_1.default.red, | ||
["paid" /* MetadataGroup.PAID */]: chalk_1.default.green, | ||
}), | ||
@@ -27,0 +28,0 @@ }), |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateCommandPath = exports.NamespaceMap = exports.CommandMap = exports.Namespace = exports.Command = exports.BaseNamespace = exports.BaseNamespaceMap = exports.BaseCommandMap = exports.CommandMapDefault = exports.BaseCommand = void 0; | ||
const tslib_1 = require("tslib"); | ||
const utils_object_1 = require("@ionic/utils-object"); | ||
const lodash = require("lodash"); | ||
const lodash = tslib_1.__importStar(require("lodash")); | ||
const errors_1 = require("../errors"); | ||
@@ -7,0 +8,0 @@ const string_1 = require("../utils/string"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ZshCompletionFormatter = exports.CompletionFormatter = exports.getCompletionWords = void 0; | ||
const lodash = require("lodash"); | ||
const tslib_1 = require("tslib"); | ||
const lodash = tslib_1.__importStar(require("lodash")); | ||
const guards_1 = require("../guards"); | ||
@@ -6,0 +7,0 @@ const colors_1 = require("./colors"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BaseConfig = void 0; | ||
const tslib_1 = require("tslib"); | ||
const utils_fs_1 = require("@ionic/utils-fs"); | ||
const fs = require("fs"); | ||
const lodash = require("lodash"); | ||
const path = require("path"); | ||
const writeFileAtomic = require("write-file-atomic"); | ||
const fs = tslib_1.__importStar(require("fs")); | ||
const lodash = tslib_1.__importStar(require("lodash")); | ||
const path = tslib_1.__importStar(require("path")); | ||
const writeFileAtomic = tslib_1.__importStar(require("write-file-atomic")); | ||
class BaseConfig { | ||
@@ -10,0 +11,0 @@ constructor(p, { spaces = 2, pathPrefix = [] } = {}) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.execute = exports.Executor = exports.BaseExecutor = exports.AbstractExecutor = exports.HELP_FLAGS = exports.EXECUTOR_OPS = void 0; | ||
const tslib_1 = require("tslib"); | ||
const events_1 = require("events"); | ||
const lodash = require("lodash"); | ||
const lodash = tslib_1.__importStar(require("lodash")); | ||
const errors_1 = require("../errors"); | ||
@@ -111,3 +112,3 @@ const guards_1 = require("../guards"); | ||
async rpc() { | ||
const { RPCProcess } = await Promise.resolve().then(() => require('../utils/ipc')); | ||
const { RPCProcess } = await Promise.resolve().then(() => tslib_1.__importStar(require('../utils/ipc'))); | ||
const metadata = await this.namespace.getMetadata(); | ||
@@ -114,0 +115,0 @@ const rpc = new RPCProcess({ name: metadata.name }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createCommandMetadataFromSchema = exports.CommandSchemaHelpFormatter = exports.NamespaceSchemaHelpFormatter = exports.CommandStringHelpFormatter = exports.CommandHelpFormatter = exports.NamespaceStringHelpFormatter = exports.NamespaceHelpFormatter = exports.HelpFormatter = exports.isCommandVisible = exports.isOptionVisible = void 0; | ||
const tslib_1 = require("tslib"); | ||
const utils_array_1 = require("@ionic/utils-array"); | ||
const utils_terminal_1 = require("@ionic/utils-terminal"); | ||
const Debug = require("debug"); | ||
const lodash = require("lodash"); | ||
const debug_1 = require("debug"); | ||
const lodash = tslib_1.__importStar(require("lodash")); | ||
const guards_1 = require("../guards"); | ||
@@ -12,3 +13,3 @@ const colors_1 = require("./colors"); | ||
const validators_1 = require("./validators"); | ||
const debug = Debug('ionic:cli-framework:lib:help'); | ||
const debug = (0, debug_1.debug)('ionic:cli-framework:lib:help'); | ||
const DEFAULT_DOTS_WIDTH = 32; | ||
@@ -15,0 +16,0 @@ function formatHelpGroups(groups = [], colors = colors_1.DEFAULT_COLORS) { |
@@ -1,2 +0,2 @@ | ||
import * as minimist from 'minimist'; | ||
import minimist from 'minimist'; | ||
import { CommandLineOptions, CommandMetadataOption, HydratedParseArgsOptions, ParsedArg } from '../definitions'; | ||
@@ -3,0 +3,0 @@ import { Colors } from './colors'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.unparseArgs = exports.filterCommandLineOptionsByGroup = exports.filterCommandLineOptions = exports.OptionFilters = exports.metadataOptionsToParseArgsOptions = exports.formatOptionName = exports.hydrateOptionSpec = exports.hydrateCommandMetadataOption = exports.separateArgv = exports.stripOptions = exports.parseArgs = void 0; | ||
const lodash = require("lodash"); | ||
const minimist = require("minimist"); | ||
const tslib_1 = require("tslib"); | ||
const lodash = tslib_1.__importStar(require("lodash")); | ||
const minimist_1 = tslib_1.__importDefault(require("minimist")); | ||
const colors_1 = require("./colors"); | ||
exports.parseArgs = minimist; | ||
exports.parseArgs = minimist_1.default; | ||
/** | ||
@@ -9,0 +10,0 @@ * Remove options, which are any arguments that starts with a hyphen (-), from |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.contains = exports.combine = exports.validators = exports.validate = void 0; | ||
const chalk = require("chalk"); | ||
const tslib_1 = require("tslib"); | ||
const chalk_1 = tslib_1.__importDefault(require("chalk")); | ||
const errors_1 = require("../errors"); | ||
@@ -24,3 +25,3 @@ const string_1 = require("../utils/string"); | ||
if (key) { | ||
return `${chalk.green(key)} must not be empty.`; | ||
return `${chalk_1.default.green(key)} must not be empty.`; | ||
} | ||
@@ -36,3 +37,3 @@ else { | ||
if (key) { | ||
return `${chalk.green(key)} is an invalid email address.`; | ||
return `${chalk_1.default.green(key)} is an invalid email address.`; | ||
} | ||
@@ -48,3 +49,3 @@ else { | ||
if (key) { | ||
return `${chalk.green(key)} is an invalid URL.`; | ||
return `${chalk_1.default.green(key)} is an invalid URL.`; | ||
} | ||
@@ -60,3 +61,3 @@ else { | ||
if (key) { | ||
return `${chalk.green(key)} must be numeric.`; | ||
return `${chalk_1.default.green(key)} must be numeric.`; | ||
} | ||
@@ -72,3 +73,3 @@ else { | ||
if (key) { | ||
return `${chalk.green(key)} is an invalid slug (machine name).`; | ||
return `${chalk_1.default.green(key)} is an invalid slug (machine name).`; | ||
} | ||
@@ -104,6 +105,6 @@ else { | ||
const strValues = values.filter(v => typeof v === 'string'); // TODO: typescript bug? | ||
const mustBe = (strValues.length !== values.length ? 'unset or one of' : 'one of') + ': ' + strValues.map(v => chalk.green(v)).join(', '); | ||
const fmtPretty = (v) => typeof v === 'undefined' ? 'unset' : (v === '' ? 'empty' : chalk.green(v)); | ||
const mustBe = (strValues.length !== values.length ? 'unset or one of' : 'one of') + ': ' + strValues.map(v => chalk_1.default.green(v)).join(', '); | ||
const fmtPretty = (v) => typeof v === 'undefined' ? 'unset' : (v === '' ? 'empty' : chalk_1.default.green(v)); | ||
if (key) { | ||
return `${chalk.green(key)} must be ${mustBe} (not ${fmtPretty(input)})`; | ||
return `${chalk_1.default.green(key)} must be ${mustBe} (not ${fmtPretty(input)})`; | ||
} | ||
@@ -110,0 +111,0 @@ else { |
{ | ||
"name": "@ionic/cli-framework", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "The foundation framework of the Ionic CLI", | ||
@@ -29,10 +29,10 @@ "homepage": "https://ionicframework.com/", | ||
"dependencies": { | ||
"@ionic/cli-framework-output": "2.2.7", | ||
"@ionic/cli-framework-output": "2.2.8", | ||
"@ionic/utils-array": "2.1.6", | ||
"@ionic/utils-fs": "3.1.7", | ||
"@ionic/utils-object": "2.1.6", | ||
"@ionic/utils-process": "2.1.11", | ||
"@ionic/utils-stream": "3.1.6", | ||
"@ionic/utils-subprocess": "3.0.0", | ||
"@ionic/utils-terminal": "2.3.4", | ||
"@ionic/utils-process": "2.1.12", | ||
"@ionic/utils-stream": "3.1.7", | ||
"@ionic/utils-subprocess": "3.0.1", | ||
"@ionic/utils-terminal": "2.3.5", | ||
"chalk": "^4.0.0", | ||
@@ -39,0 +39,0 @@ "debug": "^4.0.0", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RPCHost = exports.RPCProcess = void 0; | ||
const tslib_1 = require("tslib"); | ||
const utils_subprocess_1 = require("@ionic/utils-subprocess"); | ||
const Debug = require("debug"); | ||
const fs = require("fs"); | ||
const debug_1 = require("debug"); | ||
const fs = tslib_1.__importStar(require("fs")); | ||
const errors_1 = require("../errors"); | ||
const debug = Debug('ionic:cli-framework:utils:ipc'); | ||
const debug = (0, debug_1.debug)('ionic:cli-framework:utils:ipc'); | ||
class RPCProcess { | ||
@@ -10,0 +11,0 @@ constructor({ name = 'unnamed', timeout = 5000 } = {}) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.resolveBin = exports.compileNodeModulesPaths = exports.readPackageJsonFile = exports.isValidPackageName = exports.ERROR_BIN_NOT_FOUND = exports.ERROR_INVALID_PACKAGE_JSON = void 0; | ||
const tslib_1 = require("tslib"); | ||
const utils_fs_1 = require("@ionic/utils-fs"); | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
const fs = tslib_1.__importStar(require("fs")); | ||
const path = tslib_1.__importStar(require("path")); | ||
const guards_1 = require("../guards"); | ||
@@ -8,0 +9,0 @@ exports.ERROR_INVALID_PACKAGE_JSON = 'INVALID_PACKAGE_JSON'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.slugify = exports.str2num = exports.strcmp = exports.isValidURL = exports.isValidEmail = exports.URL_REGEX = exports.EMAIL_REGEX = void 0; | ||
const lodash = require("lodash"); | ||
const tslib_1 = require("tslib"); | ||
const lodash = tslib_1.__importStar(require("lodash")); | ||
exports.EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; | ||
@@ -6,0 +7,0 @@ exports.URL_REGEX = /^[\S]+:[\S]+$/; |
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
144433
2705
+ Added@ionic/cli-framework-output@2.2.8(transitive)
+ Added@ionic/utils-process@2.1.12(transitive)
+ Added@ionic/utils-stream@3.1.7(transitive)
+ Added@ionic/utils-subprocess@3.0.1(transitive)
+ Added@ionic/utils-terminal@2.3.5(transitive)
- Removed@ionic/cli-framework-output@2.2.7(transitive)
- Removed@ionic/utils-process@2.1.11(transitive)
- Removed@ionic/utils-stream@3.1.6(transitive)
- Removed@ionic/utils-subprocess@3.0.0(transitive)
- Removed@ionic/utils-terminal@2.3.4(transitive)
Updated@ionic/utils-process@2.1.12
Updated@ionic/utils-stream@3.1.7
Updated@ionic/utils-terminal@2.3.5