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.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
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.