@polywrap/logger-plugin-js
Advanced tools
Comparing version 0.10.1 to 0.11.0-pre.0
import { Module, Args_log, LogLevel } from "./wrap"; | ||
import { PluginFactory } from "@polywrap/plugin-js"; | ||
export declare type LogFunc = (level: LogLevel, message: string) => void; | ||
export type LogFunc = (level: LogLevel, message: string) => void; | ||
export interface LoggerPluginConfig { | ||
@@ -5,0 +5,0 @@ logFunc?: LogFunc; |
@@ -10,2 +10,4 @@ "use strict"; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
@@ -6,3 +6,7 @@ "use strict"; | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -9,0 +13,0 @@ if (k2 === undefined) k2 = k; |
@@ -12,2 +12,4 @@ "use strict"; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -14,0 +16,0 @@ function __() { this.constructor = d; } |
@@ -1,15 +0,15 @@ | ||
export declare type UInt = number; | ||
export declare type UInt8 = number; | ||
export declare type UInt16 = number; | ||
export declare type UInt32 = number; | ||
export declare type Int = number; | ||
export declare type Int8 = number; | ||
export declare type Int16 = number; | ||
export declare type Int32 = number; | ||
export declare type Bytes = Uint8Array; | ||
export declare type BigInt = string; | ||
export declare type BigNumber = string; | ||
export declare type Json = string; | ||
export declare type String = string; | ||
export declare type Boolean = boolean; | ||
export type UInt = number; | ||
export type UInt8 = number; | ||
export type UInt16 = number; | ||
export type UInt32 = number; | ||
export type Int = number; | ||
export type Int8 = number; | ||
export type Int16 = number; | ||
export type Int32 = number; | ||
export type Bytes = Uint8Array; | ||
export type BigInt = string; | ||
export type BigNumber = string; | ||
export type Json = string; | ||
export type String = string; | ||
export type Boolean = boolean; | ||
export declare enum LogLevelEnum { | ||
@@ -21,3 +21,3 @@ DEBUG = 0, | ||
} | ||
export declare type LogLevelString = "DEBUG" | "INFO" | "WARN" | "ERROR"; | ||
export declare type LogLevel = LogLevelEnum | LogLevelString; | ||
export type LogLevelString = "DEBUG" | "INFO" | "WARN" | "ERROR"; | ||
export type LogLevel = LogLevelEnum | LogLevelString; |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "0.10.1", | ||
"version": "0.11.0-pre.0", | ||
"main": "build/index.js", | ||
@@ -23,19 +23,19 @@ "scripts": { | ||
"dependencies": { | ||
"@polywrap/core-js": "0.10.0", | ||
"@polywrap/plugin-js": "0.10.0" | ||
"@polywrap/core-js": "~0.12.0-pre.0", | ||
"@polywrap/plugin-js": "~0.12.0-pre.0" | ||
}, | ||
"peerDependencies": { | ||
"@polywrap/core-js": "0.10.x", | ||
"@polywrap/plugin-js": "0.10.x" | ||
"@polywrap/core-js": "0.12.x", | ||
"@polywrap/plugin-js": "0.12.x" | ||
}, | ||
"devDependencies": { | ||
"@polywrap/client-js": "0.10.0", | ||
"@polywrap/uri-resolvers-js": "0.10.0", | ||
"@types/jest": "26.0.8", | ||
"jest": "26.6.3", | ||
"polywrap": "0.10.2", | ||
"@polywrap/client-js": "~0.12.0-pre.0", | ||
"@polywrap/uri-resolvers-js": "~0.12.0-pre.0", | ||
"@types/jest": "29.5.0", | ||
"jest": "29.5.0", | ||
"polywrap": "~0.11.0-pre.0", | ||
"rimraf": "3.0.2", | ||
"ts-jest": "26.5.4", | ||
"ts-node": "8.10.2", | ||
"typescript": "4.1.6" | ||
"ts-jest": "29.1.0", | ||
"ts-node": "10.9.1", | ||
"typescript": "4.9.5" | ||
}, | ||
@@ -42,0 +42,0 @@ "publishConfig": { |
# @polywrap/logger-plugin-js | ||
The Logger plugin implements the `logger-interface` @ [ens/wraps.eth:logger@1.0.0](https://app.ens.domains/name/wraps.eth/details) (see [./src/schema.graphql](./src/schema.graphql)). By default, it logs all events using the Javascript `console` global object. You can circumvent this functionality by setting the `logFunc` property on the plugin's config (examples below). | ||
The Logger plugin implements the `logger-interface` @ [wrapscan.io/polywrap/logger@1.0.0](../../interface/) (see [./polywrap.graphql](./polywrap.graphql)). By default, it logs all events using the Javascript `console` global object. You can circumvent this functionality by setting the `logFunc` property on the plugin's config (examples below). | ||
@@ -19,3 +19,3 @@ ## Usage | ||
.addInterfaceImplementation( | ||
"ens/wraps.eth:logger@1.0.0", | ||
"wrapscan.io/polywrap/logger@1.0", | ||
"plugin/logger" | ||
@@ -25,3 +25,3 @@ ) | ||
.addRedirect( | ||
"ens/wraps.eth:logger@1.0.0", | ||
"wrapscan.io/polywrap/logger@1.0", | ||
"plugin/logger" | ||
@@ -38,3 +38,3 @@ ) | ||
await client.invoke({ | ||
uri: "ens/wraps.eth:logger@1.0.0" | "plugin/logger", | ||
uri: "wrapscan.io/polywrap/logger@1.0" | "plugin/logger", | ||
method: "log", | ||
@@ -78,7 +78,7 @@ args: { | ||
.addInterfaceImplementations( | ||
"ens/wraps.eth:logger@1.0.0", | ||
"wrapscan.io/polywrap/logger@1.0", | ||
["plugin/logger", "plugin/custom-logger"] | ||
) | ||
.addRedirect( | ||
"ens/wraps.eth:logger@1.0.0", | ||
"wrapscan.io/polywrap/logger@1.0", | ||
"plugin/logger" | ||
@@ -95,3 +95,3 @@ ) | ||
const result = await client.getImplementations( | ||
"ens/wraps.eth:logger@1.0.0" | ||
"wrapscan.io/polywrap/logger@1.0" | ||
); | ||
@@ -98,0 +98,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16988
252
0
+ Added@polywrap/core-js@0.12.2(transitive)
+ Added@polywrap/msgpack-js@0.12.2(transitive)
+ Added@polywrap/plugin-js@0.12.2(transitive)
+ Added@polywrap/result@0.12.2(transitive)
+ Added@polywrap/tracing-js@0.12.2(transitive)
+ Added@polywrap/wrap-manifest-types-js@0.12.2(transitive)
+ Addedajv@8.12.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedjson-schema-traverse@1.0.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedrequire-from-string@2.0.2(transitive)
+ Addedsemver@7.5.4(transitive)
+ Addeduri-js@4.4.1(transitive)
- Removed@apidevtools/json-schema-ref-parser@9.0.9(transitive)
- Removed@jsdevtools/ono@7.1.3(transitive)
- Removed@polywrap/core-js@0.10.0(transitive)
- Removed@polywrap/msgpack-js@0.10.0(transitive)
- Removed@polywrap/plugin-js@0.10.0(transitive)
- Removed@polywrap/result@0.10.0(transitive)
- Removed@polywrap/tracing-js@0.10.0(transitive)
- Removed@polywrap/wrap-manifest-types-js@0.10.0(transitive)
- Removed@types/json-schema@7.0.15(transitive)
- Removedargparse@2.0.1(transitive)
- Removedcall-me-maybe@1.0.2(transitive)
- Removedjs-yaml@4.1.0(transitive)
- Removedjsonschema@1.4.0(transitive)
- Removedsemver@7.4.0(transitive)