Socket
Socket
Sign inDemoInstall

@poppinss/manager

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@poppinss/manager - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

19

build/src/contracts.d.ts

@@ -11,1 +11,20 @@ export interface ManagerContract<DriverContract extends any, DriversList extends {

}
export declare type DriverNode<Implementation, Config> = {
config: Config;
implementation: Implementation;
};
export declare type DriverNodesList<Implementation, Config> = {
[key: string]: DriverNode<Implementation, Config>;
};
export declare type ExtractDriversImpl<List extends DriverNodesList<any, any>> = {
[P in keyof List]: List[P]['implementation'];
};
export declare type ExtractDefaultDriverImpl<List extends DriverNodesList<any, any>, Config extends {
driver: keyof List;
}> = List[Config['driver']]['implementation'];
export declare type ExtractDriversConfig<List extends DriverNodesList<any, any>> = {
[P in keyof List]?: List[P]['config'];
};
export declare type ExtractDefaultDriverConfig<List extends DriverNodesList<any, any>, Config extends {
driver: keyof List;
}> = List[Config['driver']]['config'];

2

package.json
{
"name": "@poppinss/manager",
"version": "1.1.0",
"version": "1.1.1",
"description": "The builder (Manager) pattern implementation",

@@ -5,0 +5,0 @@ "scripts": {

@@ -22,2 +22,3 @@ <div align="center">

- [Autocomplete drivers list](#autocomplete-drivers-list)
- [Drivers types](#drivers-types)
- [API Docs](#api-docs)

@@ -149,2 +150,7 @@ - [Maintainers](#maintainers)

## Drivers types
Along with the runtime code to extend and fetch drivers, we also ship the types to deal with static side of things as well.
Since the process of having extensible drivers with type information requires some complex types structure, we recommend you to look at [example/index.ts](example/index.ts) file for a complete example.
## API Docs

@@ -168,1 +174,2 @@ Following are the autogenerated files via Typedoc

[license-image]: https://img.shields.io/aur/license/pac.svg?style=for-the-badge
`
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