@circleci/circleci-config-sdk
Advanced tools
Comparing version 0.5.0-alpha.6 to 0.5.0-alpha.7
@@ -7,2 +7,3 @@ import { Component } from '../../..'; | ||
import { Command } from '../Command'; | ||
import { ReusableCommand } from './ReusableCommand'; | ||
export declare type CustomCommandShape = { | ||
@@ -12,2 +13,3 @@ [name: string]: { | ||
steps: CommandShape[]; | ||
description?: string; | ||
}; | ||
@@ -22,3 +24,7 @@ }; | ||
steps: Command[]; | ||
constructor(name: string, parameters?: CustomParametersList<CommandParameterLiteral>, steps?: Command[]); | ||
/** | ||
* A string that describes the purpose of the command. | ||
*/ | ||
description?: string; | ||
constructor(name: string, steps?: Command[], parameters?: CustomParametersList<CommandParameterLiteral>, description?: string); | ||
generate(): CustomCommandShape; | ||
@@ -28,2 +34,3 @@ addStep(step: Command): CustomCommand; | ||
} | ||
export { ReusableCommand }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -11,2 +11,7 @@ import { CustomCommand } from '.'; | ||
parameters?: CommandParameters; | ||
/** | ||
* Reuse user defined functionality by adding a reusable command to a job. | ||
* @param command - A custom command to be reused. | ||
* @param parameters - the parameters to be passed to the custom command. | ||
*/ | ||
constructor(command: CustomCommand, parameters?: CommandParameters); | ||
@@ -13,0 +18,0 @@ /** |
{ | ||
"name": "@circleci/circleci-config-sdk", | ||
"version": "0.5.0-alpha.6", | ||
"version": "0.5.0-alpha.7", | ||
"description": "An SDK for building CircleCI Configuration files with JavaScript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/circleci-config-sdk.js", |
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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances 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
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
106813016
384
18861
3