@event-driven-io/emmett-fastify 0.43.0-beta.13 → 0.43.0-beta.15
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/index.cjs +82 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -14
- package/dist/index.d.ts +16 -14
- package/dist/index.js +44 -47
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1,56 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
activeDefaultPlugins.map(async ({ plugin, options: options2 }) => {
|
|
23
|
-
await app.register(plugin, options2);
|
|
24
|
-
})
|
|
25
|
-
);
|
|
26
|
-
if (registerRoutes) {
|
|
27
|
-
registerRoutes(app);
|
|
28
|
-
}
|
|
29
|
-
const closeListeners = _closewithgrace2.default.call(void 0, { delay: 500 }, async (opts) => {
|
|
30
|
-
if (opts.err) {
|
|
31
|
-
app.log.error(opts.err);
|
|
32
|
-
}
|
|
33
|
-
await app.close();
|
|
34
|
-
});
|
|
35
|
-
app.addHook("onClose", (instance, done) => {
|
|
36
|
-
closeListeners.uninstall();
|
|
37
|
-
done();
|
|
38
|
-
});
|
|
39
|
-
return app;
|
|
40
|
-
};
|
|
41
|
-
var startAPI = async (app, options = { port: 5e3 }) => {
|
|
42
|
-
const { port } = options;
|
|
43
|
-
try {
|
|
44
|
-
await app.listen({ port });
|
|
45
|
-
const address = app.server.address();
|
|
46
|
-
console.log(`Server listening on ${_optionalChain([address, 'optionalAccess', _ => _.address])}:${_optionalChain([address, 'optionalAccess', _2 => _2.port])}`);
|
|
47
|
-
} catch (err) {
|
|
48
|
-
app.log.error(err);
|
|
49
|
-
process.exit(1);
|
|
50
|
-
}
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
14
|
+
__defProp(to, key, {
|
|
15
|
+
get: ((k) => from[k]).bind(null, key),
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
51
22
|
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
+
value: mod,
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) : target, mod));
|
|
52
27
|
|
|
28
|
+
//#endregion
|
|
29
|
+
let _fastify_compress = require("@fastify/compress");
|
|
30
|
+
_fastify_compress = __toESM(_fastify_compress, 1);
|
|
31
|
+
let _fastify_etag = require("@fastify/etag");
|
|
32
|
+
_fastify_etag = __toESM(_fastify_etag, 1);
|
|
33
|
+
let _fastify_formbody = require("@fastify/formbody");
|
|
34
|
+
_fastify_formbody = __toESM(_fastify_formbody, 1);
|
|
35
|
+
let close_with_grace = require("close-with-grace");
|
|
36
|
+
close_with_grace = __toESM(close_with_grace, 1);
|
|
37
|
+
let fastify = require("fastify");
|
|
38
|
+
fastify = __toESM(fastify, 1);
|
|
53
39
|
|
|
40
|
+
//#region src/index.ts
|
|
41
|
+
const defaultPlugins = [
|
|
42
|
+
{
|
|
43
|
+
plugin: _fastify_etag.default,
|
|
44
|
+
options: {}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
plugin: _fastify_compress.default,
|
|
48
|
+
options: { global: false }
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
plugin: _fastify_formbody.default,
|
|
52
|
+
options: {}
|
|
53
|
+
}
|
|
54
|
+
];
|
|
55
|
+
const getApplication = async (options) => {
|
|
56
|
+
const { registerRoutes, activeDefaultPlugins = defaultPlugins, serverOptions = { logger: true } } = options;
|
|
57
|
+
const app = (0, fastify.default)(serverOptions);
|
|
58
|
+
await Promise.all(activeDefaultPlugins.map(async ({ plugin, options }) => {
|
|
59
|
+
await app.register(plugin, options);
|
|
60
|
+
}));
|
|
61
|
+
if (registerRoutes) registerRoutes(app);
|
|
62
|
+
const closeListeners = (0, close_with_grace.default)({ delay: 500 }, async (opts) => {
|
|
63
|
+
if (opts.err) app.log.error(opts.err);
|
|
64
|
+
await app.close();
|
|
65
|
+
});
|
|
66
|
+
app.addHook("onClose", (instance, done) => {
|
|
67
|
+
closeListeners.uninstall();
|
|
68
|
+
done();
|
|
69
|
+
});
|
|
70
|
+
return app;
|
|
71
|
+
};
|
|
72
|
+
const startAPI = async (app, options = { port: 5e3 }) => {
|
|
73
|
+
const { port } = options;
|
|
74
|
+
try {
|
|
75
|
+
await app.listen({ port });
|
|
76
|
+
const address = app.server.address();
|
|
77
|
+
console.log(`Server listening on ${address?.address}:${address?.port}`);
|
|
78
|
+
} catch (err) {
|
|
79
|
+
app.log.error(err);
|
|
80
|
+
process.exit(1);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
54
83
|
|
|
55
|
-
|
|
84
|
+
//#endregion
|
|
85
|
+
exports.getApplication = getApplication;
|
|
86
|
+
exports.startAPI = startAPI;
|
|
56
87
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["Etag","Compress","Form"],"sources":["../src/index.ts"],"sourcesContent":["import Compress from '@fastify/compress';\nimport Etag from '@fastify/etag';\nimport Form from '@fastify/formbody';\nimport closeWithGrace from 'close-with-grace';\nimport Fastify, {\n type FastifyInstance,\n type FastifyPluginAsync,\n type FastifyPluginCallback,\n type FastifyPluginOptions,\n} from 'fastify';\n\n// TODO: THIS WILL NEED TO BE BETTER TYPED\ntype Plugin = {\n plugin: FastifyPluginAsync | FastifyPluginCallback;\n options: FastifyPluginOptions;\n};\n\nconst defaultPlugins: Plugin[] = [\n { plugin: Etag, options: {} },\n { plugin: Compress, options: { global: false } },\n { plugin: Form, options: {} },\n];\n\nexport interface ApplicationOptions {\n serverOptions?: { logger: boolean };\n registerRoutes?: (app: FastifyInstance) => void;\n activeDefaultPlugins?: Plugin[];\n}\n\nexport const getApplication = async (options: ApplicationOptions) => {\n const {\n registerRoutes,\n activeDefaultPlugins = defaultPlugins,\n serverOptions = {\n logger: true,\n },\n } = options;\n\n const app: FastifyInstance = Fastify(serverOptions);\n\n await Promise.all(\n activeDefaultPlugins.map(async ({ plugin, options }) => {\n await app.register(plugin, options);\n }),\n );\n\n if (registerRoutes) {\n registerRoutes(app);\n }\n\n const closeListeners = closeWithGrace({ delay: 500 }, async (opts) => {\n if (opts.err) {\n app.log.error(opts.err);\n }\n\n await app.close();\n });\n\n app.addHook('onClose', (instance, done) => {\n closeListeners.uninstall();\n done();\n });\n\n return app;\n};\n\nexport type StartApiOptions = {\n port?: number;\n};\n\nexport const startAPI = async (\n app: FastifyInstance,\n options: StartApiOptions = { port: 5000 },\n) => {\n const { port } = options;\n try {\n await app.listen({ port });\n const address = app.server.address() as { address: string; port: number };\n\n console.log(`Server listening on ${address?.address}:${address?.port}`);\n } catch (err) {\n app.log.error(err);\n process.exit(1);\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,MAAM,iBAA2B;CAC/B;EAAE,QAAQA;EAAM,SAAS,EAAE;EAAE;CAC7B;EAAE,QAAQC;EAAU,SAAS,EAAE,QAAQ,OAAO;EAAE;CAChD;EAAE,QAAQC;EAAM,SAAS,EAAE;EAAE;CAC9B;AAQD,MAAa,iBAAiB,OAAO,YAAgC;CACnE,MAAM,EACJ,gBACA,uBAAuB,gBACvB,gBAAgB,EACd,QAAQ,MACT,KACC;CAEJ,MAAM,2BAA+B,cAAc;AAEnD,OAAM,QAAQ,IACZ,qBAAqB,IAAI,OAAO,EAAE,QAAQ,cAAc;AACtD,QAAM,IAAI,SAAS,QAAQ,QAAQ;GACnC,CACH;AAED,KAAI,eACF,gBAAe,IAAI;CAGrB,MAAM,+CAAgC,EAAE,OAAO,KAAK,EAAE,OAAO,SAAS;AACpE,MAAI,KAAK,IACP,KAAI,IAAI,MAAM,KAAK,IAAI;AAGzB,QAAM,IAAI,OAAO;GACjB;AAEF,KAAI,QAAQ,YAAY,UAAU,SAAS;AACzC,iBAAe,WAAW;AAC1B,QAAM;GACN;AAEF,QAAO;;AAOT,MAAa,WAAW,OACtB,KACA,UAA2B,EAAE,MAAM,KAAM,KACtC;CACH,MAAM,EAAE,SAAS;AACjB,KAAI;AACF,QAAM,IAAI,OAAO,EAAE,MAAM,CAAC;EAC1B,MAAM,UAAU,IAAI,OAAO,SAAS;AAEpC,UAAQ,IAAI,uBAAuB,SAAS,QAAQ,GAAG,SAAS,OAAO;UAChE,KAAK;AACZ,MAAI,IAAI,MAAM,IAAI;AAClB,UAAQ,KAAK,EAAE"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import * as _$fastify from "fastify";
|
|
2
|
+
import { FastifyInstance, FastifyPluginAsync, FastifyPluginCallback, FastifyPluginOptions } from "fastify";
|
|
3
|
+
import * as _$node_http0 from "node:http";
|
|
4
4
|
|
|
5
|
+
//#region src/index.d.ts
|
|
5
6
|
type Plugin = {
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
plugin: FastifyPluginAsync | FastifyPluginCallback;
|
|
8
|
+
options: FastifyPluginOptions;
|
|
8
9
|
};
|
|
9
10
|
interface ApplicationOptions {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
serverOptions?: {
|
|
12
|
+
logger: boolean;
|
|
13
|
+
};
|
|
14
|
+
registerRoutes?: (app: FastifyInstance) => void;
|
|
15
|
+
activeDefaultPlugins?: Plugin[];
|
|
15
16
|
}
|
|
16
|
-
declare const getApplication: (options: ApplicationOptions) => Promise<FastifyInstance<fastify.RawServerDefault,
|
|
17
|
+
declare const getApplication: (options: ApplicationOptions) => Promise<FastifyInstance<_$fastify.RawServerDefault, _$node_http0.IncomingMessage, _$node_http0.ServerResponse<_$node_http0.IncomingMessage>, _$fastify.FastifyBaseLogger, _$fastify.FastifyTypeProviderDefault>>;
|
|
17
18
|
type StartApiOptions = {
|
|
18
|
-
|
|
19
|
+
port?: number;
|
|
19
20
|
};
|
|
20
21
|
declare const startAPI: (app: FastifyInstance, options?: StartApiOptions) => Promise<void>;
|
|
21
|
-
|
|
22
|
-
export {
|
|
22
|
+
//#endregion
|
|
23
|
+
export { ApplicationOptions, StartApiOptions, getApplication, startAPI };
|
|
24
|
+
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import * as _$fastify from "fastify";
|
|
2
|
+
import { FastifyInstance, FastifyPluginAsync, FastifyPluginCallback, FastifyPluginOptions } from "fastify";
|
|
3
|
+
import * as _$node_http0 from "node:http";
|
|
4
4
|
|
|
5
|
+
//#region src/index.d.ts
|
|
5
6
|
type Plugin = {
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
plugin: FastifyPluginAsync | FastifyPluginCallback;
|
|
8
|
+
options: FastifyPluginOptions;
|
|
8
9
|
};
|
|
9
10
|
interface ApplicationOptions {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
serverOptions?: {
|
|
12
|
+
logger: boolean;
|
|
13
|
+
};
|
|
14
|
+
registerRoutes?: (app: FastifyInstance) => void;
|
|
15
|
+
activeDefaultPlugins?: Plugin[];
|
|
15
16
|
}
|
|
16
|
-
declare const getApplication: (options: ApplicationOptions) => Promise<FastifyInstance<fastify.RawServerDefault,
|
|
17
|
+
declare const getApplication: (options: ApplicationOptions) => Promise<FastifyInstance<_$fastify.RawServerDefault, _$node_http0.IncomingMessage, _$node_http0.ServerResponse<_$node_http0.IncomingMessage>, _$fastify.FastifyBaseLogger, _$fastify.FastifyTypeProviderDefault>>;
|
|
17
18
|
type StartApiOptions = {
|
|
18
|
-
|
|
19
|
+
port?: number;
|
|
19
20
|
};
|
|
20
21
|
declare const startAPI: (app: FastifyInstance, options?: StartApiOptions) => Promise<void>;
|
|
21
|
-
|
|
22
|
-
export {
|
|
22
|
+
//#endregion
|
|
23
|
+
export { ApplicationOptions, StartApiOptions, getApplication, startAPI };
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,56 +1,53 @@
|
|
|
1
|
-
// src/index.ts
|
|
2
1
|
import Compress from "@fastify/compress";
|
|
3
2
|
import Etag from "@fastify/etag";
|
|
4
3
|
import Form from "@fastify/formbody";
|
|
5
4
|
import closeWithGrace from "close-with-grace";
|
|
6
5
|
import Fastify from "fastify";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
|
|
7
|
+
//#region src/index.ts
|
|
8
|
+
const defaultPlugins = [
|
|
9
|
+
{
|
|
10
|
+
plugin: Etag,
|
|
11
|
+
options: {}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
plugin: Compress,
|
|
15
|
+
options: { global: false }
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
plugin: Form,
|
|
19
|
+
options: {}
|
|
20
|
+
}
|
|
11
21
|
];
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
const closeListeners = closeWithGrace({ delay: 500 }, async (opts) => {
|
|
30
|
-
if (opts.err) {
|
|
31
|
-
app.log.error(opts.err);
|
|
32
|
-
}
|
|
33
|
-
await app.close();
|
|
34
|
-
});
|
|
35
|
-
app.addHook("onClose", (instance, done) => {
|
|
36
|
-
closeListeners.uninstall();
|
|
37
|
-
done();
|
|
38
|
-
});
|
|
39
|
-
return app;
|
|
22
|
+
const getApplication = async (options) => {
|
|
23
|
+
const { registerRoutes, activeDefaultPlugins = defaultPlugins, serverOptions = { logger: true } } = options;
|
|
24
|
+
const app = Fastify(serverOptions);
|
|
25
|
+
await Promise.all(activeDefaultPlugins.map(async ({ plugin, options }) => {
|
|
26
|
+
await app.register(plugin, options);
|
|
27
|
+
}));
|
|
28
|
+
if (registerRoutes) registerRoutes(app);
|
|
29
|
+
const closeListeners = closeWithGrace({ delay: 500 }, async (opts) => {
|
|
30
|
+
if (opts.err) app.log.error(opts.err);
|
|
31
|
+
await app.close();
|
|
32
|
+
});
|
|
33
|
+
app.addHook("onClose", (instance, done) => {
|
|
34
|
+
closeListeners.uninstall();
|
|
35
|
+
done();
|
|
36
|
+
});
|
|
37
|
+
return app;
|
|
40
38
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
};
|
|
52
|
-
export {
|
|
53
|
-
getApplication,
|
|
54
|
-
startAPI
|
|
39
|
+
const startAPI = async (app, options = { port: 5e3 }) => {
|
|
40
|
+
const { port } = options;
|
|
41
|
+
try {
|
|
42
|
+
await app.listen({ port });
|
|
43
|
+
const address = app.server.address();
|
|
44
|
+
console.log(`Server listening on ${address?.address}:${address?.port}`);
|
|
45
|
+
} catch (err) {
|
|
46
|
+
app.log.error(err);
|
|
47
|
+
process.exit(1);
|
|
48
|
+
}
|
|
55
49
|
};
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
export { getApplication, startAPI };
|
|
56
53
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import Compress
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import Compress from '@fastify/compress';\nimport Etag from '@fastify/etag';\nimport Form from '@fastify/formbody';\nimport closeWithGrace from 'close-with-grace';\nimport Fastify, {\n type FastifyInstance,\n type FastifyPluginAsync,\n type FastifyPluginCallback,\n type FastifyPluginOptions,\n} from 'fastify';\n\n// TODO: THIS WILL NEED TO BE BETTER TYPED\ntype Plugin = {\n plugin: FastifyPluginAsync | FastifyPluginCallback;\n options: FastifyPluginOptions;\n};\n\nconst defaultPlugins: Plugin[] = [\n { plugin: Etag, options: {} },\n { plugin: Compress, options: { global: false } },\n { plugin: Form, options: {} },\n];\n\nexport interface ApplicationOptions {\n serverOptions?: { logger: boolean };\n registerRoutes?: (app: FastifyInstance) => void;\n activeDefaultPlugins?: Plugin[];\n}\n\nexport const getApplication = async (options: ApplicationOptions) => {\n const {\n registerRoutes,\n activeDefaultPlugins = defaultPlugins,\n serverOptions = {\n logger: true,\n },\n } = options;\n\n const app: FastifyInstance = Fastify(serverOptions);\n\n await Promise.all(\n activeDefaultPlugins.map(async ({ plugin, options }) => {\n await app.register(plugin, options);\n }),\n );\n\n if (registerRoutes) {\n registerRoutes(app);\n }\n\n const closeListeners = closeWithGrace({ delay: 500 }, async (opts) => {\n if (opts.err) {\n app.log.error(opts.err);\n }\n\n await app.close();\n });\n\n app.addHook('onClose', (instance, done) => {\n closeListeners.uninstall();\n done();\n });\n\n return app;\n};\n\nexport type StartApiOptions = {\n port?: number;\n};\n\nexport const startAPI = async (\n app: FastifyInstance,\n options: StartApiOptions = { port: 5000 },\n) => {\n const { port } = options;\n try {\n await app.listen({ port });\n const address = app.server.address() as { address: string; port: number };\n\n console.log(`Server listening on ${address?.address}:${address?.port}`);\n } catch (err) {\n app.log.error(err);\n process.exit(1);\n }\n};\n"],"mappings":";;;;;;;AAiBA,MAAM,iBAA2B;CAC/B;EAAE,QAAQ;EAAM,SAAS,EAAE;EAAE;CAC7B;EAAE,QAAQ;EAAU,SAAS,EAAE,QAAQ,OAAO;EAAE;CAChD;EAAE,QAAQ;EAAM,SAAS,EAAE;EAAE;CAC9B;AAQD,MAAa,iBAAiB,OAAO,YAAgC;CACnE,MAAM,EACJ,gBACA,uBAAuB,gBACvB,gBAAgB,EACd,QAAQ,MACT,KACC;CAEJ,MAAM,MAAuB,QAAQ,cAAc;AAEnD,OAAM,QAAQ,IACZ,qBAAqB,IAAI,OAAO,EAAE,QAAQ,cAAc;AACtD,QAAM,IAAI,SAAS,QAAQ,QAAQ;GACnC,CACH;AAED,KAAI,eACF,gBAAe,IAAI;CAGrB,MAAM,iBAAiB,eAAe,EAAE,OAAO,KAAK,EAAE,OAAO,SAAS;AACpE,MAAI,KAAK,IACP,KAAI,IAAI,MAAM,KAAK,IAAI;AAGzB,QAAM,IAAI,OAAO;GACjB;AAEF,KAAI,QAAQ,YAAY,UAAU,SAAS;AACzC,iBAAe,WAAW;AAC1B,QAAM;GACN;AAEF,QAAO;;AAOT,MAAa,WAAW,OACtB,KACA,UAA2B,EAAE,MAAM,KAAM,KACtC;CACH,MAAM,EAAE,SAAS;AACjB,KAAI;AACF,QAAM,IAAI,OAAO,EAAE,MAAM,CAAC;EAC1B,MAAM,UAAU,IAAI,OAAO,SAAS;AAEpC,UAAQ,IAAI,uBAAuB,SAAS,QAAQ,GAAG,SAAS,OAAO;UAChE,KAAK;AACZ,MAAI,IAAI,MAAM,IAAI;AAClB,UAAQ,KAAK,EAAE"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@event-driven-io/emmett-fastify",
|
|
3
|
-
"version": "0.43.0-beta.
|
|
3
|
+
"version": "0.43.0-beta.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Emmett - Event Sourcing development made simple",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "
|
|
7
|
+
"build": "tsdown",
|
|
8
8
|
"build:ts": "tsc",
|
|
9
9
|
"build:ts:watch": "tsc -b --watch",
|
|
10
10
|
"test": "run-s test:unit test:int test:e2e",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"dependencies": {},
|
|
54
54
|
"devDependencies": {},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@event-driven-io/emmett": "0.43.0-beta.
|
|
57
|
-
"fastify": "^5.
|
|
56
|
+
"@event-driven-io/emmett": "0.43.0-beta.15",
|
|
57
|
+
"fastify": "^5.8.5",
|
|
58
58
|
"@fastify/compress": "^8.3.1",
|
|
59
59
|
"@fastify/etag": "^6.1.0",
|
|
60
60
|
"@fastify/formbody": "^8.0.2",
|
|
61
|
-
"close-with-grace": "^2.
|
|
61
|
+
"close-with-grace": "^2.5.0"
|
|
62
62
|
}
|
|
63
63
|
}
|