Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@web3api/logger-plugin-js

Package Overview
Dependencies
Maintainers
2
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3api/logger-plugin-js - npm Package Compare versions

Comparing version 0.0.1-prealpha.28 to 0.0.1-prealpha.29

schema.graphql

5

build/manifest.js

@@ -8,6 +8,5 @@ "use strict";

// https://github.com/web3-api/monorepo/issues/101
schema: "\n# TODO: should import and \"implements\" the logger core-api schema\n# https://github.com/Web3-API/monorepo/issues/75\n\nenum LogLevel {\n DEBUG,\n INFO,\n WARN,\n ERROR,\n}\n\ntype Query {\n log(\n level: LogLevel!\n message: String!\n ): Boolean!\n}\n",
implemented: [new core_js_1.Uri("w3/logger")],
imported: [],
schema: "### Web3API Header START ###\nscalar UInt\nscalar UInt8\nscalar UInt16\nscalar UInt32\nscalar UInt64\nscalar Int\nscalar Int8\nscalar Int16\nscalar Int32\nscalar Int64\nscalar Bytes\nscalar BigInt\n\ndirective @imported(\n uri: String!\n namespace: String!\n nativeType: String!\n) on OBJECT | ENUM\n\ndirective @imports(\n types: [String!]!\n) on OBJECT\n### Web3API Header END ###\n\ntype Query implements Logger_Query @imports(\n types: [\n \"Logger_Query\",\n \"Logger_LogLevel\"\n ]\n) {\n log(\n level: Logger_LogLevel!\n message: String!\n ): Boolean!\n}\n\n### Imported Queries START ###\n\ntype Logger_Query @imported(\n uri: \"w3://ens/logger.core.web3api.eth\",\n namespace: \"Logger\",\n nativeType: \"Query\"\n) {\n log(\n level: Logger_LogLevel!\n message: String!\n ): Boolean!\n}\n\n### Imported Queries END ###\n\n### Imported Objects START ###\n\nenum Logger_LogLevel @imported(\n uri: \"w3://ens/logger.core.web3api.eth\",\n namespace: \"Logger\",\n nativeType: \"LogLevel\"\n) {\n DEBUG\n INFO\n WARN\n ERROR\n}\n\n### Imported Objects END ###\n",
implements: [core_js_1.coreInterfaceUris.logger],
};
//# sourceMappingURL=manifest.js.map

8

package.json

@@ -13,3 +13,3 @@ {

],
"version": "0.0.1-prealpha.28",
"version": "0.0.1-prealpha.29",
"main": "build/index.js",

@@ -24,7 +24,7 @@ "scripts": {

"dependencies": {
"@web3api/core-js": "0.0.1-prealpha.28"
"@web3api/core-js": "0.0.1-prealpha.29"
},
"devDependencies": {
"@types/jest": "26.0.8",
"@web3api/client-js": "0.0.1-prealpha.28",
"@web3api/client-js": "0.0.1-prealpha.29",
"jest": "26.6.3",

@@ -36,3 +36,3 @@ "rimraf": "3.0.2",

},
"gitHead": "de612ce9f4070a1a0846e9271a9c36f9a8e81f77",
"gitHead": "c8b9aa94fe01714018b8919857f6a987a4baaa62",
"publishConfig": {

@@ -39,0 +39,0 @@ "access": "public"

# Consoler Logger Plugin
Console Logger plugin implements the `w3://w3/logger` core Web3API interface. By default it logs all events using the Javascript `console` module. Different logging mechanisms can be set using the `LoggerConfig`.
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`.

@@ -18,6 +18,10 @@ ## Log levels

const client = new Web3ApiClient({
redirects: {
from: "w3://w3/logger",
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"],
}]
});

@@ -29,3 +33,3 @@

const response = await client.query<{ log: boolean }>({
uri: "w3://w3/logger",
uri: "w3://ens/js-logger.web3api.eth",
query: `

@@ -32,0 +36,0 @@ query {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc