Bump prettier from 1.19.1 to 2.0.2 (#210)

* Bump prettier from 1.19.1 to 2.0.2

Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/1.19.1...2.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Formatting for Prettier 2.0

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: JamesIves <iam@jamesiv.es>
This commit is contained in:
dependabot-preview[bot] 2020-03-25 10:17:13 -04:00 committed by GitHub
parent a06fd6dc48
commit 78f3c44617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View File

@ -42,7 +42,7 @@
"@types/node": "^13.1.2", "@types/node": "^13.1.2",
"jest": "^25.1.0", "jest": "^25.1.0",
"jest-circus": "^25.1.0", "jest-circus": "^25.1.0",
"prettier": "^1.19.1", "prettier": "^2.0.2",
"ts-jest": "^25.0.0", "ts-jest": "^25.0.0",
"eslint": "^6.8.0", "eslint": "^6.8.0",
"eslint-plugin-github": "^3.4.1", "eslint-plugin-github": "^3.4.1",

View File

@ -65,8 +65,9 @@ export const action: ActionInterface = {
? getInput('GIT_CONFIG_EMAIL') ? getInput('GIT_CONFIG_EMAIL')
: pusher && pusher.email : pusher && pusher.email
? pusher.email ? pusher.email
: `${process.env.GITHUB_ACTOR || : `${
'github-pages-deploy-action'}@users.noreply.github.com`, process.env.GITHUB_ACTOR || 'github-pages-deploy-action'
}@users.noreply.github.com`,
gitHubToken: getInput('GITHUB_TOKEN'), gitHubToken: getInput('GITHUB_TOKEN'),
name: !isNullOrUndefined(getInput('GIT_CONFIG_NAME')) name: !isNullOrUndefined(getInput('GIT_CONFIG_NAME'))
? getInput('GIT_CONFIG_NAME') ? getInput('GIT_CONFIG_NAME')

View File

@ -19,10 +19,9 @@ export const generateTokenType = (action: ActionInterface): string =>
export const generateRepositoryPath = (action: ActionInterface): string => export const generateRepositoryPath = (action: ActionInterface): string =>
action.ssh action.ssh
? `git@github.com:${action.repositoryName}` ? `git@github.com:${action.repositoryName}`
: `https://${action.accessToken || : `https://${
`x-access-token:${action.gitHubToken}`}@github.com/${ action.accessToken || `x-access-token:${action.gitHubToken}`
action.repositoryName }@github.com/${action.repositoryName}.git`
}.git`
/* Checks for the required tokens and formatting. Throws an error if any case is matched. */ /* Checks for the required tokens and formatting. Throws an error if any case is matched. */
export const hasRequiredParameters = (action: ActionInterface): void => { export const hasRequiredParameters = (action: ActionInterface): void => {

View File

@ -3283,9 +3283,9 @@ prettier-linter-helpers@^1.0.0:
dependencies: dependencies:
fast-diff "^1.1.2" fast-diff "^1.1.2"
prettier@>=1.12.0, prettier@^1.19.1: prettier@>=1.12.0, prettier@^2.0.2:
version "1.19.1" version "2.0.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.2.tgz#1ba8f3eb92231e769b7fcd7cb73ae1b6b74ade08"
pretty-format@^25.1.0: pretty-format@^25.1.0:
version "25.1.0" version "25.1.0"