diff --git a/src/lib/InstantSearch.ts b/src/lib/InstantSearch.ts index decd807cab..27a2743783 100644 --- a/src/lib/InstantSearch.ts +++ b/src/lib/InstantSearch.ts @@ -21,7 +21,7 @@ import { MiddlewareDefinition, } from '../types'; import hasDetectedInsightsClient from './utils/detect-insights-client'; -import { createRouter, RouterProps } from '../middleware/createRouter'; +import { createRouter, RouterProps } from '../middlewares/createRouter'; const withUsage = createDocumentationMessageGenerator({ name: 'instantsearch', diff --git a/src/lib/main.ts b/src/lib/main.ts index 343cb57d91..f5555209c6 100644 --- a/src/lib/main.ts +++ b/src/lib/main.ts @@ -4,7 +4,7 @@ import version from './version'; import * as connectors from '../connectors/index'; import * as widgets from '../widgets/index'; import * as helpers from '../helpers/index'; -import * as middleware from '../middleware/index'; +import * as middlewares from '../middlewares/index'; import * as routers from './routers/index'; import * as stateMappings from './stateMappings/index'; @@ -40,6 +40,6 @@ instantsearch.createInfiniteHitsSessionStorageCache = createInfiniteHitsSessionS instantsearch.highlight = helpers.highlight; instantsearch.snippet = helpers.snippet; instantsearch.insights = helpers.insights; -instantsearch.middleware = middleware; +instantsearch.middlewares = middlewares; export default instantsearch; diff --git a/src/middleware/createRouter.ts b/src/middlewares/createRouter.ts similarity index 100% rename from src/middleware/createRouter.ts rename to src/middlewares/createRouter.ts diff --git a/src/middleware/index.ts b/src/middlewares/index.ts similarity index 100% rename from src/middleware/index.ts rename to src/middlewares/index.ts diff --git a/src/middleware/insights.ts b/src/middlewares/insights.ts similarity index 100% rename from src/middleware/insights.ts rename to src/middlewares/insights.ts