Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@webref/idl
Advanced tools
This package contains Web IDL scraped from the latest versions of web platform specifications in webref, with fixes applied to ensure all definitions can be parsed and are internally consistent.
The async listAll()
method resolves with an object where the keys are spec shortnames, and the values are objects with async text()
and parse()
methods to get the raw text and the result of parsing that with WebIDL2.parse
, respectively. Example:
const idl = require('@webref/idl');
const files = await idl.listAll();
for (const [shortname, file] of Object.entries(files)) {
const text = await file.text();
const ast = await file.parse();
// do something with text or ast
}
As a shorthand, the async parseAll()
method resolves with an object where the keys are spec shortnames and the values are the result of parsing the IDL with WebIDL2.parse
. Example:
const idl = require('@webref/idl');
const parsedFiles = await idl.parseAll();
for (const [shortname, ast] of Object.entries(parsedFiles)) {
// do something with the ast
}
The following guarantees are provided by this package:
peerDependencies
in package.json
.WebIDL2.validate
passes with the exception of the "no-nointerfaceobject" rule about [LegacyNoInterfaceObject]
, which is in wide use.The following guarantees are not provided:
FAQs
Web IDL definitions of the web platform
The npm package @webref/idl receives a total of 384 weekly downloads. As such, @webref/idl popularity was classified as not popular.
We found that @webref/idl 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.