A Shanzhai output which wraps a value in an object with a given key.
Give an instance of WrapInObjectOutput
to a Step
as an output and it will
wrap the value in an object before passing it to its nested Output
.
For example, the following examples are equivalent:
new CopyStep(
`Example`,
new ConstantInput([1, 2, 3]),
new WrapInObjectOutput(`testKey`, new ExampleOutput())
);
new CopyStep(
`Example`,
new ConstantInput({ testKey: [1, 2, 3] }),
new ExampleOutput()
);
This package has no runtime dependencies.
This package has no runtime peer dependencies (it does not expect any other packages to be installed alongside itself).