coveo.analytics 2.23.1 → 2.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -179,9 +179,9 @@ class ReactNativeStorage implements WebStorage {
179
179
 
180
180
  // Create an API client
181
181
  const client = new CoveoAnalyticsClient({
182
- token: 'YOUR_API_KEY'
183
- runtimeEnvironment: ReactNativeRuntime({
184
- token: 'YOUR_API_KEY'
182
+ token: 'YOUR_API_KEY',
183
+ runtimeEnvironment: new ReactNativeRuntime({
184
+ token: 'YOUR_API_KEY',
185
185
  storage: new ReactNativeStorage(),
186
186
  }),
187
187
  });
@@ -189,7 +189,7 @@ const client = new CoveoAnalyticsClient({
189
189
  client.sendCustomEvent({
190
190
  eventType: 'dog',
191
191
  eventValue: 'Hello! Yes! This is Dog!',
192
- language: 'en'
192
+ language: 'en',
193
193
  });
194
194
  ```
195
195
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coveo.analytics",
3
- "version": "2.23.1",
3
+ "version": "2.23.2",
4
4
  "description": "📈 Coveo analytics client (node and browser compatible) ",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.es.js",