@mapl/web 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiler/state.js +1 -1
- package/package.json +10 -11
package/compiler/state.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{injectDependency}from"runtime-compiler";import{handlerArgs}from"./globals.js";export let initState=()=>[false,false];
|
|
1
|
+
import{injectDependency}from"runtime-compiler";import{handlerArgs}from"./globals.js";export let initState=()=>[false,false];let wrapContent=(state,content)=>state[1]?`let mh=[],mc={status:200,headers:mh};`+content:content;export let finalizeReturn=(state,content)=>state[0]?`return `+injectDependency(`async${handlerArgs}=>{${wrapContent(state,content)}}`)+handlerArgs:wrapContent(state,content);export let finalizeFn=(state,content)=>injectDependency(`${state[0]?`async`+handlerArgs:handlerArgs}=>{${wrapContent(state,content)}}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapl/web",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "A compiled web framework for all runtimes",
|
|
5
5
|
"keywords": ["fast", "lightweight", "cross-runtime", "framework", "web", "backend"],
|
|
6
6
|
"repository": {
|
|
@@ -12,25 +12,24 @@
|
|
|
12
12
|
"main": "./index.js",
|
|
13
13
|
"types": "./index.d.ts",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@
|
|
16
|
-
"@mapl/router": "^0.7.7",
|
|
15
|
+
"@mapl/router": "^0.8.1",
|
|
17
16
|
"@safe-std/error": "^2.0.4",
|
|
18
17
|
"runtime-compiler": "^2.1.2"
|
|
19
18
|
},
|
|
20
19
|
"exports": {
|
|
21
20
|
"./bun": "./bun/index.js",
|
|
22
|
-
"./generic/
|
|
23
|
-
"./generic/layers": "./generic/layers.js",
|
|
21
|
+
"./generic/compiler": "./generic/compiler.js",
|
|
24
22
|
"./constants": "./constants.js",
|
|
25
|
-
"./generic/
|
|
26
|
-
"./generic/route": "./generic/route.js",
|
|
27
|
-
"./generic": "./generic/index.js",
|
|
23
|
+
"./generic/types": "./generic/types.js",
|
|
28
24
|
"./generic/handlers": "./generic/handlers.js",
|
|
29
25
|
"./compiler/call": "./compiler/call.js",
|
|
26
|
+
"./generic": "./generic/index.js",
|
|
27
|
+
".": "./index.js",
|
|
28
|
+
"./compiler/globals": "./compiler/globals.js",
|
|
29
|
+
"./generic/parsers": "./generic/parsers.js",
|
|
30
30
|
"./compiler/state": "./compiler/state.js",
|
|
31
|
-
"./generic/
|
|
31
|
+
"./generic/route": "./generic/route.js",
|
|
32
32
|
"./compiler/router": "./compiler/router.js",
|
|
33
|
-
"
|
|
34
|
-
"./compiler/globals": "./compiler/globals.js"
|
|
33
|
+
"./generic/layers": "./generic/layers.js"
|
|
35
34
|
}
|
|
36
35
|
}
|