@fncts/express 0.0.43 → 0.0.45

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/_cjs/index.cjs CHANGED
@@ -1,154 +1,127 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _exportNames = {
7
- methods: true,
8
- match: true,
9
- use: true,
10
- all: true,
11
- get: true,
12
- post: true,
13
- put: true,
14
- "delete": true,
15
- patch: true,
16
- options: true,
17
- head: true,
18
- checkout: true,
19
- connect: true,
20
- copy: true,
21
- lock: true,
22
- merge: true,
23
- mkactivity: true,
24
- mkcol: true,
25
- move: true,
26
- mSearch: true,
27
- notify: true,
28
- propfind: true,
29
- proppatch: true,
30
- purge: true,
31
- report: true,
32
- search: true,
33
- subscribe: true,
34
- trace: true,
35
- unlock: true,
36
- unsubscribe: true,
37
- classic: true
38
- };
39
- exports.checkout = exports.all = void 0;
40
- exports.classic = classic;
41
- exports.mSearch = exports.lock = exports.head = exports.get = exports.delete = exports.copy = exports.connect = void 0;
42
- exports.match = match;
43
- exports.unsubscribe = exports.unlock = exports.trace = exports.subscribe = exports.search = exports.report = exports.put = exports.purge = exports.proppatch = exports.propfind = exports.post = exports.patch = exports.options = exports.notify = exports.move = exports.mkcol = exports.mkactivity = exports.methods = exports.merge = void 0;
44
- exports.use = use;
45
- var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/IO/api"));
46
- var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/IO/api/environment"));
47
- var _ExpressApp = /*#__PURE__*/require("./ExpressApp.cjs");
48
- Object.keys(_ExpressApp).forEach(function (key) {
49
- if (key === "default" || key === "__esModule") return;
50
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
51
- if (key in exports && exports[key] === _ExpressApp[key]) return;
52
- Object.defineProperty(exports, key, {
53
- enumerable: true,
54
- get: function () {
55
- return _ExpressApp[key];
56
- }
57
- });
58
- });
59
- var _errors = /*#__PURE__*/require("./errors.cjs");
60
- Object.keys(_errors).forEach(function (key) {
61
- if (key === "default" || key === "__esModule") return;
62
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
63
- if (key in exports && exports[key] === _errors[key]) return;
64
- Object.defineProperty(exports, key, {
65
- enumerable: true,
66
- get: function () {
67
- return _errors[key];
68
- }
69
- });
70
- });
71
- var _ExitHandler = /*#__PURE__*/require("./ExitHandler.cjs");
72
- Object.keys(_ExitHandler).forEach(function (key) {
73
- if (key === "default" || key === "__esModule") return;
74
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
75
- if (key in exports && exports[key] === _ExitHandler[key]) return;
76
- Object.defineProperty(exports, key, {
77
- enumerable: true,
78
- get: function () {
79
- return _ExitHandler[key];
80
- }
81
- });
82
- });
83
- var _ExpressAppConfig = /*#__PURE__*/require("./ExpressAppConfig.cjs");
84
- Object.keys(_ExpressAppConfig).forEach(function (key) {
85
- if (key === "default" || key === "__esModule") return;
86
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
87
- if (key in exports && exports[key] === _ExpressAppConfig[key]) return;
88
- Object.defineProperty(exports, key, {
89
- enumerable: true,
90
- get: function () {
91
- return _ExpressAppConfig[key];
92
- }
93
- });
94
- });
95
- var _RequestHandlerIO = /*#__PURE__*/require("./RequestHandlerIO.cjs");
96
- Object.keys(_RequestHandlerIO).forEach(function (key) {
97
- if (key === "default" || key === "__esModule") return;
98
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
99
- if (key in exports && exports[key] === _RequestHandlerIO[key]) return;
100
- Object.defineProperty(exports, key, {
101
- enumerable: true,
102
- get: function () {
103
- return _RequestHandlerIO[key];
104
- }
105
- });
106
- });
107
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_chunk = require("./chunk.cjs");
3
+ const require_errors = require("./errors.cjs");
4
+ const require_ExitHandler = require("./ExitHandler.cjs");
5
+ const require_ExpressAppConfig = require("./ExpressAppConfig.cjs");
6
+ const require_ExpressApp = require("./ExpressApp.cjs");
7
+ require("./RequestHandlerIO.cjs");
8
+ let _fncts_io_IO_api = require("@fncts/io/IO/api");
9
+ _fncts_io_IO_api = require_chunk.__toESM(_fncts_io_IO_api, 1);
10
+ let _fncts_io_IO_api_environment = require("@fncts/io/IO/api/environment");
11
+ _fncts_io_IO_api_environment = require_chunk.__toESM(_fncts_io_IO_api_environment, 1);
12
+ //#region build/esm/index.js
108
13
  const fileName_1 = "(@fncts/express) src/index.ts";
109
- const methods = exports.methods = ["all", "get", "post", "put", "delete", "patch", "options", "head", "checkout", "connect", "copy", "lock", "merge", "mkactivity", "mkcol", "move", "m-search", "notify", "propfind", "proppatch", "purge", "report", "search", "subscribe", "trace", "unlock", "unsubscribe"];
14
+ const methods = [
15
+ "all",
16
+ "get",
17
+ "post",
18
+ "put",
19
+ "delete",
20
+ "patch",
21
+ "options",
22
+ "head",
23
+ "checkout",
24
+ "connect",
25
+ "copy",
26
+ "lock",
27
+ "merge",
28
+ "mkactivity",
29
+ "mkcol",
30
+ "move",
31
+ "m-search",
32
+ "notify",
33
+ "propfind",
34
+ "proppatch",
35
+ "purge",
36
+ "report",
37
+ "search",
38
+ "subscribe",
39
+ "trace",
40
+ "unlock",
41
+ "unsubscribe"
42
+ ];
110
43
  function match(method) {
111
- return function (path, ...handlers) {
112
- return tsplus_module_1.flatMap(expressHandlers => tsplus_module_2.serviceWithIO(service => tsplus_module_1.succeed(() => service.app[method](path, ...expressHandlers), fileName_1 + ":71:44"), _ExpressApp.ExpressAppTag, fileName_1 + ":70:23"), fileName_1 + ":69:84")((0, _ExpressApp.expressRuntime)(handlers));
113
- };
44
+ return function(path, ...handlers) {
45
+ return _fncts_io_IO_api.flatMap((expressHandlers) => _fncts_io_IO_api_environment.serviceWithIO((service) => _fncts_io_IO_api.succeed(() => service.app[method](path, ...expressHandlers), fileName_1 + ":71:44"), require_ExpressApp.ExpressAppTag, fileName_1 + ":70:23"), fileName_1 + ":69:84")(require_ExpressApp.expressRuntime(handlers));
46
+ };
114
47
  }
115
48
  function use(...args) {
116
- return tsplus_module_1.asUnit(tsplus_module_2.serviceWithIO(service => {
117
- if (typeof args[0] === "function") {
118
- return tsplus_module_1.flatMap(expressHandlers => tsplus_module_1.succeed(() => service.app.use(...expressHandlers), fileName_1 + ":105:19"), fileName_1 + ":104:74")((0, _ExpressApp.expressRuntime)(args));
119
- } else {
120
- return tsplus_module_1.flatMap(expressHandlers => tsplus_module_1.succeed(() => service.app.use(args[0], ...expressHandlers), fileName_1 + ":109:19"), fileName_1 + ":108:91")((0, _ExpressApp.expressRuntime)(args.slice(1) ?? []));
121
- }
122
- }, _ExpressApp.ExpressAppTag, fileName_1 + ":102:26"), fileName_1 + ":112:20");
49
+ return _fncts_io_IO_api.asUnit(_fncts_io_IO_api_environment.serviceWithIO((service) => {
50
+ if (typeof args[0] === "function") return _fncts_io_IO_api.flatMap((expressHandlers) => _fncts_io_IO_api.succeed(() => service.app.use(...expressHandlers), fileName_1 + ":105:19"), fileName_1 + ":104:74")(require_ExpressApp.expressRuntime(args));
51
+ else return _fncts_io_IO_api.flatMap((expressHandlers) => _fncts_io_IO_api.succeed(() => service.app.use(args[0], ...expressHandlers), fileName_1 + ":109:19"), fileName_1 + ":108:91")(require_ExpressApp.expressRuntime(args.slice(1) ?? []));
52
+ }, require_ExpressApp.ExpressAppTag, fileName_1 + ":102:26"), fileName_1 + ":112:20");
123
53
  }
124
- const all = exports.all = /*#__PURE__*/match("all");
125
- const get = exports.get = /*#__PURE__*/match("get");
126
- const post = exports.post = /*#__PURE__*/match("post");
127
- const put = exports.put = /*#__PURE__*/match("put");
128
- const delete_ = exports.delete = /*#__PURE__*/match("delete");
129
- const patch = exports.patch = /*#__PURE__*/match("patch");
130
- const options = exports.options = /*#__PURE__*/match("options");
131
- const head = exports.head = /*#__PURE__*/match("head");
132
- const checkout = exports.checkout = /*#__PURE__*/match("checkout");
133
- const connect = exports.connect = /*#__PURE__*/match("connect");
134
- const copy = exports.copy = /*#__PURE__*/match("copy");
135
- const lock = exports.lock = /*#__PURE__*/match("lock");
136
- const merge = exports.merge = /*#__PURE__*/match("merge");
137
- const mkactivity = exports.mkactivity = /*#__PURE__*/match("mkactivity");
138
- const mkcol = exports.mkcol = /*#__PURE__*/match("mkcol");
139
- const move = exports.move = /*#__PURE__*/match("move");
140
- const mSearch = exports.mSearch = /*#__PURE__*/match("m-search");
141
- const notify = exports.notify = /*#__PURE__*/match("notify");
142
- const propfind = exports.propfind = /*#__PURE__*/match("propfind");
143
- const proppatch = exports.proppatch = /*#__PURE__*/match("proppatch");
144
- const purge = exports.purge = /*#__PURE__*/match("purge");
145
- const report = exports.report = /*#__PURE__*/match("report");
146
- const search = exports.search = /*#__PURE__*/match("search");
147
- const subscribe = exports.subscribe = /*#__PURE__*/match("subscribe");
148
- const trace = exports.trace = /*#__PURE__*/match("trace");
149
- const unlock = exports.unlock = /*#__PURE__*/match("unlock");
150
- const unsubscribe = exports.unsubscribe = /*#__PURE__*/match("unsubscribe");
54
+ const all = match("all");
55
+ const get = match("get");
56
+ const post = match("post");
57
+ const put = match("put");
58
+ const delete_ = match("delete");
59
+ const patch = match("patch");
60
+ const options = match("options");
61
+ const head = match("head");
62
+ const checkout = match("checkout");
63
+ const connect = match("connect");
64
+ const copy = match("copy");
65
+ const lock = match("lock");
66
+ const merge = match("merge");
67
+ const mkactivity = match("mkactivity");
68
+ const mkcol = match("mkcol");
69
+ const move = match("move");
70
+ const mSearch = match("m-search");
71
+ const notify = match("notify");
72
+ const propfind = match("propfind");
73
+ const proppatch = match("proppatch");
74
+ const purge = match("purge");
75
+ const report = match("report");
76
+ const search = match("search");
77
+ const subscribe = match("subscribe");
78
+ const trace = match("trace");
79
+ const unlock = match("unlock");
80
+ const unsubscribe = match("unsubscribe");
151
81
  function classic(_) {
152
- return (req, res, next) => tsplus_module_1.succeed(() => _(req, res, next), fileName_1 + ":150:40");
82
+ return (req, res, next) => _fncts_io_IO_api.succeed(() => _(req, res, next), fileName_1 + ":150:40");
153
83
  }
84
+ //#endregion
85
+ exports.ExpressAppConfigTag = require_ExpressAppConfig.ExpressAppConfigTag;
86
+ exports.ExpressAppTag = require_ExpressApp.ExpressAppTag;
87
+ exports.LiveExpress = require_ExpressApp.LiveExpress;
88
+ exports.LiveExpressApp = require_ExpressApp.LiveExpressApp;
89
+ exports.LiveExpressAppConfig = require_ExpressAppConfig.LiveExpressAppConfig;
90
+ exports.NodeServerCloseError = require_errors.NodeServerCloseError;
91
+ exports.NodeServerListenError = require_errors.NodeServerListenError;
92
+ exports.all = all;
93
+ exports.checkout = checkout;
94
+ exports.classic = classic;
95
+ exports.connect = connect;
96
+ exports.copy = copy;
97
+ exports.defaultExitHandler = require_ExitHandler.defaultExitHandler;
98
+ exports.delete = delete_;
99
+ exports.expressRuntime = require_ExpressApp.expressRuntime;
100
+ exports.get = get;
101
+ exports.head = head;
102
+ exports.lock = lock;
103
+ exports.mSearch = mSearch;
104
+ exports.makeExpressApp = require_ExpressApp.makeExpressApp;
105
+ exports.match = match;
106
+ exports.merge = merge;
107
+ exports.methods = methods;
108
+ exports.mkactivity = mkactivity;
109
+ exports.mkcol = mkcol;
110
+ exports.move = move;
111
+ exports.notify = notify;
112
+ exports.options = options;
113
+ exports.patch = patch;
114
+ exports.post = post;
115
+ exports.propfind = propfind;
116
+ exports.proppatch = proppatch;
117
+ exports.purge = purge;
118
+ exports.put = put;
119
+ exports.report = report;
120
+ exports.search = search;
121
+ exports.subscribe = subscribe;
122
+ exports.trace = trace;
123
+ exports.unlock = unlock;
124
+ exports.unsubscribe = unsubscribe;
125
+ exports.use = use;
126
+
154
127
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["_ExpressApp","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_errors","_ExitHandler","_ExpressAppConfig","_RequestHandlerIO","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","set","getOwnPropertyDescriptor","methods","match","method","path","handlers","tsplus_module_1","flatMap","expressHandlers","tsplus_module_2","serviceWithIO","service","succeed","app","fileName_1","ExpressAppTag","expressRuntime","use","args","asUnit","slice","all","post","put","delete_","delete","patch","options","head","checkout","connect","copy","lock","merge","mkactivity","mkcol","move","mSearch","notify","propfind","proppatch","purge","report","search","subscribe","trace","unlock","unsubscribe","classic","_","req","res","next"],"sources":["../_src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAAA,WAAA,gBAAAC,OAAA;AAIAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,WAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AAFA,IAAAS,OAAA,gBAAAb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iE,MAAA,gBAAQzC,KAAK,CAAC,QAAQ,CAAC;AACnC,MAAM0C,SAAS,GAAAlE,OAAA,CAAAkE,SAAA,gBAAK1C,KAAK,CAAC,WAAW,CAAC;AACtC,MAAM2C,KAAK,GAAAnE,OAAA,CAAAmE,KAAA,gBAAS3C,KAAK,CAAC,OAAO,CAAC;AAClC,MAAM4C,MAAM,GAAApE,OAAA,CAAAoE,MAAA,gBAAQ5C,KAAK,CAAC,QAAQ,CAAC;AACnC,MAAM6C,WAAW,GAAArE,OAAA,CAAAqE,WAAA,gBAAG7C,KAAK,CAAC,aAAa,CAAC;AAOzC,SAAU8C,OAAOA,CAACC,CAAsC;EAC5D,OAAO,CAACC,GAAG,EAAEC,GAAG,EAAEC,IAAI,KAAK9C,eAAA,CAAAM,OAAA,CAAW,MAAMqC,CAAC,CAACC,GAAG,EAAEC,GAAG,EAAEC,IAAI,CAAC,EAAAtC,UAAA,aAAC;AAChE","ignoreList":[]}
1
+ {"version":3,"file":"index.cjs","names":["tsplus_module_1","tsplus_module_2","ExpressAppTag","expressRuntime"],"sources":["../esm/index.js"],"sourcesContent":["const fileName_1 = \"(@fncts/express) src/index.ts\";\nimport * as tsplus_module_1 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_2 from \"@fncts/io/IO/api/environment\";\nimport { ExpressAppTag, expressRuntime } from \"./ExpressApp.js\";\nexport * from \"./errors.js\";\nexport * from \"./ExitHandler.js\";\nexport * from \"./ExpressApp.js\";\nexport * from \"./ExpressAppConfig.js\";\nexport * from \"./RequestHandlerIO.js\";\nexport const methods = [\n \"all\",\n \"get\",\n \"post\",\n \"put\",\n \"delete\",\n \"patch\",\n \"options\",\n \"head\",\n \"checkout\",\n \"connect\",\n \"copy\",\n \"lock\",\n \"merge\",\n \"mkactivity\",\n \"mkcol\",\n \"move\",\n \"m-search\",\n \"notify\",\n \"propfind\",\n \"proppatch\",\n \"purge\",\n \"report\",\n \"search\",\n \"subscribe\",\n \"trace\",\n \"unlock\",\n \"unsubscribe\",\n];\nexport function match(method) {\n return function (path, ...handlers) {\n return tsplus_module_1.flatMap((expressHandlers) => tsplus_module_2.serviceWithIO((service) => tsplus_module_1.succeed(() => service.app[method](path, ...expressHandlers), fileName_1 + \":71:44\"), ExpressAppTag, fileName_1 + \":70:23\"), fileName_1 + \":69:84\")(expressRuntime(handlers));\n };\n}\nexport function use(...args) {\n return tsplus_module_1.asUnit(tsplus_module_2.serviceWithIO((service) => {\n if (typeof args[0] === \"function\") {\n return tsplus_module_1.flatMap((expressHandlers) => tsplus_module_1.succeed(() => service.app.use(...expressHandlers), fileName_1 + \":105:19\"), fileName_1 + \":104:74\")(expressRuntime(args));\n }\n else {\n return tsplus_module_1.flatMap((expressHandlers) => tsplus_module_1.succeed(() => service.app.use(args[0], ...expressHandlers), fileName_1 + \":109:19\"), fileName_1 + \":108:91\")(expressRuntime(args.slice(1) ?? []));\n }\n }, ExpressAppTag, fileName_1 + \":102:26\"), fileName_1 + \":112:20\");\n}\nexport const all = match(\"all\");\nexport const get = match(\"get\");\nexport const post = match(\"post\");\nexport const put = match(\"put\");\nconst delete_ = match(\"delete\");\nexport { delete_ as delete };\nexport const patch = match(\"patch\");\nexport const options = match(\"options\");\nexport const head = match(\"head\");\nexport const checkout = match(\"checkout\");\nexport const connect = match(\"connect\");\nexport const copy = match(\"copy\");\nexport const lock = match(\"lock\");\nexport const merge = match(\"merge\");\nexport const mkactivity = match(\"mkactivity\");\nexport const mkcol = match(\"mkcol\");\nexport const move = match(\"move\");\nexport const mSearch = match(\"m-search\");\nexport const notify = match(\"notify\");\nexport const propfind = match(\"propfind\");\nexport const proppatch = match(\"proppatch\");\nexport const purge = match(\"purge\");\nexport const report = match(\"report\");\nexport const search = match(\"search\");\nexport const subscribe = match(\"subscribe\");\nexport const trace = match(\"trace\");\nexport const unlock = match(\"unlock\");\nexport const unsubscribe = match(\"unsubscribe\");\nexport function classic(_) {\n return (req, res, next) => tsplus_module_1.succeed(() => _(req, res, next), fileName_1 + \":150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AAM,UAAU;AACvC,MAAa,OAAO,MAAM,OAAO;AACjC,MAAa,WAAW,MAAM,WAAW;AACzC,MAAa,UAAU,MAAM,UAAU;AACvC,MAAa,OAAO,MAAM,OAAO;AACjC,MAAa,OAAO,MAAM,OAAO;AACjC,MAAa,QAAQ,MAAM,QAAQ;AACnC,MAAa,aAAa,MAAM,aAAa;AAC7C,MAAa,QAAQ,MAAM,QAAQ;AACnC,MAAa,OAAO,MAAM,OAAO;AACjC,MAAa,UAAU,MAAM,WAAW;AACxC,MAAa,SAAS,MAAM,SAAS;AACrC,MAAa,WAAW,MAAM,WAAW;AACzC,MAAa,YAAY,MAAM,YAAY;AAC3C,MAAa,QAAQ,MAAM,QAAQ;AACnC,MAAa,SAAS,MAAM,SAAS;AACrC,MAAa,SAAS,MAAM,SAAS;AACrC,MAAa,YAAY,MAAM,YAAY;AAC3C,MAAa,QAAQ,MAAM,QAAQ;AACnC,MAAa,SAAS,MAAM,SAAS;AACrC,MAAa,cAAc,MAAM,cAAc;AAC/C,SAAgB,QAAQ,GAAG;AACvB,SAAQ,KAAK,KAAK,SAASF,iBAAgB,cAAc,EAAE,KAAK,KAAK,KAAK,EAAE,aAAa,UAAU"}
@@ -1,13 +1,15 @@
1
- const fileName_1 = "(@fncts/express) src/ExitHandler.ts";
1
+ import * as tsplus_module_3 from "@fncts/io/IO/api";
2
2
  import * as tsplus_module_1 from "@fncts/base/data/Cause/api";
3
3
  import * as tsplus_module_2 from "@fncts/base/data/Cause/api/prettyPrint";
4
- import * as tsplus_module_3 from "@fncts/io/IO/api";
5
- export function defaultExitHandler(_req, _res, _next) {
6
- return cause => tsplus_module_3.succeed(() => {
7
- if (tsplus_module_1.halted(cause)) {
8
- console.error(tsplus_module_2.prettyPrint(cause));
9
- }
10
- _res.status(500).end();
11
- }, fileName_1 + ":13:15");
4
+ //#region build/esm/ExitHandler.js
5
+ const fileName_1 = "(@fncts/express) src/ExitHandler.ts";
6
+ function defaultExitHandler(_req, _res, _next) {
7
+ return (cause) => tsplus_module_3.succeed(() => {
8
+ if (tsplus_module_1.halted(cause)) console.error(tsplus_module_2.prettyPrint(cause));
9
+ _res.status(500).end();
10
+ }, fileName_1 + ":13:15");
12
11
  }
12
+ //#endregion
13
+ export { defaultExitHandler };
14
+
13
15
  //# sourceMappingURL=ExitHandler.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExitHandler.mjs","names":["defaultExitHandler","_req","_res","_next","cause","tsplus_module_3","succeed","tsplus_module_1","halted","console","error","tsplus_module_2","prettyPrint","status","end","fileName_1"],"sources":["../_src/ExitHandler.ts"],"sourcesContent":[null],"mappings":";;;;AAMA,OAAM,SAAUA,kBAAkBA,CAChCC,IAAa,EACbC,IAAc,EACdC,KAAmB;EAEnB,OAAQC,KAAK,IACXC,eAAA,CAAAC,OAAA,CAAW,MAAK;IACd,IAAAC,eAAA,CAAAC,MAAA,CAAIJ,KAAK,GAAS;MAChBK,OAAO,CAACC,KAAK,CAAAC,eAAA,CAAAC,WAAA,CAACR,KAAK,EAAa;IAClC;IACAF,IAAI,CAACW,MAAM,CAAC,GAAG,CAAC,CAACC,GAAG,EAAE;EACxB,CAAC,EAAAC,UAAA,YAAC;AACN","ignoreList":[]}
1
+ {"version":3,"file":"ExitHandler.mjs","names":[],"sources":["../esm/ExitHandler.js"],"sourcesContent":["const fileName_1 = \"(@fncts/express) src/ExitHandler.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/data/Cause/api\";\nimport * as tsplus_module_2 from \"@fncts/base/data/Cause/api/prettyPrint\";\nimport * as tsplus_module_3 from \"@fncts/io/IO/api\";\nexport function defaultExitHandler(_req, _res, _next) {\n return (cause) => tsplus_module_3.succeed(() => {\n if (tsplus_module_1.halted(cause)) {\n console.error(tsplus_module_2.prettyPrint(cause));\n }\n _res.status(500).end();\n }, fileName_1 + \":13:15\");\n}\n//# sourceMappingURL=ExitHandler.js.map"],"mappings":";;;;AAAA,MAAM,aAAa;AAInB,SAAgB,mBAAmB,MAAM,MAAM,OAAO;AAClD,SAAQ,UAAU,gBAAgB,cAAc;AAC5C,MAAI,gBAAgB,OAAO,MAAM,CAC7B,SAAQ,MAAM,gBAAgB,YAAY,MAAM,CAAC;AAErD,OAAK,OAAO,IAAI,CAAC,KAAK;IACvB,aAAa,SAAS"}
@@ -1,56 +1,56 @@
1
- const fileName_1 = "(@fncts/express) src/ExpressApp.ts";
1
+ import { NodeServerCloseError, NodeServerListenError } from "./errors.mjs";
2
+ import { defaultExitHandler } from "./ExitHandler.mjs";
3
+ import { ExpressAppConfigTag, LiveExpressAppConfig } from "./ExpressAppConfig.mjs";
4
+ import * as tsplus_module_5 from "@fncts/io/IO/api";
5
+ import * as tsplus_module_7 from "@fncts/io/IO/api/environment";
2
6
  import * as tsplus_module_1 from "@fncts/base/data/Tag/constructors";
3
7
  import * as tsplus_module_2 from "@fncts/io/IO/api/interrupt";
4
8
  import * as tsplus_module_3 from "@fncts/io/IO/api/onTermination";
5
9
  import * as tsplus_module_4 from "@fncts/io/IO/runtime";
6
- import * as tsplus_module_5 from "@fncts/io/IO/api";
7
10
  import * as tsplus_module_6 from "@fncts/io/IO/api/acquireRelease";
8
- import * as tsplus_module_7 from "@fncts/io/IO/api/environment";
9
11
  import * as tsplus_module_8 from "@fncts/io/Layer/api";
10
12
  import { AtomicBoolean } from "@fncts/base/internal/AtomicBoolean";
11
13
  import { Runtime } from "@fncts/io/IO";
12
14
  import express from "express";
13
- import { NodeServerCloseError, NodeServerListenError } from "./errors.mjs";
14
- import { defaultExitHandler } from "./ExitHandler.mjs";
15
- import { LiveExpressAppConfig } from "./ExpressAppConfig.mjs";
16
- import { ExpressAppConfigTag } from "./ExpressAppConfig.mjs";
17
- export const ExpressAppTag = /*#__PURE__*/tsplus_module_1.makeTag("fncts.express.ExpressApp");
18
- export const makeExpressApp = /*#__PURE__*/tsplus_module_5.flatMap(open => tsplus_module_5.flatMap(app => tsplus_module_5.flatMap(config => tsplus_module_5.map(server => {
19
- function runtime(handlers) {
20
- return tsplus_module_5.map(r => handlers.map(handler => (req, res, next) => {
21
- r.unsafeRunFiber(tsplus_module_3.onTermination(config.exitHandler(req, res, next), fileName_1 + ":82:82")(open.get ? handler(req, res, next) : tsplus_module_2.interrupt), fileName_1 + ":81:31");
22
- }), fileName_1 + ":77:11")(tsplus_module_5.map(r => new Runtime(r.environment, r.runtimeFlags, r.fiberRefs), fileName_1 + ":76:11")(tsplus_module_4.runtime(fileName_1 + ":69:22")));
23
- }
24
- return {
25
- app,
26
- server,
27
- runtime
28
- };
29
- }, fileName_1 + ":41:19")(tsplus_module_6.acquireRelease(() => tsplus_module_5.async(cb => {
30
- const onError = err => {
31
- cb(tsplus_module_5.halt(() => new NodeServerListenError(err), fileName_1 + ":44:19"));
32
- };
33
- const server = app.listen(config.port, config.host, () => {
34
- cb(tsplus_module_5.succeed(() => {
35
- server.removeListener("error", onError);
36
- return server;
37
- }, fileName_1 + ":48:21"));
38
- });
39
- server.addListener("error", onError);
40
- }), server => tsplus_module_5.async(cb => {
41
- server.close(err => {
42
- if (err) {
43
- cb(tsplus_module_5.halt(() => new NodeServerCloseError(err), fileName_1 + ":59:23"));
44
- } else {
45
- cb(tsplus_module_5.via(tsplus_module_5.unit));
46
- }
47
- });
48
- }), fileName_1 + ":55:22")), fileName_1 + ":39:19")(tsplus_module_7.service(ExpressAppConfigTag, fileName_1 + ":39:30")), fileName_1 + ":37:16")(tsplus_module_5.succeed(() => express(), fileName_1 + ":37:27")), fileName_1 + ":35:17")(/*#__PURE__*/tsplus_module_6.acquireRelease(() => tsplus_module_5.succeed(() => new AtomicBoolean(true), fileName_1 + ":35:28"), _ => tsplus_module_5.succeed(() => _.set(false), fileName_1 + ":35:86"), fileName_1 + ":35:68"));
49
- export const LiveExpressApp = /*#__PURE__*/tsplus_module_8.scoped(() => makeExpressApp, ExpressAppTag, fileName_1 + ":96:43");
50
- export function LiveExpress(host, port, exitHandler) {
51
- return tsplus_module_8.andTo(LiveExpressApp, fileName_1 + ":111:83")(LiveExpressAppConfig(host, port, exitHandler ?? defaultExitHandler));
15
+ //#region build/esm/ExpressApp.js
16
+ const fileName_1 = "(@fncts/express) src/ExpressApp.ts";
17
+ const ExpressAppTag = tsplus_module_1.makeTag("fncts.express.ExpressApp");
18
+ const makeExpressApp = tsplus_module_5.flatMap((open) => tsplus_module_5.flatMap((app) => tsplus_module_5.flatMap((config) => tsplus_module_5.map((server) => {
19
+ function runtime(handlers) {
20
+ return tsplus_module_5.map((r) => handlers.map((handler) => (req, res, next) => {
21
+ r.unsafeRunFiber(tsplus_module_3.onTermination(config.exitHandler(req, res, next), fileName_1 + ":82:82")(open.get ? handler(req, res, next) : tsplus_module_2.interrupt), fileName_1 + ":81:31");
22
+ }), fileName_1 + ":77:11")(tsplus_module_5.map((r) => new Runtime(r.environment, r.runtimeFlags, r.fiberRefs), fileName_1 + ":76:11")(tsplus_module_4.runtime(fileName_1 + ":69:22")));
23
+ }
24
+ return {
25
+ app,
26
+ server,
27
+ runtime
28
+ };
29
+ }, fileName_1 + ":41:19")(tsplus_module_6.acquireRelease(() => tsplus_module_5.async((cb) => {
30
+ const onError = (err) => {
31
+ cb(tsplus_module_5.halt(() => new NodeServerListenError(err), fileName_1 + ":44:19"));
32
+ };
33
+ const server = app.listen(config.port, config.host, () => {
34
+ cb(tsplus_module_5.succeed(() => {
35
+ server.removeListener("error", onError);
36
+ return server;
37
+ }, fileName_1 + ":48:21"));
38
+ });
39
+ server.addListener("error", onError);
40
+ }), (server) => tsplus_module_5.async((cb) => {
41
+ server.close((err) => {
42
+ if (err) cb(tsplus_module_5.halt(() => new NodeServerCloseError(err), fileName_1 + ":59:23"));
43
+ else cb(tsplus_module_5.via(tsplus_module_5.unit));
44
+ });
45
+ }), fileName_1 + ":55:22")), fileName_1 + ":39:19")(tsplus_module_7.service(ExpressAppConfigTag, fileName_1 + ":39:30")), fileName_1 + ":37:16")(tsplus_module_5.succeed(() => express(), fileName_1 + ":37:27")), fileName_1 + ":35:17")(tsplus_module_6.acquireRelease(() => tsplus_module_5.succeed(() => new AtomicBoolean(true), fileName_1 + ":35:28"), (_) => tsplus_module_5.succeed(() => _.set(false), fileName_1 + ":35:86"), fileName_1 + ":35:68"));
46
+ const LiveExpressApp = tsplus_module_8.scoped(() => makeExpressApp, ExpressAppTag, fileName_1 + ":96:43");
47
+ function LiveExpress(host, port, exitHandler) {
48
+ return tsplus_module_8.andTo(LiveExpressApp, fileName_1 + ":111:83")(LiveExpressAppConfig(host, port, exitHandler ?? defaultExitHandler));
52
49
  }
53
- export function expressRuntime(handlers) {
54
- return tsplus_module_7.serviceWithIO(_ => _.runtime(handlers), ExpressAppTag, fileName_1 + ":126:26");
50
+ function expressRuntime(handlers) {
51
+ return tsplus_module_7.serviceWithIO((_) => _.runtime(handlers), ExpressAppTag, fileName_1 + ":126:26");
55
52
  }
53
+ //#endregion
54
+ export { ExpressAppTag, LiveExpress, LiveExpressApp, expressRuntime, makeExpressApp };
55
+
56
56
  //# sourceMappingURL=ExpressApp.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExpressApp.mjs","names":["AtomicBoolean","Runtime","express","NodeServerCloseError","NodeServerListenError","defaultExitHandler","LiveExpressAppConfig","ExpressAppConfigTag","ExpressAppTag","tsplus_module_1","makeTag","makeExpressApp","tsplus_module_5","flatMap","open","app","config","map","server","runtime","handlers","r","handler","req","res","next","unsafeRunFiber","tsplus_module_3","onTermination","exitHandler","fileName_1","get","tsplus_module_2","interrupt","environment","runtimeFlags","fiberRefs","tsplus_module_4","tsplus_module_6","acquireRelease","async","cb","onError","err","halt","listen","port","host","succeed","removeListener","addListener","close","via","unit","tsplus_module_7","service","_","set","LiveExpressApp","tsplus_module_8","scoped","LiveExpress","andTo","expressRuntime","serviceWithIO"],"sources":["../_src/ExpressApp.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;AAMA,SAASA,aAAa,QAAQ,oCAAoC;AAClE,SAASC,OAAO,QAAQ,cAAc;AACtC,OAAOC,OAAO,MAAM,SAAS;AAE7B,SA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AA8B,UAAA,YAAC,EAAiB0B,CAAC,IAAK5C,eAAA,CAAAoC,OAAA,CAAW,MAAMQ,CAAC,CAACC,GAAG,CAAC,KAAK,CAAC,EAAA3B,UAAA,YAAC,EAAAA,UAAA,YAAC,CA2DxG;AAEF,OAAO,MAAM4B,cAAc,gBAAGC,eAAA,CAAAC,MAAA,OAAajD,cAAc,EAAEH,aAAa,EAAAsB,UAAA,YAAC;AAUzE,OAAM,SAAU+B,WAAWA,CACzBd,IAAY,EACZD,IAAY,EACZjB,WAAyG;EAEzG,OAAO8B,eAAA,CAAAG,KAAA,CAA0EJ,cAAc,EAAA5B,UAAA,cAAxFxB,oBAAoB,CAACyC,IAAI,EAAED,IAAI,EAAEjB,WAAW,IAAIxB,kBAAkB,CAAC,CAAsB;AAClG;AAEA,OAAM,SAAU0D,cAAcA,CAC5B3C,QAA0E;EAW1E,OAAOkC,eAAA,CAAAU,aAAA,CAAkBR,CAAC,IAAKA,CAAC,CAACrC,OAAO,CAACC,QAAQ,CAAC,EAAEZ,aAAa,EAAAsB,UAAA,aAAC;AACpE","ignoreList":[]}
1
+ {"version":3,"file":"ExpressApp.mjs","names":[],"sources":["../esm/ExpressApp.js"],"sourcesContent":["const fileName_1 = \"(@fncts/express) src/ExpressApp.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/data/Tag/constructors\";\nimport * as tsplus_module_2 from \"@fncts/io/IO/api/interrupt\";\nimport * as tsplus_module_3 from \"@fncts/io/IO/api/onTermination\";\nimport * as tsplus_module_4 from \"@fncts/io/IO/runtime\";\nimport * as tsplus_module_5 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_6 from \"@fncts/io/IO/api/acquireRelease\";\nimport * as tsplus_module_7 from \"@fncts/io/IO/api/environment\";\nimport * as tsplus_module_8 from \"@fncts/io/Layer/api\";\nimport { AtomicBoolean } from \"@fncts/base/internal/AtomicBoolean\";\nimport { Runtime } from \"@fncts/io/IO\";\nimport express from \"express\";\nimport { NodeServerCloseError, NodeServerListenError } from \"./errors.js\";\nimport { defaultExitHandler } from \"./ExitHandler.js\";\nimport { LiveExpressAppConfig } from \"./ExpressAppConfig.js\";\nimport { ExpressAppConfigTag } from \"./ExpressAppConfig.js\";\nexport const ExpressAppTag = tsplus_module_1.makeTag(\"fncts.express.ExpressApp\");\nexport const makeExpressApp = tsplus_module_5.flatMap(open => tsplus_module_5.flatMap(app => tsplus_module_5.flatMap(config => tsplus_module_5.map(server => {\n function runtime(handlers) {\n return tsplus_module_5.map((r) => handlers.map((handler) => (req, res, next) => {\n r.unsafeRunFiber(tsplus_module_3.onTermination(config.exitHandler(req, res, next), fileName_1 + \":82:82\")((open.get ? handler(req, res, next) : tsplus_module_2.interrupt)), fileName_1 + \":81:31\");\n }), fileName_1 + \":77:11\")(tsplus_module_5.map((r) => new Runtime(r.environment, r.runtimeFlags, r.fiberRefs), fileName_1 + \":76:11\")(tsplus_module_4.runtime(fileName_1 + \":69:22\")));\n }\n return {\n app,\n server,\n runtime,\n };\n}, fileName_1 + \":41:19\")(tsplus_module_6.acquireRelease(() => tsplus_module_5.async((cb) => {\n const onError = (err) => {\n cb(tsplus_module_5.halt(() => new NodeServerListenError(err), fileName_1 + \":44:19\"));\n };\n const server = app.listen(config.port, config.host, () => {\n cb(tsplus_module_5.succeed(() => {\n server.removeListener(\"error\", onError);\n return server;\n }, fileName_1 + \":48:21\"));\n });\n server.addListener(\"error\", onError);\n}), (server) => tsplus_module_5.async((cb) => {\n server.close((err) => {\n if (err) {\n cb(tsplus_module_5.halt(() => new NodeServerCloseError(err), fileName_1 + \":59:23\"));\n }\n else {\n cb(tsplus_module_5.via(tsplus_module_5.unit));\n }\n });\n}), fileName_1 + \":55:22\")), fileName_1 + \":39:19\")(tsplus_module_7.service(ExpressAppConfigTag, fileName_1 + \":39:30\")), fileName_1 + \":37:16\")(tsplus_module_5.succeed(() => express(), fileName_1 + \":37:27\")), fileName_1 + \":35:17\")(tsplus_module_6.acquireRelease(() => tsplus_module_5.succeed(() => new AtomicBoolean(true), fileName_1 + \":35:28\"), (_) => tsplus_module_5.succeed(() => _.set(false), fileName_1 + \":35:86\"), fileName_1 + \":35:68\"));\nexport const LiveExpressApp = tsplus_module_8.scoped(() => makeExpressApp, ExpressAppTag, fileName_1 + \":96:43\");\nexport function LiveExpress(host, port, exitHandler) {\n return tsplus_module_8.andTo(LiveExpressApp, fileName_1 + \":111:83\")(LiveExpressAppConfig(host, port, exitHandler ?? defaultExitHandler));\n}\nexport function expressRuntime(handlers) {\n return tsplus_module_7.serviceWithIO((_) => _.runtime(handlers), ExpressAppTag, fileName_1 + \":126:26\");\n}\n//# sourceMappingURL=ExpressApp.js.map"],"mappings":";;;;;;;;;;;;;;;AAAA,MAAM,aAAa;AAgBnB,MAAa,gBAAgB,gBAAgB,QAAQ,2BAA2B;AAChF,MAAa,iBAAiB,gBAAgB,SAAQ,SAAQ,gBAAgB,SAAQ,QAAO,gBAAgB,SAAQ,WAAU,gBAAgB,KAAI,WAAU;CACzJ,SAAS,QAAQ,UAAU;AACvB,SAAO,gBAAgB,KAAK,MAAM,SAAS,KAAK,aAAa,KAAK,KAAK,SAAS;AAC5E,KAAE,eAAe,gBAAgB,cAAc,OAAO,YAAY,KAAK,KAAK,KAAK,EAAE,aAAa,SAAS,CAAE,KAAK,MAAM,QAAQ,KAAK,KAAK,KAAK,GAAG,gBAAgB,UAAW,EAAE,aAAa,SAAS;IACrM,EAAE,aAAa,SAAS,CAAC,gBAAgB,KAAK,MAAM,IAAI,QAAQ,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,SAAS,CAAC,gBAAgB,QAAQ,aAAa,SAAS,CAAC,CAAC;;AAE1L,QAAO;EACH;EACA;EACA;EACH;GACF,aAAa,SAAS,CAAC,gBAAgB,qBAAqB,gBAAgB,OAAO,OAAO;CACzF,MAAM,WAAW,QAAQ;AACrB,KAAG,gBAAgB,WAAW,IAAI,sBAAsB,IAAI,EAAE,aAAa,SAAS,CAAC;;CAEzF,MAAM,SAAS,IAAI,OAAO,OAAO,MAAM,OAAO,YAAY;AACtD,KAAG,gBAAgB,cAAc;AAC7B,UAAO,eAAe,SAAS,QAAQ;AACvC,UAAO;KACR,aAAa,SAAS,CAAC;GAC5B;AACF,QAAO,YAAY,SAAS,QAAQ;EACtC,GAAG,WAAW,gBAAgB,OAAO,OAAO;AAC1C,QAAO,OAAO,QAAQ;AAClB,MAAI,IACA,IAAG,gBAAgB,WAAW,IAAI,qBAAqB,IAAI,EAAE,aAAa,SAAS,CAAC;MAGpF,IAAG,gBAAgB,IAAI,gBAAgB,KAAK,CAAC;GAEnD;EACJ,EAAE,aAAa,SAAS,CAAC,EAAE,aAAa,SAAS,CAAC,gBAAgB,QAAQ,qBAAqB,aAAa,SAAS,CAAC,EAAE,aAAa,SAAS,CAAC,gBAAgB,cAAc,SAAS,EAAE,aAAa,SAAS,CAAC,EAAE,aAAa,SAAS,CAAC,gBAAgB,qBAAqB,gBAAgB,cAAc,IAAI,cAAc,KAAK,EAAE,aAAa,SAAS,GAAG,MAAM,gBAAgB,cAAc,EAAE,IAAI,MAAM,EAAE,aAAa,SAAS,EAAE,aAAa,SAAS,CAAC;AAChc,MAAa,iBAAiB,gBAAgB,aAAa,gBAAgB,eAAe,aAAa,SAAS;AAChH,SAAgB,YAAY,MAAM,MAAM,aAAa;AACjD,QAAO,gBAAgB,MAAM,gBAAgB,aAAa,UAAU,CAAC,qBAAqB,MAAM,MAAM,eAAe,mBAAmB,CAAC;;AAE7I,SAAgB,eAAe,UAAU;AACrC,QAAO,gBAAgB,eAAe,MAAM,EAAE,QAAQ,SAAS,EAAE,eAAe,aAAa,UAAU"}
@@ -1,13 +1,17 @@
1
- const fileName_1 = "(@fncts/express) src/ExpressAppConfig.ts";
2
- import * as tsplus_module_1 from "@fncts/base/data/Tag/constructors";
3
1
  import * as tsplus_module_2 from "@fncts/io/IO/api/environment";
2
+ import * as tsplus_module_1 from "@fncts/base/data/Tag/constructors";
4
3
  import * as tsplus_module_3 from "@fncts/io/Layer/api";
5
- export const ExpressAppConfigTag = /*#__PURE__*/tsplus_module_1.makeTag("fncts.express.ExpressAppConfig");
6
- export function LiveExpressAppConfig(host, port, exitHandler) {
7
- return tsplus_module_3.fromIO(tsplus_module_2.environmentWith(r => ({
8
- host,
9
- port,
10
- exitHandler: (req, res, next) => cause => tsplus_module_2.provideEnvironment(r, fileName_1 + ":20:104")(exitHandler(req, res, next)(cause))
11
- }), fileName_1 + ":17:23"), ExpressAppConfigTag, fileName_1 + ":16:22");
4
+ //#region build/esm/ExpressAppConfig.js
5
+ const fileName_1 = "(@fncts/express) src/ExpressAppConfig.ts";
6
+ const ExpressAppConfigTag = tsplus_module_1.makeTag("fncts.express.ExpressAppConfig");
7
+ function LiveExpressAppConfig(host, port, exitHandler) {
8
+ return tsplus_module_3.fromIO(tsplus_module_2.environmentWith((r) => ({
9
+ host,
10
+ port,
11
+ exitHandler: (req, res, next) => (cause) => tsplus_module_2.provideEnvironment(r, fileName_1 + ":20:104")(exitHandler(req, res, next)(cause))
12
+ }), fileName_1 + ":17:23"), ExpressAppConfigTag, fileName_1 + ":16:22");
12
13
  }
14
+ //#endregion
15
+ export { ExpressAppConfigTag, LiveExpressAppConfig };
16
+
13
17
  //# sourceMappingURL=ExpressAppConfig.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExpressAppConfig.mjs","names":["ExpressAppConfigTag","tsplus_module_1","makeTag","LiveExpressAppConfig","host","port","exitHandler","tsplus_module_3","fromIO","tsplus_module_2","environmentWith","r","req","res","next","cause","provideEnvironment","fileName_1"],"sources":["../_src/ExpressAppConfig.ts"],"sourcesContent":[null],"mappings":";;;;AAQA,OAAO,MAAMA,mBAAmB,gBAAGC,eAAA,CAAAC,OAAA,CAAsB,gCAAgC,CAAC;AAE1F,OAAM,SAAUC,oBAAoBA,CAClCC,IAAY,EACZC,IAAY,EACZC,WAA2B;EAE3B,OAAOC,eAAA,CAAAC,MAAA,CACLC,eAAA,CAAAC,eAAA,CAAoBC,CAAiB,KAAM;IACzCP,IAAI;IACJC,IAAI;IACJC,WAAW,EAAEA,CAACM,GAAG,EAAEC,GAAG,EAAEC,IAAI,KAAMC,KAAK,IAAKN,eAAA,CAAAO,kBAAA,CAAsDL,CAAC,EAAAM,UAAA,cAAvDX,WAAW,CAACM,GAAG,EAAEC,GAAG,EAAEC,IAAI,CAAC,CAACC,KAAK,CAAC;GAC/E,CAAC,EAAAE,UAAA,YAAC,EACHjB,mBAAmB,EAAAiB,UAAA,YACpB;AACH","ignoreList":[]}
1
+ {"version":3,"file":"ExpressAppConfig.mjs","names":[],"sources":["../esm/ExpressAppConfig.js"],"sourcesContent":["const fileName_1 = \"(@fncts/express) src/ExpressAppConfig.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/data/Tag/constructors\";\nimport * as tsplus_module_2 from \"@fncts/io/IO/api/environment\";\nimport * as tsplus_module_3 from \"@fncts/io/Layer/api\";\nexport const ExpressAppConfigTag = tsplus_module_1.makeTag(\"fncts.express.ExpressAppConfig\");\nexport function LiveExpressAppConfig(host, port, exitHandler) {\n return tsplus_module_3.fromIO(tsplus_module_2.environmentWith((r) => ({\n host,\n port,\n exitHandler: (req, res, next) => (cause) => tsplus_module_2.provideEnvironment(r, fileName_1 + \":20:104\")(exitHandler(req, res, next)(cause)),\n }), fileName_1 + \":17:23\"), ExpressAppConfigTag, fileName_1 + \":16:22\");\n}\n//# sourceMappingURL=ExpressAppConfig.js.map"],"mappings":";;;;AAAA,MAAM,aAAa;AAInB,MAAa,sBAAsB,gBAAgB,QAAQ,iCAAiC;AAC5F,SAAgB,qBAAqB,MAAM,MAAM,aAAa;AAC1D,QAAO,gBAAgB,OAAO,gBAAgB,iBAAiB,OAAO;EAClE;EACA;EACA,cAAc,KAAK,KAAK,UAAU,UAAU,gBAAgB,mBAAmB,GAAG,aAAa,UAAU,CAAC,YAAY,KAAK,KAAK,KAAK,CAAC,MAAM,CAAC;EAChJ,GAAG,aAAa,SAAS,EAAE,qBAAqB,aAAa,SAAS"}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=RequestHandlerIO.mjs.map
package/_mjs/errors.mjs CHANGED
@@ -1,13 +1,19 @@
1
- export class NodeServerCloseError {
2
- constructor(error) {
3
- this.error = error;
4
- this._tag = "NodeServerCloseError";
5
- }
6
- }
7
- export class NodeServerListenError {
8
- constructor(error) {
9
- this.error = error;
10
- this._tag = "NodeServerListenError";
11
- }
12
- }
1
+ //#region build/esm/errors.js
2
+ var NodeServerCloseError = class {
3
+ error;
4
+ _tag = "NodeServerCloseError";
5
+ constructor(error) {
6
+ this.error = error;
7
+ }
8
+ };
9
+ var NodeServerListenError = class {
10
+ error;
11
+ _tag = "NodeServerListenError";
12
+ constructor(error) {
13
+ this.error = error;
14
+ }
15
+ };
16
+ //#endregion
17
+ export { NodeServerCloseError, NodeServerListenError };
18
+
13
19
  //# sourceMappingURL=errors.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.mjs","names":["NodeServerCloseError","constructor","error","_tag","NodeServerListenError"],"sources":["../_src/errors.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAM,MAAOA,oBAAoB;EAE/BC,YAAqBC,KAAY;IAAZ,KAAAA,KAAK,GAALA,KAAK;IADjB,KAAAC,IAAI,GAAG,sBAAsB;EACF;;AAGtC,OAAM,MAAOC,qBAAqB;EAEhCH,YAAqBC,KAAY;IAAZ,KAAAA,KAAK,GAALA,KAAK;IADjB,KAAAC,IAAI,GAAG,uBAAuB;EACH","ignoreList":[]}
1
+ {"version":3,"file":"errors.mjs","names":[],"sources":["../esm/errors.js"],"sourcesContent":["export class NodeServerCloseError {\n error;\n _tag = \"NodeServerCloseError\";\n constructor(error) {\n this.error = error;\n }\n}\nexport class NodeServerListenError {\n error;\n _tag = \"NodeServerListenError\";\n constructor(error) {\n this.error = error;\n }\n}\n//# sourceMappingURL=errors.js.map"],"mappings":";AAAA,IAAa,uBAAb,MAAkC;CAC9B;CACA,OAAO;CACP,YAAY,OAAO;AACf,OAAK,QAAQ;;;AAGrB,IAAa,wBAAb,MAAmC;CAC/B;CACA,OAAO;CACP,YAAY,OAAO;AACf,OAAK,QAAQ"}
package/_mjs/global.mjs CHANGED
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=global.mjs.map