
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Issue DNS lookups for Dat archives using HTTPS requests to the target host. Keeps an in-memory cache of recent lookups.
var datDns = require('dat-dns')()
// resolve a name: pass the hostname by itself
datDns.resolveName('foo.com', function (err, key) { ... })
datDns.resolveName('foo.com').then(key => ...)
// dont use cached 'misses'
datDns.resolveName('foo.com', {ignoreCachedMiss: true})
// clear the cache
datDns.flushCache()
Place a file at /.well-known/dat
with the following schema:
{dat-url}
TTL={time in seconds}
TTL is optional and will default to 3600
(one hour). If set to 0
, the entry is not cached.
Resolution of a site at dat://hostname
will occur with the following process:
https://hostname/.well-known/dat
.404 Not Found
status, store a null entry in the cache with a TTL of 3600
and return a failed lookup.200 OK
status, return a failed lookup.3600
.FAQs
Issue DNS lookups for Dat archives using HTTPS requests to the target host.
The npm package dat-dns receives a total of 84 weekly downloads. As such, dat-dns popularity was classified as not popular.
We found that dat-dns demonstrated a not healthy version release cadence and project activity because the last version was released 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.