@aws-amplify/amplify-prompts
Advanced tools
Comparing version 2.6.13-gfix.0 to 2.7.0-replace-lambda-callouts-tests.0
237
API.md
@@ -7,7 +7,242 @@ ## API Report File for "@aws-amplify/amplify-prompts" | ||
/// <reference types="node" /> | ||
export * from "amplify-prompts"; | ||
import { IFlowData } from '@aws-amplify/amplify-cli-shared-interfaces'; | ||
// @public (undocumented) | ||
export const alphanumeric: (message?: string) => Validator; | ||
// @public (undocumented) | ||
export class AmplifyPrinter implements Printer { | ||
constructor(outputStream?: NodeJS.WritableStream); | ||
// (undocumented) | ||
blankLine: () => void; | ||
// (undocumented) | ||
debug: (line: string) => void; | ||
// (undocumented) | ||
error: (line: string) => void; | ||
// Warning: (ae-forgotten-export) The symbol "Color" needs to be exported by the entry point index.d.ts | ||
// | ||
// (undocumented) | ||
info: (line: string, color?: Color) => void; | ||
// (undocumented) | ||
success: (line: string) => void; | ||
// (undocumented) | ||
warn: (line: string) => void; | ||
} | ||
// @public (undocumented) | ||
export class AmplifySpinner { | ||
constructor(); | ||
// (undocumented) | ||
resetMessage(text: string | null): void; | ||
// (undocumented) | ||
start(text: string | null): void; | ||
// (undocumented) | ||
stop(text?: string | null, success?: boolean): void; | ||
} | ||
// @public (undocumented) | ||
export const and: (validators: [Validator, Validator, ...Validator[]], message?: string) => Validator; | ||
// @public (undocumented) | ||
export type BarOptions = { | ||
progressBarFormatter: (payload: ProgressPayload, value: number, total: number) => string; | ||
itemFormatter: (payload: ItemPayload) => { | ||
renderString: string; | ||
color: string; | ||
}; | ||
loneWolf: boolean; | ||
hideCursor: boolean; | ||
barCompleteChar: string; | ||
barIncompleteChar: string; | ||
barSize: number; | ||
itemCompleteStatus: string[]; | ||
itemFailedStatus: string[]; | ||
prefixText: string; | ||
successText: string; | ||
failureText: string; | ||
}; | ||
// @public (undocumented) | ||
export const between: (min: number, max: number, message?: string) => Validator; | ||
// Warning: (ae-forgotten-export) The symbol "EqualsFunction" needs to be exported by the entry point index.d.ts | ||
// Warning: (ae-forgotten-export) The symbol "SingleFilterFunction" needs to be exported by the entry point index.d.ts | ||
// | ||
// @public (undocumented) | ||
export const byValue: <T>(selection: T, equals?: EqualsFunction<T>) => SingleFilterFunction<T>; | ||
// Warning: (ae-forgotten-export) The symbol "MultiFilterFunction" needs to be exported by the entry point index.d.ts | ||
// | ||
// @public (undocumented) | ||
export const byValues: <T>(selection: T[], equals?: EqualsFunction<T>) => MultiFilterFunction<T>; | ||
// @public (undocumented) | ||
export const exact: (expected: string, message?: string) => Validator; | ||
// @public (undocumented) | ||
export type Formatter = { | ||
list: (items: string[]) => void; | ||
}; | ||
// @public (undocumented) | ||
export const formatter: Formatter; | ||
// @public (undocumented) | ||
export const integer: (message?: string) => Validator; | ||
// @public (undocumented) | ||
export const isDebug: boolean; | ||
// @public (undocumented) | ||
export const isHeadless: boolean; | ||
// @public (undocumented) | ||
export const isInteractiveShell: boolean; | ||
// @public (undocumented) | ||
export const isSilent: boolean; | ||
// @public (undocumented) | ||
export const isYes: boolean; | ||
// @public (undocumented) | ||
export type ItemPayload = { | ||
LogicalResourceId: string; | ||
ResourceType: string; | ||
ResourceStatus: string; | ||
Timestamp: string; | ||
}; | ||
// @public (undocumented) | ||
export const matchRegex: (validatorRegex: RegExp, message?: string) => Validator; | ||
// @public (undocumented) | ||
export const maxLength: (maxLen: number, message?: string) => Validator; | ||
// @public (undocumented) | ||
export const minLength: (minLen: number, message?: string) => Validator; | ||
// @public (undocumented) | ||
export class MultiProgressBar { | ||
constructor(options: BarOptions); | ||
// (undocumented) | ||
create(bars: { | ||
name: string; | ||
value: number; | ||
total: number; | ||
payload: ProgressPayload; | ||
}[]): void; | ||
// (undocumented) | ||
finishAllBars(): void; | ||
// (undocumented) | ||
finishBar(name: string): void; | ||
// (undocumented) | ||
getBar(name: string): { | ||
name: string; | ||
bar: ProgressBar_2; | ||
} | undefined; | ||
// (undocumented) | ||
getBarCount(): number; | ||
// (undocumented) | ||
incrementBar(name: string, value: number): void; | ||
// (undocumented) | ||
isActive: boolean; | ||
// (undocumented) | ||
isTTY(): boolean; | ||
// (undocumented) | ||
render(): void; | ||
// (undocumented) | ||
stop(): void; | ||
// (undocumented) | ||
updateBar(name: string, updateObj: { | ||
name: string; | ||
payload: ItemPayload; | ||
}): void; | ||
// (undocumented) | ||
updatePrefixText(newPrefixText: string): void; | ||
// Warning: (ae-forgotten-export) The symbol "TerminalLine" needs to be exported by the entry point index.d.ts | ||
// | ||
// (undocumented) | ||
writeLines(terminalLine: TerminalLine): void; | ||
} | ||
// @public (undocumented) | ||
export const not: (validator: Validator, message: string) => Validator; | ||
// @public (undocumented) | ||
export const or: (validators: [Validator, Validator, ...Validator[]], message?: string) => Validator; | ||
// @public (undocumented) | ||
export type Printer = { | ||
debug: (line: string) => void; | ||
info: (line: string, color?: Color) => void; | ||
blankLine: () => void; | ||
success: (line: string) => void; | ||
warn: (line: string) => void; | ||
error: (line: string) => void; | ||
}; | ||
// @public (undocumented) | ||
export const printer: Printer; | ||
// @public (undocumented) | ||
class ProgressBar_2 { | ||
constructor(options: BarOptions); | ||
// (undocumented) | ||
addItem(name: string, itemPayload: ItemPayload): void; | ||
// (undocumented) | ||
barCompleteString: string; | ||
// (undocumented) | ||
barIncompleteString: string; | ||
// (undocumented) | ||
barSize: number; | ||
// (undocumented) | ||
createBarString(): string; | ||
// (undocumented) | ||
finish(): void; | ||
// Warning: (ae-forgotten-export) The symbol "Item" needs to be exported by the entry point index.d.ts | ||
// | ||
// (undocumented) | ||
getItem(name: string): Item | undefined; | ||
// (undocumented) | ||
getRenderStrings(): TerminalLine[]; | ||
// (undocumented) | ||
getValue(): number; | ||
// (undocumented) | ||
hasItem(name: string): boolean; | ||
// (undocumented) | ||
increment(value?: number): void; | ||
// (undocumented) | ||
isFailed(): boolean; | ||
// (undocumented) | ||
isFinished(): boolean; | ||
// (undocumented) | ||
render(): void; | ||
// (undocumented) | ||
start(total: number, startValue: number, payload: ProgressPayload): void; | ||
// (undocumented) | ||
stop(): void; | ||
// (undocumented) | ||
updateItem(name: string, newPayload: ItemPayload): void; | ||
} | ||
export { ProgressBar_2 as ProgressBar } | ||
// @public (undocumented) | ||
export type ProgressPayload = { | ||
progressName: string; | ||
envName: string; | ||
}; | ||
// Warning: (ae-forgotten-export) The symbol "Prompter" needs to be exported by the entry point index.d.ts | ||
// | ||
// @public (undocumented) | ||
export const prompter: Prompter; | ||
// @public (undocumented) | ||
export type Validator = (value: string) => true | string | Promise<true | string>; | ||
// (No @packageDocumentation comment for this package) | ||
``` |
@@ -6,74 +6,37 @@ # Change Log | ||
## [2.6.13-gfix.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-prompts@2.6.6...@aws-amplify/amplify-prompts@2.6.13-gfix.0) (2023-04-03) | ||
# [2.7.0-replace-lambda-callouts-tests.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-prompts@2.6.8...@aws-amplify/amplify-prompts@2.7.0-replace-lambda-callouts-tests.0) (2023-05-02) | ||
**Note:** Version bump only for package @aws-amplify/amplify-prompts | ||
### Features | ||
* mock and mock function adds capabilities for function and resource selection ([#12268](https://github.com/aws-amplify/amplify-cli/issues/12268)) ([d18e1a6](https://github.com/aws-amplify/amplify-cli/commit/d18e1a65f885ebd289637d4f77e197b2c6cfe44c)) | ||
## [2.6.12](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-prompts@2.6.6-rc.e9e0d157d.0...@aws-amplify/amplify-prompts@2.6.12) (2023-04-03) | ||
**Note:** Version bump only for package @aws-amplify/amplify-prompts | ||
## [2.6.8](https://github.com/aws-amplify/amplify-cli/compare/amplify-prompts@2.6.6...amplify-prompts@2.6.8) (2023-04-14) | ||
**Note:** Version bump only for package amplify-prompts | ||
## [2.6.11](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-prompts@2.6.6-rc.e9e0d157d.0...@aws-amplify/amplify-prompts@2.6.11) (2023-04-03) | ||
**Note:** Version bump only for package @aws-amplify/amplify-prompts | ||
## [2.6.6](https://github.com/aws-amplify/amplify-cli/compare/amplify-prompts@2.6.6-rc.e9e0d157d.0...amplify-prompts@2.6.6) (2023-03-23) | ||
**Note:** Version bump only for package amplify-prompts | ||
## [2.6.10](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-prompts@2.6.6-rc.e9e0d157d.0...@aws-amplify/amplify-prompts@2.6.10) (2023-04-03) | ||
**Note:** Version bump only for package @aws-amplify/amplify-prompts | ||
## [2.6.6-rc.e9e0d157d.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-prompts@2.6.5...amplify-prompts@2.6.6-rc.e9e0d157d.0) (2023-03-17) | ||
**Note:** Version bump only for package amplify-prompts | ||
## [2.6.9](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-prompts@2.6.6-rc.e9e0d157d.0...@aws-amplify/amplify-prompts@2.6.9) (2023-04-01) | ||
**Note:** Version bump only for package @aws-amplify/amplify-prompts | ||
## [2.6.8](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-prompts@2.6.6-rc.e9e0d157d.0...@aws-amplify/amplify-prompts@2.6.8) (2023-03-31) | ||
**Note:** Version bump only for package @aws-amplify/amplify-prompts | ||
## [2.6.7](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-prompts@2.6.6-rc.e9e0d157d.0...@aws-amplify/amplify-prompts@2.6.7) (2023-03-31) | ||
**Note:** Version bump only for package @aws-amplify/amplify-prompts | ||
## [2.6.6](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-prompts@2.6.6-rc.e9e0d157d.0...@aws-amplify/amplify-prompts@2.6.6) (2023-03-23) | ||
**Note:** Version bump only for package @aws-amplify/amplify-prompts | ||
## 2.6.6-rc.e9e0d157d.0 (2023-03-17) | ||
**Note:** Version bump only for package @aws-amplify/amplify-prompts | ||
## [2.6.5](https://github.com/aws-amplify/amplify-cli/compare/amplify-prompts@2.6.4...amplify-prompts@2.6.5) (2023-03-13) | ||
@@ -80,0 +43,0 @@ |
@@ -1,2 +0,9 @@ | ||
export * from 'amplify-prompts'; | ||
export * from './formatter'; | ||
export * from './printer'; | ||
export * from './prompter'; | ||
export * from './validators'; | ||
export * from './progressbars/progressbar'; | ||
export * from './progressbars/multibar'; | ||
export * from './progressbars/spinner'; | ||
export * from './flags'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -17,3 +17,10 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("amplify-prompts"), exports); | ||
__exportStar(require("./formatter"), exports); | ||
__exportStar(require("./printer"), exports); | ||
__exportStar(require("./prompter"), exports); | ||
__exportStar(require("./validators"), exports); | ||
__exportStar(require("./progressbars/progressbar"), exports); | ||
__exportStar(require("./progressbars/multibar"), exports); | ||
__exportStar(require("./progressbars/spinner"), exports); | ||
__exportStar(require("./flags"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@aws-amplify/amplify-prompts", | ||
"version": "2.6.13-gfix.0", | ||
"version": "2.7.0-replace-lambda-callouts-tests.0", | ||
"description": "Utility functions for Amplify CLI terminal I/O", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"publishConfig": { | ||
@@ -13,2 +14,3 @@ "access": "public" | ||
"demo": "yarn build && node lib/demo/demo.js", | ||
"test": "jest --logHeapUsage --color", | ||
"watch": "tsc -w", | ||
@@ -33,3 +35,5 @@ "extract-api": "ts-node ../../scripts/extract-api.ts" | ||
"dependencies": { | ||
"amplify-prompts": "2.6.13-gfix.0" | ||
"@aws-amplify/amplify-cli-shared-interfaces": "1.2.3-replace-lambda-callouts-tests.0", | ||
"chalk": "^4.1.1", | ||
"enquirer": "^2.3.6" | ||
}, | ||
@@ -58,3 +62,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "e942a6ea47168650c4e9bc2619ce7d7372f507dd" | ||
"gitHead": "e22b2801d0c19881e97c364fff253b75381e3f54" | ||
} |
@@ -1,1 +0,8 @@ | ||
export * from 'amplify-prompts'; | ||
export * from './formatter'; | ||
export * from './printer'; | ||
export * from './prompter'; | ||
export * from './validators'; | ||
export * from './progressbars/progressbar'; | ||
export * from './progressbars/multibar'; | ||
export * from './progressbars/spinner'; | ||
export * from './flags'; |
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
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
265737
74
3170
3
1
+ Added@aws-amplify/amplify-cli-shared-interfaces@1.2.3-replace-lambda-callouts-tests.0
+ Addedchalk@^4.1.1
+ Addedenquirer@^2.3.6
+ Added@aws-amplify/amplify-cli-shared-interfaces@1.2.3-replace-lambda-callouts-tests.0(transitive)
- Removedamplify-prompts@2.6.13-gfix.0
- Removed@aws-amplify/amplify-cli-shared-interfaces@1.2.7-gfix.0(transitive)
- Removedamplify-prompts@2.6.13-gfix.0(transitive)