Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@marblejs/middleware-io
Advanced tools
IO validation middleware for Marble.js for Marble.js.
$ npm i @marblejs/middleware-io
Requires @marblejs/core
to be installed.
For the latest updates, documentation, change log, and release information visit docs.marblejs.com and follow @marble_js on Twitter.
import { r } from '@marblejs/http';
import { requestValidator$, t } from '@marblejs/middleware-io';
const userSchema = t.type({
id: t.string,
firstName: t.string,
lastName: t.string,
roles: t.array(t.union([
t.literal('ADMIN'),
t.literal('GUEST'),
])),
});
type User = t.TypeOf<typeof userSchema>;
const effect$ = r.pipe(
r.matchPath('/'),
r.matchType('POST'),
r.useEffect(req$ => req$.pipe(
requestValidator$({ body: userSchema }),
// ..
)));
License: MIT
FAQs
IO middleware for Marble.js
The npm package @marblejs/middleware-io receives a total of 46 weekly downloads. As such, @marblejs/middleware-io popularity was classified as not popular.
We found that @marblejs/middleware-io demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.