tom-microservice 3.4.1 → 3.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  [![Coverage Status](https://img.shields.io/coveralls/Kikobeats/tom-microservice.svg?style=flat-square)](https://coveralls.io/github/Kikobeats/tom-microservice)
9
9
  [![NPM Status](https://img.shields.io/npm/dm/tom-microservice.svg?style=flat-square)](https://www.npmjs.org/package/tom-microservice)
10
10
 
11
- > Stripe API version: [2022-08-01](https://stripe.com/docs/upgrades#2022-08-01)
11
+ > Stripe API version: [2022-11-15](https://stripe.com/docs/upgrades#2022-11-15)
12
12
 
13
13
  **tom** 🐶 is a backoffice for your projects, oriented for doing things like:
14
14
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "tom-microservice",
3
3
  "description": "Tom creates customers, subscriptions plans & send notifications.",
4
4
  "homepage": "https://tom.js.org",
5
- "version": "3.4.1",
5
+ "version": "3.4.3",
6
6
  "main": "src",
7
7
  "bin": {
8
8
  "tom": "bin/index.js"
package/src/routes.js CHANGED
@@ -42,7 +42,6 @@ const isWebhook = req => req.path.endsWith('webhook')
42
42
 
43
43
  const finalhandler = (error, req, res) => {
44
44
  const hasError = error !== undefined
45
- // if (hasError) console.error(error)
46
45
  return hasError
47
46
  ? send.error(res, 500, { message: error.mesage || 'Internal Server Error' })
48
47
  : send.fail(res, 405, { message: 'HTTP Method Not Allowed' })