@ionic/cli-framework
Advanced tools
Comparing version 5.1.4-testing.0 to 5.1.4
@@ -6,2 +6,10 @@ # Change Log | ||
## [5.1.4](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework@5.1.3...@ionic/cli-framework@5.1.4) (2023-03-29) | ||
**Note:** Version bump only for package @ionic/cli-framework | ||
## [5.1.3](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework@5.1.2...@ionic/cli-framework@5.1.3) (2022-06-16) | ||
@@ -8,0 +16,0 @@ |
@@ -22,6 +22,6 @@ "use strict"; | ||
group: Object.freeze({ | ||
["deprecated" /* DEPRECATED */]: chalk.yellow, | ||
["beta" /* BETA */]: chalk.magenta, | ||
["experimental" /* EXPERIMENTAL */]: chalk.red, | ||
["paid" /* PAID */]: chalk.green, | ||
["deprecated" /* MetadataGroup.DEPRECATED */]: chalk.yellow, | ||
["beta" /* MetadataGroup.BETA */]: chalk.magenta, | ||
["experimental" /* MetadataGroup.EXPERIMENTAL */]: chalk.red, | ||
["paid" /* MetadataGroup.PAID */]: chalk.green, | ||
}), | ||
@@ -46,8 +46,8 @@ }), | ||
group: Object.freeze({ | ||
["deprecated" /* DEPRECATED */]: lodash.identity, | ||
["beta" /* BETA */]: lodash.identity, | ||
["experimental" /* EXPERIMENTAL */]: lodash.identity, | ||
["paid" /* PAID */]: lodash.identity, | ||
["deprecated" /* MetadataGroup.DEPRECATED */]: lodash.identity, | ||
["beta" /* MetadataGroup.BETA */]: lodash.identity, | ||
["experimental" /* MetadataGroup.EXPERIMENTAL */]: lodash.identity, | ||
["paid" /* MetadataGroup.PAID */]: lodash.identity, | ||
}), | ||
}), | ||
}); |
@@ -23,3 +23,3 @@ "use strict"; | ||
try { | ||
validators_1.validate(argv[i], input.name, [...input.validators]); | ||
(0, validators_1.validate)(argv[i], input.name, [...input.validators]); | ||
} | ||
@@ -142,3 +142,3 @@ catch (e) { | ||
})); | ||
commandList.sort((a, b) => string_1.strcmp(a.name, b.name)); | ||
commandList.sort((a, b) => (0, string_1.strcmp)(a.name, b.name)); | ||
const children = await parent.getNamespaces(); | ||
@@ -145,0 +145,0 @@ const namespacedCommandList = []; |
@@ -10,3 +10,3 @@ "use strict"; | ||
const { obj } = await ns.locate(argv, { useAliases: false }); | ||
if (guards_1.isCommand(obj)) { | ||
if ((0, guards_1.isCommand)(obj)) { | ||
const metadata = await obj.getMetadata(); | ||
@@ -18,3 +18,3 @@ const options = metadata.options ? metadata.options : []; | ||
const optionNames = options | ||
.map(option => options_1.formatOptionName(option, { showAliases: false, showValueSpec: false, colors: colors_1.NO_COLORS })) | ||
.map(option => (0, options_1.formatOptionName)(option, { showAliases: false, showValueSpec: false, colors: colors_1.NO_COLORS })) | ||
.filter(name => !argv.includes(name)); | ||
@@ -21,0 +21,0 @@ const aliasNames = lodash.flatten(options.map(option => option.aliases ? option.aliases : [])) |
@@ -66,3 +66,3 @@ "use strict"; | ||
_setFile(value) { | ||
utils_fs_1.mkdirpSync(path.dirname(this.p)); | ||
(0, utils_fs_1.mkdirpSync)(path.dirname(this.p)); | ||
writeFileAtomic.sync(this.p, JSON.stringify(value, undefined, this.spaces) + '\n'); | ||
@@ -69,0 +69,0 @@ } |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { EventEmitter } from 'events'; | ||
@@ -3,0 +4,0 @@ import { CommandInstanceInfo, CommandMetadata, CommandMetadataInput, CommandMetadataOption, ICommand, IExecutor, INamespace, NamespaceLocateResult } from '../definitions'; |
@@ -42,3 +42,3 @@ "use strict"; | ||
async locate(argv) { | ||
const parsedArgs = options_1.stripOptions(argv, {}); | ||
const parsedArgs = (0, options_1.stripOptions)(argv, {}); | ||
const location = await this.namespace.locate(parsedArgs); | ||
@@ -64,4 +64,4 @@ const args = lodash.drop(argv, location.path.length - 1); | ||
const [location, argv] = await this.resolveExecuteInput(argvOrLocation); | ||
if (lodash.intersection(exports.HELP_FLAGS, argv).length > 0 || guards_1.isNamespace(location.obj)) { | ||
const cmdoptions = options_1.parseArgs(argv); | ||
if (lodash.intersection(exports.HELP_FLAGS, argv).length > 0 || (0, guards_1.isNamespace)(location.obj)) { | ||
const cmdoptions = (0, options_1.parseArgs)(argv); | ||
this.stdout.write(await this.formatHelp(location, { format: cmdoptions['json'] ? 'json' : 'terminal' })); | ||
@@ -78,3 +78,3 @@ } | ||
const metadata = await command.getMetadata(); | ||
const cmdoptions = options_1.parseArgs([...cmdargs], options_1.metadataOptionsToParseArgsOptions(metadata.options ? metadata.options : [])); | ||
const cmdoptions = (0, options_1.parseArgs)([...cmdargs], (0, options_1.metadataOptionsToParseArgsOptions)(metadata.options ? metadata.options : [])); | ||
const cmdinputs = cmdoptions._; | ||
@@ -97,3 +97,3 @@ try { | ||
let formatter; | ||
if (guards_1.isCommand(location.obj)) { | ||
if ((0, guards_1.isCommand)(location.obj)) { | ||
const options = { location, command: location.obj, colors: this.colors }; | ||
@@ -120,3 +120,3 @@ formatter = format === 'json' ? new help_1.CommandSchemaHelpFormatter(options) : new help_1.CommandStringHelpFormatter(options); | ||
const location = await this.namespace.locate(cmdpath); | ||
const formatter = guards_1.isCommand(location.obj) | ||
const formatter = (0, guards_1.isCommand)(location.obj) | ||
? new help_1.CommandSchemaHelpFormatter({ location, command: location.obj, colors: this.colors }) | ||
@@ -123,0 +123,0 @@ : new help_1.NamespaceSchemaHelpFormatter({ location, namespace: location.obj, colors: this.colors }); |
@@ -27,3 +27,3 @@ "use strict"; | ||
const prefix = ancillary(`[${index}]`); | ||
const output = guards_1.isLinkFootnote(footnote) ? formatLinkFootnote(footnote, colors) : footnote.text; | ||
const output = (0, guards_1.isLinkFootnote)(footnote) ? formatLinkFootnote(footnote, colors) : footnote.text; | ||
return `${prefix}: ${output}`; | ||
@@ -55,3 +55,3 @@ } | ||
async function isOptionVisible(opt) { | ||
return !opt.groups || !opt.groups.includes("hidden" /* HIDDEN */); | ||
return !opt.groups || !opt.groups.includes("hidden" /* MetadataGroup.HIDDEN */); | ||
} | ||
@@ -61,3 +61,3 @@ exports.isOptionVisible = isOptionVisible; | ||
const ns = await cmd.namespace.getMetadata(); | ||
return (!cmd.groups || !cmd.groups.includes("hidden" /* HIDDEN */)) && (!ns.groups || !ns.groups.includes("hidden" /* HIDDEN */)); | ||
return (!cmd.groups || !cmd.groups.includes("hidden" /* MetadataGroup.HIDDEN */)) && (!ns.groups || !ns.groups.includes("hidden" /* MetadataGroup.HIDDEN */)); | ||
} | ||
@@ -106,3 +106,3 @@ exports.isCommandVisible = isCommandVisible; | ||
if (!this._fullName) { | ||
const parts = await utils_array_1.map(this.location.path.slice(0, this.location.path.length - 1), async ([, cmd]) => (await cmd.getMetadata()).name); | ||
const parts = await (0, utils_array_1.map)(this.location.path.slice(0, this.location.path.length - 1), async ([, cmd]) => (await cmd.getMetadata()).name); | ||
const name = (await this.getNamespaceMetadata()).name; | ||
@@ -130,3 +130,3 @@ this._fullName = [...parts, name].join(' '); | ||
(await this.formatAfterSummary(metadata))); | ||
const wrappedSummary = utils_terminal_1.wordWrap(summary, { indentation: fullName.length + 5 }); | ||
const wrappedSummary = (0, utils_terminal_1.wordWrap)(summary, { indentation: fullName.length + 5 }); | ||
return wrappedSummary ? ` - ${wrappedSummary}` : ''; | ||
@@ -140,3 +140,3 @@ } | ||
const text = formatFootnotes(metadata.description.trim(), metadata.footnotes, this.colors); | ||
return utils_terminal_1.wordWrap(text, { indentation: 4 }); | ||
return (0, utils_terminal_1.wordWrap)(text, { indentation: 4 }); | ||
} | ||
@@ -162,3 +162,3 @@ async getGlobalOptions() { | ||
const { help: { title } } = this.colors; | ||
const filteredCommands = await utils_array_1.filter(commands, async (cmd) => this.filterCommandCallback(cmd)); | ||
const filteredCommands = await (0, utils_array_1.filter)(commands, async (cmd) => this.filterCommandCallback(cmd)); | ||
const [cmdDetails, nsDetails] = await Promise.all([ | ||
@@ -179,9 +179,9 @@ this.getListOfCommandDetails(filteredCommands.filter(cmd => cmd.namespace === this.namespace)), | ||
const fullCmd = commands.map(cmd => lodash.tail(cmd.path).map(([p]) => p).join(' ')); | ||
const fillStringArray = utils_terminal_1.generateFillSpaceStringList(fullCmd, this.dotswidth, weak('.')); | ||
const fillStringArray = (0, utils_terminal_1.generateFillSpaceStringList)(fullCmd, this.dotswidth, weak('.')); | ||
const formattedCommands = await Promise.all(commands.map(async (cmd, index) => { | ||
const wrapColor = cmd.groups && cmd.groups.includes("deprecated" /* DEPRECATED */) ? weak : lodash.identity; | ||
const wrapColor = cmd.groups && cmd.groups.includes("deprecated" /* MetadataGroup.DEPRECATED */) ? weak : lodash.identity; | ||
const summary = ((await this.formatBeforeCommandSummary(cmd)) + | ||
cmd.summary + | ||
(await this.formatAfterCommandSummary(cmd))); | ||
const wrappedSummary = utils_terminal_1.wordWrap(summary, { indentation: this.dotswidth + 6 }); | ||
const wrappedSummary = (0, utils_terminal_1.wordWrap)(summary, { indentation: this.dotswidth + 6 }); | ||
const line = `${input(lodash.tail(cmd.path).map(([p]) => p).join(' '))}${wrappedSummary ? ' ' + fillStringArray[index] + ' ' + wrappedSummary : ''}`; | ||
@@ -195,3 +195,3 @@ return wrapColor(line); | ||
const namespaces = await this.namespace.groupCommandsByNamespace(commands); | ||
const fillStringArray = utils_terminal_1.generateFillSpaceStringList(namespaces.map(({ name }) => name + ' <subcommand>'), this.dotswidth, weak('.')); | ||
const fillStringArray = (0, utils_terminal_1.generateFillSpaceStringList)(namespaces.map(({ name }) => name + ' <subcommand>'), this.dotswidth, weak('.')); | ||
const formattedNamespaces = await Promise.all(namespaces.map(async (meta, i) => { | ||
@@ -201,3 +201,3 @@ const summary = ((await this.formatBeforeNamespaceSummary(meta, meta.commands)) + | ||
(await this.formatAfterNamespaceSummary(meta, meta.commands))); | ||
const wrappedSummary = utils_terminal_1.wordWrap(summary, { indentation: this.dotswidth + 6 }); | ||
const wrappedSummary = (0, utils_terminal_1.wordWrap)(summary, { indentation: this.dotswidth + 6 }); | ||
return `${input(meta.name + ' <subcommand>')}${wrappedSummary ? ' ' + fillStringArray[i] + ' ' + wrappedSummary : ''}`; | ||
@@ -299,3 +299,3 @@ })); | ||
if (!this._fullName) { | ||
const parts = await utils_array_1.map(this.location.path.slice(0, this.location.path.length - 1), async ([, cmd]) => (await cmd.getMetadata()).name); | ||
const parts = await (0, utils_array_1.map)(this.location.path.slice(0, this.location.path.length - 1), async ([, cmd]) => (await cmd.getMetadata()).name); | ||
const name = (await this.getCommandMetadata()).name; | ||
@@ -323,3 +323,3 @@ this._fullName = [...parts, name].join(' '); | ||
(await this.formatAfterSummary(metadata))); | ||
const wrappedSummary = utils_terminal_1.wordWrap(summary, { indentation: fullName.length + 5 }); | ||
const wrappedSummary = (0, utils_terminal_1.wordWrap)(summary, { indentation: fullName.length + 5 }); | ||
return wrappedSummary ? ` - ${wrappedSummary}` : ''; | ||
@@ -333,3 +333,3 @@ } | ||
const text = formatFootnotes(metadata.description.trim(), metadata.footnotes, this.colors); | ||
return utils_terminal_1.wordWrap(text, { indentation: 4 }); | ||
return (0, utils_terminal_1.wordWrap)(text, { indentation: 4 }); | ||
} | ||
@@ -347,3 +347,3 @@ async formatInlineInput(input) { | ||
const options = metadata.options ? metadata.options : []; | ||
const filteredOptions = await utils_array_1.filter(options, async (opt) => this.filterOptionCallback(opt)); | ||
const filteredOptions = await (0, utils_array_1.filter)(options, async (opt) => this.filterOptionCallback(opt)); | ||
const formattedInputs = metadata.inputs ? await Promise.all(metadata.inputs.map(async (i) => this.formatInlineInput(i))) : []; | ||
@@ -367,3 +367,3 @@ return (`\n ${title('Usage')}:` + | ||
const inputName = input(i.name); | ||
const inputNameLength = utils_terminal_1.stringWidth(inputName); | ||
const inputNameLength = (0, utils_terminal_1.stringWidth)(inputName); | ||
const fullLength = inputNameLength > this.dotswidth ? inputNameLength + 1 : this.dotswidth; | ||
@@ -373,3 +373,3 @@ const fullDescription = ((await this.formatBeforeInputSummary(i)) + | ||
(await this.formatAfterInputSummary(i))); | ||
const wrappedDescription = utils_terminal_1.wordWrap(fullDescription, { indentation: this.dotswidth + 6 }); | ||
const wrappedDescription = (0, utils_terminal_1.wordWrap)(fullDescription, { indentation: this.dotswidth + 6 }); | ||
return `${inputName} ${weak('.').repeat(fullLength - inputNameLength)} ${wrappedDescription}`; | ||
@@ -379,5 +379,5 @@ } | ||
const { weak } = this.colors; | ||
const wrapColor = opt.groups && opt.groups.includes("deprecated" /* DEPRECATED */) ? weak : lodash.identity; | ||
const optionName = options_1.formatOptionName(opt, { colors: this.colors }); | ||
const optionNameLength = utils_terminal_1.stringWidth(optionName); | ||
const wrapColor = opt.groups && opt.groups.includes("deprecated" /* MetadataGroup.DEPRECATED */) ? weak : lodash.identity; | ||
const optionName = (0, options_1.formatOptionName)(opt, { colors: this.colors }); | ||
const optionNameLength = (0, utils_terminal_1.stringWidth)(optionName); | ||
const fullLength = optionNameLength > this.dotswidth ? optionNameLength + 1 : this.dotswidth; | ||
@@ -387,3 +387,3 @@ const fullDescription = ((await this.formatBeforeOptionSummary(opt)) + | ||
(await this.formatAfterOptionSummary(opt))); | ||
const wrappedDescription = utils_terminal_1.wordWrap(fullDescription, { indentation: this.dotswidth + 6 }); | ||
const wrappedDescription = (0, utils_terminal_1.wordWrap)(fullDescription, { indentation: this.dotswidth + 6 }); | ||
const line = `${optionName} ${weak('.').repeat(fullLength - optionNameLength)} ${wrappedDescription}`; | ||
@@ -458,3 +458,3 @@ return wrapColor(line); | ||
const { help: { title } } = this.colors; | ||
const filteredOptions = await utils_array_1.filter(options, async (opt) => this.filterOptionCallback(opt)); | ||
const filteredOptions = await (0, utils_array_1.filter)(options, async (opt) => this.filterOptionCallback(opt)); | ||
if (filteredOptions.length === 0) { | ||
@@ -477,3 +477,3 @@ return ''; | ||
cmd = sepIndex === -1 ? input(cmd) : input(cmd.substring(0, sepIndex)) + cmd.substring(sepIndex); | ||
const wrappedCmd = utils_terminal_1.wordWrap(cmd, { indentation: 12, append: ' \\' }); | ||
const wrappedCmd = (0, utils_terminal_1.wordWrap)(cmd, { indentation: 12, append: ' \\' }); | ||
return `${weak('$')} ${input(fullName + ' ')}${wrappedCmd ? wrappedCmd : ''}`; | ||
@@ -511,4 +511,4 @@ }); | ||
async formatCommandGroup(commands) { | ||
const filteredCommands = await utils_array_1.filter(commands, async (cmd) => this.filterCommandCallback(cmd)); | ||
return utils_array_1.map(filteredCommands, async (cmd) => this.formatCommand(cmd)); | ||
const filteredCommands = await (0, utils_array_1.filter)(commands, async (cmd) => this.filterCommandCallback(cmd)); | ||
return (0, utils_array_1.map)(filteredCommands, async (cmd) => this.formatCommand(cmd)); | ||
} | ||
@@ -544,3 +544,3 @@ async formatCommand(cmd) { | ||
async formatOptions(options) { | ||
const filteredOptions = await utils_array_1.filter(options, async (opt) => this.filterOptionCallback(opt)); | ||
const filteredOptions = await (0, utils_array_1.filter)(options, async (opt) => this.filterOptionCallback(opt)); | ||
return Promise.all(filteredOptions.map(async (opt) => this.formatOption(opt))); | ||
@@ -554,7 +554,7 @@ } | ||
const type = option.type ? option.type.name.toLowerCase() : 'string'; | ||
const spec = options_1.hydrateOptionSpec(option); | ||
const spec = (0, options_1.hydrateOptionSpec)(option); | ||
return { name, type, summary, default: option.default, groups, aliases, spec }; | ||
} | ||
formatFootnote(footnote) { | ||
return guards_1.isLinkFootnote(footnote) ? ({ type: 'link', ...footnote }) : ({ type: 'text', ...footnote }); | ||
return (0, guards_1.isLinkFootnote)(footnote) ? ({ type: 'link', ...footnote }) : ({ type: 'text', ...footnote }); | ||
} | ||
@@ -570,3 +570,3 @@ async formatCommand(cmd) { | ||
const exampleCommands = cmd.exampleCommands ? cmd.exampleCommands.map(c => `${name} ${c}`) : []; | ||
const aliases = guards_1.isHydratedCommandMetadata(cmd) ? cmd.aliases : []; | ||
const aliases = (0, guards_1.isHydratedCommandMetadata)(cmd) ? cmd.aliases : []; | ||
const inputs = cmd.inputs ? await this.formatInputs(cmd.inputs) : []; | ||
@@ -573,0 +573,0 @@ const options = cmd.options ? await this.formatOptions(cmd.options) : []; |
@@ -33,3 +33,3 @@ "use strict"; | ||
email(input, key) { | ||
if (!string_1.isValidEmail(input)) { | ||
if (!(0, string_1.isValidEmail)(input)) { | ||
if (key) { | ||
@@ -45,3 +45,3 @@ return `${chalk.green(key)} is an invalid email address.`; | ||
url(input, key) { | ||
if (!string_1.isValidURL(input)) { | ||
if (!(0, string_1.isValidURL)(input)) { | ||
if (key) { | ||
@@ -68,3 +68,3 @@ return `${chalk.green(key)} is an invalid URL.`; | ||
slug(input, key) { | ||
if (!input || string_1.slugify(input) !== input) { | ||
if (!input || (0, string_1.slugify)(input) !== input) { | ||
if (key) { | ||
@@ -71,0 +71,0 @@ return `${chalk.green(key)} is an invalid slug (machine name).`; |
{ | ||
"name": "@ionic/cli-framework", | ||
"version": "5.1.4-testing.0", | ||
"version": "5.1.4", | ||
"description": "The foundation framework of the Ionic CLI", | ||
@@ -10,3 +10,3 @@ "homepage": "https://ionicframework.com/", | ||
"engines": { | ||
"node": ">=10.3.0" | ||
"node": ">=16.0.0" | ||
}, | ||
@@ -23,10 +23,10 @@ "scripts": { | ||
"dependencies": { | ||
"@ionic/cli-framework-output": "2.2.6-testing.0", | ||
"@ionic/utils-array": "2.1.5", | ||
"@ionic/utils-fs": "3.1.7-testing.0", | ||
"@ionic/utils-object": "2.1.5", | ||
"@ionic/utils-process": "2.1.11-testing.0", | ||
"@ionic/utils-stream": "3.1.5", | ||
"@ionic/utils-subprocess": "2.1.12-testing.0", | ||
"@ionic/utils-terminal": "2.3.4-testing.0", | ||
"@ionic/cli-framework-output": "2.2.6", | ||
"@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": "2.1.12", | ||
"@ionic/utils-terminal": "2.3.4", | ||
"chalk": "^4.0.0", | ||
@@ -45,3 +45,3 @@ "debug": "^4.0.0", | ||
"@types/minimist": "^1.2.0", | ||
"@types/node": "~10.17.13", | ||
"@types/node": "~16.0.0", | ||
"@types/write-file-atomic": "^3.0.0", | ||
@@ -52,5 +52,5 @@ "jest": "^26.4.2", | ||
"ts-jest": "~26.3.0", | ||
"typescript": "~4.0.2" | ||
"typescript": "~4.8.0" | ||
}, | ||
"gitHead": "f3fbed91bf0e32ba6bd10c805d0922161f59ef6f" | ||
"gitHead": "15ef6e7da4eace4fd55d16fd9508d156a4bc8203" | ||
} |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { ChildProcess } from 'child_process'; | ||
@@ -3,0 +4,0 @@ export interface RPCRequest<P extends string, A extends any[]> { |
@@ -124,3 +124,3 @@ "use strict"; | ||
} | ||
const p = utils_subprocess_1.fork(this.modulePath, this.args, { stdio: ['ignore', 'ignore', 'ignore', 'ipc'] }); | ||
const p = (0, utils_subprocess_1.fork)(this.modulePath, this.args, { stdio: ['ignore', 'ignore', 'ignore', 'ipc'] }); | ||
debug('RPC subprocess forked %o', [this.modulePath, ...this.args]); | ||
@@ -127,0 +127,0 @@ this.rpc.start(p); |
@@ -18,4 +18,4 @@ "use strict"; | ||
async function readPackageJsonFile(p) { | ||
const packageJson = await utils_fs_1.readJson(p); | ||
if (!guards_1.isPackageJson(packageJson)) { | ||
const packageJson = await (0, utils_fs_1.readJson)(p); | ||
if (!(0, guards_1.isPackageJson)(packageJson)) { | ||
throw exports.ERROR_INVALID_PACKAGE_JSON; | ||
@@ -27,3 +27,3 @@ } | ||
function compileNodeModulesPaths(filePath) { | ||
return utils_fs_1.compilePaths(filePath).map(f => path.join(f, 'node_modules')); | ||
return (0, utils_fs_1.compilePaths)(filePath).map(f => path.join(f, 'node_modules')); | ||
} | ||
@@ -34,3 +34,3 @@ exports.compileNodeModulesPaths = compileNodeModulesPaths; | ||
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf8' })); | ||
if (!guards_1.isPackageJson(packageJson) || !packageJson.bin) { | ||
if (!(0, guards_1.isPackageJson)(packageJson) || !packageJson.bin) { | ||
throw exports.ERROR_INVALID_PACKAGE_JSON; | ||
@@ -37,0 +37,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PromiseUtil = exports.promisifyEvent = exports.promisify = void 0; | ||
exports.promisify = (func) => { | ||
const promisify = (func) => { | ||
return (...args) => { | ||
@@ -16,3 +16,4 @@ return new Promise((resolve, reject) => { | ||
}; | ||
exports.promisifyEvent = (emitter, event) => { | ||
exports.promisify = promisify; | ||
const promisifyEvent = (emitter, event) => { | ||
return new Promise((resolve, reject) => { | ||
@@ -27,2 +28,3 @@ emitter.once(event, (value) => { | ||
}; | ||
exports.promisifyEvent = promisifyEvent; | ||
var PromiseUtil; | ||
@@ -29,0 +31,0 @@ (function (PromiseUtil) { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
142024
2705
0
0
+ Added@ionic/cli-framework-output@2.2.6(transitive)
+ Added@ionic/utils-array@2.1.6(transitive)
+ Added@ionic/utils-fs@3.1.7(transitive)
+ Added@ionic/utils-object@2.1.6(transitive)
+ Added@ionic/utils-process@2.1.11(transitive)
+ Added@ionic/utils-stream@3.1.6(transitive)
+ Added@ionic/utils-subprocess@2.1.12(transitive)
+ Added@ionic/utils-terminal@2.3.4(transitive)
- Removed@ionic/cli-framework-output@2.2.6-testing.0(transitive)
- Removed@ionic/utils-array@2.1.5(transitive)
- Removed@ionic/utils-fs@3.1.7-testing.0(transitive)
- Removed@ionic/utils-object@2.1.5(transitive)
- Removed@ionic/utils-process@2.1.11-testing.0(transitive)
- Removed@ionic/utils-stream@3.1.5(transitive)
- Removed@ionic/utils-subprocess@2.1.12-testing.0(transitive)
- Removed@ionic/utils-terminal@2.3.4-testing.0(transitive)
Updated@ionic/utils-array@2.1.6
Updated@ionic/utils-fs@3.1.7
Updated@ionic/utils-object@2.1.6
Updated@ionic/utils-process@2.1.11
Updated@ionic/utils-stream@3.1.6
Updated@ionic/utils-terminal@2.3.4