Compare commits

...

44 Commits

Author SHA1 Message Date
peaceiris
ec916d70ad github: Update action meta 2019-10-29 10:03:36 +09:00
peaceiris
d88559854c github: Update action meta 2019-10-29 09:59:34 +09:00
peaceiris
2965e59bb8 deps: update 2019-10-29 09:56:12 +09:00
peaceiris
f0004ebb52 github: Update action meta 2019-10-29 09:54:47 +09:00
peaceiris
0101f0a550 github: Remove FUNDING.yml 2019-10-29 03:26:27 +09:00
Shohei Ueda
c31a671975 Update issue templates 2019-10-29 03:23:41 +09:00
peaceiris
78c603eb60 github: Add issue template config
https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
2019-10-29 03:17:06 +09:00
Shohei Ueda
bbc02a7bb6 Update issue templates 2019-10-29 03:11:09 +09:00
peaceiris
8e53828e04 docs: Remove Hugo --gc flag
This flag should be used on local.
It is wasteful to use the Garbage Collection on CI.
2019-10-24 21:51:13 +09:00
peaceiris
3fe8ef06d5 github: Add CODEOWNERS 2019-10-24 06:03:40 +09:00
peaceiris
3e1caf266f deps: update 2019-10-23 20:02:44 +09:00
peaceiris
827a8f8ea5 deps: Add dependabot config 2019-10-23 20:01:55 +09:00
peaceiris
7ed9704167 deps: update 2019-10-22 15:20:10 +09:00
dependabot-preview[bot]
967e91f479 build(deps): bump @actions/core from 1.1.3 to 1.2.0 (#68)
* build(deps): bump @actions/core from 1.1.3 to 1.2.0

Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.1.3 to 1.2.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/master/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

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

* deps: npm run build
2019-10-22 00:47:05 +09:00
peaceiris
46f4f706ee docs: update 2019-10-19 16:52:57 +09:00
peaceiris
5d81587f8c docs: Remove the link to actions tab
We need to login to access the actions tab.

https://github.com/sdras/awesome-actions/issues/232
2019-10-17 16:31:56 +09:00
dependabot-preview[bot]
71b8a771a4 build(deps-dev): bump @types/node from 12.11.0 to 12.11.1 (#66)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.11.0 to 12.11.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-16 15:38:12 +09:00
peaceiris
432b4df64a deps: update 2019-10-16 07:42:58 +09:00
peaceiris
199ebd1829 deps: update 2019-10-15 16:15:10 +09:00
peaceiris
9582ca51e5 docs: update workflow example, enhance build step 2019-10-14 21:57:26 +09:00
peaceiris
79ff7701be deps: update 2019-10-14 13:29:11 +09:00
peaceiris
ed1ba0af60 deps: update 2019-10-10 15:25:52 +09:00
peaceiris
c57482c110 deps: update 2019-10-09 14:03:54 +09:00
peaceiris
4e9981b947 chore: delete line 2019-10-09 11:49:24 +09:00
peaceiris
7082e0fbec config: Add .envrc 2019-10-09 11:46:06 +09:00
Shohei Ueda
3e55082b3f gha: Use setup-node (#58)
* config: Add .nvmrc
* gha: Add setup-node step
* gha: Add step to read .nvmrc

Close #55
2019-10-09 00:20:05 +09:00
imgbot[bot]
839eb279b0 [ImgBot] Optimize images (#56)
/images/ogp.svg -- 257.54kb -> 257.51kb (0.01%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2019-10-08 14:01:01 +09:00
peaceiris
a02eaa1734 deps: update 2019-10-08 13:47:18 +09:00
peaceiris
fa565fb82d docs: update workflow example 2019-10-07 20:15:02 +09:00
peaceiris
7404f29555 chore: update .gitignore 2019-10-07 15:10:37 +09:00
peaceiris
7b66ed001b docs: update tag 2019-10-07 00:19:53 +09:00
peaceiris
64951c5a73 docs: update 2019-10-07 00:11:15 +09:00
peaceiris
35c74b6a6a deps: update 2019-10-04 12:19:43 +09:00
peaceiris
b5fb138703 meta: Update description 2019-10-03 11:35:41 +09:00
Shohei Ueda
6f6a564fad Deps: update (#53)
* deps: update

* deps: update node_modules
2019-10-02 10:58:52 +09:00
peaceiris
cd3751ce70 gha: enhance trigger 2019-10-01 20:10:45 +09:00
peaceiris
07e434d37c deps: update lint-staged 2019-10-01 14:54:03 +09:00
peaceiris
1405de8b20 deps: update eslint 2019-10-01 11:01:26 +09:00
peaceiris
7346c7bdad deps: update eslint 2019-09-29 14:08:38 +09:00
peaceiris
f1ac6bf271 deps: update husky 2019-09-28 11:19:42 +09:00
peaceiris
c7b570bed5 deps: update 2019-09-26 19:48:38 +09:00
Shohei Ueda
3ae7dd1270 deps: update (#52)
#50
2019-09-26 14:50:12 +09:00
peaceiris
9fdb1cb749 docs: update tag of peaceiris/actions-gh-pages to v2.4.0 2019-09-25 12:47:37 +09:00
peaceiris
e2b52b7b4d docs: update tag to v2.2.1 2019-09-25 12:44:14 +09:00
22 changed files with 858 additions and 710 deletions

9
.dependabot/config.yml Normal file
View File

@@ -0,0 +1,9 @@
version: 1
update_configs:
- package_manager: "javascript"
directory: "/"
update_schedule: "weekly"
default_labels:
- "dependencies"
commit_message:
prefix: "deps"

3
.envrc Normal file
View File

@@ -0,0 +1,3 @@
nvmrc=~/.nvm/nvm.sh
source $nvmrc
nvm use

3
.github/CODEOWNERS vendored Normal file
View File

@@ -0,0 +1,3 @@
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
* @peaceiris

9
.github/FUNDING.yml vendored
View File

@@ -1,9 +0,0 @@
# These are supported funding model platforms
# github: peaceiris
patreon: peaceiris
issuehunt: peaceiris
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
custom: # Replace with a single custom sponsorship URL

31
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@@ -0,0 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
title: 'Bug: This is a sample issue title'
labels: bug
assignees: peaceiris
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Your YAML file**
- A link to your repository
- A link to your YAML file
**Additional context**
Add any other context about the problem here.

8
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: GitHub Actions Community Forum
url: https://github.community/t5/GitHub-Actions/bd-p/actions
about: Please ask questions about GitHub Actions here.
- name: Hugo Community Forum
url: https://discourse.gohugo.io/
about: Please ask questions about Hugo here.

View File

@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: 'feat: This is a sample title'
labels: request
assignees: peaceiris
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

View File

@@ -4,6 +4,8 @@ on:
pull_request: pull_request:
types: [opened, synchronize] types: [opened, synchronize]
push: push:
branches:
- master
jobs: jobs:
test: test:
@@ -14,8 +16,17 @@ jobs:
with: with:
fetch-depth: 1 fetch-depth: 1
- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm install
- name: Format check - name: Format check
run: npm run format:check run: npm run format:check
@@ -26,7 +37,8 @@ jobs:
- name: Test - name: Test
run: npm test run: npm test
- uses: actions/upload-artifact@master - name: Upload test coverage
uses: actions/upload-artifact@master
with: with:
name: coverage name: coverage
path: coverage path: coverage

57
.gitignore vendored
View File

@@ -1,61 +1,4 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
# node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm .npm
# Optional eslint cache
.eslintcache .eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env .env
# next.js build output
.next

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
12.11.1

View File

@@ -1,7 +1,7 @@
[![license](https://img.shields.io/github/license/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/blob/master/LICENSE) [![license](https://img.shields.io/github/license/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/blob/master/LICENSE)
[![release](https://img.shields.io/github/release/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/releases/latest) [![release](https://img.shields.io/github/release/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/releases/latest)
[![GitHub release date](https://img.shields.io/github/release-date/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/releases) [![GitHub release date](https://img.shields.io/github/release-date/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/releases)
[![GitHub Actions status](https://github.com/peaceiris/actions-hugo/workflows/Test/badge.svg)](https://github.com/peaceiris/actions-hugo/actions) ![GitHub Actions status](https://github.com/peaceiris/actions-hugo/workflows/Test/badge.svg)
<img width="400" alt="GitHub Actions for Hugo" src="./images/ogp.svg"> <img width="400" alt="GitHub Actions for Hugo" src="./images/ogp.svg">
@@ -43,9 +43,9 @@ From `v2.0.0`, this Hugo action migrated to a JavaScript (TypeScript) action. W
### ⭐️ Create your workflow ### ⭐️ Create your workflow
An example workflow `.github/workflows/gh-pages.yml` with [GitHub Actions for deploying to GitHub Pages with Static Site Generators] An example workflow `.github/workflows/gh-pages.yml` with [GitHub Actions for GitHub Pages]
[GitHub Actions for deploying to GitHub Pages with Static Site Generators]: https://github.com/peaceiris/actions-gh-pages [GitHub Actions for GitHub Pages]: https://github.com/peaceiris/actions-gh-pages
[![peaceiris/actions-gh-pages - GitHub](https://gh-card.dev/repos/peaceiris/actions-gh-pages.svg?fullname)](https://github.com/peaceiris/actions-gh-pages) [![peaceiris/actions-gh-pages - GitHub](https://gh-card.dev/repos/peaceiris/actions-gh-pages.svg?fullname)](https://github.com/peaceiris/actions-gh-pages)
@@ -63,23 +63,22 @@ on:
jobs: jobs:
build-deploy: build-deploy:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
# runs-on: macOS-10.14
# runs-on: windows-2019
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
# with: # with:
# submodules: true # submodules: true
- name: Setup Hugo - name: Setup Hugo
uses: peaceiris/actions-hugo@v2.2.0 uses: peaceiris/actions-hugo@v2.2.2
with: with:
hugo-version: '0.58.3' hugo-version: '0.58.3'
# extended: true
- name: Build - name: Build
run: hugo --gc --minify --cleanDestinationDir run: hugo --minify
- name: Deploy - name: Deploy
uses: peaceiris/actions-gh-pages@v2.3.2 uses: peaceiris/actions-gh-pages@v2.5.0
env: env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages PUBLISH_BRANCH: gh-pages
@@ -96,7 +95,7 @@ Set `extended: true` to use a Hugo extended version.
```yaml ```yaml
- name: Setup Hugo - name: Setup Hugo
uses: peaceiris/actions-hugo@v2.2.0 uses: peaceiris/actions-hugo@v2.2.2
with: with:
hugo-version: '0.58.3' hugo-version: '0.58.3'
extended: true extended: true
@@ -108,7 +107,7 @@ Set `hugo-version: 'latest'` to use the latest version of Hugo.
```yaml ```yaml
- name: Setup Hugo - name: Setup Hugo
uses: peaceiris/actions-hugo@v2.2.0 uses: peaceiris/actions-hugo@v2.2.2
with: with:
hugo-version: 'latest' hugo-version: 'latest'
``` ```

View File

@@ -1,5 +1,5 @@
name: 'Hugo setup action' name: 'Hugo setup'
description: 'GitHub Actions for Hugo extended and Hugo Modules' description: 'GitHub Actions for Hugo ⚡️ Setup Hugo quickly and build your site fast. Hugo extended and Hugo Modules are supported.'
author: 'peaceiris' author: 'peaceiris'
inputs: inputs:
hugo-version: hugo-version:

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 258 KiB

After

Width:  |  Height:  |  Size: 258 KiB

235
node_modules/@actions/core/README.md generated vendored
View File

@@ -1,97 +1,140 @@
# `@actions/core` # `@actions/core`
> Core functions for setting results, logging, registering secrets and exporting variables across actions > Core functions for setting results, logging, registering secrets and exporting variables across actions
## Usage ## Usage
#### Inputs/Outputs ### Import the package
You can use this library to get inputs or set outputs: ```js
// javascript
```js const core = require('@actions/core');
const core = require('@actions/core');
// typescript
const myInput = core.getInput('inputName', { required: true }); import * as core from '@actions/core';
```
// Do stuff
#### Inputs/Outputs
core.setOutput('outputKey', 'outputVal');
``` Action inputs can be read with `getInput`. Outputs can be set with `setOutput` which makes them available to be mapped into inputs of other actions to ensure they are decoupled.
#### Exporting variables ```js
const myInput = core.getInput('inputName', { required: true });
You can also export variables for future steps. Variables get set in the environment.
core.setOutput('outputKey', 'outputVal');
```js ```
const core = require('@actions/core');
#### Exporting variables
// Do stuff
Since each step runs in a separate process, you can use `exportVariable` to add it to this step and future steps environment blocks.
core.exportVariable('envVar', 'Val');
``` ```js
core.exportVariable('envVar', 'Val');
#### PATH Manipulation ```
You can explicitly add items to the path for all remaining steps in a workflow: #### Setting a secret
```js Setting a secret registers the secret with the runner to ensure it is masked in logs.
const core = require('@actions/core');
```js
core.addPath('pathToTool'); core.setSecret('myPassword');
``` ```
#### Exit codes #### PATH Manipulation
You should use this library to set the failing exit code for your action: To make a tool's path available in the path for the remainder of the job (without altering the machine or containers state), use `addPath`. The runner will prepend the path given to the jobs PATH.
```js ```js
const core = require('@actions/core'); core.addPath('/path/to/mytool');
```
try {
// Do stuff #### Exit codes
}
catch (err) { You should use this library to set the failing exit code for your action. If status is not set and the script runs to completion, that will lead to a success.
// setFailed logs the message and sets a failing exit code
core.setFailed(`Action failed with error ${err}`); ```js
} const core = require('@actions/core');
``` try {
// Do stuff
#### Logging }
catch (err) {
Finally, this library provides some utilities for logging. Note that debug logging is hidden from the logs by default. This behavior can be toggled by enabling the [Step Debug Logs](../../docs/action-debugging.md#step-debug-logs). // setFailed logs the message and sets a failing exit code
core.setFailed(`Action failed with error ${err}`);
```js }
const core = require('@actions/core');
Note that `setNeutral` is not yet implemented in actions V2 but equivalent functionality is being planned.
const myInput = core.getInput('input');
try { ```
core.debug('Inside try block');
#### Logging
if (!myInput) {
core.warning('myInput was not set'); Finally, this library provides some utilities for logging. Note that debug logging is hidden from the logs by default. This behavior can be toggled by enabling the [Step Debug Logs](../../docs/action-debugging.md#step-debug-logs).
}
```js
// Do stuff const core = require('@actions/core');
}
catch (err) { const myInput = core.getInput('input');
core.error(`Error ${err}, action may still succeed though`); try {
} core.debug('Inside try block');
```
if (!myInput) {
This library can also wrap chunks of output in foldable groups. core.warning('myInput was not set');
}
```js
const core = require('@actions/core') // Do stuff
}
// Manually wrap output catch (err) {
core.startGroup('Do some function') core.error(`Error ${err}, action may still succeed though`);
doSomeFunction() }
core.endGroup() ```
// Wrap an asynchronous function call This library can also wrap chunks of output in foldable groups.
const result = await core.group('Do something async', async () => {
const response = await doSomeHTTPRequest() ```js
return response const core = require('@actions/core')
})
// Manually wrap output
core.startGroup('Do some function')
doSomeFunction()
core.endGroup()
// Wrap an asynchronous function call
const result = await core.group('Do something async', async () => {
const response = await doSomeHTTPRequest()
return response
})
```
#### Action state
You can use this library to save state and get state for sharing information between a given wrapper action:
**action.yml**
```yaml
name: 'Wrapper action sample'
inputs:
name:
default: 'GitHub'
runs:
using: 'node12'
main: 'main.js'
post: 'cleanup.js'
```
In action's `main.js`:
```js
const core = require('@actions/core');
core.saveState("pidToKill", 12345);
```
In action's `cleanup.js`:
```js
const core = require('@actions/core');
var pid = core.getState("pidToKill");
process.kill(pid);
``` ```

View File

@@ -1,16 +1,16 @@
interface CommandProperties { interface CommandProperties {
[key: string]: string; [key: string]: string;
} }
/** /**
* Commands * Commands
* *
* Command Format: * Command Format:
* ##[name key=value;key=value]message * ##[name key=value;key=value]message
* *
* Examples: * Examples:
* ##[warning]This is the user warning message * ##[warning]This is the user warning message
* ##[set-secret name=mypassword]definitelyNotAPassword! * ##[set-secret name=mypassword]definitelyNotAPassword!
*/ */
export declare function issueCommand(command: string, properties: CommandProperties, message: string): void; export declare function issueCommand(command: string, properties: CommandProperties, message: string): void;
export declare function issue(name: string, message?: string): void; export declare function issue(name: string, message?: string): void;
export {}; export {};

View File

@@ -1,66 +1,66 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
const os = require("os"); const os = require("os");
/** /**
* Commands * Commands
* *
* Command Format: * Command Format:
* ##[name key=value;key=value]message * ##[name key=value;key=value]message
* *
* Examples: * Examples:
* ##[warning]This is the user warning message * ##[warning]This is the user warning message
* ##[set-secret name=mypassword]definitelyNotAPassword! * ##[set-secret name=mypassword]definitelyNotAPassword!
*/ */
function issueCommand(command, properties, message) { function issueCommand(command, properties, message) {
const cmd = new Command(command, properties, message); const cmd = new Command(command, properties, message);
process.stdout.write(cmd.toString() + os.EOL); process.stdout.write(cmd.toString() + os.EOL);
} }
exports.issueCommand = issueCommand; exports.issueCommand = issueCommand;
function issue(name, message = '') { function issue(name, message = '') {
issueCommand(name, {}, message); issueCommand(name, {}, message);
} }
exports.issue = issue; exports.issue = issue;
const CMD_STRING = '::'; const CMD_STRING = '::';
class Command { class Command {
constructor(command, properties, message) { constructor(command, properties, message) {
if (!command) { if (!command) {
command = 'missing.command'; command = 'missing.command';
} }
this.command = command; this.command = command;
this.properties = properties; this.properties = properties;
this.message = message; this.message = message;
} }
toString() { toString() {
let cmdStr = CMD_STRING + this.command; let cmdStr = CMD_STRING + this.command;
if (this.properties && Object.keys(this.properties).length > 0) { if (this.properties && Object.keys(this.properties).length > 0) {
cmdStr += ' '; cmdStr += ' ';
for (const key in this.properties) { for (const key in this.properties) {
if (this.properties.hasOwnProperty(key)) { if (this.properties.hasOwnProperty(key)) {
const val = this.properties[key]; const val = this.properties[key];
if (val) { if (val) {
// safely append the val - avoid blowing up when attempting to // safely append the val - avoid blowing up when attempting to
// call .replace() if message is not a string for some reason // call .replace() if message is not a string for some reason
cmdStr += `${key}=${escape(`${val || ''}`)},`; cmdStr += `${key}=${escape(`${val || ''}`)},`;
} }
} }
} }
} }
cmdStr += CMD_STRING; cmdStr += CMD_STRING;
// safely append the message - avoid blowing up when attempting to // safely append the message - avoid blowing up when attempting to
// call .replace() if message is not a string for some reason // call .replace() if message is not a string for some reason
const message = `${this.message || ''}`; const message = `${this.message || ''}`;
cmdStr += escapeData(message); cmdStr += escapeData(message);
return cmdStr; return cmdStr;
} }
} }
function escapeData(s) { function escapeData(s) {
return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A'); return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A');
} }
function escape(s) { function escape(s) {
return s return s
.replace(/\r/g, '%0D') .replace(/\r/g, '%0D')
.replace(/\n/g, '%0A') .replace(/\n/g, '%0A')
.replace(/]/g, '%5D') .replace(/]/g, '%5D')
.replace(/;/g, '%3B'); .replace(/;/g, '%3B');
} }
//# sourceMappingURL=command.js.map //# sourceMappingURL=command.js.map

View File

@@ -1,99 +1,112 @@
/** /**
* Interface for getInput options * Interface for getInput options
*/ */
export interface InputOptions { export interface InputOptions {
/** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */ /** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */
required?: boolean; required?: boolean;
} }
/** /**
* The code to exit an action * The code to exit an action
*/ */
export declare enum ExitCode { export declare enum ExitCode {
/** /**
* A code indicating that the action was successful * A code indicating that the action was successful
*/ */
Success = 0, Success = 0,
/** /**
* A code indicating that the action was a failure * A code indicating that the action was a failure
*/ */
Failure = 1 Failure = 1
} }
/** /**
* sets env variable for this action and future actions in the job * Sets env variable for this action and future actions in the job
* @param name the name of the variable to set * @param name the name of the variable to set
* @param val the value of the variable * @param val the value of the variable
*/ */
export declare function exportVariable(name: string, val: string): void; export declare function exportVariable(name: string, val: string): void;
/** /**
* exports the variable and registers a secret which will get masked from logs * Registers a secret which will get masked from logs
* @param name the name of the variable to set * @param secret value of the secret
* @param val value of the secret */
*/ export declare function setSecret(secret: string): void;
export declare function exportSecret(name: string, val: string): void; /**
/** * Prepends inputPath to the PATH (for this action and future actions)
* Prepends inputPath to the PATH (for this action and future actions) * @param inputPath
* @param inputPath */
*/ export declare function addPath(inputPath: string): void;
export declare function addPath(inputPath: string): void; /**
/** * Gets the value of an input. The value is also trimmed.
* Gets the value of an input. The value is also trimmed. *
* * @param name name of the input to get
* @param name name of the input to get * @param options optional. See InputOptions.
* @param options optional. See InputOptions. * @returns string
* @returns string */
*/ export declare function getInput(name: string, options?: InputOptions): string;
export declare function getInput(name: string, options?: InputOptions): string; /**
/** * Sets the value of an output.
* Sets the value of an output. *
* * @param name name of the output to set
* @param name name of the output to set * @param value value to store
* @param value value to store */
*/ export declare function setOutput(name: string, value: string): void;
export declare function setOutput(name: string, value: string): void; /**
/** * Sets the action status to failed.
* Sets the action status to failed. * When the action exits it will be with an exit code of 1
* When the action exits it will be with an exit code of 1 * @param message add error issue message
* @param message add error issue message */
*/ export declare function setFailed(message: string): void;
export declare function setFailed(message: string): void; /**
/** * Writes debug message to user log
* Writes debug message to user log * @param message debug message
* @param message debug message */
*/ export declare function debug(message: string): void;
export declare function debug(message: string): void; /**
/** * Adds an error issue
* Adds an error issue * @param message error issue message
* @param message error issue message */
*/ export declare function error(message: string): void;
export declare function error(message: string): void; /**
/** * Adds an warning issue
* Adds an warning issue * @param message warning issue message
* @param message warning issue message */
*/ export declare function warning(message: string): void;
export declare function warning(message: string): void; /**
/** * Writes info to log with console.log.
* Writes info to log with console.log. * @param message info message
* @param message info message */
*/ export declare function info(message: string): void;
export declare function info(message: string): void; /**
/** * Begin an output group.
* Begin an output group. *
* * Output until the next `groupEnd` will be foldable in this group
* Output until the next `groupEnd` will be foldable in this group *
* * @param name The name of the output group
* @param name The name of the output group */
*/ export declare function startGroup(name: string): void;
export declare function startGroup(name: string): void; /**
/** * End an output group.
* End an output group. */
*/ export declare function endGroup(): void;
export declare function endGroup(): void; /**
/** * Wrap an asynchronous function call in a group.
* Wrap an asynchronous function call in a group. *
* * Returns the same type as the function itself.
* Returns the same type as the function itself. *
* * @param name The name of the group
* @param name The name of the group * @param fn The function to wrap in the group
* @param fn The function to wrap in the group */
*/ export declare function group<T>(name: string, fn: () => Promise<T>): Promise<T>;
export declare function group<T>(name: string, fn: () => Promise<T>): Promise<T>; /**
* Saves state for current action, the state can only be retrieved by this action's post job execution.
*
* @param name name of the state to store
* @param value value to store
*/
export declare function saveState(name: string, value: string): void;
/**
* Gets the value of an state set by this action's main execution.
*
* @param name name of the state to get
* @returns string
*/
export declare function getState(name: string): string;

View File

@@ -1,177 +1,195 @@
"use strict"; "use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) { return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next()); step((generator = generator.apply(thisArg, _arguments || [])).next());
}); });
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
const command_1 = require("./command"); const command_1 = require("./command");
const os = require("os"); const os = require("os");
const path = require("path"); const path = require("path");
/** /**
* The code to exit an action * The code to exit an action
*/ */
var ExitCode; var ExitCode;
(function (ExitCode) { (function (ExitCode) {
/** /**
* A code indicating that the action was successful * A code indicating that the action was successful
*/ */
ExitCode[ExitCode["Success"] = 0] = "Success"; ExitCode[ExitCode["Success"] = 0] = "Success";
/** /**
* A code indicating that the action was a failure * A code indicating that the action was a failure
*/ */
ExitCode[ExitCode["Failure"] = 1] = "Failure"; ExitCode[ExitCode["Failure"] = 1] = "Failure";
})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); })(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// Variables // Variables
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** /**
* sets env variable for this action and future actions in the job * Sets env variable for this action and future actions in the job
* @param name the name of the variable to set * @param name the name of the variable to set
* @param val the value of the variable * @param val the value of the variable
*/ */
function exportVariable(name, val) { function exportVariable(name, val) {
process.env[name] = val; process.env[name] = val;
command_1.issueCommand('set-env', { name }, val); command_1.issueCommand('set-env', { name }, val);
} }
exports.exportVariable = exportVariable; exports.exportVariable = exportVariable;
/** /**
* exports the variable and registers a secret which will get masked from logs * Registers a secret which will get masked from logs
* @param name the name of the variable to set * @param secret value of the secret
* @param val value of the secret */
*/ function setSecret(secret) {
function exportSecret(name, val) { command_1.issueCommand('add-mask', {}, secret);
exportVariable(name, val); }
// the runner will error with not implemented exports.setSecret = setSecret;
// leaving the function but raising the error earlier /**
command_1.issueCommand('set-secret', {}, val); * Prepends inputPath to the PATH (for this action and future actions)
throw new Error('Not implemented.'); * @param inputPath
} */
exports.exportSecret = exportSecret; function addPath(inputPath) {
/** command_1.issueCommand('add-path', {}, inputPath);
* Prepends inputPath to the PATH (for this action and future actions) process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
* @param inputPath }
*/ exports.addPath = addPath;
function addPath(inputPath) { /**
command_1.issueCommand('add-path', {}, inputPath); * Gets the value of an input. The value is also trimmed.
process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; *
} * @param name name of the input to get
exports.addPath = addPath; * @param options optional. See InputOptions.
/** * @returns string
* Gets the value of an input. The value is also trimmed. */
* function getInput(name, options) {
* @param name name of the input to get const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';
* @param options optional. See InputOptions. if (options && options.required && !val) {
* @returns string throw new Error(`Input required and not supplied: ${name}`);
*/ }
function getInput(name, options) { return val.trim();
const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || ''; }
if (options && options.required && !val) { exports.getInput = getInput;
throw new Error(`Input required and not supplied: ${name}`); /**
} * Sets the value of an output.
return val.trim(); *
} * @param name name of the output to set
exports.getInput = getInput; * @param value value to store
/** */
* Sets the value of an output. function setOutput(name, value) {
* command_1.issueCommand('set-output', { name }, value);
* @param name name of the output to set }
* @param value value to store exports.setOutput = setOutput;
*/ //-----------------------------------------------------------------------
function setOutput(name, value) { // Results
command_1.issueCommand('set-output', { name }, value); //-----------------------------------------------------------------------
} /**
exports.setOutput = setOutput; * Sets the action status to failed.
//----------------------------------------------------------------------- * When the action exits it will be with an exit code of 1
// Results * @param message add error issue message
//----------------------------------------------------------------------- */
/** function setFailed(message) {
* Sets the action status to failed. process.exitCode = ExitCode.Failure;
* When the action exits it will be with an exit code of 1 error(message);
* @param message add error issue message }
*/ exports.setFailed = setFailed;
function setFailed(message) { //-----------------------------------------------------------------------
process.exitCode = ExitCode.Failure; // Logging Commands
error(message); //-----------------------------------------------------------------------
} /**
exports.setFailed = setFailed; * Writes debug message to user log
//----------------------------------------------------------------------- * @param message debug message
// Logging Commands */
//----------------------------------------------------------------------- function debug(message) {
/** command_1.issueCommand('debug', {}, message);
* Writes debug message to user log }
* @param message debug message exports.debug = debug;
*/ /**
function debug(message) { * Adds an error issue
command_1.issueCommand('debug', {}, message); * @param message error issue message
} */
exports.debug = debug; function error(message) {
/** command_1.issue('error', message);
* Adds an error issue }
* @param message error issue message exports.error = error;
*/ /**
function error(message) { * Adds an warning issue
command_1.issue('error', message); * @param message warning issue message
} */
exports.error = error; function warning(message) {
/** command_1.issue('warning', message);
* Adds an warning issue }
* @param message warning issue message exports.warning = warning;
*/ /**
function warning(message) { * Writes info to log with console.log.
command_1.issue('warning', message); * @param message info message
} */
exports.warning = warning; function info(message) {
/** process.stdout.write(message + os.EOL);
* Writes info to log with console.log. }
* @param message info message exports.info = info;
*/ /**
function info(message) { * Begin an output group.
process.stdout.write(message + os.EOL); *
} * Output until the next `groupEnd` will be foldable in this group
exports.info = info; *
/** * @param name The name of the output group
* Begin an output group. */
* function startGroup(name) {
* Output until the next `groupEnd` will be foldable in this group command_1.issue('group', name);
* }
* @param name The name of the output group exports.startGroup = startGroup;
*/ /**
function startGroup(name) { * End an output group.
command_1.issue('group', name); */
} function endGroup() {
exports.startGroup = startGroup; command_1.issue('endgroup');
/** }
* End an output group. exports.endGroup = endGroup;
*/ /**
function endGroup() { * Wrap an asynchronous function call in a group.
command_1.issue('endgroup'); *
} * Returns the same type as the function itself.
exports.endGroup = endGroup; *
/** * @param name The name of the group
* Wrap an asynchronous function call in a group. * @param fn The function to wrap in the group
* */
* Returns the same type as the function itself. function group(name, fn) {
* return __awaiter(this, void 0, void 0, function* () {
* @param name The name of the group startGroup(name);
* @param fn The function to wrap in the group let result;
*/ try {
function group(name, fn) { result = yield fn();
return __awaiter(this, void 0, void 0, function* () { }
startGroup(name); finally {
let result; endGroup();
try { }
result = yield fn(); return result;
} });
finally { }
endGroup(); exports.group = group;
} //-----------------------------------------------------------------------
return result; // Wrapper action state
}); //-----------------------------------------------------------------------
} /**
exports.group = group; * Saves state for current action, the state can only be retrieved by this action's post job execution.
*
* @param name name of the state to store
* @param value value to store
*/
function saveState(name, value) {
command_1.issueCommand('save-state', { name }, value);
}
exports.saveState = saveState;
/**
* Gets the value of an state set by this action's main execution.
*
* @param name name of the state to get
* @returns string
*/
function getState(name) {
return process.env[`STATE_${name}`] || '';
}
exports.getState = getState;
//# sourceMappingURL=core.js.map //# sourceMappingURL=core.js.map

View File

@@ -1 +1 @@
{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,uCAA6C;AAE7C,yBAAwB;AACxB,6BAA4B;AAU5B;;GAEG;AACH,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB;;OAEG;IACH,6CAAW,CAAA;IAEX;;OAEG;IACH,6CAAW,CAAA;AACb,CAAC,EAVW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUnB;AAED,yEAAyE;AACzE,YAAY;AACZ,yEAAyE;AAEzE;;;;GAIG;AACH,SAAgB,cAAc,CAAC,IAAY,EAAE,GAAW;IACtD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,CAAA;IACvB,sBAAY,CAAC,SAAS,EAAE,EAAC,IAAI,EAAC,EAAE,GAAG,CAAC,CAAA;AACtC,CAAC;AAHD,wCAGC;AAED;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAAY,EAAE,GAAW;IACpD,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;IAEzB,6CAA6C;IAC7C,qDAAqD;IACrD,sBAAY,CAAC,YAAY,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;IACnC,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;AACr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EzE;;;;;GAKG;AACH,SAAgB,SAAS,CAAC,IAAY,EAAE,KAAa;IACnD,sBAAY,CAAC,YAAY,EAAE,EAAC,IAAI,EAAC,EAAE,KAAK,CAAC,CAAA;AAC3C,CAAC;AAFD,8BAEC;AAED;;;;;GAKG;AACH,SAAgB,QAAQ,CAAC,IAAY;IACnC,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,IAAI,EAAE,CAAA;AAC3C,CAAC;AAFD,4BAEC"}

View File

@@ -1,33 +1,33 @@
{ {
"_args": [ "_args": [
[ [
"@actions/core@1.1.1", "@actions/core@1.2.0",
"/Users/iris/Documents/repos/github.com/peaceiris/actions-hugo" "/Users/iris/Documents/repos/github.com/peaceiris/actions-hugo"
] ]
], ],
"_from": "@actions/core@1.1.1", "_from": "@actions/core@1.2.0",
"_id": "@actions/core@1.1.1", "_id": "@actions/core@1.2.0",
"_inBundle": false, "_inBundle": false,
"_integrity": "sha512-O5G6EmlzTVsng7VSpNtszIoQq6kOgMGNTFB/hmwKNNA4V71JyxImCIrL27vVHCt2Cb3ImkaCr6o27C2MV9Ylwg==", "_integrity": "sha512-ZKdyhlSlyz38S6YFfPnyNgCDZuAF2T0Qv5eHflNWytPS8Qjvz39bZFMry9Bb/dpSnqWcNeav5yM2CTYpJeY+Dw==",
"_location": "/@actions/core", "_location": "/@actions/core",
"_phantomChildren": {}, "_phantomChildren": {},
"_requested": { "_requested": {
"type": "version", "type": "version",
"registry": true, "registry": true,
"raw": "@actions/core@1.1.1", "raw": "@actions/core@1.2.0",
"name": "@actions/core", "name": "@actions/core",
"escapedName": "@actions%2fcore", "escapedName": "@actions%2fcore",
"scope": "@actions", "scope": "@actions",
"rawSpec": "1.1.1", "rawSpec": "1.2.0",
"saveSpec": null, "saveSpec": null,
"fetchSpec": "1.1.1" "fetchSpec": "1.2.0"
}, },
"_requiredBy": [ "_requiredBy": [
"/", "/",
"/@actions/tool-cache" "/@actions/tool-cache"
], ],
"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.1.1.tgz", "_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.0.tgz",
"_spec": "1.1.1", "_spec": "1.2.0",
"_where": "/Users/iris/Documents/repos/github.com/peaceiris/actions-hugo", "_where": "/Users/iris/Documents/repos/github.com/peaceiris/actions-hugo",
"bugs": { "bugs": {
"url": "https://github.com/actions/toolkit/issues" "url": "https://github.com/actions/toolkit/issues"
@@ -57,11 +57,12 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/actions/toolkit.git" "url": "git+https://github.com/actions/toolkit.git",
"directory": "packages/core"
}, },
"scripts": { "scripts": {
"test": "echo \"Error: run tests from root\" && exit 1", "test": "echo \"Error: run tests from root\" && exit 1",
"tsc": "tsc" "tsc": "tsc"
}, },
"version": "1.1.1" "version": "1.2.0"
} }

336
package-lock.json generated
View File

@@ -5,9 +5,9 @@
"requires": true, "requires": true,
"dependencies": { "dependencies": {
"@actions/core": { "@actions/core": {
"version": "1.1.1", "version": "1.2.0",
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.1.1.tgz", "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.0.tgz",
"integrity": "sha512-O5G6EmlzTVsng7VSpNtszIoQq6kOgMGNTFB/hmwKNNA4V71JyxImCIrL27vVHCt2Cb3ImkaCr6o27C2MV9Ylwg==" "integrity": "sha512-ZKdyhlSlyz38S6YFfPnyNgCDZuAF2T0Qv5eHflNWytPS8Qjvz39bZFMry9Bb/dpSnqWcNeav5yM2CTYpJeY+Dw=="
}, },
"@actions/exec": { "@actions/exec": {
"version": "1.0.1", "version": "1.0.1",
@@ -421,28 +421,28 @@
} }
}, },
"@nodelib/fs.scandir": { "@nodelib/fs.scandir": {
"version": "2.1.2", "version": "2.1.3",
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.2.tgz", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz",
"integrity": "sha512-wrIBsjA5pl13f0RN4Zx4FNWmU71lv03meGKnqRUoCyan17s4V3WL92f3w3AIuWbNnpcrQyFBU5qMavJoB8d27w==", "integrity": "sha512-eGmwYQn3gxo4r7jdQnkrrN6bY478C3P+a/y72IJukF8LjB6ZHeB3c+Ehacj3sYeSmUXGlnA67/PmbM9CVwL7Dw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@nodelib/fs.stat": "2.0.2", "@nodelib/fs.stat": "2.0.3",
"run-parallel": "^1.1.9" "run-parallel": "^1.1.9"
} }
}, },
"@nodelib/fs.stat": { "@nodelib/fs.stat": {
"version": "2.0.2", "version": "2.0.3",
"resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.2.tgz", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz",
"integrity": "sha512-z8+wGWV2dgUhLqrtRYa03yDx4HWMvXKi1z8g3m2JyxAx8F7xk74asqPk5LAETjqDSGLFML/6CDl0+yFunSYicw==", "integrity": "sha512-bQBFruR2TAwoevBEd/NWMoAAtNGzTRgdrqnYCc7dhzfoNvqPzLyqlEQnzZ3kVnNrSp25iyxE00/3h2fqGAGArA==",
"dev": true "dev": true
}, },
"@nodelib/fs.walk": { "@nodelib/fs.walk": {
"version": "1.2.3", "version": "1.2.4",
"resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.3.tgz", "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.4.tgz",
"integrity": "sha512-l6t8xEhfK9Sa4YO5mIRdau7XSOADfmh3jCr0evNHdY+HNkW6xuQhgMH7D73VV6WpZOagrW0UludvMTiifiwTfA==", "integrity": "sha512-1V9XOY4rDW0rehzbrcqAmHnz8e7SKvX27gh8Gt2WgB0+pdzdiLV83p72kZPU+jvMbS1qU5mauP2iOvO8rhmurQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"@nodelib/fs.scandir": "2.1.2", "@nodelib/fs.scandir": "2.1.3",
"fastq": "^1.6.0" "fastq": "^1.6.0"
} }
}, },
@@ -545,9 +545,9 @@
} }
}, },
"@types/jest": { "@types/jest": {
"version": "24.0.18", "version": "24.0.20",
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.0.18.tgz", "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.0.20.tgz",
"integrity": "sha512-jcDDXdjTcrQzdN06+TSVsPPqxvsZA/5QkYfIZlq1JMw7FdP5AZylbOc+6B/cuDurctRe+MziUMtQ3xQdrbjqyQ==", "integrity": "sha512-M8ebEkOpykGdLoRrmew7UowTZ1DANeeP0HiSIChl/4DGgmnSC1ntitNtkyNSXjMTsZvXuaxJrxjImEnRWNPsPw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/jest-diff": "*" "@types/jest-diff": "*"
@@ -572,9 +572,9 @@
"dev": true "dev": true
}, },
"@types/node": { "@types/node": {
"version": "12.7.7", "version": "12.11.7",
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.7.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.11.7.tgz",
"integrity": "sha512-4jUncNe2tj1nmrO/34PsRpZqYVnRV1svbU78cKhuQKkMntKB/AmdLyGgswcZKjFHEHGpiY8pVD8CuVI55nP54w==", "integrity": "sha512-JNbGaHFCLwgHn/iCckiGSOZ1XYHsKFwREtzPwSGCVld1SGhOlmZw2D4ZI94HQCrBHbADzW9m4LER/8olJTRGHA==",
"dev": true "dev": true
}, },
"@types/normalize-package-data": { "@types/normalize-package-data": {
@@ -605,40 +605,56 @@
"dev": true "dev": true
}, },
"@typescript-eslint/experimental-utils": { "@typescript-eslint/experimental-utils": {
"version": "2.3.1", "version": "2.6.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.3.1.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.6.0.tgz",
"integrity": "sha512-FaZEj73o4h6Wd0Lg+R4pZiJGdR0ZYbJr+O2+RbQ1aZjX8bZcfkVDtD+qm74Dv77rfSKkDKE64UTziLBo9UYHQA==", "integrity": "sha512-34BAFpNOwHXeqT+AvdalLxOvcPYnCxA5JGmBAFL64RGMdP0u65rXjii7l/nwpgk5aLEE1LaqF+SsCU0/Cb64xA==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/json-schema": "^7.0.3", "@types/json-schema": "^7.0.3",
"@typescript-eslint/typescript-estree": "2.3.1", "@typescript-eslint/typescript-estree": "2.6.0",
"eslint-scope": "^5.0.0" "eslint-scope": "^5.0.0"
} }
}, },
"@typescript-eslint/parser": { "@typescript-eslint/parser": {
"version": "2.3.1", "version": "2.6.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.3.1.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.6.0.tgz",
"integrity": "sha512-ZlWdzhCJ2iZnSp/VBAJ/sowFbyHycIux8t0UEH0JsKgQvfSf7949hLYFMwTXdCMeEnpP1zRTHimrR+YHzs8LIw==", "integrity": "sha512-AvLejMmkcjRTJ2KD72v565W4slSrrzUIzkReu1JN34b8JnsEsxx7S9Xx/qXEuMQas0mkdUfETr0j3zOhq2DIqQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/eslint-visitor-keys": "^1.0.0", "@types/eslint-visitor-keys": "^1.0.0",
"@typescript-eslint/experimental-utils": "2.3.1", "@typescript-eslint/experimental-utils": "2.6.0",
"@typescript-eslint/typescript-estree": "2.3.1", "@typescript-eslint/typescript-estree": "2.6.0",
"eslint-visitor-keys": "^1.1.0" "eslint-visitor-keys": "^1.1.0"
} }
}, },
"@typescript-eslint/typescript-estree": { "@typescript-eslint/typescript-estree": {
"version": "2.3.1", "version": "2.6.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.3.1.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.6.0.tgz",
"integrity": "sha512-9SFhUgFuePJBB6jlLkOPPhMkZNiDCr+S8Ft7yAkkP2c5x5bxPhG3pe/exMiQaF8IGyVMDW6Ul0q4/cZ+uF3uog==", "integrity": "sha512-A3lSBVIdj2Gp0lFEL6in2eSPqJ33uAc3Ko+Y4brhjkxzjbzLnwBH22CwsW2sCo+iwogfIyvb56/AJri15H0u5Q==",
"dev": true, "dev": true,
"requires": { "requires": {
"debug": "^4.1.1",
"glob": "^7.1.4", "glob": "^7.1.4",
"is-glob": "^4.0.1", "is-glob": "^4.0.1",
"lodash.unescape": "4.0.1", "lodash.unescape": "4.0.1",
"semver": "^6.3.0" "semver": "^6.3.0"
}, },
"dependencies": { "dependencies": {
"debug": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
"dev": true,
"requires": {
"ms": "^2.1.1"
}
},
"ms": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
"dev": true
},
"semver": { "semver": {
"version": "6.3.0", "version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
@@ -678,9 +694,9 @@
} }
}, },
"acorn-jsx": { "acorn-jsx": {
"version": "5.0.2", "version": "5.1.0",
"resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.0.2.tgz", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.1.0.tgz",
"integrity": "sha512-tiNTrP1MP0QrChmD2DdupCr6HWSFeKVw5d/dHTu4Y7rkAkRhU/Dt7dphAfIUyxtHpl/eBVip5uTNSpQJHylpAw==", "integrity": "sha512-tMUqwBWfLFbJbizRmEcWSLw6HnFzfdJs2sOJEOwwtVPMoH/0Ay+E703oZz78VSXZiiDcZrQ5XKjPIUQixhmgVw==",
"dev": true "dev": true
}, },
"acorn-walk": { "acorn-walk": {
@@ -690,13 +706,13 @@
"dev": true "dev": true
}, },
"aggregate-error": { "aggregate-error": {
"version": "3.0.0", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.0.tgz", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz",
"integrity": "sha512-yKD9kEoJIR+2IFqhMwayIBgheLYbB3PS2OBhWae1L/ODTd/JF/30cW0bc9TqzRL3k4U41Dieu3BF4I29p8xesA==", "integrity": "sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA==",
"dev": true, "dev": true,
"requires": { "requires": {
"clean-stack": "^2.0.0", "clean-stack": "^2.0.0",
"indent-string": "^3.2.0" "indent-string": "^4.0.0"
} }
}, },
"ajv": { "ajv": {
@@ -1687,9 +1703,9 @@
} }
}, },
"eslint": { "eslint": {
"version": "6.4.0", "version": "6.6.0",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-6.4.0.tgz", "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.6.0.tgz",
"integrity": "sha512-WTVEzK3lSFoXUovDHEbkJqCVPEPwbhCq4trDktNI6ygs7aO41d4cDT0JFAT5MivzZeVLWlg7vHL+bgrQv/t3vA==", "integrity": "sha512-PpEBq7b6qY/qrOmpYQ/jTMDYfuQMELR4g4WI1M/NaSDDD/bdcMb+dj4Hgks7p41kW2caXsPsEZAEAyAgjVVC0g==",
"dev": true, "dev": true,
"requires": { "requires": {
"@babel/code-frame": "^7.0.0", "@babel/code-frame": "^7.0.0",
@@ -1699,9 +1715,9 @@
"debug": "^4.0.1", "debug": "^4.0.1",
"doctrine": "^3.0.0", "doctrine": "^3.0.0",
"eslint-scope": "^5.0.0", "eslint-scope": "^5.0.0",
"eslint-utils": "^1.4.2", "eslint-utils": "^1.4.3",
"eslint-visitor-keys": "^1.1.0", "eslint-visitor-keys": "^1.1.0",
"espree": "^6.1.1", "espree": "^6.1.2",
"esquery": "^1.0.1", "esquery": "^1.0.1",
"esutils": "^2.0.2", "esutils": "^2.0.2",
"file-entry-cache": "^5.0.1", "file-entry-cache": "^5.0.1",
@@ -1711,7 +1727,7 @@
"ignore": "^4.0.6", "ignore": "^4.0.6",
"import-fresh": "^3.0.0", "import-fresh": "^3.0.0",
"imurmurhash": "^0.1.4", "imurmurhash": "^0.1.4",
"inquirer": "^6.4.1", "inquirer": "^7.0.0",
"is-glob": "^4.0.0", "is-glob": "^4.0.0",
"js-yaml": "^3.13.1", "js-yaml": "^3.13.1",
"json-stable-stringify-without-jsonify": "^1.0.1", "json-stable-stringify-without-jsonify": "^1.0.1",
@@ -1765,12 +1781,12 @@
} }
}, },
"eslint-utils": { "eslint-utils": {
"version": "1.4.2", "version": "1.4.3",
"resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.2.tgz", "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz",
"integrity": "sha512-eAZS2sEUMlIeCjBeubdj45dmBHQwPHWyBcT1VSYB7o9x9WRRqKxyUoiXlRjyAwzN7YEzHJlYg0NmzDRWx6GP4Q==", "integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==",
"dev": true, "dev": true,
"requires": { "requires": {
"eslint-visitor-keys": "^1.0.0" "eslint-visitor-keys": "^1.1.0"
} }
}, },
"eslint-visitor-keys": { "eslint-visitor-keys": {
@@ -1780,20 +1796,20 @@
"dev": true "dev": true
}, },
"espree": { "espree": {
"version": "6.1.1", "version": "6.1.2",
"resolved": "https://registry.npmjs.org/espree/-/espree-6.1.1.tgz", "resolved": "https://registry.npmjs.org/espree/-/espree-6.1.2.tgz",
"integrity": "sha512-EYbr8XZUhWbYCqQRW0duU5LxzL5bETN6AjKBGy1302qqzPaCH10QbRg3Wvco79Z8x9WbiE8HYB4e75xl6qUYvQ==", "integrity": "sha512-2iUPuuPP+yW1PZaMSDM9eyVf8D5P0Hi8h83YtZ5bPc/zHYjII5khoixIUTMO794NOY8F/ThF1Bo8ncZILarUTA==",
"dev": true, "dev": true,
"requires": { "requires": {
"acorn": "^7.0.0", "acorn": "^7.1.0",
"acorn-jsx": "^5.0.2", "acorn-jsx": "^5.1.0",
"eslint-visitor-keys": "^1.1.0" "eslint-visitor-keys": "^1.1.0"
}, },
"dependencies": { "dependencies": {
"acorn": { "acorn": {
"version": "7.0.0", "version": "7.1.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-7.0.0.tgz", "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.0.tgz",
"integrity": "sha512-PaF/MduxijYYt7unVGRuds1vBC9bFxbNf+VWqhOClfdgy7RlVkQqt610ig1/yxTgsDIfW1cWDel5EBbOy3jdtQ==", "integrity": "sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ==",
"dev": true "dev": true
} }
} }
@@ -2026,16 +2042,15 @@
"dev": true "dev": true
}, },
"fast-glob": { "fast-glob": {
"version": "3.0.4", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.0.4.tgz", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.1.0.tgz",
"integrity": "sha512-wkIbV6qg37xTJwqSsdnIphL1e+LaGz4AIQqr00mIubMaEhv1/HEmJ0uuCGZRNRUkZZmOB5mJKO0ZUTVq+SxMQg==", "integrity": "sha512-TrUz3THiq2Vy3bjfQUB2wNyPdGBeGmdjbzzBLhfHN4YFurYptCKwGq/TfiRavbGywFRzY6U2CdmQ1zmsY5yYaw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@nodelib/fs.stat": "^2.0.1", "@nodelib/fs.stat": "^2.0.2",
"@nodelib/fs.walk": "^1.2.1", "@nodelib/fs.walk": "^1.2.3",
"glob-parent": "^5.0.0", "glob-parent": "^5.1.0",
"is-glob": "^4.0.1", "merge2": "^1.3.0",
"merge2": "^1.2.3",
"micromatch": "^4.0.2" "micromatch": "^4.0.2"
}, },
"dependencies": { "dependencies": {
@@ -2057,6 +2072,15 @@
"to-regex-range": "^5.0.1" "to-regex-range": "^5.0.1"
} }
}, },
"glob-parent": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.0.tgz",
"integrity": "sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw==",
"dev": true,
"requires": {
"is-glob": "^4.0.1"
}
},
"is-number": { "is-number": {
"version": "7.0.0", "version": "7.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
@@ -2797,9 +2821,9 @@
"dev": true "dev": true
}, },
"get-own-enumerable-property-symbols": { "get-own-enumerable-property-symbols": {
"version": "3.0.0", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.0.tgz", "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.1.tgz",
"integrity": "sha512-CIJYJC4GGF06TakLg8z4GQKvDsx9EMspVxOYih7LerEL/WosUnFIww45CGfxfeKHqlg3twgUrYRT1O3WQqjGCg==", "integrity": "sha512-09/VS4iek66Dh2bctjRkowueRJbY1JDGR1L/zRxO1Qk8Uxs6PnqaNSqalpizPT+CDjre3hnEsuzvhgomz9qYrA==",
"dev": true "dev": true
}, },
"get-stdin": { "get-stdin": {
@@ -2847,9 +2871,9 @@
} }
}, },
"glob-parent": { "glob-parent": {
"version": "5.0.0", "version": "5.1.0",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.0.0.tgz", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.0.tgz",
"integrity": "sha512-Z2RwiujPRGluePM6j699ktJYxmPpJKCfpGA13jz2hmFZC7gKetzrWvg5KN3+OsIFmydGyZ1AVwERCq1w/ZZwRg==", "integrity": "sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw==",
"dev": true, "dev": true,
"requires": { "requires": {
"is-glob": "^4.0.1" "is-glob": "^4.0.1"
@@ -3028,20 +3052,20 @@
} }
}, },
"husky": { "husky": {
"version": "3.0.5", "version": "3.0.9",
"resolved": "https://registry.npmjs.org/husky/-/husky-3.0.5.tgz", "resolved": "https://registry.npmjs.org/husky/-/husky-3.0.9.tgz",
"integrity": "sha512-cKd09Jy9cDyNIvAdN2QQAP/oA21sle4FWXjIMDttailpLAYZuBE7WaPmhrkj+afS8Sj9isghAtFvWSQ0JiwOHg==", "integrity": "sha512-Yolhupm7le2/MqC1VYLk/cNmYxsSsqKkTyBhzQHhPK1jFnC89mmmNVuGtLNabjDI6Aj8UNIr0KpRNuBkiC4+sg==",
"dev": true, "dev": true,
"requires": { "requires": {
"chalk": "^2.4.2", "chalk": "^2.4.2",
"ci-info": "^2.0.0",
"cosmiconfig": "^5.2.1", "cosmiconfig": "^5.2.1",
"execa": "^1.0.0", "execa": "^1.0.0",
"get-stdin": "^7.0.0", "get-stdin": "^7.0.0",
"is-ci": "^2.0.0",
"opencollective-postinstall": "^2.0.2", "opencollective-postinstall": "^2.0.2",
"pkg-dir": "^4.2.0", "pkg-dir": "^4.2.0",
"please-upgrade-node": "^3.2.0", "please-upgrade-node": "^3.2.0",
"read-pkg": "^5.1.1", "read-pkg": "^5.2.0",
"run-node": "^1.0.0", "run-node": "^1.0.0",
"slash": "^3.0.0" "slash": "^3.0.0"
}, },
@@ -3171,9 +3195,9 @@
"dev": true "dev": true
}, },
"indent-string": { "indent-string": {
"version": "3.2.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",
"integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",
"dev": true "dev": true
}, },
"inflight": { "inflight": {
@@ -3193,52 +3217,106 @@
"dev": true "dev": true
}, },
"inquirer": { "inquirer": {
"version": "6.5.2", "version": "7.0.0",
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.5.2.tgz", "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.0.0.tgz",
"integrity": "sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ==", "integrity": "sha512-rSdC7zelHdRQFkWnhsMu2+2SO41mpv2oF2zy4tMhmiLWkcKbOAs87fWAJhVXttKVwhdZvymvnuM95EyEXg2/tQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"ansi-escapes": "^3.2.0", "ansi-escapes": "^4.2.1",
"chalk": "^2.4.2", "chalk": "^2.4.2",
"cli-cursor": "^2.1.0", "cli-cursor": "^3.1.0",
"cli-width": "^2.0.0", "cli-width": "^2.0.0",
"external-editor": "^3.0.3", "external-editor": "^3.0.3",
"figures": "^2.0.0", "figures": "^3.0.0",
"lodash": "^4.17.12", "lodash": "^4.17.15",
"mute-stream": "0.0.7", "mute-stream": "0.0.8",
"run-async": "^2.2.0", "run-async": "^2.2.0",
"rxjs": "^6.4.0", "rxjs": "^6.4.0",
"string-width": "^2.1.0", "string-width": "^4.1.0",
"strip-ansi": "^5.1.0", "strip-ansi": "^5.1.0",
"through": "^2.3.6" "through": "^2.3.6"
}, },
"dependencies": { "dependencies": {
"ansi-regex": { "ansi-escapes": {
"version": "3.0.0", "version": "4.2.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.2.1.tgz",
"integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", "integrity": "sha512-Cg3ymMAdN10wOk/VYfLV7KCQyv7EDirJ64500sU7n9UlmioEtDuU5Gd+hj73hXSU/ex7tHJSssmyftDdkMLO8Q==",
"dev": true
},
"string-width": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
"integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
"dev": true, "dev": true,
"requires": { "requires": {
"is-fullwidth-code-point": "^2.0.0", "type-fest": "^0.5.2"
"strip-ansi": "^4.0.0"
},
"dependencies": {
"strip-ansi": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
"integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
"dev": true,
"requires": {
"ansi-regex": "^3.0.0"
}
}
} }
},
"cli-cursor": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz",
"integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==",
"dev": true,
"requires": {
"restore-cursor": "^3.1.0"
}
},
"emoji-regex": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
"dev": true
},
"figures": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/figures/-/figures-3.1.0.tgz",
"integrity": "sha512-ravh8VRXqHuMvZt/d8GblBeqDMkdJMBdv/2KntFH+ra5MXkO7nxNKpzQ3n6QD/2da1kH0aWmNISdvhM7gl2gVg==",
"dev": true,
"requires": {
"escape-string-regexp": "^1.0.5"
}
},
"is-fullwidth-code-point": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
"integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
"dev": true
},
"mimic-fn": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
"integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
"dev": true
},
"onetime": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz",
"integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==",
"dev": true,
"requires": {
"mimic-fn": "^2.1.0"
}
},
"restore-cursor": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz",
"integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==",
"dev": true,
"requires": {
"onetime": "^5.1.0",
"signal-exit": "^3.0.2"
}
},
"string-width": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.1.0.tgz",
"integrity": "sha512-NrX+1dVVh+6Y9dnQ19pR0pP4FiEIlUvdTGn8pw6CKTNq5sgib2nIhmUNT5TAmhWmvKr3WcxBcP3E8nWezuipuQ==",
"dev": true,
"requires": {
"emoji-regex": "^8.0.0",
"is-fullwidth-code-point": "^3.0.0",
"strip-ansi": "^5.2.0"
}
},
"type-fest": {
"version": "0.5.2",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.5.2.tgz",
"integrity": "sha512-DWkS49EQKVX//Tbupb9TFa19c7+MK1XmzkrZUR8TAktmE/DizXoaoJV6TZ/tSIPXipqNiRI6CyAe7x69Jb6RSw==",
"dev": true
} }
} }
}, },
@@ -3424,9 +3502,9 @@
"dev": true "dev": true
}, },
"is-path-inside": { "is-path-inside": {
"version": "3.0.1", "version": "3.0.2",
"resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.1.tgz", "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.2.tgz",
"integrity": "sha512-CKstxrctq1kUesU6WhtZDbYKzzYBuRH0UYInAVrkc/EYdB9ltbfE0gOoayG9nhohG6447sOOVGhHqsdmBvkbNg==", "integrity": "sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg==",
"dev": true "dev": true
}, },
"is-plain-object": { "is-plain-object": {
@@ -4218,9 +4296,9 @@
"dev": true "dev": true
}, },
"lint-staged": { "lint-staged": {
"version": "9.3.0", "version": "9.4.2",
"resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-9.3.0.tgz", "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-9.4.2.tgz",
"integrity": "sha512-OuL3xo6XpBErl16+3W9PdnFmgeGp12lM8I1Ii/B56S8Edy1kyrf4W8VD4IBn9v17QlutRQEWUJ54YF/VVQ7J2A==", "integrity": "sha512-OFyGokJSWTn2M6vngnlLXjaHhi8n83VIZZ5/1Z26SULRUWgR3ITWpAEQC9Pnm3MC/EpCxlwts/mQWDHNji2+zA==",
"dev": true, "dev": true,
"requires": { "requires": {
"chalk": "^2.4.2", "chalk": "^2.4.2",
@@ -4258,9 +4336,9 @@
} }
}, },
"execa": { "execa": {
"version": "2.0.4", "version": "2.0.5",
"resolved": "https://registry.npmjs.org/execa/-/execa-2.0.4.tgz", "resolved": "https://registry.npmjs.org/execa/-/execa-2.0.5.tgz",
"integrity": "sha512-VcQfhuGD51vQUQtKIq2fjGDLDbL6N1DTQVpYzxZ7LPIXw3HqTuIz6uxRmpV1qf8i31LHf2kjiaGI+GdHwRgbnQ==", "integrity": "sha512-SwmwZZyJjflcqLSgllk4EQlMLst2p9muyzwNugKGFlpAz6rZ7M+s2nBR97GAq4Vzjwx2y9rcMcmqzojwN+xwNA==",
"dev": true, "dev": true,
"requires": { "requires": {
"cross-spawn": "^6.0.5", "cross-spawn": "^6.0.5",
@@ -4455,6 +4533,12 @@
"object-assign": "^4.1.0" "object-assign": "^4.1.0"
} }
}, },
"indent-string": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz",
"integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=",
"dev": true
},
"log-symbols": { "log-symbols": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-1.0.2.tgz", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-1.0.2.tgz",
@@ -4767,9 +4851,9 @@
"dev": true "dev": true
}, },
"mute-stream": { "mute-stream": {
"version": "0.0.7", "version": "0.0.8",
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz",
"integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=", "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==",
"dev": true "dev": true
}, },
"nan": { "nan": {
@@ -6249,9 +6333,9 @@
} }
}, },
"typescript": { "typescript": {
"version": "3.6.3", "version": "3.6.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.3.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.4.tgz",
"integrity": "sha512-N7bceJL1CtRQ2RiG0AQME13ksR7DiuQh/QehubYcghzv20tnh+MQnQIuJddTmsbqYj+dztchykemz0zFzlvdQw==", "integrity": "sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg==",
"dev": true "dev": true
}, },
"uglify-js": { "uglify-js": {

View File

@@ -46,23 +46,23 @@
}, },
"homepage": "https://github.com/peaceiris/actions-hugo#readme", "homepage": "https://github.com/peaceiris/actions-hugo#readme",
"dependencies": { "dependencies": {
"@actions/core": "^1.1.1", "@actions/core": "^1.2.0",
"@actions/exec": "^1.0.1", "@actions/exec": "^1.0.1",
"@actions/io": "^1.0.1", "@actions/io": "^1.0.1",
"@actions/tool-cache": "^1.1.2", "@actions/tool-cache": "^1.1.2",
"xmlhttprequest": "^1.8.0" "xmlhttprequest": "^1.8.0"
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^24.0.18", "@types/jest": "^24.0.20",
"@types/node": "^12.7.7", "@types/node": "^12.11.7",
"@typescript-eslint/parser": "^2.3.1", "@typescript-eslint/parser": "^2.6.0",
"eslint": "^6.4.0", "eslint": "^6.6.0",
"husky": "^3.0.5", "husky": "^3.0.9",
"jest": "^24.9.0", "jest": "^24.9.0",
"jest-circus": "^24.9.0", "jest-circus": "^24.9.0",
"lint-staged": "^9.3.0", "lint-staged": "^9.4.2",
"prettier": "1.18.2", "prettier": "1.18.2",
"ts-jest": "^24.1.0", "ts-jest": "^24.1.0",
"typescript": "^3.6.3" "typescript": "^3.6.4"
} }
} }