Skip to content

Commit 9ff6eff

Browse files
format and remove dead code
1 parent c728064 commit 9ff6eff

File tree

5 files changed

+8
-16
lines changed

5 files changed

+8
-16
lines changed

crates/common/src/settings.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ pub struct Settings {
287287
pub publisher: Publisher,
288288
#[validate(nested)]
289289
pub prebid: Prebid,
290+
#[serde(default)]
290291
#[validate(nested)]
291292
pub synthetic: Synthetic,
292293
#[serde(default)]

crates/common/src/tsjs.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,3 @@ pub fn clear_mock_integration_bundles() {
132132
.expect("mock bundle lock should not be poisoned")
133133
.clear();
134134
}
135-
136-
/// `/static` URL for the permutive SDK (proxied from Permutive CDN).
137-
pub fn permutive_sdk_script_src() -> String {
138-
"/static/tsjs=tsjs-permutive-sdk.js".to_string()
139-
}
140-
141-
/// `/static` URL for the permutive bundle (placeholder for future implementation).
142-
pub fn permutive_script_src() -> String {
143-
"/static/tsjs=tsjs-permutive.min.js".to_string()
144-
}

crates/js/lib/src/ext/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ import { installPrebidJsShim } from './prebidjs';
22

33
// Execute immediately on import; safe no-op if pbjs is not present.
44
void installPrebidJsShim();
5-

crates/js/lib/src/permutive/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function installPermutiveShim() {
4747
log.info('Installing Permutive shim - rewriting API hosts to first-party domain');
4848

4949
const host = window.location.host;
50-
const protocol = window.location.protocol === "https:" ? "https" : "http";
50+
const protocol = window.location.protocol === 'https:' ? 'https' : 'http';
5151

5252
permutive.config.apiHost = host + '/permutive/api';
5353
permutive.config.apiProtocol = protocol;
@@ -70,16 +70,16 @@ function installPermutiveShim() {
7070
/**
7171
* Wait for Permutive SDK to be available before installing shim.
7272
* Polls for SDK availability with a maximum number of attempts.
73-
*
73+
*
7474
* @param callback - Function to call when SDK is available
7575
* @param maxAttempts - Maximum number of polling attempts (default: 50)
7676
*/
7777
function waitForPermutiveSDK(callback: () => void, maxAttempts = 50) {
7878
let attempts = 0;
79-
79+
8080
const check = () => {
8181
attempts++;
82-
82+
8383
// Check if permutive global exists and is initialized with config
8484
if (typeof permutive !== 'undefined' && permutive?.config) {
8585
log.info('Permutive SDK detected, installing shim');
@@ -91,7 +91,7 @@ function waitForPermutiveSDK(callback: () => void, maxAttempts = 50) {
9191
log.warn('Permutive SDK not detected after', maxAttempts * 50, 'ms');
9292
}
9393
};
94-
94+
9595
check();
9696
}
9797

fastly.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ build = """
2222
tls_cert_path = "./localhost+2.pem"
2323
tls_key_path = "./localhost+2-key.pem"
2424

25+
[local_server.backends]
26+
2527
[local_server.kv_stores]
2628
[[local_server.kv_stores.counter_store]]
2729
key = "placeholder"

0 commit comments

Comments
 (0)