@fncts/http 0.0.12 → 0.0.13

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.
Files changed (143) hide show
  1. package/LICENSE +26 -0
  2. package/_cjs/Body/api.cjs +62 -65
  3. package/_cjs/Body/api.cjs.map +1 -1
  4. package/_cjs/Body/definition.cjs +66 -69
  5. package/_cjs/Body/definition.cjs.map +1 -1
  6. package/_cjs/Body.cjs +20 -28
  7. package/_cjs/BodyError.cjs +33 -36
  8. package/_cjs/BodyError.cjs.map +1 -1
  9. package/_cjs/Headers.cjs +70 -73
  10. package/_cjs/Headers.cjs.map +1 -1
  11. package/_cjs/HttpApp.cjs +102 -94
  12. package/_cjs/HttpApp.cjs.map +1 -1
  13. package/_cjs/IncomingMessage/api.cjs +24 -23
  14. package/_cjs/IncomingMessage/api.cjs.map +1 -1
  15. package/_cjs/IncomingMessage/definition.cjs +12 -13
  16. package/_cjs/IncomingMessage/definition.cjs.map +1 -1
  17. package/_cjs/IncomingMessage.cjs +8 -28
  18. package/_cjs/Method.cjs +6 -7
  19. package/_cjs/Method.cjs.map +1 -1
  20. package/_cjs/Middleware.cjs +11 -12
  21. package/_cjs/Middleware.cjs.map +1 -1
  22. package/_cjs/QueryParams.cjs +0 -2
  23. package/_cjs/RequestError.cjs +17 -18
  24. package/_cjs/RequestError.cjs.map +1 -1
  25. package/_cjs/ResponseError.cjs +26 -27
  26. package/_cjs/ResponseError.cjs.map +1 -1
  27. package/_cjs/Route/api.cjs +87 -74
  28. package/_cjs/Route/api.cjs.map +1 -1
  29. package/_cjs/Route/definition.cjs +28 -26
  30. package/_cjs/Route/definition.cjs.map +1 -1
  31. package/_cjs/Route/internal.cjs +33 -34
  32. package/_cjs/Route/internal.cjs.map +1 -1
  33. package/_cjs/Route.cjs +23 -28
  34. package/_cjs/RouteNotFound.cjs +16 -17
  35. package/_cjs/RouteNotFound.cjs.map +1 -1
  36. package/_cjs/Router/api.cjs +127 -119
  37. package/_cjs/Router/api.cjs.map +1 -1
  38. package/_cjs/Router/definition.cjs +14 -14
  39. package/_cjs/Router/definition.cjs.map +1 -1
  40. package/_cjs/Router/internal.cjs +75 -82
  41. package/_cjs/Router/internal.cjs.map +1 -1
  42. package/_cjs/Router.cjs +24 -28
  43. package/_cjs/Server.cjs +38 -34
  44. package/_cjs/Server.cjs.map +1 -1
  45. package/_cjs/ServerError.cjs +18 -18
  46. package/_cjs/ServerError.cjs.map +1 -1
  47. package/_cjs/ServerRequest/api.cjs +9 -10
  48. package/_cjs/ServerRequest/api.cjs.map +1 -1
  49. package/_cjs/ServerRequest/definition.cjs +20 -19
  50. package/_cjs/ServerRequest/definition.cjs.map +1 -1
  51. package/_cjs/ServerRequest/internal.cjs +77 -80
  52. package/_cjs/ServerRequest/internal.cjs.map +1 -1
  53. package/_cjs/ServerRequest.cjs +7 -28
  54. package/_cjs/ServerResponse/api.cjs +108 -116
  55. package/_cjs/ServerResponse/api.cjs.map +1 -1
  56. package/_cjs/ServerResponse/definition.cjs +36 -41
  57. package/_cjs/ServerResponse/definition.cjs.map +1 -1
  58. package/_cjs/ServerResponse.cjs +18 -28
  59. package/_cjs/Socket.cjs +213 -192
  60. package/_cjs/Socket.cjs.map +1 -1
  61. package/_cjs/UrlParams.cjs +23 -27
  62. package/_cjs/UrlParams.cjs.map +1 -1
  63. package/_cjs/chunk.cjs +28 -0
  64. package/_cjs/global.cjs +0 -2
  65. package/_mjs/Body/api.mjs +54 -56
  66. package/_mjs/Body/api.mjs.map +1 -1
  67. package/_mjs/Body/definition.mjs +61 -59
  68. package/_mjs/Body/definition.mjs.map +1 -1
  69. package/_mjs/Body.mjs +3 -4
  70. package/_mjs/BodyError.mjs +30 -28
  71. package/_mjs/BodyError.mjs.map +1 -1
  72. package/_mjs/Headers.mjs +61 -63
  73. package/_mjs/Headers.mjs.map +1 -1
  74. package/_mjs/HttpApp.mjs +74 -79
  75. package/_mjs/HttpApp.mjs.map +1 -1
  76. package/_mjs/IncomingMessage/api.mjs +21 -17
  77. package/_mjs/IncomingMessage/api.mjs.map +1 -1
  78. package/_mjs/IncomingMessage/definition.mjs +11 -7
  79. package/_mjs/IncomingMessage/definition.mjs.map +1 -1
  80. package/_mjs/IncomingMessage.mjs +3 -4
  81. package/_mjs/Method.mjs +6 -2
  82. package/_mjs/Method.mjs.map +1 -1
  83. package/_mjs/Middleware.mjs +10 -6
  84. package/_mjs/Middleware.mjs.map +1 -1
  85. package/_mjs/QueryParams.mjs +0 -2
  86. package/_mjs/RequestError.mjs +16 -12
  87. package/_mjs/RequestError.mjs.map +1 -1
  88. package/_mjs/ResponseError.mjs +25 -21
  89. package/_mjs/ResponseError.mjs.map +1 -1
  90. package/_mjs/Route/api.mjs +68 -64
  91. package/_mjs/Route/api.mjs.map +1 -1
  92. package/_mjs/Route/definition.mjs +21 -17
  93. package/_mjs/Route/definition.mjs.map +1 -1
  94. package/_mjs/Route/internal.mjs +30 -26
  95. package/_mjs/Route/internal.mjs.map +1 -1
  96. package/_mjs/Route.mjs +3 -4
  97. package/_mjs/RouteNotFound.mjs +15 -11
  98. package/_mjs/RouteNotFound.mjs.map +1 -1
  99. package/_mjs/Router/api.mjs +105 -107
  100. package/_mjs/Router/api.mjs.map +1 -1
  101. package/_mjs/Router/definition.mjs +11 -7
  102. package/_mjs/Router/definition.mjs.map +1 -1
  103. package/_mjs/Router/internal.mjs +55 -66
  104. package/_mjs/Router/internal.mjs.map +1 -1
  105. package/_mjs/Router.mjs +3 -4
  106. package/_mjs/Server.mjs +28 -24
  107. package/_mjs/Server.mjs.map +1 -1
  108. package/_mjs/ServerError.mjs +14 -10
  109. package/_mjs/ServerError.mjs.map +1 -1
  110. package/_mjs/ServerRequest/api.mjs +8 -4
  111. package/_mjs/ServerRequest/api.mjs.map +1 -1
  112. package/_mjs/ServerRequest/definition.mjs +15 -11
  113. package/_mjs/ServerRequest/definition.mjs.map +1 -1
  114. package/_mjs/ServerRequest/internal.mjs +65 -70
  115. package/_mjs/ServerRequest/internal.mjs.map +1 -1
  116. package/_mjs/ServerRequest.mjs +3 -4
  117. package/_mjs/ServerResponse/api.mjs +97 -106
  118. package/_mjs/ServerResponse/api.mjs.map +1 -1
  119. package/_mjs/ServerResponse/definition.mjs +30 -32
  120. package/_mjs/ServerResponse/definition.mjs.map +1 -1
  121. package/_mjs/ServerResponse.mjs +3 -4
  122. package/_mjs/Socket.mjs +152 -156
  123. package/_mjs/Socket.mjs.map +1 -1
  124. package/_mjs/UrlParams.mjs +22 -20
  125. package/_mjs/UrlParams.mjs.map +1 -1
  126. package/_mjs/global.mjs +0 -2
  127. package/package.json +10 -6
  128. package/_cjs/Body.cjs.map +0 -1
  129. package/_cjs/IncomingMessage.cjs.map +0 -1
  130. package/_cjs/QueryParams.cjs.map +0 -1
  131. package/_cjs/Route.cjs.map +0 -1
  132. package/_cjs/Router.cjs.map +0 -1
  133. package/_cjs/ServerRequest.cjs.map +0 -1
  134. package/_cjs/ServerResponse.cjs.map +0 -1
  135. package/_cjs/global.cjs.map +0 -1
  136. package/_mjs/Body.mjs.map +0 -1
  137. package/_mjs/IncomingMessage.mjs.map +0 -1
  138. package/_mjs/QueryParams.mjs.map +0 -1
  139. package/_mjs/Route.mjs.map +0 -1
  140. package/_mjs/Router.mjs.map +0 -1
  141. package/_mjs/ServerRequest.mjs.map +0 -1
  142. package/_mjs/ServerResponse.mjs.map +0 -1
  143. package/_mjs/global.mjs.map +0 -1
package/_cjs/Route.cjs CHANGED
@@ -1,28 +1,23 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _api = /*#__PURE__*/require("./Route/api.cjs");
7
- Object.keys(_api).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _api[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _api[key];
14
- }
15
- });
16
- });
17
- var _definition = /*#__PURE__*/require("./Route/definition.cjs");
18
- Object.keys(_definition).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _definition[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _definition[key];
25
- }
26
- });
27
- });
28
- //# sourceMappingURL=Route.cjs.map
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_Route_definition = require("./Route/definition.cjs");
3
+ const require_Route_api = require("./Route/api.cjs");
4
+ exports.Route = require_Route_definition.Route;
5
+ exports.RouteContext = require_Route_definition.RouteContext;
6
+ exports.RouteContextTag = require_Route_definition.RouteContextTag;
7
+ exports.RouteContextTypeId = require_Route_definition.RouteContextTypeId;
8
+ exports.RouteTypeId = require_Route_definition.RouteTypeId;
9
+ exports.all = require_Route_api.all;
10
+ exports.del = require_Route_api.del;
11
+ exports.get = require_Route_api.get;
12
+ exports.head = require_Route_api.head;
13
+ exports.make = require_Route_api.make;
14
+ exports.options = require_Route_api.options;
15
+ exports.params = require_Route_api.params;
16
+ exports.patch = require_Route_api.patch;
17
+ exports.post = require_Route_api.post;
18
+ exports.put = require_Route_api.put;
19
+ exports.route = require_Route_api.route;
20
+ exports.schemaParams = require_Route_api.schemaParams;
21
+ exports.schemaPathParams = require_Route_api.schemaPathParams;
22
+ exports.schemaSearchParams = require_Route_api.schemaSearchParams;
23
+ exports.searchParams = require_Route_api.searchParams;
@@ -1,19 +1,18 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.RouteNotFoundTypeId = exports.RouteNotFound = void 0;
7
- const RouteNotFoundTypeId = exports.RouteNotFoundTypeId = /*#__PURE__*/Symbol.for("fncts.http.RouteNotFound");
8
- class RouteNotFound extends Error {
9
- request;
10
- constructor(request) {
11
- super();
12
- this.request = request;
13
- }
14
- get message() {
15
- return `${this.request.method} ${this.request.url} not found`;
16
- }
17
- }
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region build/esm/RouteNotFound.js
3
+ const RouteNotFoundTypeId = Symbol.for("fncts.http.RouteNotFound");
4
+ var RouteNotFound = class extends Error {
5
+ request;
6
+ constructor(request) {
7
+ super();
8
+ this.request = request;
9
+ }
10
+ get message() {
11
+ return `${this.request.method} ${this.request.url} not found`;
12
+ }
13
+ };
14
+ //#endregion
18
15
  exports.RouteNotFound = RouteNotFound;
16
+ exports.RouteNotFoundTypeId = RouteNotFoundTypeId;
17
+
19
18
  //# sourceMappingURL=RouteNotFound.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"RouteNotFound.cjs","names":["RouteNotFoundTypeId","exports","Symbol","for","RouteNotFound","Error","request","constructor","message","method","url"],"sources":["../_src/RouteNotFound.ts"],"sourcesContent":[null],"mappings":";;;;;;AAEO,MAAMA,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,0BAA0B,CAAC;AAGnE,MAAOC,aAAc,SAAQC,KAAK;EACjBC,OAAA;EAArBC,YAAqBD,OAAsB;IACzC,KAAK,EAAE;IADY,KAAAA,OAAO,GAAPA,OAAO;EAE5B;EAEA,IAAIE,OAAOA,CAAA;IACT,OAAO,GAAG,IAAI,CAACF,OAAO,CAACG,MAAM,IAAI,IAAI,CAACH,OAAO,CAACI,GAAG,YAAY;EAC/D;;AACDT,OAAA,CAAAG,aAAA,GAAAA,aAAA","ignoreList":[]}
1
+ {"version":3,"file":"RouteNotFound.cjs","names":[],"sources":["../esm/RouteNotFound.js"],"sourcesContent":["export const RouteNotFoundTypeId = Symbol.for(\"fncts.http.RouteNotFound\");\nexport class RouteNotFound extends Error {\n request;\n constructor(request) {\n super();\n this.request = request;\n }\n get message() {\n return `${this.request.method} ${this.request.url} not found`;\n }\n}\n//# sourceMappingURL=RouteNotFound.js.map"],"mappings":";;AAAA,MAAa,sBAAsB,OAAO,IAAI,2BAA2B;AACzE,IAAa,gBAAb,cAAmC,MAAM;CACrC;CACA,YAAY,SAAS;AACjB,SAAO;AACP,OAAK,UAAU;;CAEnB,IAAI,UAAU;AACV,SAAO,GAAG,KAAK,QAAQ,OAAO,GAAG,KAAK,QAAQ,IAAI"}
@@ -1,155 +1,163 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.append = append;
7
- exports.catchAll = catchAll;
8
- exports.catchAllCause = catchAllCause;
9
- exports.head = exports.get = exports.from = exports.empty = exports.del = exports.concat = void 0;
10
- exports.mount = mount;
11
- exports.prefixAll = exports.post = exports.patch = exports.options = void 0;
12
- exports.provideService = provideService;
13
- exports.put = void 0;
14
- exports.route = route;
15
- exports.routes = routes;
16
- exports.use = void 0;
17
- var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/collection/immutable/Conc/api/empty"));
18
- var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/collection/immutable/Conc/api"));
19
- var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/collection/immutable/Conc/constructors"));
20
- var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/data/Maybe/constructors"));
21
- var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/data/Maybe/api"));
22
- var tsplus_module_6 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/IO/api"));
23
- var tsplus_module_7 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/IO/api/environment"));
24
- var _internal = /*#__PURE__*/require("../Route/internal.cjs");
25
- var _internal2 = /*#__PURE__*/require("./internal.cjs");
26
- 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_Route_internal = require("../Route/internal.cjs");
4
+ const require_Router_internal = require("./internal.cjs");
5
+ let _fncts_io_IO_api = require("@fncts/io/IO/api");
6
+ _fncts_io_IO_api = require_chunk.__toESM(_fncts_io_IO_api, 1);
7
+ let _fncts_base_collection_immutable_Conc_constructors = require("@fncts/base/collection/immutable/Conc/constructors");
8
+ _fncts_base_collection_immutable_Conc_constructors = require_chunk.__toESM(_fncts_base_collection_immutable_Conc_constructors, 1);
9
+ let _fncts_base_data_Maybe_constructors = require("@fncts/base/data/Maybe/constructors");
10
+ _fncts_base_data_Maybe_constructors = require_chunk.__toESM(_fncts_base_data_Maybe_constructors, 1);
11
+ let _fncts_io_IO_api_environment = require("@fncts/io/IO/api/environment");
12
+ _fncts_io_IO_api_environment = require_chunk.__toESM(_fncts_io_IO_api_environment, 1);
13
+ let _fncts_base_collection_immutable_Conc_api_empty = require("@fncts/base/collection/immutable/Conc/api/empty");
14
+ _fncts_base_collection_immutable_Conc_api_empty = require_chunk.__toESM(_fncts_base_collection_immutable_Conc_api_empty, 1);
15
+ let _fncts_base_collection_immutable_Conc_api = require("@fncts/base/collection/immutable/Conc/api");
16
+ _fncts_base_collection_immutable_Conc_api = require_chunk.__toESM(_fncts_base_collection_immutable_Conc_api, 1);
17
+ let _fncts_base_data_Maybe_api = require("@fncts/base/data/Maybe/api");
18
+ _fncts_base_data_Maybe_api = require_chunk.__toESM(_fncts_base_data_Maybe_api, 1);
19
+ //#region build/esm/Router/api.js
27
20
  const fileName_1 = "(@fncts/http) src/Router/api.ts";
28
- const use = exports.use = use_1;
29
- const from = exports.from = from_1;
30
- const concat = exports.concat = concat_1;
31
- const prefixAll = exports.prefixAll = prefixAll_1;
32
- /**
33
- * @tsplus static fncts.http.RouterOps empty
34
- */
35
- const empty = exports.empty = /*#__PURE__*/new _internal2.RouterInternal(/*#__PURE__*/tsplus_module_1.empty(), /*#__PURE__*/tsplus_module_1.empty());
21
+ const use = use_1;
22
+ const from = from_1;
23
+ const concat = concat_1;
24
+ const prefixAll = prefixAll_1;
25
+ /**
26
+ * @tsplus static fncts.http.RouterOps empty
27
+ */
28
+ const empty = new require_Router_internal.RouterInternal(_fncts_base_collection_immutable_Conc_api_empty.empty(), _fncts_base_collection_immutable_Conc_api_empty.empty());
36
29
  function route(method) {
37
- return (path, handler) => self => new _internal2.RouterInternal(tsplus_module_2.append(new _internal.RouteImpl(method, path, handler))(self.routes), self.mounts);
30
+ return (path, handler) => (self) => new require_Router_internal.RouterInternal(_fncts_base_collection_immutable_Conc_api.append(new require_Route_internal.RouteImpl(method, path, handler))(self.routes), self.mounts);
38
31
  }
39
32
  /**
40
- * @tsplus pipeable fncts.http.Router get
41
- * @tsplus static fncts.http.RouterOps get
42
- */
43
- const get = exports.get = /*#__PURE__*/route("GET");
44
- /**
45
- * @tsplus pipeable fncts.http.Router post
46
- * @tsplus static fncts.http.RouterOps post
47
- */
48
- const post = exports.post = /*#__PURE__*/route("POST");
49
- /**
50
- * @tsplus pipeable fncts.http.Router put
51
- * @tsplus static fncts.http.RouterOps put
52
- */
53
- const put = exports.put = /*#__PURE__*/route("PUT");
54
- /**
55
- * @tsplus pipeable fncts.http.Router patch
56
- * @tsplus static fncts.http.RouterOps patch
57
- */
58
- const patch = exports.patch = /*#__PURE__*/route("PATCH");
59
- /**
60
- * @tsplus pipeable fncts.http.Router del
61
- * @tsplus static fncts.http.RouterOps del
62
- */
63
- const del = exports.del = /*#__PURE__*/route("DELETE");
64
- /**
65
- * @tsplus pipeable fncts.http.Router head
66
- * @tsplus static fncts.http.RouterOps head
67
- */
68
- const head = exports.head = /*#__PURE__*/route("HEAD");
69
- /**
70
- * @tsplus pipeable fncts.http.Router options
71
- * @tsplus static fncts.http.RouterOps options
72
- */
73
- const options = exports.options = /*#__PURE__*/route("OPTIONS");
74
- /**
75
- * @tsplus pipeable fncts.http.Router use
76
- * @tsplus static fncts.http.RouterOps use
77
- */
33
+ * @tsplus pipeable fncts.http.Router get
34
+ * @tsplus static fncts.http.RouterOps get
35
+ */
36
+ const get = route("GET");
37
+ /**
38
+ * @tsplus pipeable fncts.http.Router post
39
+ * @tsplus static fncts.http.RouterOps post
40
+ */
41
+ const post = route("POST");
42
+ /**
43
+ * @tsplus pipeable fncts.http.Router put
44
+ * @tsplus static fncts.http.RouterOps put
45
+ */
46
+ const put = route("PUT");
47
+ /**
48
+ * @tsplus pipeable fncts.http.Router patch
49
+ * @tsplus static fncts.http.RouterOps patch
50
+ */
51
+ const patch = route("PATCH");
52
+ /**
53
+ * @tsplus pipeable fncts.http.Router del
54
+ * @tsplus static fncts.http.RouterOps del
55
+ */
56
+ const del = route("DELETE");
57
+ /**
58
+ * @tsplus pipeable fncts.http.Router head
59
+ * @tsplus static fncts.http.RouterOps head
60
+ */
61
+ const head = route("HEAD");
62
+ /**
63
+ * @tsplus pipeable fncts.http.Router options
64
+ * @tsplus static fncts.http.RouterOps options
65
+ */
66
+ const options = route("OPTIONS");
67
+ /**
68
+ * @tsplus pipeable fncts.http.Router use
69
+ * @tsplus static fncts.http.RouterOps use
70
+ */
78
71
  function use_1(f, __tsplusTrace) {
79
- return self => new _internal2.RouterInternal(tsplus_module_2.map(route => new _internal.RouteImpl(route.method, route.path, f(route.handler), route.prefix))(self.routes), tsplus_module_2.map(({
80
- prefix,
81
- httpApp
82
- }) => ({
83
- prefix,
84
- httpApp: f(httpApp)
85
- }))(self.mounts));
72
+ return (self) => new require_Router_internal.RouterInternal(_fncts_base_collection_immutable_Conc_api.map((route) => new require_Route_internal.RouteImpl(route.method, route.path, f(route.handler), route.prefix))(self.routes), _fncts_base_collection_immutable_Conc_api.map(({ prefix, httpApp }) => ({
73
+ prefix,
74
+ httpApp: f(httpApp)
75
+ }))(self.mounts));
86
76
  }
87
77
  /**
88
- * @tsplus static fncts.http.RouterOps from
89
- */
78
+ * @tsplus static fncts.http.RouterOps from
79
+ */
90
80
  function from_1(routes) {
91
- return new _internal2.RouterInternal(tsplus_module_3.from(routes), tsplus_module_1.empty());
81
+ return new require_Router_internal.RouterInternal(_fncts_base_collection_immutable_Conc_constructors.from(routes), _fncts_base_collection_immutable_Conc_api_empty.empty());
92
82
  }
93
83
  /**
94
- * @tsplus static fncts.http.RouterOps routes
95
- */
84
+ * @tsplus static fncts.http.RouterOps routes
85
+ */
96
86
  function routes(...routes) {
97
- return from_1(routes);
87
+ return from_1(routes);
98
88
  }
99
89
  /**
100
- * @tsplus pipeable fncts.http.Router append
101
- */
90
+ * @tsplus pipeable fncts.http.Router append
91
+ */
102
92
  function append(route) {
103
- return self => {
104
- return new _internal2.RouterInternal(tsplus_module_2.append(route)(self.routes), self.mounts);
105
- };
93
+ return (self) => {
94
+ return new require_Router_internal.RouterInternal(_fncts_base_collection_immutable_Conc_api.append(route)(self.routes), self.mounts);
95
+ };
106
96
  }
107
97
  /**
108
- * @tsplus pipeable fncts.http.Router concat
109
- */
98
+ * @tsplus pipeable fncts.http.Router concat
99
+ */
110
100
  function concat_1(that) {
111
- return self => new _internal2.RouterInternal(tsplus_module_2.concat(that.routes)(self.routes), self.mounts);
101
+ return (self) => new require_Router_internal.RouterInternal(_fncts_base_collection_immutable_Conc_api.concat(that.routes)(self.routes), self.mounts);
112
102
  }
113
103
  function removeTrailingSlash(path) {
114
- return path.endsWith("/") ? path.slice(0, -1) : path;
104
+ return path.endsWith("/") ? path.slice(0, -1) : path;
115
105
  }
116
106
  /**
117
- * @tsplus pipeable fncts.http.Router prefixAll
118
- */
107
+ * @tsplus pipeable fncts.http.Router prefixAll
108
+ */
119
109
  function prefixAll_1(prefix) {
120
- return self => {
121
- prefix = removeTrailingSlash(prefix);
122
- return new _internal2.RouterInternal(tsplus_module_2.map(route => new _internal.RouteImpl(route.method, route.path === "/" ? prefix : prefix + route.path, route.handler, tsplus_module_5.orElse(() => tsplus_module_4.just(prefix, fileName_1 + ":150:60"))(tsplus_module_5.map(_ => prefix + _)(route.prefix))))(self.routes), tsplus_module_2.map(({
123
- prefix: path,
124
- httpApp
125
- }) => ({
126
- prefix: path === "/" ? prefix : prefix + path,
127
- httpApp
128
- }))(self.mounts));
129
- };
110
+ return (self) => {
111
+ prefix = removeTrailingSlash(prefix);
112
+ return new require_Router_internal.RouterInternal(_fncts_base_collection_immutable_Conc_api.map((route) => new require_Route_internal.RouteImpl(route.method, route.path === "/" ? prefix : prefix + route.path, route.handler, _fncts_base_data_Maybe_api.orElse(() => _fncts_base_data_Maybe_constructors.just(prefix, fileName_1 + ":150:60"))(_fncts_base_data_Maybe_api.map((_) => prefix + _)(route.prefix))))(self.routes), _fncts_base_collection_immutable_Conc_api.map(({ prefix: path, httpApp }) => ({
113
+ prefix: path === "/" ? prefix : prefix + path,
114
+ httpApp
115
+ }))(self.mounts));
116
+ };
130
117
  }
131
118
  /**
132
- * @tsplus pipeable fncts.http.Router mount
133
- */
119
+ * @tsplus pipeable fncts.http.Router mount
120
+ */
134
121
  function mount(path, that) {
135
- return self => concat_1(prefixAll_1(path)(that))(self);
122
+ return (self) => concat_1(prefixAll_1(path)(that))(self);
136
123
  }
137
124
  /**
138
- * @tsplus pipeable fncts.http.Router catchAll
139
- */
125
+ * @tsplus pipeable fncts.http.Router catchAll
126
+ */
140
127
  function catchAll(f, __tsplusTrace) {
141
- return self => use_1(handler => tsplus_module_6.catchAll(f, __tsplusTrace)(handler), __tsplusTrace)(self);
128
+ return (self) => use_1((handler) => _fncts_io_IO_api.catchAll(f, __tsplusTrace)(handler), __tsplusTrace)(self);
142
129
  }
143
130
  /**
144
- * @tsplus pipeable fncts.http.Router catchAllCause
145
- */
131
+ * @tsplus pipeable fncts.http.Router catchAllCause
132
+ */
146
133
  function catchAllCause(f, __tsplusTrace) {
147
- return self => use_1(handler => tsplus_module_6.catchAllCause(f, __tsplusTrace)(handler), __tsplusTrace)(self);
134
+ return (self) => use_1((handler) => _fncts_io_IO_api.catchAllCause(f, __tsplusTrace)(handler), __tsplusTrace)(self);
148
135
  }
149
136
  /**
150
- * @tsplus pipeable fncts.http.Router provideService
151
- */
137
+ * @tsplus pipeable fncts.http.Router provideService
138
+ */
152
139
  function provideService(service, tag, __tsplusTrace) {
153
- return self => use_1(handler => tsplus_module_7.provideSomeService(service, tag, __tsplusTrace)(handler), __tsplusTrace)(self);
140
+ return (self) => use_1((handler) => _fncts_io_IO_api_environment.provideSomeService(service, tag, __tsplusTrace)(handler), __tsplusTrace)(self);
154
141
  }
142
+ //#endregion
143
+ exports.append = append;
144
+ exports.catchAll = catchAll;
145
+ exports.catchAllCause = catchAllCause;
146
+ exports.concat = concat;
147
+ exports.del = del;
148
+ exports.empty = empty;
149
+ exports.from = from;
150
+ exports.get = get;
151
+ exports.head = head;
152
+ exports.mount = mount;
153
+ exports.options = options;
154
+ exports.patch = patch;
155
+ exports.post = post;
156
+ exports.prefixAll = prefixAll;
157
+ exports.provideService = provideService;
158
+ exports.put = put;
159
+ exports.route = route;
160
+ exports.routes = routes;
161
+ exports.use = use;
162
+
155
163
  //# sourceMappingURL=api.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.cjs","names":["_internal","require","_internal2","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","use","exports","use_1","from","from_1","concat","concat_1","prefixAll","prefixAll_1","empty","RouterInternal","tsplus_module_1","route","method","path","handler","self","tsplus_module_2","append","RouteImpl","routes","mounts","post","put","patch","del","head","options","__tsplusTrace","map","prefix","httpApp","tsplus_module_3","that","removeTrailingSlash","endsWith","slice","tsplus_module_5","orElse","tsplus_module_4","just","fileName_1","_","mount","catchAll","tsplus_module_6","catchAllCause","provide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,CAAiBvD,CAAC,EAF4BuC,aAAA,EAE9Cb,OAAO,CAAY,EAF2Ba,aAAA,EAEpEZ,IAAI,CAAsC;AAC9C;AAEA;;;AAGM,SAAU8B,aAAaA,CAAYzD,CAAyC,EAAEuC,aAAsB;EACxG,OAAWZ,IAAkB,IAC3Bd,KAAA,CAAUa,OAAO,IAAK8B,eAAA,CAAAC,aAAA,CAAsBzD,CAAC,EAFmCuC,aAAA,EAE1Db,OAAO,CAAiB,EAFkCa,aAAA,EAEhFZ,IAAI,CAA2C;AACnD;AAEA;;;AAGM,SAAU+B,cAAcA,CAAIC,OAAU,EAAEC,GAAW,EAAErB,aAAsB;EAC/E,OAAcZ,IAAkB,IAC9Bd,KAAA,CAAUa,OAAO,IAAKmC,eAAA,CAAAC,kBAAA,CAA2BH,OAAO,EAAEC,GAAG,EAFNrB,aAAA,EAEjCb,OAAO,CAAiC,EAFPa,aAAA,EAEvDZ,IAAI,CAA2D;AACnE","ignoreList":[]}
1
+ {"version":3,"file":"api.cjs","names":["RouterInternal","tsplus_module_1","tsplus_module_2","RouteImpl","tsplus_module_3","tsplus_module_5","tsplus_module_4","tsplus_module_6","tsplus_module_7"],"sources":["../../esm/Router/api.js"],"sourcesContent":["const fileName_1 = \"(@fncts/http) src/Router/api.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/collection/immutable/Conc/api/empty\";\nimport * as tsplus_module_2 from \"@fncts/base/collection/immutable/Conc/api\";\nimport * as tsplus_module_3 from \"@fncts/base/collection/immutable/Conc/constructors\";\nimport * as tsplus_module_4 from \"@fncts/base/data/Maybe/constructors\";\nimport * as tsplus_module_5 from \"@fncts/base/data/Maybe/api\";\nimport * as tsplus_module_6 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_7 from \"@fncts/io/IO/api/environment\";\nexport const use = use_1;\nexport const from = from_1;\nexport const concat = concat_1;\nexport const prefixAll = prefixAll_1;\nimport { RouteImpl } from \"../Route/internal.js\";\nimport { RouterInternal } from \"./internal.js\";\n/**\n * @tsplus static fncts.http.RouterOps empty\n */\nexport const empty = new RouterInternal(tsplus_module_1.empty(), tsplus_module_1.empty());\nexport function route(method) {\n return (path, handler) => (self) => new RouterInternal(tsplus_module_2.append(new RouteImpl(method, path, handler))(self.routes), self.mounts);\n}\n/**\n * @tsplus pipeable fncts.http.Router get\n * @tsplus static fncts.http.RouterOps get\n */\nexport const get = route(\"GET\");\n/**\n * @tsplus pipeable fncts.http.Router post\n * @tsplus static fncts.http.RouterOps post\n */\nexport const post = route(\"POST\");\n/**\n * @tsplus pipeable fncts.http.Router put\n * @tsplus static fncts.http.RouterOps put\n */\nexport const put = route(\"PUT\");\n/**\n * @tsplus pipeable fncts.http.Router patch\n * @tsplus static fncts.http.RouterOps patch\n */\nexport const patch = route(\"PATCH\");\n/**\n * @tsplus pipeable fncts.http.Router del\n * @tsplus static fncts.http.RouterOps del\n */\nexport const del = route(\"DELETE\");\n/**\n * @tsplus pipeable fncts.http.Router head\n * @tsplus static fncts.http.RouterOps head\n */\nexport const head = route(\"HEAD\");\n/**\n * @tsplus pipeable fncts.http.Router options\n * @tsplus static fncts.http.RouterOps options\n */\nexport const options = route(\"OPTIONS\");\n/**\n * @tsplus pipeable fncts.http.Router use\n * @tsplus static fncts.http.RouterOps use\n */\nfunction use_1(f, __tsplusTrace) {\n return (self) => new RouterInternal(tsplus_module_2.map((route) => new RouteImpl(route.method, route.path, f(route.handler), route.prefix))(self.routes), tsplus_module_2.map(({ prefix, httpApp }) => ({ prefix, httpApp: f(httpApp) }))(self.mounts));\n}\n/**\n * @tsplus static fncts.http.RouterOps from\n */\nfunction from_1(routes) {\n return new RouterInternal(tsplus_module_3.from(routes), tsplus_module_1.empty());\n}\n/**\n * @tsplus static fncts.http.RouterOps routes\n */\nexport function routes(...routes) {\n return from_1(routes);\n}\n/**\n * @tsplus pipeable fncts.http.Router append\n */\nexport function append(route) {\n return (self) => {\n return new RouterInternal(tsplus_module_2.append(route)(self.routes), self.mounts);\n };\n}\n/**\n * @tsplus pipeable fncts.http.Router concat\n */\nfunction concat_1(that) {\n return (self) => new RouterInternal(tsplus_module_2.concat(that.routes)(self.routes), self.mounts);\n}\nfunction removeTrailingSlash(path) {\n return (path.endsWith(\"/\") ? path.slice(0, -1) : path);\n}\n/**\n * @tsplus pipeable fncts.http.Router prefixAll\n */\nfunction prefixAll_1(prefix) {\n return (self) => {\n prefix = removeTrailingSlash(prefix);\n return new RouterInternal(tsplus_module_2.map((route) => new RouteImpl(route.method, route.path === \"/\" ? prefix : (prefix + route.path), route.handler, tsplus_module_5.orElse(() => tsplus_module_4.just(prefix, fileName_1 + \":150:60\"))(tsplus_module_5.map((_) => prefix + _)(route.prefix))))(self.routes), tsplus_module_2.map(({ prefix: path, httpApp }) => ({ prefix: path === \"/\" ? prefix : prefix + path, httpApp }))(self.mounts));\n };\n}\n/**\n * @tsplus pipeable fncts.http.Router mount\n */\nexport function mount(path, that) {\n return (self) => concat_1(prefixAll_1(path)(that))(self);\n}\n/**\n * @tsplus pipeable fncts.http.Router catchAll\n */\nexport function catchAll(f, __tsplusTrace) {\n return (self) => use_1((handler) => tsplus_module_6.catchAll(f, __tsplusTrace)(handler), __tsplusTrace)(self);\n}\n/**\n * @tsplus pipeable fncts.http.Router catchAllCause\n */\nexport function catchAllCause(f, __tsplusTrace) {\n return (self) => use_1((handler) => tsplus_module_6.catchAllCause(f, __tsplusTrace)(handler), __tsplusTrace)(self);\n}\n/**\n * @tsplus pipeable fncts.http.Router provideService\n */\nexport function provideService(service, tag, __tsplusTrace) {\n return (self) => use_1((handler) => tsplus_module_7.provideSomeService(service, tag, __tsplusTrace)(handler), __tsplusTrace)(self);\n}\n//# sourceMappingURL=api.js.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,MAAM,aAAa;AAQnB,MAAa,MAAM;AACnB,MAAa,OAAO;AACpB,MAAa,SAAS;AACtB,MAAa,YAAY;;;;AAMzB,MAAa,QAAQ,IAAIA,wBAAAA,eAAeC,gDAAgB,OAAO,EAAEA,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*#__PURE__*/require("@fncts/io/IO");
8
- const RouterTypeId = exports.RouterTypeId = /*#__PURE__*/Symbol.for("fncts.http.Router");
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ require("../chunk.cjs");
3
+ let _fncts_io_IO = require("@fncts/io/IO");
4
+ //#region build/esm/Router/definition.js
5
+ const RouterTypeId = Symbol.for("fncts.http.Router");
9
6
  /**
10
- * @tsplus type fncts.http.Router
11
- * @tsplus companion fncts.http.RouterOps
12
- */
13
- class Router extends _IO.External {
14
- [RouterTypeId] = RouterTypeId;
15
- }
7
+ * @tsplus type fncts.http.Router
8
+ * @tsplus companion fncts.http.RouterOps
9
+ */
10
+ var Router = class extends _fncts_io_IO.External {
11
+ [RouterTypeId] = RouterTypeId;
12
+ };
13
+ //#endregion
16
14
  exports.Router = Router;
15
+ exports.RouterTypeId = RouterTypeId;
16
+
17
17
  //# sourceMappingURL=definition.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.cjs","names":["_IO","require","RouterTypeId","exports","Symbol","for","Router","External"],"sources":["../../_src/Router/definition.ts"],"sourcesContent":[null],"mappings":";;;;;;AAMA,IAAAA,GAAA,gBAAAC,OAAA;AAEO,MAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,mBAAmB,CAAC;AAG3D;;;;AAIM,MAAgBC,MACpB,SAAQC,YAAqE;EAGpE,CAACL,YAAY,IAAkBA,YAAY;;AAKrDC,OAAA,CAAAG,MAAA,GAAAA,MAAA","ignoreList":[]}
1
+ {"version":3,"file":"definition.cjs","names":["External"],"sources":["../../esm/Router/definition.js"],"sourcesContent":["import { External } from \"@fncts/io/IO\";\nexport const RouterTypeId = Symbol.for(\"fncts.http.Router\");\n/**\n * @tsplus type fncts.http.Router\n * @tsplus companion fncts.http.RouterOps\n */\nexport class Router extends External {\n [RouterTypeId] = RouterTypeId;\n}\n//# sourceMappingURL=definition.js.map"],"mappings":";;;;AACA,MAAa,eAAe,OAAO,IAAI,oBAAoB;;;;;AAK3D,IAAa,SAAb,cAA4BA,aAAAA,SAAS;CACjC,CAAC,gBAAgB"}