Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@beaker/dat-serve-resolve-path
Advanced tools
Beaker's method to find the file to serve in dat:// requests
Beaker's method to find the file to serve in dat:// requests
const datServeResolvePath = require('@beaker/dat-serve-resolve-path')
var entry = await datServeResolvePath(archive, manifest, url, acceptHeader)
console.log(entry) /* => {
path: '...',
isDirectory(),
isFile(),
...
}
Pass in:
archive
The DatArchive to read from.manifest
The dat archive's dat.json manifest (optional)url
The request URL (can be pre-parsed by parse-dat-url
). If passing the URL, include the FULL url (hostname too).acceptHeader
The request Accept header.Returns a Stat
object with the .path
string added. Will return null
if no matching file is found.
Run npm run build
to output dist.js
. This bundle will set window.datServeResolvePath()
when included.
FAQs
Beaker's method to find the file to serve in dat:// requests
We found that @beaker/dat-serve-resolve-path 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.