diff --git a/package-lock.json b/package-lock.json index 8ee3f4a..abaa99c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "async-app", - "version": "4.8.0", + "version": "4.8.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "async-app", - "version": "4.8.0", + "version": "4.8.1", "license": "MIT", "dependencies": { "express": "^4.16.3", diff --git a/package.json b/package.json index 92085ff..fa06965 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "async-app", - "version": "4.8.0", + "version": "4.8.1", "description": "An express wrapper for handling async middlewares, order middlewares, schema validator, and other stuff", "type": "commonjs", "main": "dist/index.js", diff --git a/src/create-app.ts b/src/create-app.ts index d006b8b..108b016 100644 --- a/src/create-app.ts +++ b/src/create-app.ts @@ -113,13 +113,16 @@ const asyncAppProvider: AppProvider = < let appProvider: AppProvider = asyncAppProvider; -export const resetProvider = () => (appProvider = asyncAppProvider); +export const resetProvider = () => { + appProvider = asyncAppProvider; +}; -export const setProvider = (provider: AppProvider) => - (appProvider = provider); +export const setProvider = (provider: AppProvider) => { + appProvider = provider; +}; export const createApp = ( opts?: Opts, -) => appProvider(opts); +): App => appProvider(opts); export default createApp;