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

@node-ts/logger-core

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@node-ts/logger-core - npm Package Compare versions

Comparing version 0.0.6 to 0.0.8

4

dist/logger-module.js

@@ -10,2 +10,6 @@ "use strict";

bind(logger_symbols_1.LOGGER_SYMBOLS.LoggerFactory).to(console_logger_factory_1.ConsoleLoggerFactory);
bind(logger_symbols_1.LOGGER_SYMBOLS.Logger).toDynamicValue(context => {
const factory = context.container.get(logger_symbols_1.LOGGER_SYMBOLS.LoggerFactory);
return factory.build('Application', context.container);
});
});

@@ -12,0 +16,0 @@ }

5

package.json
{
"name": "@node-ts/logger-core",
"version": "0.0.6",
"version": "0.0.8",
"description": "Defines a logging adapter contract between consumers and implementations",

@@ -35,3 +35,4 @@ "main": "./dist/index.js",

"inversify": ">= 5.0.1"
}
},
"gitHead": "34a883673813755ae9656f946887ab640f676b62"
}
import { ContainerModule } from 'inversify'
import { LOGGER_SYMBOLS } from './logger-symbols'
import { ConsoleLoggerFactory } from './console-logger-factory'
import { LoggerFactory } from './logger-factory'

@@ -9,4 +10,8 @@ export class LoggerModule extends ContainerModule {

bind(LOGGER_SYMBOLS.LoggerFactory).to(ConsoleLoggerFactory)
bind(LOGGER_SYMBOLS.Logger).toDynamicValue(context => {
const factory = context.container.get<LoggerFactory>(LOGGER_SYMBOLS.LoggerFactory)
return factory.build('Application', context.container)
})
})
}
}

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