@nesto-software/codependency
Advanced tools
Comparing version 2.3.3 to 2.4.0
@@ -28,3 +28,3 @@ // Type definitions for codependency 0.1 | ||
export function register(baseModule: NodeModule, options?: {index?: string[], strictCheck?: boolean, name?: string, pkg?: object, parentPkg?: object}): RequirePeerFunction; | ||
export function register(baseModule: NodeModule, options?: {index?: string[], strictCheck?: boolean, name?: string, pkg?: object, parentPkg?: object, parentModule?: NodeModule}): RequirePeerFunction; | ||
export function get(middlewareName: string): RequirePeerFunction; |
@@ -288,3 +288,4 @@ 'use strict'; | ||
* @param {Object} [options.pkg] The contents of the package.json file of the baseModule | ||
* @param {Object} [options.parentPkg] The contents of the package.json file of the parentModule | ||
* @param {Object} [options.parentPkg] The contents of the package.json file of the parentModule | ||
* @param {Object} [options.parentModule] The parent module | ||
* @returns {function} The generated require function. | ||
@@ -320,3 +321,3 @@ */ | ||
baseModule = baseModule.parent; | ||
baseModule = (!options.parentModule) ? baseModule.parent: options.parentModule; | ||
@@ -323,0 +324,0 @@ // find the package.json belonging to the application |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "2.3.3", | ||
"version": "2.4.0", | ||
"description": "Optional peer dependencies", | ||
@@ -17,0 +17,0 @@ "main": "index.js", |
21516
289