Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "fount", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A source from which dependencies flow", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -108,3 +108,3 @@ # Fount | ||
```javascript | ||
fount.register( 'calculator', function() { function( x, y ) { return x + y; } } ); | ||
fount.register( 'calculator', function() { return function( x, y ) { return x + y; }; } ); | ||
``` | ||
@@ -145,6 +145,6 @@ | ||
// where 'a' and 'b' have been registered | ||
fount.inject( [ 'a', 'b' ], function( a, b) { ... } ); | ||
fount.inject( [ 'a', 'b' ], function( a, b ) { ... } ); | ||
// within custom scope -- requires a and/or b to have been registered with 'scoped' lifecycle | ||
fount.inject( [ 'a', 'b' ], function( a, b) { ... }, 'myScope' ); | ||
fount.inject( [ 'a', 'b' ], function( a, b ) { ... }, 'myScope' ); | ||
@@ -151,0 +151,0 @@ // using keys across multiple containers |
@@ -205,5 +205,7 @@ var should = require( 'should' ); | ||
var result; | ||
before( function() { | ||
before( function( done ) { | ||
fount.inject( [ 'eStatic' ], function( e ) { | ||
result = e; | ||
} ).then( function () { | ||
done(); | ||
} ); | ||
@@ -210,0 +212,0 @@ } ); |
@@ -33,3 +33,3 @@ var _ = require( 'lodash' ); | ||
} ); | ||
promise = whenFn.apply( fn, args ); | ||
return whenFn.apply( fn, args ); | ||
} | ||
@@ -36,0 +36,0 @@ |
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
22318
472