Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@web3api/logger-plugin-js
Advanced tools
Console Logger plugin implements the w3://ens/logger.core.web3api.eth
core Web3API interface. By default it logs all events using the Javascript console
module. Different logging mechanisms can be set using the LoggerConfig
.
import { loggerPlugin, LogLevel } from "@web3api/logger-plugin-js";
const client = new Web3ApiClient({
plugins: [{
from: "w3://ens/js-logger.web3api.eth",
to: loggerPlugin()
}],
interfaces: [{
interface: "w3://ens/logger.core.web3api.eth",
implementations: ["w3://ens/js-logger.web3api.eth"],
}]
});
// For custom logging logic, initialize the logger like so:
// loggerPlugin((level: LogLevel, message: string) => { ... })
const response = await client.query<{ log: boolean }>({
uri: "w3://ens/js-logger.web3api.eth",
query: `
query {
log(
level: ${LogLevel.INFO}
message: "Informational message"
)
}
`
});
Web3API 0.0.1-prealpha.67
w3 app codegen
command, which generated types based on the apps wrapper / plugin integrations. For an example of how this works, see the updated application template projects by running w3 create app typescript-node my-app
or w3 create app typescript-react my-app
.@web3api/react
: Added the useWeb3ApiInvoke
hook as a non-graphql alternative to useWeb3ApiQuery
.@web3api/schema-compose
: Importing all dependency types from a schema import schema statement can now be done through the new wild-card syntax: #import * into Namespace from "w3://authority/path"
.@web3api/cli
: w3 build
CLI command now requires the use of the --manifest-file <path>
option in order to specify a custom build manifest file path.@web3api/cli
: w3 codegen
CLI command option renaming:
-m, --manifest-path <path>
to -m, --manifest-file <path>
-c, --custom <path>
to -s, --script <path>
-o, --output-dir <path>
to -c, --codegen-dir <path>
@web3api/cli
: w3 plugin
CLI command option renaming:
-m, --manifest-path <path>
to -m, --manifest-file <path>
FAQs
Web3API Javascript Logger Plugin
We found that @web3api/logger-plugin-js 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.