actions-parsers
Advanced tools
Comparing version 1.0.1 to 1.0.2
# Changelog | ||
## [1.0.2](https://github.com/cobraz/actions-parsers/compare/v1.0.1...v1.0.2) (2022-12-28) | ||
### Bug Fixes | ||
* allow options to be undefined for getNumberInput ([9d8510b](https://github.com/cobraz/actions-parsers/commit/9d8510b4cded6f02f57f981c65f1484f51061d57)) | ||
* remove nullish coalescing operator ([0067231](https://github.com/cobraz/actions-parsers/commit/00672316c66843b06ffde6b37ff3801e5f2ef8e5)) | ||
## [1.0.1](https://github.com/cobraz/actions-parsers/compare/v1.0.0...v1.0.1) (2022-12-28) | ||
@@ -4,0 +12,0 @@ |
import { InputOptions } from '@actions/core'; | ||
import type { OptionalInput, RequiredInput } from '../common'; | ||
export declare function getNumberInput(name: string, options: RequiredInput & InputOptions): number; | ||
export declare function getNumberInput(name: string, options: OptionalInput & InputOptions): undefined | number; | ||
export declare function getNumberInput(name: string, options?: RequiredInput & InputOptions): number; | ||
export declare function getNumberInput(name: string, options?: OptionalInput & InputOptions): undefined | number; |
@@ -29,3 +29,3 @@ "use strict"; | ||
function getParsedInput(name, options) { | ||
const { parser, ...otherOptions } = options ?? {}; | ||
const { parser, ...otherOptions } = options || {}; | ||
const input = core.getInput(name, otherOptions); | ||
@@ -32,0 +32,0 @@ if (!input) { |
@@ -30,3 +30,3 @@ "use strict"; | ||
function getYAMLInput(name, options) { | ||
const { parser, ...otherOptions } = options ?? {}; | ||
const { parser, ...otherOptions } = options || {}; | ||
const value = (0, core_1.getInput)(name, otherOptions); | ||
@@ -33,0 +33,0 @@ if (!value) { |
@@ -13,3 +13,3 @@ { | ||
"format": "prettier --write . --ignore-path .gitignore ", | ||
"format:check": "prettier --check . --ignore-path .gitignore", | ||
"format:check": "prettier --check .", | ||
"lint": "eslint . --ext .ts,.tsx", | ||
@@ -71,3 +71,3 @@ "test": "jest --coverage src/**/*" | ||
}, | ||
"version": "1.0.1" | ||
"version": "1.0.2" | ||
} |
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
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
30659