@poppinss/manager
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -14,3 +14,2 @@ import { ManagerContract } from './contracts'; | ||
protected abstract getMappingDriver(mappingName: string): string | undefined; | ||
protected wrapDriverResponse(value: DriverContract): ReturnValueContract; | ||
constructor($container: any); | ||
@@ -21,2 +20,3 @@ private _getFromCache; | ||
private _makeDriver; | ||
protected wrapDriverResponse(_mappingName: string, value: DriverContract): ReturnValueContract; | ||
use<K extends keyof MappingsList>(name: K): MappingsList[K]; | ||
@@ -23,0 +23,0 @@ use(name: string): ReturnValueContract; |
@@ -9,5 +9,2 @@ "use strict"; | ||
} | ||
wrapDriverResponse(value) { | ||
return value; | ||
} | ||
_getFromCache(name) { | ||
@@ -22,3 +19,3 @@ return this._mappingsCache.get(name) || null; | ||
_makeExtendedDriver(mappingName, driver, config) { | ||
const value = this.wrapDriverResponse(this._extendedDrivers[driver](this.$container, mappingName, config)); | ||
const value = this.wrapDriverResponse(mappingName, this._extendedDrivers[driver](this.$container, mappingName, config)); | ||
this._saveToCache(mappingName, value); | ||
@@ -32,6 +29,9 @@ return value; | ||
} | ||
const value = this.wrapDriverResponse(this[driverCreatorName](mappingName, config)); | ||
const value = this.wrapDriverResponse(mappingName, this[driverCreatorName](mappingName, config)); | ||
this._saveToCache(mappingName, value); | ||
return value; | ||
} | ||
wrapDriverResponse(_mappingName, value) { | ||
return value; | ||
} | ||
use(name) { | ||
@@ -38,0 +38,0 @@ name = (name || this.getDefaultMappingName()); |
{ | ||
"name": "@poppinss/manager", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "The builder (Manager) pattern implementation", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16529