You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accept a express instance as optional parameter in the feathersExpress.
Current
// link: https://github.com/feathersjs/feathers/blob/master/packages/express/lib/index.js// importsfunctionfeathersExpress(feathersApp){if(!feathersApp){returnexpress();}if(typeoffeathersApp.setup!=='function'){thrownewError('@feathersjs/express requires a valid Feathers application instance');}if(!feathersApp.version||feathersApp.version<'3.0.0'){thrownewError(`@feathersjs/express requires an instance of a Feathers application version 3.x or later (got ${feathersApp.version||'unknown'})`);}constexpressApp=express();// do something}
Proposed
// importsfunctionfeathersExpress(feathersApp,expressApp){if(!feathersApp){returnexpressApp||express();}if(typeoffeathersApp.setup!=='function'){thrownewError('@feathersjs/express requires a valid Feathers application instance');}if(!feathersApp.version||feathersApp.version<'3.0.0'){thrownewError(`@feathersjs/express requires an instance of a Feathers application version 3.x or later (got ${feathersApp.version||'unknown'})`);}expressApp=expressApp||express();// do something}
The text was updated successfully, but these errors were encountered:
Hi @daffl this is part of the Quasar + Feathers conversation with @nothingismagick. @TobyMosque is on the team and this change is toward integrating the dev experience.
Accept a express instance as optional parameter in the feathersExpress.
Current
Proposed
The text was updated successfully, but these errors were encountered: