@squadbase/vite-server 0.1.17-dev.a107052 → 0.1.17-dev.a9ddcfa
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/cli/index.js +1 -15
- package/dist/connectors/google-analytics.js +1 -15
- package/dist/index.js +1 -15
- package/dist/main.js +1 -15
- package/dist/vite-plugin.js +1 -15
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -8262,22 +8262,8 @@ activeUsers, sessions, screenPageViews, bounceRate, averageSessionDuration, conv
|
|
|
8262
8262
|
error: "google-analytics: missing service account key"
|
|
8263
8263
|
};
|
|
8264
8264
|
}
|
|
8265
|
-
const propertyId = params[parameters13.propertyId.slug];
|
|
8266
|
-
if (!propertyId) {
|
|
8267
|
-
try {
|
|
8268
|
-
const sa = decodeServiceAccount(keyJsonBase64);
|
|
8269
|
-
await getAccessToken(sa);
|
|
8270
|
-
return { success: true };
|
|
8271
|
-
} catch (err) {
|
|
8272
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
8273
|
-
return { success: false, error: msg };
|
|
8274
|
-
}
|
|
8275
|
-
}
|
|
8276
8265
|
try {
|
|
8277
|
-
const res = await dataFetch(
|
|
8278
|
-
params,
|
|
8279
|
-
`/properties/${propertyId}/metadata`
|
|
8280
|
-
);
|
|
8266
|
+
const res = await dataFetch(params, `/metadata`);
|
|
8281
8267
|
if (!res.ok) {
|
|
8282
8268
|
const body = await res.text().catch(() => res.statusText);
|
|
8283
8269
|
return {
|
|
@@ -1072,22 +1072,8 @@ activeUsers, sessions, screenPageViews, bounceRate, averageSessionDuration, conv
|
|
|
1072
1072
|
error: "google-analytics: missing service account key"
|
|
1073
1073
|
};
|
|
1074
1074
|
}
|
|
1075
|
-
const propertyId = params[parameters.propertyId.slug];
|
|
1076
|
-
if (!propertyId) {
|
|
1077
|
-
try {
|
|
1078
|
-
const sa = decodeServiceAccount(keyJsonBase64);
|
|
1079
|
-
await getAccessToken(sa);
|
|
1080
|
-
return { success: true };
|
|
1081
|
-
} catch (err) {
|
|
1082
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
1083
|
-
return { success: false, error: msg };
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
1075
|
try {
|
|
1087
|
-
const res = await dataFetch(
|
|
1088
|
-
params,
|
|
1089
|
-
`/properties/${propertyId}/metadata`
|
|
1090
|
-
);
|
|
1076
|
+
const res = await dataFetch(params, `/metadata`);
|
|
1091
1077
|
if (!res.ok) {
|
|
1092
1078
|
const body = await res.text().catch(() => res.statusText);
|
|
1093
1079
|
return {
|
package/dist/index.js
CHANGED
|
@@ -8197,22 +8197,8 @@ activeUsers, sessions, screenPageViews, bounceRate, averageSessionDuration, conv
|
|
|
8197
8197
|
error: "google-analytics: missing service account key"
|
|
8198
8198
|
};
|
|
8199
8199
|
}
|
|
8200
|
-
const propertyId = params[parameters13.propertyId.slug];
|
|
8201
|
-
if (!propertyId) {
|
|
8202
|
-
try {
|
|
8203
|
-
const sa = decodeServiceAccount(keyJsonBase64);
|
|
8204
|
-
await getAccessToken(sa);
|
|
8205
|
-
return { success: true };
|
|
8206
|
-
} catch (err) {
|
|
8207
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
8208
|
-
return { success: false, error: msg };
|
|
8209
|
-
}
|
|
8210
|
-
}
|
|
8211
8200
|
try {
|
|
8212
|
-
const res = await dataFetch(
|
|
8213
|
-
params,
|
|
8214
|
-
`/properties/${propertyId}/metadata`
|
|
8215
|
-
);
|
|
8201
|
+
const res = await dataFetch(params, `/metadata`);
|
|
8216
8202
|
if (!res.ok) {
|
|
8217
8203
|
const body = await res.text().catch(() => res.statusText);
|
|
8218
8204
|
return {
|
package/dist/main.js
CHANGED
|
@@ -8197,22 +8197,8 @@ activeUsers, sessions, screenPageViews, bounceRate, averageSessionDuration, conv
|
|
|
8197
8197
|
error: "google-analytics: missing service account key"
|
|
8198
8198
|
};
|
|
8199
8199
|
}
|
|
8200
|
-
const propertyId = params[parameters13.propertyId.slug];
|
|
8201
|
-
if (!propertyId) {
|
|
8202
|
-
try {
|
|
8203
|
-
const sa = decodeServiceAccount(keyJsonBase64);
|
|
8204
|
-
await getAccessToken(sa);
|
|
8205
|
-
return { success: true };
|
|
8206
|
-
} catch (err) {
|
|
8207
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
8208
|
-
return { success: false, error: msg };
|
|
8209
|
-
}
|
|
8210
|
-
}
|
|
8211
8200
|
try {
|
|
8212
|
-
const res = await dataFetch(
|
|
8213
|
-
params,
|
|
8214
|
-
`/properties/${propertyId}/metadata`
|
|
8215
|
-
);
|
|
8201
|
+
const res = await dataFetch(params, `/metadata`);
|
|
8216
8202
|
if (!res.ok) {
|
|
8217
8203
|
const body = await res.text().catch(() => res.statusText);
|
|
8218
8204
|
return {
|
package/dist/vite-plugin.js
CHANGED
|
@@ -8198,22 +8198,8 @@ activeUsers, sessions, screenPageViews, bounceRate, averageSessionDuration, conv
|
|
|
8198
8198
|
error: "google-analytics: missing service account key"
|
|
8199
8199
|
};
|
|
8200
8200
|
}
|
|
8201
|
-
const propertyId = params[parameters13.propertyId.slug];
|
|
8202
|
-
if (!propertyId) {
|
|
8203
|
-
try {
|
|
8204
|
-
const sa = decodeServiceAccount(keyJsonBase64);
|
|
8205
|
-
await getAccessToken(sa);
|
|
8206
|
-
return { success: true };
|
|
8207
|
-
} catch (err) {
|
|
8208
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
8209
|
-
return { success: false, error: msg };
|
|
8210
|
-
}
|
|
8211
|
-
}
|
|
8212
8201
|
try {
|
|
8213
|
-
const res = await dataFetch(
|
|
8214
|
-
params,
|
|
8215
|
-
`/properties/${propertyId}/metadata`
|
|
8216
|
-
);
|
|
8202
|
+
const res = await dataFetch(params, `/metadata`);
|
|
8217
8203
|
if (!res.ok) {
|
|
8218
8204
|
const body = await res.text().catch(() => res.statusText);
|
|
8219
8205
|
return {
|