Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@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.72
BigNumber
Schema Type: The BigNumber
type is now available for use as a base type for Web3API schemas.@web3api/cli
: w3 query ...
command now supports the following options:
-o, --output-file
: Output file path for the query result.-q, --quiet
: Suppress output.@web3api/schema-bind
: wasm-as
bindings have been updated to include a helper function requireEnv()
, which can be used to check if the environment is null or not.@web3api/templates
: The AssemblyScript & interface templates used for the w3 create api ...
command has been updated to include metadata (descriptions, icons, etc).@web3api/templates
: The AssemblyScript template used for the w3 create api assemblyscript ...
command has been updated to include e2e tests.FAQs
Web3API Javascript Logger Plugin
The npm package @web3api/logger-plugin-js receives a total of 32 weekly downloads. As such, @web3api/logger-plugin-js popularity was classified as not popular.
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.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.