Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@octopusdeploy/step-inputs

Package Overview
Dependencies
Maintainers
4
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octopusdeploy/step-inputs - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

dist/ContainerImageReference.d.ts

6

CHANGELOG.md
# @octopusdeploy/step-inputs
## 0.2.0
### Minor Changes
- 8ebd4c6: Added support for a new input type: ContainerImageReference
## 0.1.0

@@ -4,0 +10,0 @@

1

dist/__tests__/InputPaths.type-test.js

@@ -17,4 +17,5 @@ "use strict";

assert();
assert();
function assert() {
}
//# sourceMappingURL=InputPaths.type-test.js.map

@@ -8,1 +8,2 @@ export * from "./PackageReference";

export * from "./accounts/AzureServicePrincipal";
export * from "./ContainerImageReference";

@@ -20,2 +20,3 @@ "use strict";

__exportStar(require("./accounts/AzureServicePrincipal"), exports);
__exportStar(require("./ContainerImageReference"), exports);
//# sourceMappingURL=index.js.map

3

dist/InputPaths.d.ts
import type { Discriminator } from "./Discriminator";
import type { SensitiveValue } from "./SensitiveValues";
import type { PackageReference } from "./PackageReference";
import type { ContainerImageReference } from "./ContainerImageReference";
export declare type InputPathToValue<InputValue> = {

@@ -33,3 +34,3 @@ readonly __inputPathToValueBrand: unique symbol;

};
export declare type InputPaths<PropertyType> = [PropertyType] extends [Discriminator<infer D>] ? D : [PropertyType] extends [SensitiveValue] ? ConvertibleInputPathToValue<PropertyType> : [PropertyType] extends [PackageReference] ? ConvertibleInputPathToValue<PropertyType> : [PropertyType] extends [Array<infer ArrayItem>] ? Array<ObjectInputPathsAndPathToObject<ArrayItem>> & InputPathToArray<ArrayItem> : [PropertyType] extends [object] ? ObjectInputPathsAndPathToObject<PropertyType> : [PropertyType] extends [PropertyType] ? ConvertibleInputPathToValue<PropertyType> : never;
export declare type InputPaths<PropertyType> = [PropertyType] extends [Discriminator<infer D>] ? D : [PropertyType] extends [SensitiveValue] ? ConvertibleInputPathToValue<PropertyType> : [PropertyType] extends [PackageReference] ? ConvertibleInputPathToValue<PropertyType> : [PropertyType] extends [ContainerImageReference] ? ConvertibleInputPathToValue<PropertyType> : [PropertyType] extends [Array<infer ArrayItem>] ? Array<ObjectInputPathsAndPathToObject<ArrayItem>> & InputPathToArray<ArrayItem> : [PropertyType] extends [object] ? ObjectInputPathsAndPathToObject<PropertyType> : [PropertyType] extends [PropertyType] ? ConvertibleInputPathToValue<PropertyType> : never;
export declare type ObjectInputPathsAndPathToObject<T> = ObjectInputPaths<T> & InputPathToObject<T>;

@@ -36,0 +37,0 @@ export declare type ObjectInputPaths<T> = {

import { SensitiveValue } from "./SensitiveValues";
import { PackageReference } from "./PackageReference";
export declare type SupportedValueTypes = number | bigint | boolean | string | null | undefined | SensitiveValue | PackageReference;
import { ContainerImageReference } from "./ContainerImageReference";
export declare type SupportedValueTypes = number | bigint | boolean | string | null | undefined | SensitiveValue | PackageReference | ContainerImageReference;
{
"name": "@octopusdeploy/step-inputs",
"version": "0.1.0",
"version": "0.2.0",
"description": "The step UI",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -6,2 +6,3 @@ // simple property maps to a path with one segment

import { Discriminator } from "../Discriminator";
import { ContainerImageReference } from "../ContainerImageReference";

@@ -27,2 +28,10 @@ assert<IsExactly<ObjectInputPathsAndPathToObject<{ foo: string }>, { foo: ConvertibleInputPathToValue<string> } & InputPathToObject<{ foo: string }>>>();

// works for container image references
assert<
IsExactly<
ObjectInputPathsAndPathToObject<{ foo: ContainerImageReference }>,
{ foo: ConvertibleInputPathToValue<ContainerImageReference> } & InputPathToObject<{ foo: ContainerImageReference }>
>
>();
// works for optional types

@@ -29,0 +38,0 @@ assert<IsExactly<InputPaths<number | undefined>, ConvertibleInputPathToValue<number | undefined>>>();

@@ -8,1 +8,2 @@ export * from "./PackageReference";

export * from "./accounts/AzureServicePrincipal";
export * from "./ContainerImageReference";
import type { Discriminator } from "./Discriminator";
import type { SensitiveValue } from "./SensitiveValues";
import type { PackageReference } from "./PackageReference";
import type { ContainerImageReference } from "./ContainerImageReference";

@@ -36,2 +37,4 @@ export type InputPathToValue<InputValue> = {

? ConvertibleInputPathToValue<PropertyType>
: [PropertyType] extends [ContainerImageReference]
? ConvertibleInputPathToValue<PropertyType>
: [PropertyType] extends [Array<infer ArrayItem>]

@@ -38,0 +41,0 @@ ? Array<ObjectInputPathsAndPathToObject<ArrayItem>> & InputPathToArray<ArrayItem> // eslint-disable-next-line @typescript-eslint/ban-types

import { SensitiveValue } from "./SensitiveValues";
import { PackageReference } from "./PackageReference";
import { ContainerImageReference } from "./ContainerImageReference";
export type SupportedValueTypes = number | bigint | boolean | string | null | undefined | SensitiveValue | PackageReference;
export type SupportedValueTypes = number | bigint | boolean | string | null | undefined | SensitiveValue | PackageReference | ContainerImageReference;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc