Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
fastify-tsconfig
Advanced tools
Shared TypeScript configuration for fastify projects
$ npm install --save-dev fastify-tsconfig
Extend your own tsconfig.json
file from fastify-tsconfig
and override/add the desired settings. By default no outDir
is set (because of this issue) , so be sure to add one.
tsconfig.json
{
"extends": "fastify-tsconfig",
"compilerOptions": {
"outDir": "build",
"target": "es2018",
"lib": ["es2018"]
}
}
Check the other settings here
The configuration targets es2018, that is supported in Node.js 10 and later. There is only one feature that is is missing from Node.js v10: Proxy "ownKeys" . However using es2018 as target makes some widely used features ("object rest properties", "object spread properties", and "Asynchronous Iterators") not being transpiled. To target some other version, just override target
property.
Licensed under MIT.
Inspired by: sindresorhus/tsconfig
FAQs
Shared TypeScript configuration
We found that fastify-tsconfig demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.