Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
piral-debug-utils
Advanced tools
This is a utility library that can be used for debugging Piral instances.
What piral-debug-utils
offers are utilities to provide reach debugging tools for the browser. This forms the basis for UI tooling such as the Piral Inspector.
This should only be installed as a dependency (dependencies
), but usually guarded to be active (or included in the bundle) only for development/emulation purposes (i.e., when developing pilets).
If you'd love to use yarn:
yarn add piral-debug-utils
Alternatively, npm works reliably, too:
npm i --save piral-debug-utils
The utilities should be used as follows.
We can use the installPiralDebug
function to install the debug helper object globally on window
. It is called dbg:piral
.
Usually, we'd guard it to make it only accessible under development conditions.
// if we build the debug version of piral (debug and emulator build)
if (process.env.DEBUG_PIRAL) {
const { installPiralDebug } = require('piral-debug-utils');
installPiralDebug({
getDependencies,
fireEvent,
getGlobalState,
getPilets,
getExtensions,
getRoutes,
integrate,
addPilet,
removePilet,
updatePilet,
navigate,
});
}
We can use the installPiletEmulator
function to modify (or not) the provided PiletRequester
, which will be handed over later to the createInstance
options or piral-base
directly.
Usually, we'd guard it to make it only accessible under emulator conditions.
// if we want to change `requestPilets` (for an emulator) of the LoadPiletsOptions
if (process.env.DEBUG_PILET) {
const { installPiletEmulator } = require('piral-debug-utils');
installPiletEmulator(requestPilets, {
addPilet,
removePilet,
integrate,
});
}
Piral is released using the MIT license. For more information see the license file.
FAQs
Utilities for debugging Piral instances.
We found that piral-debug-utils 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.