@alterior/fastify 3.13.3 → 3.13.4

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/dist/event.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- /// <reference types="node" />
2
- export declare class FastifyEvent {
3
- static get current(): import("http").IncomingMessage;
4
- static get request(): import("http").IncomingMessage;
5
- }
1
+ export declare class FastifyEvent {
2
+ static get current(): import("http").IncomingMessage;
3
+ static get request(): import("http").IncomingMessage;
4
+ }
6
5
  //# sourceMappingURL=event.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../src/event.ts"],"names":[],"mappings":";AAEA,qBAAa,YAAY;IACrB,MAAM,KAAK,OAAO,mCAA+B;IACjD,MAAM,KAAK,OAAO,mCAA+B;CACpD"}
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../src/event.ts"],"names":[],"mappings":"AAEA,qBAAa,YAAY;IACrB,MAAM,KAAK,OAAO,mCAA+B;IACjD,MAAM,KAAK,OAAO,mCAA+B;CACpD"}
package/dist/event.js CHANGED
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FastifyEvent = void 0;
4
- const web_server_1 = require("@alterior/web-server");
5
- class FastifyEvent {
6
- static get current() { return web_server_1.WebEvent.request; }
7
- static get request() { return web_server_1.WebEvent.request; }
8
- }
9
- exports.FastifyEvent = FastifyEvent;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FastifyEvent = void 0;
4
+ const web_server_1 = require("@alterior/web-server");
5
+ class FastifyEvent {
6
+ static get current() { return web_server_1.WebEvent.request; }
7
+ static get request() { return web_server_1.WebEvent.request; }
8
+ }
9
+ exports.FastifyEvent = FastifyEvent;
10
10
  //# sourceMappingURL=event.js.map
@@ -1,15 +1,14 @@
1
- /// <reference types="node" />
2
- import fastify from "fastify";
3
- import { WebEvent, WebServerEngine, ConnectMiddleware } from '@alterior/web-server';
4
- import * as http from 'http';
5
- export type FastifyConnectMiddleware = ConnectMiddleware & fastify.FastifyInstance<http.Server, http.IncomingMessage, http.ServerResponse>;
6
- export declare class FastifyEngine extends WebServerEngine {
7
- readonly app: ConnectMiddleware & fastify.FastifyInstance<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>> & fastify.FastifyInstance<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>>;
8
- readonly providers: any[];
9
- sendJsonBody(routeEvent: WebEvent, body: any): void;
10
- addConnectMiddleware(path: string, middleware: any): void;
11
- addRoute(method: string, path: string, handler: (event: WebEvent) => void, middleware?: any): void;
12
- addAnyRoute(handler: (event: WebEvent) => void): void;
13
- private getRegistrarName;
14
- }
1
+ import fastify, { FastifyInstance } from "fastify";
2
+ import { WebEvent, WebServerEngine, ConnectMiddleware } from '@alterior/web-server';
3
+ import * as http from 'http';
4
+ export type FastifyConnectMiddleware = ConnectMiddleware & fastify.FastifyInstance<http.Server, http.IncomingMessage, http.ServerResponse>;
5
+ export declare class FastifyEngine extends WebServerEngine {
6
+ readonly app: FastifyConnectMiddleware & FastifyInstance;
7
+ readonly providers: any[];
8
+ sendJsonBody(routeEvent: WebEvent, body: any): void;
9
+ addConnectMiddleware(path: string, middleware: any): void;
10
+ addRoute(method: string, path: string, handler: (event: WebEvent) => void, middleware?: any): void;
11
+ addAnyRoute(handler: (event: WebEvent) => void): void;
12
+ private getRegistrarName;
13
+ }
15
14
  //# sourceMappingURL=fastify-engine.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fastify-engine.d.ts","sourceRoot":"","sources":["../src/fastify-engine.ts"],"names":[],"mappings":";AAAA,OAAO,OAA4B,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC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Q,EAAE,IAAI,EAAG,GAAG;IAKvD,oBAAoB,CAAC,IAAI,EAAG,MAAM,EAAE,UAAU,EAAG,GAAG;IAIpD,QAAQ,CAAC,MAAM,EAAG,MAAM,EAAE,IAAI,EAAG,MAAM,EAAE,OAAO,EAAG,CAAC,KAAK,EAAG,QAAQ,KAAK,IAAI,EAAE,UAAU,CAAC,KAAA;IAY1F,WAAW,CAAC,OAAO,EAAG,CAAC,KAAK,EAAG,QAAQ,KAAK,IAAI;IAIhD,OAAO,CAAC,gBAAgB;CAOxB"}
@@ -1,38 +1,38 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FastifyEngine = void 0;
4
- const tslib_1 = require("tslib");
5
- const fastify_1 = tslib_1.__importDefault(require("fastify"));
6
- const web_server_1 = require("@alterior/web-server");
7
- class FastifyEngine extends web_server_1.WebServerEngine {
8
- constructor() {
9
- super(...arguments);
10
- this.app = (0, fastify_1.default)();
11
- this.providers = [];
12
- }
13
- sendJsonBody(routeEvent, body) {
14
- routeEvent.response.setHeader('Content-Type', 'application/json');
15
- routeEvent.response['send'](body);
16
- }
17
- addConnectMiddleware(path, middleware) {
18
- this.app.use(path, middleware);
19
- }
20
- addRoute(method, path, handler, middleware) {
21
- if (!middleware)
22
- middleware = [];
23
- this.app[this.getRegistrarName(method)](path, ...middleware, (req, res) => {
24
- return handler(new web_server_1.WebEvent(req, res));
25
- });
26
- }
27
- addAnyRoute(handler) {
28
- this.app.use((req, res) => handler(new web_server_1.WebEvent(req, res)));
29
- }
30
- getRegistrarName(method) {
31
- let registrar = method.toLowerCase();
32
- if (!this.supportedMethods.includes(registrar))
33
- throw new Error(`The specified method '${method}' is not supported by Express.`);
34
- return registrar;
35
- }
36
- }
37
- exports.FastifyEngine = FastifyEngine;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FastifyEngine = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const fastify_1 = tslib_1.__importDefault(require("fastify"));
6
+ const web_server_1 = require("@alterior/web-server");
7
+ class FastifyEngine extends web_server_1.WebServerEngine {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.app = (0, fastify_1.default)();
11
+ this.providers = [];
12
+ }
13
+ sendJsonBody(routeEvent, body) {
14
+ routeEvent.response.setHeader('Content-Type', 'application/json');
15
+ routeEvent.response['send'](body);
16
+ }
17
+ addConnectMiddleware(path, middleware) {
18
+ this.app.use(path, middleware);
19
+ }
20
+ addRoute(method, path, handler, middleware) {
21
+ if (!middleware)
22
+ middleware = [];
23
+ this.app[this.getRegistrarName(method)](path, ...middleware, (req, res) => {
24
+ return handler(new web_server_1.WebEvent(req, res));
25
+ });
26
+ }
27
+ addAnyRoute(handler) {
28
+ this.app.use((req, res) => handler(new web_server_1.WebEvent(req, res)));
29
+ }
30
+ getRegistrarName(method) {
31
+ let registrar = method.toLowerCase();
32
+ if (!this.supportedMethods.includes(registrar))
33
+ throw new Error(`The specified method '${method}' is not supported by Express.`);
34
+ return registrar;
35
+ }
36
+ }
37
+ exports.FastifyEngine = FastifyEngine;
38
38
  //# sourceMappingURL=fastify-engine.js.map
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './event';
2
- export * from './fastify-engine';
1
+ export * from './event';
2
+ export * from './fastify-engine';
3
3
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./event"), exports);
5
- tslib_1.__exportStar(require("./fastify-engine"), exports);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./event"), exports);
5
+ tslib_1.__exportStar(require("./fastify-engine"), exports);
6
6
  //# sourceMappingURL=index.js.map
package/dist/test.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import "reflect-metadata";
2
- import "source-map-support/register";
1
+ import "reflect-metadata";
2
+ import "source-map-support/register";
3
3
  //# sourceMappingURL=test.d.ts.map
package/dist/test.js CHANGED
@@ -1,9 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- require("reflect-metadata");
4
- require("source-map-support/register");
5
- const razmin_1 = require("razmin");
6
- (0, razmin_1.suite)()
7
- .include(['**/*.test.js'])
8
- .run();
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ require("reflect-metadata");
4
+ require("source-map-support/register");
5
+ const razmin_1 = require("razmin");
6
+ (0, razmin_1.suite)()
7
+ .include(['**/*.test.js'])
8
+ .run();
9
9
  //# sourceMappingURL=test.js.map
@@ -1,6 +1,5 @@
1
- /// <reference types="node" />
2
- export declare class FastifyEvent {
3
- static get current(): import("http").IncomingMessage;
4
- static get request(): import("http").IncomingMessage;
5
- }
1
+ export declare class FastifyEvent {
2
+ static get current(): import("http").IncomingMessage;
3
+ static get request(): import("http").IncomingMessage;
4
+ }
6
5
  //# sourceMappingURL=event.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../src/event.ts"],"names":[],"mappings":";AAEA,qBAAa,YAAY;IACrB,MAAM,KAAK,OAAO,mCAA+B;IACjD,MAAM,KAAK,OAAO,mCAA+B;CACpD"}
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../src/event.ts"],"names":[],"mappings":"AAEA,qBAAa,YAAY;IACrB,MAAM,KAAK,OAAO,mCAA+B;IACjD,MAAM,KAAK,OAAO,mCAA+B;CACpD"}
package/dist.esm/event.js CHANGED
@@ -1,6 +1,6 @@
1
- import { WebEvent } from '@alterior/web-server';
2
- export class FastifyEvent {
3
- static get current() { return WebEvent.request; }
4
- static get request() { return WebEvent.request; }
5
- }
1
+ import { WebEvent } from '@alterior/web-server';
2
+ export class FastifyEvent {
3
+ static get current() { return WebEvent.request; }
4
+ static get request() { return WebEvent.request; }
5
+ }
6
6
  //# sourceMappingURL=event.js.map
@@ -1,15 +1,14 @@
1
- /// <reference types="node" />
2
- import fastify from "fastify";
3
- import { WebEvent, WebServerEngine, ConnectMiddleware } from '@alterior/web-server';
4
- import * as http from 'http';
5
- export type FastifyConnectMiddleware = ConnectMiddleware & fastify.FastifyInstance<http.Server, http.IncomingMessage, http.ServerResponse>;
6
- export declare class FastifyEngine extends WebServerEngine {
7
- readonly app: ConnectMiddleware & fastify.FastifyInstance<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>> & fastify.FastifyInstance<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>>;
8
- readonly providers: any[];
9
- sendJsonBody(routeEvent: WebEvent, body: any): void;
10
- addConnectMiddleware(path: string, middleware: any): void;
11
- addRoute(method: string, path: string, handler: (event: WebEvent) => void, middleware?: any): void;
12
- addAnyRoute(handler: (event: WebEvent) => void): void;
13
- private getRegistrarName;
14
- }
1
+ import fastify, { FastifyInstance } from "fastify";
2
+ import { WebEvent, WebServerEngine, ConnectMiddleware } from '@alterior/web-server';
3
+ import * as http from 'http';
4
+ export type FastifyConnectMiddleware = ConnectMiddleware & fastify.FastifyInstance<http.Server, http.IncomingMessage, http.ServerResponse>;
5
+ export declare class FastifyEngine extends WebServerEngine {
6
+ readonly app: FastifyConnectMiddleware & FastifyInstance;
7
+ readonly providers: any[];
8
+ sendJsonBody(routeEvent: WebEvent, body: any): void;
9
+ addConnectMiddleware(path: string, middleware: any): void;
10
+ addRoute(method: string, path: string, handler: (event: WebEvent) => void, middleware?: any): void;
11
+ addAnyRoute(handler: (event: WebEvent) => void): void;
12
+ private getRegistrarName;
13
+ }
15
14
  //# sourceMappingURL=fastify-engine.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fastify-engine.d.ts","sourceRoot":"","sources":["../src/fastify-engine.ts"],"names":[],"mappings":";AAAA,OAAO,OAA4B,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AI,wBAAwB,GAAG,eAAe,CAAW;IACrE,QAAQ,CAAC,SAAS,QAAM;IAEf,YAAY,CAAC,UAAU,EAAG,QAAQ,EAAE,IAAI,EAAG,GAAG;IAKvD,oBAAoB,CAAC,IAAI,EAAG,MAAM,EAAE,UAAU,EAAG,GAAG;IAIpD,QAAQ,CAAC,MAAM,EAAG,MAAM,EAAE,IAAI,EAAG,MAAM,EAAE,OAAO,EAAG,CAAC,KAAK,EAAG,QAAQ,KAAK,IAAI,EAAE,UAAU,CAAC,KAAA;IAY1F,WAAW,CAAC,OAAO,EAAG,CAAC,KAAK,EAAG,QAAQ,KAAK,IAAI;IAIhD,OAAO,CAAC,gBAAgB;CAOxB"}
@@ -1,33 +1,33 @@
1
- import fastify from "fastify";
2
- import { WebEvent, WebServerEngine } from '@alterior/web-server';
3
- export class FastifyEngine extends WebServerEngine {
4
- constructor() {
5
- super(...arguments);
6
- this.app = fastify();
7
- this.providers = [];
8
- }
9
- sendJsonBody(routeEvent, body) {
10
- routeEvent.response.setHeader('Content-Type', 'application/json');
11
- routeEvent.response['send'](body);
12
- }
13
- addConnectMiddleware(path, middleware) {
14
- this.app.use(path, middleware);
15
- }
16
- addRoute(method, path, handler, middleware) {
17
- if (!middleware)
18
- middleware = [];
19
- this.app[this.getRegistrarName(method)](path, ...middleware, (req, res) => {
20
- return handler(new WebEvent(req, res));
21
- });
22
- }
23
- addAnyRoute(handler) {
24
- this.app.use((req, res) => handler(new WebEvent(req, res)));
25
- }
26
- getRegistrarName(method) {
27
- let registrar = method.toLowerCase();
28
- if (!this.supportedMethods.includes(registrar))
29
- throw new Error(`The specified method '${method}' is not supported by Express.`);
30
- return registrar;
31
- }
32
- }
1
+ import fastify from "fastify";
2
+ import { WebEvent, WebServerEngine } from '@alterior/web-server';
3
+ export class FastifyEngine extends WebServerEngine {
4
+ constructor() {
5
+ super(...arguments);
6
+ this.app = fastify();
7
+ this.providers = [];
8
+ }
9
+ sendJsonBody(routeEvent, body) {
10
+ routeEvent.response.setHeader('Content-Type', 'application/json');
11
+ routeEvent.response['send'](body);
12
+ }
13
+ addConnectMiddleware(path, middleware) {
14
+ this.app.use(path, middleware);
15
+ }
16
+ addRoute(method, path, handler, middleware) {
17
+ if (!middleware)
18
+ middleware = [];
19
+ this.app[this.getRegistrarName(method)](path, ...middleware, (req, res) => {
20
+ return handler(new WebEvent(req, res));
21
+ });
22
+ }
23
+ addAnyRoute(handler) {
24
+ this.app.use((req, res) => handler(new WebEvent(req, res)));
25
+ }
26
+ getRegistrarName(method) {
27
+ let registrar = method.toLowerCase();
28
+ if (!this.supportedMethods.includes(registrar))
29
+ throw new Error(`The specified method '${method}' is not supported by Express.`);
30
+ return registrar;
31
+ }
32
+ }
33
33
  //# sourceMappingURL=fastify-engine.js.map
@@ -1,3 +1,3 @@
1
- export * from './event';
2
- export * from './fastify-engine';
1
+ export * from './event';
2
+ export * from './fastify-engine';
3
3
  //# sourceMappingURL=index.d.ts.map
package/dist.esm/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from './event';
2
- export * from './fastify-engine';
1
+ export * from './event';
2
+ export * from './fastify-engine';
3
3
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- import "reflect-metadata";
2
- import "source-map-support/register";
1
+ import "reflect-metadata";
2
+ import "source-map-support/register";
3
3
  //# sourceMappingURL=test.d.ts.map
package/dist.esm/test.js CHANGED
@@ -1,7 +1,7 @@
1
- import "reflect-metadata";
2
- import "source-map-support/register";
3
- import { suite } from 'razmin';
4
- suite()
5
- .include(['**/*.test.js'])
6
- .run();
1
+ import "reflect-metadata";
2
+ import "source-map-support/register";
3
+ import { suite } from 'razmin';
4
+ suite()
5
+ .include(['**/*.test.js'])
6
+ .run();
7
7
  //# sourceMappingURL=test.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alterior/fastify",
3
- "version": "3.13.3",
3
+ "version": "3.13.4",
4
4
  "description": "Access Fastify state within an Alterior app",
5
5
  "author": "The Alterior Project (https://github.com/alterior-mvc)",
6
6
  "license": "MIT",
@@ -29,16 +29,16 @@
29
29
  },
30
30
  "scripts": {
31
31
  "clean": "rimraf dist dist.esm",
32
- "build": "npm run clean && npm run build:cjs && npm run build:esm",
33
- "build:cjs": "tsc",
34
- "build:esm": "tsc -p tsconfig.esm.json",
32
+ "build": "npm run build:cjs && npm run build:esm",
33
+ "build:cjs": "tsc -b",
34
+ "build:esm": "tsc -b tsconfig.esm.json",
35
35
  "prepublishOnly": "npm test",
36
- "test": "npm run build && node dist/test.js",
37
- "docs": "typedoc ."
36
+ "test": "node dist/test.js",
37
+ "docs": "typedoc src/index.ts"
38
38
  },
39
39
  "dependencies": {
40
- "@alterior/logging": "^3.13.3",
41
- "@alterior/web-server": "^3.13.3",
40
+ "@alterior/logging": "^3.13.4",
41
+ "@alterior/web-server": "^3.13.4",
42
42
  "fastify": "^2.15.3"
43
43
  },
44
44
  "gitHead": "87f31ea4078faaca53b45573c6a0013cdb40dd07"
@@ -0,0 +1 @@
1
+ {"root":["./src/event.ts","./src/fastify-engine.ts","./src/index.ts","./src/test.ts"],"version":"5.9.3"}
package/tsconfig.json CHANGED
@@ -7,9 +7,7 @@
7
7
  },
8
8
  "include": [ "./src/**/*.ts" ],
9
9
  "typedocOptions": {
10
- "mode": "file",
11
10
  "out": "../../docs/di",
12
- "target": "ES5",
13
11
  "excludeExternals": true,
14
12
  "excludePrivate": true,
15
13
  "externalPattern": "**/node_modules/**",
@@ -0,0 +1 @@
1
+ {"root":["./src/event.ts","./src/fastify-engine.ts","./src/index.ts","./src/test.ts"],"version":"5.9.3"}