Stephen Young
Stephen Young
It lazy loads by default; there's no way to disable it. ```js let count = 0; bottle.factory('SoLazy', container => { count++; return {}; }); console.log(count); // 0 bottle.container.SoLazy; console.log(count); //...
If I follow you correctly, you want to be able to inject additional services into a decorator; basically the decorator would have it's own dependencies. Is that correct?
This makes sense to me; sounds like a good addition. Probably should add the feature to middleware as well. Possibly also add injection to factories, but not sure.
@mwillbanks Yeah, I'm going to get started on the new Bottle version soon; I'll include this feature. I hadn't considered putting the injectables before the final function, but I like...
FIFY: http://jsfiddle.net/ha04broe/7/
@Anshul-Batra I'm confused... if the property were undefined, your parseInt would be `NaN` anyway.
@yyx990803 The link in your announcement is relative, causing it to break.
@Mat-Moo Need a reproduction in order to debug it.
I think this might be resolved by https://github.com/sashabaranov/go-openai/pull/248 I was getting the exceeded quota error which would cause this library to panic with `error, json: cannot unmarshal number into Go...
This is very interesting. It would probably require a lookup table of "what-depends-on-what." When Bottle resolves the `Beer` service for the first time via `bottle.container.Beer`, it deletes the provider and...