
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
@sebspark/openapi-core
Advanced tools
@sebspark/openapi-coreBase types and utilities for OpenAPI/Typescript. Used by:
Helper functions for transforming OpenAPI documents before rendering or serving. All functions return a cloned document and do not modify the original.
disableUnimplementedPaths(document, server)Marks paths not present in the server definition as deprecated and tagged with not-implemented.
appendVersionToServers(document, version)Appends a version segment to all server URLs in the document.
flattenEnums(document)Flattens oneOf[$ref, $ref, ...] schemas where all refs resolve to enums into a single merged enum. Enables API UI tools like Scalar to render a dropdown instead of a free-text input.
resolveRef(ref, document)Resolves a $ref string to its schema definition within the document.
Typed HTTP error classes for all 4xx and 5xx status codes.
import { NotFoundError, UnauthorizedError, createHttpError, fromAxiosError } from '@sebspark/openapi-core'
throw new NotFoundError('Instrument not found')
throw new UnauthorizedError()
// Create by status code
throw createHttpError(429, 'Slow down')
// Convert from Axios error
catch (e) {
throw fromAxiosError(e)
}
All errors extend HttpError which exposes a statusCode property and a toJSON(showStack?) method.
FAQs
Base types and utilities for OpenAPI/Typescript. Used by:
The npm package @sebspark/openapi-core receives a total of 1,021 weekly downloads. As such, @sebspark/openapi-core popularity was classified as popular.
We found that @sebspark/openapi-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.