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

nx-logger

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nx-logger - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

12

dist/log.d.ts

@@ -23,7 +23,11 @@ export declare namespace nxLogger {

readonly configuration: Config;
create?: FactoryFn;
create: SimplyFactoryFn;
on: (message: Message, callback: Function) => Function;
}
type FactoryFn = (configuration: ConfigPartial) => Log;
type FactoryCreatorFn = (configuration: Config) => FactoryFn;
type SimplyFactoryFn = (configuration: Config | Namespace) => Log;
type FactoryCreatorFn = (configuration: Config) => SimplyFactoryFn;
interface SimplyFactoryFn {
(configuration: Config): Log;
(...namespace: Namespace): Log;
}
type WriteFn = (configuration: Config) => (...messages: Message[]) => Result;

@@ -33,2 +37,2 @@ type ConfigureFn = (options?: ConfigPartial) => Config;

export declare const configure: nxLogger.ConfigureFn;
export declare const create: nxLogger.FactoryFn;
export declare const create: nxLogger.SimplyFactoryFn;

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

namespace: [],
transport: () => null,
transport: (config, messages) => console.log(`${config.namespace.join(':')} - ${messages.join(' ')}`),
tty: true,

@@ -37,8 +37,7 @@ };

};
const logFactoryCreator = configuration => config => {
const configs = mergeConfigurations(configuration, typeof config === 'string' ? {
namespace: [config],
} : config);
const logFactoryCreator = configuration => (...namespace) => {
const config = namespace[0];
const configs = mergeConfigurations(configuration, typeof config === 'string' ? { namespace } : config);
return logFactory(configs);
};
exports.create = logFactory(baseConfiguration).create;

@@ -33,3 +33,3 @@ {

"types": "dist/log.d.ts",
"version": "1.0.10"
"version": "1.0.11"
}
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