Skip to content

Commit 63dd995

Browse files
sarahdayanHaroenv
authored andcommitted
feat(createAlgoliaInsightsPlugin): use [email protected] (#1109)
1 parent a02c2c1 commit 63dd995

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/autocomplete-plugin-algolia-insights/src/__tests__/createAlgoliaInsightsPlugin.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ describe('createAlgoliaInsightsPlugin', () => {
234234
expect(document.body).toMatchInlineSnapshot(`
235235
<body>
236236
<script
237-
src="https://cdn.jsdelivr.net/npm/search-insights@2.3.0/dist/search-insights.min.js"
237+
src="https://cdn.jsdelivr.net/npm/search-insights@2.4.0/dist/search-insights.min.js"
238238
/>
239239
<form>
240240
<input />
@@ -243,7 +243,7 @@ describe('createAlgoliaInsightsPlugin', () => {
243243
`);
244244
expect((window as any).AlgoliaAnalyticsObject).toBe('aa');
245245
expect((window as any).aa).toEqual(expect.any(Function));
246-
expect((window as any).aa.version).toBe('2.3.0');
246+
expect((window as any).aa.version).toBe('2.4.0');
247247
});
248248

249249
it('notifies when the script fails to be added', () => {

packages/autocomplete-plugin-algolia-insights/src/createAlgoliaInsightsPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
} from './types';
2525

2626
const VIEW_EVENT_DELAY = 400;
27-
const ALGOLIA_INSIGHTS_VERSION = '2.3.0';
27+
const ALGOLIA_INSIGHTS_VERSION = '2.4.0';
2828
const ALGOLIA_INSIGHTS_SRC = `https://cdn.jsdelivr.net/npm/search-insights@${ALGOLIA_INSIGHTS_VERSION}/dist/search-insights.min.js`;
2929

3030
type SendViewedObjectIDsParams = {

0 commit comments

Comments
 (0)