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.69
Map<K, V>
schema base-type has been added.__w3_subinvokeImplementation
host import. This now gives us a specific import function for these sort of invocations, which can allow for additional types of verification features to be added by clients.@web3api/schema-bind
: Add support for getImplementations
capability in TypeScript plugin (plugin-ts
) codegen.@web3api/schema-bind
: The schema-bind
project is now "module agnostic" and accepts an array of arbitrary modules, which it will pass directly to the different binding projects (wasm-as
, plugin-ts
, app-ts
, etc).@web3api/manifest-schemas
: Added the name: string
property to the web3api
manifest.@web3api/manifest-schemas
: Renamed web3api.meta
's name
property to displayName
.@web3api/manifest-schemas
: Added the tags: string[]
property to the web3api.meta
manifest, allowing wrapper to developers to add tag keywords to their package's metadata, helping improve searchability on package indexers like The Polywrap Hub.@web3api/ethereum-plugin-js
: Changed all instances of the chainId
property's type to BigInt
from UInt32
.@web3api/ethereum-plugin-js
: Added getBalance
to the Query
module, allowing callers to check the native balance of arbitrary addresses.Map<K, V>
schema base-type will break forward compatability of Polywrap clients.
@web3api/client-js
getImplementations
capability for interfaces will now require the following host imports: __w3_subinvokeImplementation
, __w3_subinvokeImplementation_result_len
, __w3_subinvokeImplementation_result
, __w3_subinvokeImplementation_error_len
, __w3_subinvokeImplementation_error
@web3api/wasm-as
, @web3api/schema-bind
, @web3api/cli
, @web3api/client-js
@web3api/schema-bind
: The entry point function's input & output types have changed.@web3api/cli
: The type of the expected export from user-defined codegen scripts has changed from:generateBinding = (
output: OutputDirectory,
typeInfo: TypeInfo,
schema: string,
config: Record<string, unknown>
) => void;
to
generateBinding = (
options: BindOptions
) => BindOutput;
@web3api/client-js
: User-configured interface implementations now extend the default configuration's, instead of overwritting them.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.