@ogre-tools/injectable
Advanced tools
Comparing version 1.4.1 to 1.4.2
{ | ||
"name": "@ogre-tools/injectable", | ||
"private": false, | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "A brutal dependency injection container", | ||
@@ -25,3 +25,3 @@ "repository": { | ||
}, | ||
"gitHead": "b81b2b92b74798d94c8b38a249ab56e435d6c020", | ||
"gitHead": "78746cbc745e83c905ec1c20e17988a11c9c5bc4", | ||
"bugs": { | ||
@@ -28,0 +28,0 @@ "url": "https://github.com/ogre-works/ogre-tools/issues" |
@@ -11,6 +11,7 @@ import conforms from 'lodash/fp/conforms'; | ||
import invoke from 'lodash/fp/invoke'; | ||
import lifecycleEnum from './lifecycleEnum'; | ||
import map from 'lodash/fp/map'; | ||
import noop from 'lodash/fp/noop'; | ||
import reject from 'lodash/fp/reject'; | ||
import { pipeline } from '@ogre-tools/fp'; | ||
import reject from 'lodash/fp/reject'; | ||
import lifecycleEnum from './lifecycleEnum'; | ||
@@ -103,2 +104,3 @@ export default (...listOfGetRequireContexts) => { | ||
...originalInjectable, | ||
getDependencies: noop, | ||
causesSideEffects: false, | ||
@@ -105,0 +107,0 @@ instantiate: () => overrideValue, |
@@ -160,2 +160,6 @@ import createContainer from './createContainer'; | ||
const childInjectable = { | ||
getDependencies: () => { | ||
throw Error('Should not come here'); | ||
}, | ||
instantiate: () => 'irrelevant', | ||
@@ -162,0 +166,0 @@ }; |
Sorry, the diff of this file is too big to display
204348
1042