
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@nxtedition/types
Advanced tools
This package contains:
Import types and validators like this in TypeScript:
import type { TemplateRecord } from '@nxtedition/types'
import { isTemplateRecord } from '@nxtedition/types'
const templateRecord: TemplateRecord = { ... }
And like this in JavaScript:
```javascript
import { isTemplateRecord } from '@nxtedition/types'
/**
* @typedef { import("@nxtedition/types").TemplateRecord } TemplateRecord
*/
/** @type {TemplateRecord} */
const templateRecord = { ... }
If bundle size is an issue, you can import only the parts you need like this:
import { isTemplateRecord } from '@nxtedition/types/domains/template'
Generally, we only manually specify types in this package. A code generator is used to generate the runtime validators and JSON functions. It will do so for all types that are exported. To run the generator, use the following command:
yarn build
This will build the output to the dist directory.
We export all types up to the root of the package, so they can be imported
directly from @nxtedition/types. This means that all exported types must
be uniquely named.
FAQs
TypeScript types to be shared between nxtedition packages.
The npm package @nxtedition/types receives a total of 267 weekly downloads. As such, @nxtedition/types popularity was classified as not popular.
We found that @nxtedition/types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 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.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.