Socket
Socket
Sign inDemoInstall

awilix

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awilix - npm Package Compare versions

Comparing version 2.8.3 to 2.8.4

4

CHANGELOG.md
# Awilix Changelog
## 2.8.4
* Change `RegistrationOptions` typing to union of string and options
## 2.8.3

@@ -4,0 +8,0 @@

52

index.d.ts

@@ -45,5 +45,3 @@ // Type definitions for Awilix v2.2.6

*/
export declare type LoadModulesTuple =
| [string]
| [string, RegistrationOptions | string]
export declare type LoadModulesTuple = [string] | [string, RegistrationOptions]

@@ -266,26 +264,28 @@ /**

* The options when registering a class, function or value.
* @interface RegistrationOptions
* @type RegistrationOptions
*/
export interface RegistrationOptions {
/**
* Only used for inline configuration with `loadModules`.
*/
name?: string
/**
* Lifetime setting.
*/
lifetime?: Lifetime
/**
* Resolution mode.
*/
resolutionMode?: ResolutionMode
/**
* Injector function to provide additional parameters.
*/
injector?: InjectorFunction
/**
* Registration function to use.
*/
register?: (...args: any[]) => Registration
}
export type RegistrationOptions =
| string
| {
/**
* Only used for inline configuration with `loadModules`.
*/
name?: string
/**
* Lifetime setting.
*/
lifetime?: Lifetime
/**
* Resolution mode.
*/
resolutionMode?: ResolutionMode
/**
* Injector function to provide additional parameters.
*/
injector?: InjectorFunction
/**
* Registration function to use.
*/
register?: (...args: any[]) => Registration
}

@@ -292,0 +292,0 @@ /**

{
"name": "awilix",
"version": "2.8.3",
"version": "2.8.4",
"description": "Simple dependency injection container + helper utilities to facilitate wiring of modules",

@@ -5,0 +5,0 @@ "main": "lib/awilix.js",

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

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

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

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

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

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

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