exoego
59c440e073
Make it clear that logs don't always get suppressed.
2019-01-23 14:33:53 +09:00
exoego
0e6c62ef9b
Merge remote-tracking branch 'upstream/master' into print-no-log
...
# Conflicts:
# lib/classes/CLI.test.js
2019-01-23 14:19:25 +09:00
Takahiro Horike
44f3d16ebf
Merge pull request #5733 from exoego/remove-duplicate-handler-warnings
...
Remove duplicate-handler warnings based on community feedback.
2019-01-22 22:49:37 +09:00
Eslam λ Hefnawy
1d1d869a2e
Merge pull request #5727 from exoego/cli-arg-test
...
Test that CLI does not convert numeric option to number
2019-01-22 16:32:19 +03:00
exoego
5fe43898d1
Remove unnecessary dependency.
2019-01-22 09:31:21 +09:00
exoego
3d31c43bcf
Remove duplicate-handler warnings based on community feedback.
2019-01-22 09:22:49 +09:00
exoego
43e1fd105f
Fix linting error.
2019-01-20 16:24:30 +09:00
exoego
c930079d5b
Do not print logs if print command is used.
2019-01-20 16:10:02 +09:00
exoego
622be4b2cd
Add test to verify number conversion never happen
2019-01-20 13:48:31 +09:00
exoego
cec6d5501b
Suppress confusing warning since root cause is warned elsewhere.
2019-01-19 07:20:49 +09:00
Daniel Schep
d817ce08d4
Merge pull request #5687 from serverless/remove-platform-code
...
Remove platform code
2019-01-17 11:01:45 -05:00
exoego
f434009c45
Move stage name validation to Service#validate.
...
Since validation should be performed after service.functions are resolved.
2019-01-16 16:39:09 +09:00
Austen Collins
121a2ffbf2
fix linting issue
2019-01-15 13:22:39 -08:00
Austen Collins
d4fc6d1980
add entity to enable plugins to personalize their cli logs
2019-01-14 21:28:25 -08:00
Daniel Schep
96906c1c70
Merge pull request #5686 from exoego/validation-after-var-resolution
...
AWS: Fix stage name validation timing and allow hyphen
2019-01-13 20:25:53 -05:00
exoego
fe6cb01302
Fix error message.
2019-01-12 17:33:38 +09:00
exoego
ef591b2677
Add test case when the populated variable is valid.
2019-01-12 17:23:45 +09:00
exoego
df780c36e3
Allow underscore too.
2019-01-12 17:17:40 +09:00
Austen Collins
70e94c9640
remove platform commands from the help screen
2019-01-11 16:36:20 -08:00
exoego
a12bb5bf71
Allow hyphen which is valid for API Gateway now.
2019-01-12 08:53:29 +09:00
exoego
5ca31157b7
Add test case to increase coverage.
2019-01-12 08:33:50 +09:00
exoego
6e0d7a86d1
Implement after-variable-resolution stage name validation for AWS.
2019-01-12 08:11:50 +09:00
Daniel Schep
0896f311b1
Merge pull request #5312 from Limess/4496/handle-scoped-packages
...
Handle scoped npm packages in ${file()} variables
2019-01-07 10:56:25 -05:00
exoego
e2722a71e3
Add warning prefix.
2018-12-31 19:28:32 +09:00
exoego
fad655eb91
Refactor: inline underscore-starting private methods since it is linted as error.
2018-12-31 07:54:25 +09:00
exoego
e6599f3953
Refactor: move service validations to Service#validate
2018-12-31 07:38:24 +09:00
exoego
ae9d7ca83d
Refactor to increase coverage.
2018-12-30 22:11:31 +09:00
exoego
58f3cc2153
Fix linting errors and older-nodejs errors.
2018-12-30 22:02:05 +09:00
exoego
5df4c7982d
Add warning for multiple functions having same handler.
2018-12-30 21:54:30 +09:00
Daniel Schep
e99e71d215
lint
2018-12-13 09:32:46 -05:00
Daniel Schep
63fb1309d3
restore support for variable refs with spaces in them
2018-12-13 09:16:57 -05:00
horike37
4336340aa4
Merge remote-tracking branch 'root/master' into cf-ref-region
2018-12-10 12:01:41 +09:00
exoego
13de2a9083
Use lodash for consistency.
2018-12-10 09:50:16 +09:00
exoego
e90e293c71
Add region suffix support to CloudFormation reference syntax
2018-12-08 20:44:16 +09:00
Daniel Schep
80f9a2599f
Merge pull request #5571 from exoego/preserver-space-in-fallback
...
BREAKING-CHANGE Preserver whitespace in variable fallback
2018-12-06 11:53:06 -05:00
exoego
1a9cdf356b
Remove whitespace-celaning that seems unnecessary.
2018-12-06 21:36:00 +09:00
Daniel Schep
2ad01b3fe3
[WIP] Support for publishing Lambda Layers
2018-11-29 10:55:52 -05:00
Daniel Schep
dd4a49d7f5
Merge pull request #4827 from simonbuchan/config-promises
...
Support returning promises from serverless.js
2018-11-27 11:45:07 -05:00
Daniel Schep
11a6688146
test covering #5493
2018-11-15 13:19:31 -05:00
Jerzy Kozera
efa6963242
Fix issues with PR #5631 causing base64 errors
...
- Some of values were not converted back from base64, which resulted in
spurious errors with base64 strings.
(This was caused by nested arrays, like commands, not being converted
back, combined with the wrong assumption that commands always occur
before options. It is not always true, as the added test case
demonstrates.)
- Some other values were converted *from* base64, but they weren't
base64 in the first place, which resulted in junk binary data.
(This was due to the invalid assumption that only odd-numbered values
need to be converted.)
2018-11-15 17:39:35 +01:00
Daniel Schep
4cf2db57f9
Merge pull request #5298 from shanehandley/2116-consistent-errors-missing-config
...
2116 consistent errors missing config
2018-11-13 08:18:04 -05:00
Takahiro Horike
af26fbbc1a
Merge pull request #5361 from 07Gond/master
...
Avoid args being rounded and converted to numbers
2018-10-14 13:48:27 +09:00
Shane Handley
c49ebdfffc
Update serverless config file lookup in pluginmanager to use the serverless config default value always.
2018-10-13 19:25:04 +09:00
Shane Handley
1726daef2e
Merge branch 'master' into 2116-consistent-errors-missing-config
2018-10-12 15:02:19 +09:00
Gerson Niño
2549145fd1
Adding code comments
2018-10-06 01:22:03 -05:00
Gerson Niño
d1e0fbd6f1
Adding unit test
2018-10-06 01:15:04 -05:00
Gerson Niño
74a27d13ac
Adding support to node4 and fix naming
2018-10-06 00:42:43 -05:00
Shane Handley
7b664e949f
Update the way that the configDependent property is checked, switch some lookups to getServerlessConfig to use the service path from sls.config rather than assume process.cwd()
2018-09-30 15:40:21 +09:00
Gerson Niño
9a0f5763cf
Workaround to avoid convert string to numbers with minimist
2018-09-28 10:06:13 -05:00
Erik Erikson
553e6cf0da
Provide Consistent Service Path
...
Fix #5242
Do this by first supplying the `servicePath` in `~/lib/plugins/lib/validate.js` and `~/lib/plugins/print.js` in a consistent manner with the code in `~/lib/classes/PluginManager.js`. Then, provide a default of `process.cwd()` for `servicePath` in `getCacheFilePath` and `getServerlessConfigFile`.
2018-09-19 17:03:29 -07:00