@vrobots/fastify 0.1.1 → 0.1.2

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.
@@ -8,8 +8,6 @@ const fs_1 = tslib_1.__importDefault(require("fs"));
8
8
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
9
9
  const glob_1 = tslib_1.__importDefault(require("glob"));
10
10
  const formbody_1 = tslib_1.__importDefault(require("@fastify/formbody"));
11
- const log_1 = tslib_1.__importDefault(require("./log"));
12
- const strip_ansi_1 = tslib_1.__importDefault(require("strip-ansi"));
13
11
  const cors_1 = tslib_1.__importDefault(require("@fastify/cors"));
14
12
  class FastifyInit {
15
13
  init() {
@@ -64,10 +62,6 @@ class FastifyInit {
64
62
  }
65
63
  initMiddleware(app) {
66
64
  app.register(formbody_1.default);
67
- app.setErrorHandler((err) => {
68
- log_1.default.defaultMeta = { ...log_1.default.defaultMeta, error: err.toString() },
69
- log_1.default.error((0, strip_ansi_1.default)(err));
70
- });
71
65
  function checkOriginAgainstWhitelist(ctx) {
72
66
  const requestOrigin = ctx.accept.headers.origin;
73
67
  const requestOriginParts = requestOrigin.split('.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vrobots/fastify",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Bryan Ricci",