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.40
@web3api/client-js
: Added getManifest(...)
, getFile(...)
, and getSchema(...)
methods to the client, simply provide a URI.@web3api/cli
: APIs can now define metadata via the web3api.meta.yaml
manifest file. Upon compiling your project, the CLI will copy all referenced metadata files into the build directory. Applications such as The Polywrap Hub will use this metadata file to display details about your package such as: title, description, icon, example queries, etc.@web3api/schema-parse
: Duplicate fields on object & query types are not detected, and will cause a compiler error.@web3api/client-js
: Removed the loadWeb3Api(...)
method from the client. This is because we do not want to give the user of the client a direct reference to the underlying API class object. Since garbage collection will delete these, having the user able to hang onto references, will result in them staying in memory.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.