915 Commits

Author SHA1 Message Date
Philipp Muens
b87008c15d Easier to understand error message 2019-09-03 12:35:48 +02:00
Daniel Schep
a231e0302d changes for @erikerikson's review 2019-08-30 09:29:12 -04:00
Daniel Schep
9e82d11a46 fix variable prefix regex 2019-08-30 07:22:34 -04:00
Daniel Schep
43076c0f22 Merge remote-tracking branch 'origin/master' into custom-variable-getters 2019-08-29 12:38:58 -04:00
Daniel Schep
c6f3611177 prettier 2019-08-29 12:23:41 -04:00
Daniel Schep
fc9b9066b6 check for falsey variable resolver 2019-08-29 08:35:54 -04:00
Daniel Schep
91ae8bcc17
Add initialize lifecycle event (#6601)
* Revert "remove initialize hook stuff. moving to diff pr"

This reverts commit 851b043710fffd6e88d025e4da741bb8af35ba8e.

* Switch to Bluebird Promise implementation
2019-08-28 12:05:17 -04:00
Daniel Schep
dd1ba83e5d validate that options is an object if not a function 2019-08-28 08:47:08 -04:00
Daniel Schep
4efbf845a2 variable prefix is always a string 2019-08-28 08:37:09 -04:00
Philipp Muens
dec3d5ff40 Update docs / Fix typos 2019-08-28 13:30:14 +02:00
Daniel Schep
851b043710 remove initialize hook stuff. moving to diff pr 2019-08-27 14:21:10 -04:00
Daniel Schep
b5757d334a Array.reduce instead of Promise.reduce 2019-08-27 14:11:04 -04:00
Daniel Schep
729381f25e move initialize hook into plugman.run & test 2019-08-27 11:40:07 -04:00
Daniel Schep
ed1117b5e8 fix tests and validate inputs 2019-08-27 09:47:26 -04:00
Daniel Schep
d1a2a30ef9 remove unused custom var getter flag 2019-08-27 08:53:34 -04:00
Daniel Schep
15319b5be1 s/isDependentService/isDisabledAtPrepopulation 2019-08-27 08:46:41 -04:00
Daniel Schep
569623e156 s/method/resolver/ 2019-08-27 08:44:57 -04:00
Daniel Schep
70921f4213 moar lint 2019-08-26 14:03:27 -04:00
Daniel Schep
0ca9c2ed67 lint 2019-08-26 13:39:21 -04:00
Daniel Schep
83591d507c fix tests 2019-08-26 12:29:12 -04:00
Mariusz Nowak
05ec61844b
Test error message 2019-08-26 14:58:29 +02:00
Daniel Schep
7ccdde6178 asfaf 2019-08-26 08:13:34 -04:00
Mariusz Nowak
b8118c44a2
Fix ServerlessError definition
So message in all cases turns as 'string'
2019-08-23 18:35:17 +02:00
Mariusz Nowak
0e1afb1c52
Reorganize export 2019-08-23 18:03:41 +02:00
Daniel Schep
e3c4755dbe WIP 2019-08-23 10:08:41 -04:00
Daniel Schep
12fea8f336 rename 2019-08-23 10:07:41 -04:00
Mariusz Nowak
418d4e4ae9
Improve multiline message output 2019-08-23 13:50:50 +02:00
Mariusz Nowak
8fb1b36d75
Merge pull request #6554 from dougmoscrop/empty_array
do not log warnings on empty arrays
2019-08-22 13:04:30 +02:00
Doug Moscrop
69f4cbe1dd do not log warnings on empty arrays 2019-08-21 13:17:44 -04:00
Daniel Schep
faa5a07009 prettify 2019-08-21 12:46:21 -04:00
Daniel Schep
c69cb50555 objects not arrays for instances in variableResolvers 2019-08-21 11:11:46 -04:00
Daniel Schep
c3674e1293 safer & more explicit implementation of variableResolvesrs(also renamed) 2019-08-21 10:22:05 -04:00
Daniel Schep
55a794f4e0 drop support for the asyncInit function on plugins 2019-08-20 15:45:32 -04:00
Daniel Schep
c0ed311865 simplify variable getter hook system 2019-08-20 15:00:23 -04:00
Daniel Schep
d3bcfeea78 lint 2019-08-20 14:39:20 -04:00
Daniel Schep
8b53a4323a lint & docs 2019-08-20 14:29:40 -04:00
Daniel Schep
e4d29bb9cd test coverage for loading variable getters 2019-08-20 14:18:52 -04:00
Daniel Schep
02fa190d0b Add plugin hooks to define config variable getters 2019-08-20 11:23:42 -04:00
Nathan Chapman
d266b1b399 Return null from logStat promise to remove Bluebird warnings 2019-08-16 16:08:00 -05:00
Stephane Seng
5952712085 fix(GITHUB-6525-5172): Rewrite copyDirContentsSyncAllow to call fs-extra::copySync() on the directories instead of calling it on the files to copy individually.
The main motivation behind these changes is to rely on
https://github.com/jprichardson/node-fs-extra/blob/8.1.0/docs/copy-sync.md as
much as possible in order to avoid having to do the
`fullFilePath.replace(srcDir, '')` operation because this operation can be
error-prone.

Doing so fixes the following issues because the user-submitted file paths are
now correctly interpreted by fs-extra, closing both #6525 and #5172.
2019-08-12 23:09:23 +02:00
Mariusz Nowak
87faf71920
Clear confusing wording 2019-08-06 22:00:03 +02:00
Mariusz Nowak
ae77dbeaa0
Recognize YAMLException as user error 2019-08-06 14:14:07 +02:00
Mariusz Nowak
b3f06b8b1f
Do not duplicate error message output 2019-08-06 14:14:04 +02:00
Mariusz Nowak
7ce351e084
Log uncaught exceptions 2019-08-06 13:44:43 +02:00
Mariusz Nowak
406d4c713a
Expose stack trace for non user errors 2019-08-06 13:44:15 +02:00
Mariusz Nowak
80e6ad5fb7
Recognize isUserError variable 2019-08-06 13:44:15 +02:00
Mariusz Nowak
ee091fb91c
Show SLS_DEBUG info only when it's not used 2019-08-06 13:44:14 +02:00
Mariusz Nowak
18dfb69e31
Improve non-error exception handling 2019-08-06 13:44:10 +02:00
Mariusz Nowak
5e57ad365e
Improve variable name 2019-08-06 13:02:01 +02:00
Mariusz Nowak
77432a0e07
Improve variable name 2019-08-06 13:02:01 +02:00