Skip to content

Commit

Permalink
rename middleware to middlewares
Browse files Browse the repository at this point in the history
  • Loading branch information
eunjae-lee committed Aug 24, 2020
1 parent ad0dafb commit f34170d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/InstantSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/lib/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f34170d

Please sign in to comment.