Skip to content

Commit

Permalink
Add support for form submissions (#780)
Browse files Browse the repository at this point in the history
* Add support for form submissions

* Make mkdirp async

* Dev: Send forms data to submission-created function

* Delete forms.js

* Use this.error and this.log

* Add mkdirp as dev dep

* A better check for form mime

* Dont trigger form handler on internal URl's

* Fix 'referrer' field in forms

* Normalize multipart form data

* Add convenience fields for forms

* Make form handler function URL relative to root

* Add 'site' field to form event

* Add files to Form event

* Move handleFormSubmission outside

* Formatting

* Remove debug logs

* Fix query params when handling forms

* Add submission-created handler for tests

* Add tests for Netlify Forms

* Formatting

* 🎨 Use non-arrow function

* Fix Node 8 incompatiblity
  • Loading branch information
RaeesBhatti authored Jun 16, 2020
1 parent d63e839 commit c6e9445
Show file tree
Hide file tree
Showing 6 changed files with 414 additions and 21 deletions.
226 changes: 216 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"cli-ux": "^5.2.1",
"concordance": "^4.0.0",
"configstore": "^5.0.0",
"content-type": "^1.0.4",
"cookie": "^0.4.0",
"copy-template-dir": "^1.4.0",
"debug": "^4.1.1",
Expand All @@ -102,7 +103,7 @@
"gh-release-fetch": "^1.0.3",
"git-repo-info": "^2.1.0",
"gitconfiglocal": "^2.1.0",
"http-proxy": "^1.17.0",
"http-proxy": "^1.18.0",
"http-proxy-middleware": "^0.20.0",
"inquirer": "^6.5.1",
"inquirer-autocomplete-prompt": "^1.0.1",
Expand All @@ -120,6 +121,7 @@
"log-symbols": "^2.2.0",
"make-dir": "^3.0.0",
"minimist": "^1.2.5",
"multiparty": "^4.2.1",
"netlify": "^4.3.1",
"netlify-redirect-parser": "^2.5.0",
"netlify-redirector": "^0.2.0",
Expand All @@ -133,6 +135,7 @@
"precinct": "^6.1.2",
"prettyjson": "^1.2.1",
"random-item": "^1.0.0",
"raw-body": "^2.4.1",
"read-pkg-up": "^6.0.0",
"require-package-name": "^2.0.1",
"resolve": "^1.12.0",
Expand Down Expand Up @@ -171,7 +174,7 @@
"husky": "^3.0.3",
"lint-staged": "^9.2.1",
"markdown-magic": "^0.1.25",
"mkdirp": "^0.5.1",
"mkdirp": "^1.0.4",
"mocha": "^6.2.0",
"nock": "^10.0.6",
"npm-run-all": "^4.1.5",
Expand Down
Loading

0 comments on commit c6e9445

Please sign in to comment.