New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@polywrap/logger-plugin-js

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.10.1 to 0.11.0-pre.0

2

build/index.d.ts
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

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