Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit 3de0ea2

Browse files
author
sw-yx
committed
minor bugfixes for functions:invoke
1 parent ae679ed commit 3de0ea2

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

src/commands/functions/invoke.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ class FunctionsInvokeCommand extends Command {
4646
settings = {
4747
noCmd: true,
4848
port: 8888,
49-
proxyPort: 3999,
50-
dist
49+
proxyPort: 3999
5150
};
5251
}
5352

@@ -190,7 +189,7 @@ async function getNameFromArgs(functions, args, flags) {
190189
const isValidFn = Object.keys(functions).includes(functionToTrigger);
191190
if (!functionToTrigger || !isValidFn) {
192191
if (!isValidFn) {
193-
this.warn(
192+
console.warn(
194193
`Function name ${chalk.yellow(
195194
functionToTrigger
196195
)} supplied but no matching function found in your functions folder, forcing you to pick a valid one...`

yarn.lock

+15-4
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,14 @@
118118
call-me-maybe "^1.0.1"
119119
glob-to-regexp "^0.3.0"
120120

121-
"@netlify/cli-utils@^1.0.1":
122-
version "1.0.2"
123-
resolved "https://registry.yarnpkg.com/@netlify/cli-utils/-/cli-utils-1.0.2.tgz#46443edb40f48ab619bf51bf4187cf1d09ac6f6e"
124-
integrity sha512-iAZaZttAmfP/mubRyQIQ83X8cGhHgoRKw3MVp/wvcHMuRmFJ2AbwyItpKfVpyeA8p3reK233n6feRYehm3u4Yg==
121+
"@netlify/cli-utils@^1.0.7":
122+
version "1.0.7"
123+
resolved "https://registry.yarnpkg.com/@netlify/cli-utils/-/cli-utils-1.0.7.tgz#67b82743ac25e26904a8a552e1bfc3d6bdc34ad0"
124+
integrity sha512-Tt7vVjutcuW9a4QxQ9CmJ38uaGqffk1zd6wJg6TMcy6/x/3bW4J1BdEiz7ZZ5OGidvtx5QaLv51ExNHtEFsZ8g==
125125
dependencies:
126126
"@iarna/toml" "^2.2.1"
127127
"@oclif/command" "^1.5.8"
128+
"@oclif/parser" "^3.8.3"
128129
chalk "^2.4.1"
129130
ci-info "^2.0.0"
130131
cli-ux "^5.0.0"
@@ -135,6 +136,7 @@
135136
lodash.merge "^4.6.1"
136137
lodash.snakecase "^4.1.1"
137138
make-dir "^1.3.0"
139+
minimist "^1.2.0"
138140
netlify "^2.2.1"
139141
node-fetch "^2.3.0"
140142
uuid "^3.3.2"
@@ -264,6 +266,15 @@
264266
chalk "^2.4.2"
265267
tslib "^1.9.3"
266268

269+
"@oclif/parser@^3.8.3":
270+
version "3.8.3"
271+
resolved "https://registry.yarnpkg.com/@oclif/parser/-/parser-3.8.3.tgz#717fbbe5bfafef4270224b8bd41a2d3c80b9554e"
272+
integrity sha512-zN+3oGuv9Lg8NjFvxZTDKFEmhAMfAvd/JWeQp3Ri8pDezoyJQi4OSHHLM8sdHjBh8sePewfWI7+fDUXdrVbrqg==
273+
dependencies:
274+
"@oclif/linewrap" "^1.0.0"
275+
chalk "^2.4.2"
276+
tslib "^1.9.3"
277+
267278
"@oclif/plugin-help@^2", "@oclif/plugin-help@^2.1.6":
268279
version "2.1.6"
269280
resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-2.1.6.tgz#ae14cbe2c5cd3eaf5f796d205ffbe66d3e369173"

0 commit comments

Comments
 (0)