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

@equinor/fusion-framework-module

Package Overview
Dependencies
Maintainers
3
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equinor/fusion-framework-module - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

9

CHANGELOG.md

@@ -6,2 +6,11 @@ # Change Log

## [1.2.2](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module@1.2.1...@equinor/fusion-framework-module@1.2.2) (2022-09-29)
### Bug Fixes
* **module:** update interface for logging ([fc23ea3](https://github.com/equinor/fusion-framework/commit/fc23ea3602c0b18b3f54de584773f76ffe63617c))
## 1.2.1 (2022-09-27)

@@ -8,0 +17,0 @@

4

dist/types/configurator.d.ts

@@ -1,5 +0,5 @@

import { ModuleConsoleLogger } from './logger';
import { IModuleConsoleLogger, ModuleConsoleLogger } from './logger';
import type { AnyModule, CombinedModules, ModuleConfigType, ModuleInstance, ModulesConfig, ModulesConfigType, ModulesInstance, ModulesInstanceType, ModuleType } from './types';
export interface IModulesConfigurator<TModules extends Array<AnyModule> = Array<AnyModule>, TRef = any> {
logger: ModuleConsoleLogger;
logger: IModuleConsoleLogger;
configure(...configs: Array<IModuleConfigurator<any, TRef>>): void;

@@ -6,0 +6,0 @@ addConfig<T extends AnyModule>(config: IModuleConfigurator<T, TRef>): void;

import { AnyModule } from './types';
export declare class ConsoleLogger {
export interface IConsoleLogger {
level: 0 | 1 | 2 | 3 | 4;
debug(...msg: unknown[]): void;
info(...msg: unknown[]): void;
warn(...msg: unknown[]): void;
error(...msg: unknown[]): void;
}
export declare class ConsoleLogger implements IConsoleLogger {
protected domain: string;

@@ -12,4 +19,7 @@ level: 0 | 1 | 2 | 3 | 4;

}
export declare class ModuleConsoleLogger extends ConsoleLogger {
export interface IModuleConsoleLogger extends IConsoleLogger {
formatModuleName(moduleOrName: string | AnyModule): string;
}
export declare class ModuleConsoleLogger extends ConsoleLogger implements IModuleConsoleLogger {
formatModuleName(moduleOrName: string | AnyModule): string;
}
{
"name": "@equinor/fusion-framework-module",
"version": "1.2.1",
"version": "1.2.2",
"description": "",

@@ -31,3 +31,3 @@ "main": "dist/esm/index.js",

},
"gitHead": "6948015d0a835b16e75699fcd0b317e54fa93eef"
"gitHead": "81198e7772ed6e1f0c318fc37c5b4f2a9fe72ada"
}

@@ -5,3 +5,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

import { ModuleConsoleLogger } from './logger';
import { IModuleConsoleLogger, ModuleConsoleLogger } from './logger';

@@ -24,3 +24,3 @@ import type {

> {
logger: ModuleConsoleLogger;
logger: IModuleConsoleLogger;
configure(...configs: Array<IModuleConfigurator<any, TRef>>): void;

@@ -27,0 +27,0 @@

import { AnyModule } from './types';
export class ConsoleLogger {
export interface IConsoleLogger {
level: 0 | 1 | 2 | 3 | 4;
debug(...msg: unknown[]): void;
info(...msg: unknown[]): void;
warn(...msg: unknown[]): void;
error(...msg: unknown[]): void;
}
export class ConsoleLogger implements IConsoleLogger {
/** - 0-1-2-3 (error-warning-info-debug) if not provided only errors are logged */

@@ -35,3 +43,7 @@ public level: 0 | 1 | 2 | 3 | 4 = 1;

export class ModuleConsoleLogger extends ConsoleLogger {
export interface IModuleConsoleLogger extends IConsoleLogger {
formatModuleName(moduleOrName: string | AnyModule): string;
}
export class ModuleConsoleLogger extends ConsoleLogger implements IModuleConsoleLogger {
public formatModuleName(moduleOrName: string | AnyModule): string {

@@ -38,0 +50,0 @@ const name = typeof moduleOrName === 'string' ? moduleOrName : moduleOrName.name;

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