
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
@beaker/dat-archive-file-diff
Advanced tools
Get line-by-line diffs of text files in Dat archives
Get line-by-line diffs of text files in Dat archives. Basically a thin wrapper around jsdiff.
const {diffLines} = require('dat-archive-file-diff')
var a = new DatArchive('...')
var b = new DatArchive('...')
var diff = await diffLines(a, '/foo.txt', b, '/foo.txt')
ignoreWhitespace
: true to ignore leading and trailing whitespace.newlineIsToken
: true to treat newline characters as separate tokens. This allows for changes to the newline structure to occur independently of the line content and to be treated as such. In general this is the more human friendly form of diffLines and diffLines is better suited for patches and other computer friendly output.Many of the methods above return change objects. These objects consist of the following fields:
value
: Text contentadded
: True if the value was inserted into the new stringremoved
: True of the value was removed from the old stringNote that some cases may omit a particular flag field. Comparison on the flag fields should always be done in a truthy or falsy manner.
FAQs
Get line-by-line diffs of text files in Dat archives
The npm package @beaker/dat-archive-file-diff receives a total of 4 weekly downloads. As such, @beaker/dat-archive-file-diff popularity was classified as not popular.
We found that @beaker/dat-archive-file-diff demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.