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

to
0.4.1

build/wrap/index.d.ts

2

build/index.d.ts

@@ -1,2 +0,2 @@

import { Module, Args_log, Logger_LogLevel } from "./wrap-man";
import { Module, Args_log, Logger_LogLevel } from "./wrap";
import { PluginFactory } from "@polywrap/core-js";

@@ -3,0 +3,0 @@ export declare type LogFunc = (level: Logger_LogLevel, message: string) => boolean;

@@ -17,3 +17,3 @@ "use strict";

exports.plugin = exports.loggerPlugin = exports.LoggerPlugin = void 0;
var wrap_man_1 = require("./wrap-man");
var wrap_1 = require("./wrap");
var LoggerPlugin = /** @class */ (function (_super) {

@@ -30,15 +30,15 @@ __extends(LoggerPlugin, _super);

case "DEBUG":
case wrap_man_1.Logger_LogLevelEnum.DEBUG:
case wrap_1.Logger_LogLevelEnum.DEBUG:
console.debug(args.message);
break;
case "WARN":
case wrap_man_1.Logger_LogLevelEnum.WARN:
case wrap_1.Logger_LogLevelEnum.WARN:
console.warn(args.message);
break;
case "ERROR":
case wrap_man_1.Logger_LogLevelEnum.ERROR:
case wrap_1.Logger_LogLevelEnum.ERROR:
console.error(args.message);
break;
case "INFO":
case wrap_man_1.Logger_LogLevelEnum.INFO:
case wrap_1.Logger_LogLevelEnum.INFO:
console.log(args.message);

@@ -52,3 +52,3 @@ break;

return LoggerPlugin;
}(wrap_man_1.Module));
}(wrap_1.Module));
exports.LoggerPlugin = LoggerPlugin;

@@ -58,3 +58,3 @@ exports.loggerPlugin = function (config) {

factory: function () { return new LoggerPlugin(config); },
manifest: wrap_man_1.manifest,
manifest: wrap_1.manifest,
};

@@ -61,0 +61,0 @@ };

@@ -12,8 +12,7 @@ {

],
"version": "0.4.0",
"version": "0.4.1",
"main": "build/index.js",
"scripts": {
"build": "rimraf ./build && tsc --project tsconfig.build.json",
"build": "rimraf ./build && yarn codegen && tsc --project tsconfig.build.json",
"codegen": "node ../../../../dependencies/node_modules/polywrap/bin/polywrap plugin codegen",
"codegen:patch": "node ../../../cli/bin/polywrap plugin codegen && rimraf ./src/wrap",
"lint": "eslint --color -c ../../../../.eslintrc.js src/",

@@ -25,6 +24,6 @@ "test": "jest --passWithNoTests --runInBand --verbose",

"dependencies": {
"@polywrap/core-js": "0.4.0"
"@polywrap/core-js": "0.4.1"
},
"devDependencies": {
"@polywrap/client-js": "0.4.0",
"@polywrap/client-js": "0.4.1",
"@types/jest": "26.0.8",

@@ -31,0 +30,0 @@ "@types/prettier": "2.6.0",

Sorry, the diff of this file is not supported yet