Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@typescript/ata
Advanced tools
A dependency for downloading `*.d.ts` files corresponding to a Node.js source file. Relies on API's provided by [jsdelivr](https://www.jsdelivr.com).
A dependency for downloading *.d.ts
files corresponding to a Node.js source file. Relies on API's provided by jsdelivr.
// Create the function for running ATA with a series of callbacks
const ata = setupTypeAcquisition({
projectName: "My ATA Project",
typescript: ts,
logger: console,
delegate: {
receivedFile: (code: string, path: string) => {
// Add code to your runtime at the path...
},
started: () => {
console.log("ATA start")
},
progress: (downloaded: number, total: number) => {
console.log(`Got ${downloaded} out of ${total}`)
},
finished: vfs => {
console.log("ATA done", vfs)
},
},
})
// Run that function with the new sourcefile
ata(`import danger from "danger"`)
You can call ata
when it is convenient to you, it will not grab the same dependencies twice. The callbacks for started
and finished
are only triggered when some work is going to happen, so you can use those for UI elements show/hide. progress
is triggered every 5 downloads.
At a high level, for this input code:
import danger from "danger"
The library will
.d.ts
files to download in the dep, then it triggers started
*.d.ts
files for "danger" from the npm module "danger".d.ts
and look at these modules from usage:
"node-fetch"
- it sees that "node-fetch" has no .d.ts
files and gets them from "@types/node-fetch""commander"
- it sees that command ships its own types"@octokit/rest"
- it sees that octokit/rest ships its own types"gitlab"
- it also seesfinished
with a Map of the vfs
if you prefer to set them in bulk.Users can give a specific npm version or tag to work from instead of the default "latest":
import { xy } from "xyz" // types: beta
If this isn't something you want, I'm not against a flag to disable it.
FAQs
A dependency for downloading `*.d.ts` files corresponding to a Node.js source file. Relies on API's provided by [jsdelivr](https://www.jsdelivr.com).
The npm package @typescript/ata receives a total of 8,938 weekly downloads. As such, @typescript/ata popularity was classified as popular.
We found that @typescript/ata demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.