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 3.0.8 to 4.0.0

4

build/src/Contracts.d.ts

@@ -8,6 +8,6 @@ /**

*/
export interface ManagerContract<Container extends any, DriverContract extends any, MappingValue extends any = DriverContract, MappingsList extends {
export interface ManagerContract<Application extends any, DriverContract extends any, MappingValue extends any = DriverContract, MappingsList extends {
[key: string]: MappingValue;
} = any> {
container: Container;
application: Application;
/**

@@ -14,0 +14,0 @@ * Returns concrete type when binding name is from the mappings list

@@ -9,6 +9,6 @@ import { ManagerContract, ExtendCallback } from './Contracts';

*/
export declare abstract class Manager<Container extends any, DriverContract extends any, MappingValue extends any = DriverContract, MappingsList extends {
export declare abstract class Manager<Application extends any, DriverContract extends any, MappingValue extends any = DriverContract, MappingsList extends {
[key: string]: MappingValue;
} = any> implements ManagerContract<Container, DriverContract, MappingValue, MappingsList> {
container: Container;
} = any> implements ManagerContract<Application, DriverContract, MappingValue, MappingsList> {
application: Application;
/**

@@ -44,3 +44,3 @@ * Mappings cache (if caching is enabled)

protected abstract getMappingDriver(mappingName: keyof MappingsList): string | undefined;
constructor(container: Container);
constructor(application: Application);
/**

@@ -47,0 +47,0 @@ * Returns the value saved inside cache, this method will check for

@@ -29,4 +29,4 @@ "use strict";

class Manager {
constructor(container) {
this.container = container;
constructor(application) {
this.application = application;
/**

@@ -33,0 +33,0 @@ * Mappings cache (if caching is enabled)

{
"name": "@poppinss/manager",
"version": "3.0.8",
"version": "4.0.0",
"description": "The builder (Manager) pattern implementation",

@@ -33,21 +33,20 @@ "main": "build/index.js",

"devDependencies": {
"@adonisjs/mrm-preset": "^2.4.0",
"@adonisjs/require-ts": "^1.1.0",
"@types/node": "^14.14.9",
"commitizen": "^4.2.2",
"@adonisjs/mrm-preset": "^3.0.0",
"@adonisjs/require-ts": "^2.0.0",
"@types/node": "^14.14.25",
"commitizen": "^4.2.3",
"cz-conventional-changelog": "^3.3.0",
"del-cli": "^3.0.1",
"doctoc": "^1.4.0",
"eslint": "^7.14.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-adonis": "^1.0.15",
"eslint-plugin-prettier": "^3.1.4",
"doctoc": "^2.0.0",
"eslint": "^7.19.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-adonis": "^1.2.0",
"eslint-plugin-prettier": "^3.3.1",
"github-label-sync": "^2.0.0",
"husky": "^4.3.0",
"husky": "^4.3.8",
"japa": "^3.1.1",
"mrm": "^2.5.12",
"np": "^7.0.0",
"npm-audit-html": "^1.5.0",
"prettier": "^2.2.0",
"typescript": "^4.1.2"
"mrm": "^2.5.15",
"np": "^7.2.0",
"prettier": "^2.2.1",
"typescript": "^4.1.3"
},

@@ -64,3 +63,3 @@ "nyc": {

"hooks": {
"pre-commit": "doctoc README.md --title='## Table of contents' && git add README.md && npm audit --production --json | ./node_modules/.bin/npm-audit-html && git add npm-audit.html",
"pre-commit": "doctoc README.md --title='## Table of contents' && git add README.md",
"commit-msg": "node ./node_modules/@adonisjs/mrm-preset/validateCommit/conventional/validate.js"

@@ -67,0 +66,0 @@ }

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

[![circleci-image]][circleci-url] [![typescript-image]][typescript-url] [![npm-image]][npm-url] [![license-image]][license-url] [![audit-report-image]][audit-report-url]
[![circleci-image]][circleci-url] [![typescript-image]][typescript-url] [![npm-image]][npm-url] [![license-image]][license-url] [![synk-image]][synk-url]

@@ -279,3 +279,3 @@ Manager pattern is a way to ease the construction of objects of similar nature. To understand it better, we will follow an imaginary example through out this document.

[license-url]: LICENSE.md 'license'
[audit-report-image]: https://img.shields.io/badge/-Audit%20Report-blueviolet?style=for-the-badge
[audit-report-url]: https://htmlpreview.github.io/?https://github.com/poppinss/manager/blob/develop/npm-audit.html 'audit-report'
[synk-image]: https://img.shields.io/snyk/vulnerabilities/github/poppinss/manager?label=Synk%20Vulnerabilities&style=for-the-badge
[synk-url]: https://snyk.io/test/github/poppinss/manager?targetFile=package.json 'synk'
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