@moostjs/event-http 0.6.24 → 0.6.26
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/README.md +5 -18
- package/dist/index.cjs +2 -4
- package/dist/index.mjs +2 -4
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -32,8 +32,9 @@ npm create moost my-web-app -- --http
|
|
|
32
32
|
This command will initiate a setup tool that will guide you through the project initialization process. It will prompt you to configure:
|
|
33
33
|
|
|
34
34
|
- Project and package name.
|
|
35
|
+
- Whether to add WebSockets.
|
|
35
36
|
- Whether to include a Moost Workflows example.
|
|
36
|
-
- Whether to add
|
|
37
|
+
- Whether to add OXC lint and formatter (oxlint + oxfmt).
|
|
37
38
|
|
|
38
39
|
## Auth Guards
|
|
39
40
|
|
|
@@ -121,26 +122,12 @@ This is wired up automatically by `@moostjs/vite` (see `ssrFetch` option).
|
|
|
121
122
|
|
|
122
123
|
## [Official Documentation](https://moost.org/webapp/)
|
|
123
124
|
|
|
124
|
-
## AI Agent
|
|
125
|
+
## AI Agent Skill
|
|
125
126
|
|
|
126
|
-
|
|
127
|
+
A unified Moost skill for AI coding agents (Claude Code, Cursor, Windsurf, Codex, OpenCode) covers this package along with the rest of the framework:
|
|
127
128
|
|
|
128
129
|
```bash
|
|
129
|
-
|
|
130
|
-
npx moostjs-event-http-skill
|
|
131
|
-
|
|
132
|
-
# Global (available across all your projects)
|
|
133
|
-
npx moostjs-event-http-skill --global
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
To auto-install skills on `npm install`, add to your `package.json`:
|
|
137
|
-
|
|
138
|
-
```json
|
|
139
|
-
{
|
|
140
|
-
"scripts": {
|
|
141
|
-
"postinstall": "moostjs-event-http-skill --postinstall"
|
|
142
|
-
}
|
|
143
|
-
}
|
|
130
|
+
npx skills add moostjs/moostjs
|
|
144
131
|
```
|
|
145
132
|
|
|
146
133
|
## Contributing
|
package/dist/index.cjs
CHANGED
|
@@ -136,7 +136,7 @@ AuthGuard = _ts_decorate([(0, moost.Interceptor)(moost.TInterceptorPriority.GUAR
|
|
|
136
136
|
handler,
|
|
137
137
|
priority,
|
|
138
138
|
name
|
|
139
|
-
}, true), mate.decorate("authTransports", transports));
|
|
139
|
+
}, true), mate.decorate("authTransports", transports, true));
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
//#endregion
|
|
@@ -541,7 +541,6 @@ function _define_property(obj, key, value) {
|
|
|
541
541
|
return obj;
|
|
542
542
|
}
|
|
543
543
|
const LOGGER_TITLE = "moost-http";
|
|
544
|
-
const CONTEXT_TYPE = "HTTP";
|
|
545
544
|
/**
|
|
546
545
|
* ## Moost HTTP Adapter
|
|
547
546
|
*
|
|
@@ -622,7 +621,6 @@ const CONTEXT_TYPE = "HTTP";
|
|
|
622
621
|
const path = typeof httpPath === "string" ? httpPath : typeof opts.method === "string" ? opts.method : "";
|
|
623
622
|
const targetPath = `${`${opts.prefix || ""}/${path}`.replaceAll(/\/\/+/g, "/")}${path.endsWith("//") ? "/" : ""}`;
|
|
624
623
|
fn = (0, moost.defineMoostEventHandler)({
|
|
625
|
-
contextType: CONTEXT_TYPE,
|
|
626
624
|
loggerTitle: LOGGER_TITLE,
|
|
627
625
|
getIterceptorHandler: opts.getIterceptorHandler,
|
|
628
626
|
getControllerInstance: opts.getInstance,
|
|
@@ -667,7 +665,7 @@ const CONTEXT_TYPE = "HTTP";
|
|
|
667
665
|
image: "https://moost.org/moost-full-logo.svg",
|
|
668
666
|
link: "https://moost.org/",
|
|
669
667
|
poweredBy: "moostjs",
|
|
670
|
-
version: "0.6.
|
|
668
|
+
version: "0.6.26"
|
|
671
669
|
});
|
|
672
670
|
if (httpApp && httpApp instanceof _wooksjs_event_http.WooksHttp) this.httpApp = httpApp;
|
|
673
671
|
else if (httpApp) this.httpApp = (0, _wooksjs_event_http.createHttpApp)({
|
package/dist/index.mjs
CHANGED
|
@@ -135,7 +135,7 @@ AuthGuard = _ts_decorate([Interceptor(TInterceptorPriority.GUARD)], AuthGuard);
|
|
|
135
135
|
handler,
|
|
136
136
|
priority,
|
|
137
137
|
name
|
|
138
|
-
}, true), mate.decorate("authTransports", transports));
|
|
138
|
+
}, true), mate.decorate("authTransports", transports, true));
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
//#endregion
|
|
@@ -540,7 +540,6 @@ function _define_property(obj, key, value) {
|
|
|
540
540
|
return obj;
|
|
541
541
|
}
|
|
542
542
|
const LOGGER_TITLE = "moost-http";
|
|
543
|
-
const CONTEXT_TYPE = "HTTP";
|
|
544
543
|
/**
|
|
545
544
|
* ## Moost HTTP Adapter
|
|
546
545
|
*
|
|
@@ -621,7 +620,6 @@ const CONTEXT_TYPE = "HTTP";
|
|
|
621
620
|
const path = typeof httpPath === "string" ? httpPath : typeof opts.method === "string" ? opts.method : "";
|
|
622
621
|
const targetPath = `${`${opts.prefix || ""}/${path}`.replaceAll(/\/\/+/g, "/")}${path.endsWith("//") ? "/" : ""}`;
|
|
623
622
|
fn = defineMoostEventHandler({
|
|
624
|
-
contextType: CONTEXT_TYPE,
|
|
625
623
|
loggerTitle: LOGGER_TITLE,
|
|
626
624
|
getIterceptorHandler: opts.getIterceptorHandler,
|
|
627
625
|
getControllerInstance: opts.getInstance,
|
|
@@ -666,7 +664,7 @@ const CONTEXT_TYPE = "HTTP";
|
|
|
666
664
|
image: "https://moost.org/moost-full-logo.svg",
|
|
667
665
|
link: "https://moost.org/",
|
|
668
666
|
poweredBy: "moostjs",
|
|
669
|
-
version: "0.6.
|
|
667
|
+
version: "0.6.26"
|
|
670
668
|
});
|
|
671
669
|
if (httpApp && httpApp instanceof WooksHttp) this.httpApp = httpApp;
|
|
672
670
|
else if (httpApp) this.httpApp = createHttpApp({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moostjs/event-http",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.26",
|
|
4
4
|
"description": "@moostjs/event-http",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"composables",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@wooksjs/event-http": "^0.7.
|
|
42
|
-
"@wooksjs/http-body": "^0.7.
|
|
41
|
+
"@wooksjs/event-http": "^0.7.19",
|
|
42
|
+
"@wooksjs/http-body": "^0.7.19"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"vitest": "3.2.4"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@prostojs/infact": "^0.4.1",
|
|
49
|
-
"@wooksjs/event-core": "^0.7.
|
|
50
|
-
"moost": "^0.6.
|
|
49
|
+
"@wooksjs/event-core": "^0.7.19",
|
|
50
|
+
"moost": "^0.6.26"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"pub": "pnpm publish --access public",
|