coveo.analytics 2.31.0 → 2.32.0
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.
- package/dist/browser.mjs +1 -1
- package/dist/coveoua.browser.js +1 -1
- package/dist/coveoua.browser.js.map +1 -1
- package/dist/coveoua.debug.js +1 -1
- package/dist/coveoua.debug.js.map +1 -1
- package/dist/coveoua.js +1 -1
- package/dist/coveoua.js.map +1 -1
- package/dist/definitions/react-native/index.d.ts +0 -1
- package/dist/definitions/version.d.ts +1 -1
- package/dist/library.cjs +1 -1
- package/dist/library.es.js +1 -1
- package/dist/library.js +1 -1
- package/dist/library.mjs +1 -1
- package/dist/react-native.es.js +1 -1
- package/package.json +5 -5
- package/src/react-native/index.ts +3 -0
- package/src/react-native/react-native.spec.ts +9 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const libVersion = "2.
|
|
1
|
+
export declare const libVersion = "2.32.0";
|
package/dist/library.cjs
CHANGED
|
@@ -669,7 +669,7 @@ function v5(value, namespace, buf, offset) {
|
|
|
669
669
|
v5.DNS = DNS;
|
|
670
670
|
v5.URL = URL$2;
|
|
671
671
|
|
|
672
|
-
var libVersion = "2.
|
|
672
|
+
var libVersion = "2.32.0";
|
|
673
673
|
|
|
674
674
|
var getFormattedLocation = function (location) {
|
|
675
675
|
return "".concat(location.protocol, "//").concat(location.hostname).concat(location.pathname.indexOf('/') === 0 ? location.pathname : "/".concat(location.pathname)).concat(location.search);
|
package/dist/library.es.js
CHANGED
|
@@ -524,7 +524,7 @@ function v5(value, namespace, buf, offset) {
|
|
|
524
524
|
v5.DNS = DNS;
|
|
525
525
|
v5.URL = URL$1;
|
|
526
526
|
|
|
527
|
-
const libVersion = "2.
|
|
527
|
+
const libVersion = "2.32.0";
|
|
528
528
|
|
|
529
529
|
const getFormattedLocation = (location) => `${location.protocol}//${location.hostname}${location.pathname.indexOf('/') === 0 ? location.pathname : `/${location.pathname}`}${location.search}`;
|
|
530
530
|
|
package/dist/library.js
CHANGED
|
@@ -669,7 +669,7 @@ function v5(value, namespace, buf, offset) {
|
|
|
669
669
|
v5.DNS = DNS;
|
|
670
670
|
v5.URL = URL$2;
|
|
671
671
|
|
|
672
|
-
var libVersion = "2.
|
|
672
|
+
var libVersion = "2.32.0";
|
|
673
673
|
|
|
674
674
|
var getFormattedLocation = function (location) {
|
|
675
675
|
return "".concat(location.protocol, "//").concat(location.hostname).concat(location.pathname.indexOf('/') === 0 ? location.pathname : "/".concat(location.pathname)).concat(location.search);
|
package/dist/library.mjs
CHANGED
|
@@ -667,7 +667,7 @@ function v5(value, namespace, buf, offset) {
|
|
|
667
667
|
v5.DNS = DNS;
|
|
668
668
|
v5.URL = URL$2;
|
|
669
669
|
|
|
670
|
-
var libVersion = "2.
|
|
670
|
+
var libVersion = "2.32.0";
|
|
671
671
|
|
|
672
672
|
var getFormattedLocation = function (location) {
|
|
673
673
|
return "".concat(location.protocol, "//").concat(location.hostname).concat(location.pathname.indexOf('/') === 0 ? location.pathname : "/".concat(location.pathname)).concat(location.search);
|
package/dist/react-native.es.js
CHANGED
|
@@ -596,7 +596,7 @@ const addPageViewToHistory = (pageViewValue) => __awaiter(void 0, void 0, void 0
|
|
|
596
596
|
yield store.addElementAsync(historyElement);
|
|
597
597
|
});
|
|
598
598
|
|
|
599
|
-
const libVersion = "2.
|
|
599
|
+
const libVersion = "2.32.0";
|
|
600
600
|
|
|
601
601
|
const getFormattedLocation = (location) => `${location.protocol}//${location.hostname}${location.pathname.indexOf('/') === 0 ? location.pathname : `/${location.pathname}`}${location.search}`;
|
|
602
602
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coveo.analytics",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.32.0",
|
|
4
4
|
"description": "📈 Coveo analytics client (node and browser compatible) ",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Coveo",
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"types": "dist/definitions/coveoua/library.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"cross-fetch": "3.2.0",
|
|
31
|
-
"react-native-get-random-values": "1.11.0",
|
|
32
31
|
"uuid": "14.0.1"
|
|
33
32
|
},
|
|
34
33
|
"devDependencies": {
|
|
@@ -39,16 +38,17 @@
|
|
|
39
38
|
"@rollup/plugin-replace": "6.0.3",
|
|
40
39
|
"@rollup/plugin-terser": "1.0.0",
|
|
41
40
|
"@rollup/plugin-typescript": "12.3.0",
|
|
42
|
-
"@types/node": "24.
|
|
41
|
+
"@types/node": "24.13.3",
|
|
43
42
|
"fetch-mock": "9.11.0",
|
|
44
43
|
"jsdom": "28.1.0",
|
|
45
44
|
"node-fetch": "2.7.0",
|
|
46
|
-
"
|
|
45
|
+
"react-native-get-random-values": "1.11.0",
|
|
46
|
+
"rollup": "4.62.4",
|
|
47
47
|
"rollup-plugin-copy": "3.5.0",
|
|
48
48
|
"rollup-plugin-serve": "1.1.1",
|
|
49
49
|
"tslib": "2.8.1",
|
|
50
50
|
"typescript": "6.0.3",
|
|
51
|
-
"vitest": "4.1.
|
|
51
|
+
"vitest": "4.1.10"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "rollup -c",
|
|
@@ -4,4 +4,7 @@ export {
|
|
|
4
4
|
ReactNativeStorage,
|
|
5
5
|
} from './react-native-runtime';
|
|
6
6
|
export * from '../coveoua/headless';
|
|
7
|
+
// Rollup inlines this polyfill into dist/react-native.es.js, so it is a devDependency rather than a
|
|
8
|
+
// dependency: shipping it would drag the whole React Native toolchain into every consumer install.
|
|
9
|
+
// The import must stay here for the polyfill to end up in the bundle.
|
|
7
10
|
import 'react-native-get-random-values';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import {readFileSync} from 'node:fs';
|
|
2
|
+
import {resolve} from 'node:path';
|
|
1
3
|
import {vi} from 'vitest';
|
|
2
4
|
import CoveoAnalyticsClient from '../client/analytics';
|
|
3
5
|
import {ReactNativeRuntime} from './react-native-runtime';
|
|
@@ -29,3 +31,10 @@ describe('ReactNativeRuntime', () => {
|
|
|
29
31
|
expect(runtimeEnvironment.storage.setItem).toHaveBeenCalled();
|
|
30
32
|
});
|
|
31
33
|
});
|
|
34
|
+
|
|
35
|
+
describe('react-native entrypoint', () => {
|
|
36
|
+
it('should import the getRandomValues polyfill so that Rollup inlines it into the bundle', () => {
|
|
37
|
+
const entrypoint = readFileSync(resolve(process.cwd(), 'src/react-native/index.ts'), 'utf8');
|
|
38
|
+
expect(entrypoint).toContain("import 'react-native-get-random-values';");
|
|
39
|
+
});
|
|
40
|
+
});
|