@uniformdev/context 20.1.0 → 20.2.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/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +4 -9
- package/dist/index.js +4 -9
- package/dist/index.mjs +4 -9
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
@@ -193,14 +193,15 @@ type InsightsEndpoint = {
|
|
193
193
|
type: 'api';
|
194
194
|
host: string;
|
195
195
|
apiKey: string;
|
196
|
+
projectId: string;
|
196
197
|
} | {
|
197
198
|
type: 'proxy';
|
198
199
|
path: string;
|
199
200
|
apiKey?: string;
|
201
|
+
projectId?: string;
|
200
202
|
};
|
201
203
|
type EnableUniformInsightsOptions = {
|
202
204
|
endpoint: InsightsEndpoint;
|
203
|
-
projectId: string;
|
204
205
|
};
|
205
206
|
declare const enableUniformInsights: (options: EnableUniformInsightsOptions) => ContextPlugin;
|
206
207
|
|
package/dist/index.d.ts
CHANGED
@@ -193,14 +193,15 @@ type InsightsEndpoint = {
|
|
193
193
|
type: 'api';
|
194
194
|
host: string;
|
195
195
|
apiKey: string;
|
196
|
+
projectId: string;
|
196
197
|
} | {
|
197
198
|
type: 'proxy';
|
198
199
|
path: string;
|
199
200
|
apiKey?: string;
|
201
|
+
projectId?: string;
|
200
202
|
};
|
201
203
|
type EnableUniformInsightsOptions = {
|
202
204
|
endpoint: InsightsEndpoint;
|
203
|
-
projectId: string;
|
204
205
|
};
|
205
206
|
declare const enableUniformInsights: (options: EnableUniformInsightsOptions) => ContextPlugin;
|
206
207
|
|
package/dist/index.esm.js
CHANGED
@@ -2093,12 +2093,10 @@ var getBasePayload = () => {
|
|
2093
2093
|
href: window.location.href
|
2094
2094
|
};
|
2095
2095
|
};
|
2096
|
-
var createInsightsClient = ({
|
2097
|
-
endpoint,
|
2098
|
-
projectId
|
2099
|
-
}) => {
|
2096
|
+
var createInsightsClient = ({ endpoint }) => {
|
2100
2097
|
let endpointUrl;
|
2101
2098
|
const apiKey = endpoint.apiKey;
|
2099
|
+
const projectId = endpoint.projectId;
|
2102
2100
|
if (endpoint.type === "api") {
|
2103
2101
|
const url = new URL(endpoint.host);
|
2104
2102
|
url.pathname = "/v0/events";
|
@@ -2264,12 +2262,10 @@ var generatePageId = () => {
|
|
2264
2262
|
};
|
2265
2263
|
var createInsights = ({
|
2266
2264
|
endpoint,
|
2267
|
-
projectId,
|
2268
2265
|
sessionDurationSeconds = 30 * 60
|
2269
2266
|
}) => {
|
2270
2267
|
const client = createInsightsClient({
|
2271
|
-
endpoint
|
2272
|
-
projectId
|
2268
|
+
endpoint
|
2273
2269
|
});
|
2274
2270
|
const storage = createInsightsStorage();
|
2275
2271
|
let storageData = void 0;
|
@@ -2367,8 +2363,7 @@ var createInsights = ({
|
|
2367
2363
|
};
|
2368
2364
|
var enableUniformInsights = (options) => {
|
2369
2365
|
const insights = createInsights({
|
2370
|
-
endpoint: options.endpoint
|
2371
|
-
projectId: options.projectId
|
2366
|
+
endpoint: options.endpoint
|
2372
2367
|
});
|
2373
2368
|
let previousUrl = void 0;
|
2374
2369
|
return {
|
package/dist/index.js
CHANGED
@@ -2182,12 +2182,10 @@ var getBasePayload = () => {
|
|
2182
2182
|
href: window.location.href
|
2183
2183
|
};
|
2184
2184
|
};
|
2185
|
-
var createInsightsClient = ({
|
2186
|
-
endpoint,
|
2187
|
-
projectId
|
2188
|
-
}) => {
|
2185
|
+
var createInsightsClient = ({ endpoint }) => {
|
2189
2186
|
let endpointUrl;
|
2190
2187
|
const apiKey = endpoint.apiKey;
|
2188
|
+
const projectId = endpoint.projectId;
|
2191
2189
|
if (endpoint.type === "api") {
|
2192
2190
|
const url = new URL(endpoint.host);
|
2193
2191
|
url.pathname = "/v0/events";
|
@@ -2353,12 +2351,10 @@ var generatePageId = () => {
|
|
2353
2351
|
};
|
2354
2352
|
var createInsights = ({
|
2355
2353
|
endpoint,
|
2356
|
-
projectId,
|
2357
2354
|
sessionDurationSeconds = 30 * 60
|
2358
2355
|
}) => {
|
2359
2356
|
const client = createInsightsClient({
|
2360
|
-
endpoint
|
2361
|
-
projectId
|
2357
|
+
endpoint
|
2362
2358
|
});
|
2363
2359
|
const storage = createInsightsStorage();
|
2364
2360
|
let storageData = void 0;
|
@@ -2456,8 +2452,7 @@ var createInsights = ({
|
|
2456
2452
|
};
|
2457
2453
|
var enableUniformInsights = (options) => {
|
2458
2454
|
const insights = createInsights({
|
2459
|
-
endpoint: options.endpoint
|
2460
|
-
projectId: options.projectId
|
2455
|
+
endpoint: options.endpoint
|
2461
2456
|
});
|
2462
2457
|
let previousUrl = void 0;
|
2463
2458
|
return {
|
package/dist/index.mjs
CHANGED
@@ -2093,12 +2093,10 @@ var getBasePayload = () => {
|
|
2093
2093
|
href: window.location.href
|
2094
2094
|
};
|
2095
2095
|
};
|
2096
|
-
var createInsightsClient = ({
|
2097
|
-
endpoint,
|
2098
|
-
projectId
|
2099
|
-
}) => {
|
2096
|
+
var createInsightsClient = ({ endpoint }) => {
|
2100
2097
|
let endpointUrl;
|
2101
2098
|
const apiKey = endpoint.apiKey;
|
2099
|
+
const projectId = endpoint.projectId;
|
2102
2100
|
if (endpoint.type === "api") {
|
2103
2101
|
const url = new URL(endpoint.host);
|
2104
2102
|
url.pathname = "/v0/events";
|
@@ -2264,12 +2262,10 @@ var generatePageId = () => {
|
|
2264
2262
|
};
|
2265
2263
|
var createInsights = ({
|
2266
2264
|
endpoint,
|
2267
|
-
projectId,
|
2268
2265
|
sessionDurationSeconds = 30 * 60
|
2269
2266
|
}) => {
|
2270
2267
|
const client = createInsightsClient({
|
2271
|
-
endpoint
|
2272
|
-
projectId
|
2268
|
+
endpoint
|
2273
2269
|
});
|
2274
2270
|
const storage = createInsightsStorage();
|
2275
2271
|
let storageData = void 0;
|
@@ -2367,8 +2363,7 @@ var createInsights = ({
|
|
2367
2363
|
};
|
2368
2364
|
var enableUniformInsights = (options) => {
|
2369
2365
|
const insights = createInsights({
|
2370
|
-
endpoint: options.endpoint
|
2371
|
-
projectId: options.projectId
|
2366
|
+
endpoint: options.endpoint
|
2372
2367
|
});
|
2373
2368
|
let previousUrl = void 0;
|
2374
2369
|
return {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/context",
|
3
|
-
"version": "20.
|
3
|
+
"version": "20.2.0",
|
4
4
|
"description": "Uniform Context core package",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
@@ -68,5 +68,5 @@
|
|
68
68
|
"publishConfig": {
|
69
69
|
"access": "public"
|
70
70
|
},
|
71
|
-
"gitHead": "
|
71
|
+
"gitHead": "7ca16ddb9f03fffe82a0252d53790fcaa12ebd3c"
|
72
72
|
}
|