@polywrap/logger-plugin-js
Advanced tools
Comparing version
import { Module, Args_log, Logger_LogLevel } from "./wrap"; | ||
import { PluginFactory } from "@polywrap/core-js"; | ||
import { PluginFactory } from "@polywrap/plugin-js"; | ||
export declare type LogFunc = (level: Logger_LogLevel, message: string) => boolean; | ||
@@ -4,0 +4,0 @@ export interface LoggerPluginConfig { |
@@ -18,2 +18,3 @@ "use strict"; | ||
var wrap_1 = require("./wrap"); | ||
var plugin_js_1 = require("@polywrap/plugin-js"); | ||
var LoggerPlugin = /** @class */ (function (_super) { | ||
@@ -53,10 +54,5 @@ __extends(LoggerPlugin, _super); | ||
exports.LoggerPlugin = LoggerPlugin; | ||
var loggerPlugin = function (config) { | ||
return { | ||
factory: function () { return new LoggerPlugin(config); }, | ||
manifest: wrap_1.manifest, | ||
}; | ||
}; | ||
var loggerPlugin = function (config) { return new plugin_js_1.PluginPackage(new LoggerPlugin(config), wrap_1.manifest); }; | ||
exports.loggerPlugin = loggerPlugin; | ||
exports.plugin = exports.loggerPlugin; | ||
//# sourceMappingURL=index.js.map |
export * from "./wrap.info"; | ||
export * from "./module"; | ||
export * from "./types"; | ||
export { Client } from "@polywrap/core-js"; | ||
export { CoreClient } from "@polywrap/core-js"; |
import * as Types from "./types"; | ||
import { Client, PluginModule, MaybeAsync } from "@polywrap/core-js"; | ||
import { CoreClient, MaybeAsync } from "@polywrap/core-js"; | ||
import { PluginModule } from "@polywrap/plugin-js"; | ||
export interface Args_log { | ||
@@ -8,3 +9,3 @@ level: Types.Logger_LogLevel; | ||
export declare abstract class Module<TConfig> extends PluginModule<TConfig> { | ||
abstract log(args: Args_log, client: Client): MaybeAsync<Types.Boolean>; | ||
abstract log(args: Args_log, client: CoreClient): MaybeAsync<Types.Boolean>; | ||
} |
@@ -19,3 +19,3 @@ "use strict"; | ||
exports.Module = void 0; | ||
var core_js_1 = require("@polywrap/core-js"); | ||
var plugin_js_1 = require("@polywrap/plugin-js"); | ||
var Module = /** @class */ (function (_super) { | ||
@@ -27,4 +27,4 @@ __extends(Module, _super); | ||
return Module; | ||
}(core_js_1.PluginModule)); | ||
}(plugin_js_1.PluginModule)); | ||
exports.Module = Module; | ||
//# sourceMappingURL=module.js.map |
import * as Types from "./"; | ||
import { Client, InvokeResult } from "@polywrap/core-js"; | ||
import { CoreClient, InvokeResult } from "@polywrap/core-js"; | ||
export declare type UInt = number; | ||
@@ -30,4 +30,4 @@ export declare type UInt8 = number; | ||
export declare const Logger_Module: { | ||
log: (args: Logger_Module_Args_log, client: Client) => Promise<InvokeResult<Types.Boolean>>; | ||
log: (args: Logger_Module_Args_log, client: CoreClient) => Promise<InvokeResult<Types.Boolean>>; | ||
}; | ||
export {}; |
@@ -64,3 +64,3 @@ "use strict"; | ||
method: "log", | ||
args: args | ||
args: args, | ||
})]; | ||
@@ -67,0 +67,0 @@ }); |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "0.9.4", | ||
"version": "0.10.0-pre.0", | ||
"main": "build/index.js", | ||
@@ -24,6 +24,8 @@ "scripts": { | ||
"dependencies": { | ||
"@polywrap/core-js": "0.9.4" | ||
"@polywrap/core-js": "0.10.0-pre.0", | ||
"@polywrap/plugin-js": "0.10.0-pre.0" | ||
}, | ||
"devDependencies": { | ||
"@polywrap/client-js": "0.9.4", | ||
"@polywrap/client-js": "0.10.0-pre.0", | ||
"@polywrap/uri-resolvers-js": "0.10.0-pre.0", | ||
"@types/jest": "26.0.8", | ||
@@ -30,0 +32,0 @@ "@types/prettier": "2.6.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
23451
0.77%2
100%9
12.5%373
-0.8%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed