hatch-surf/node_modules/next/dist/build/turborepo-access-trace/result.js
Riley Zhang df378d33ef
Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Merge GitHub main into Gitea repo (allow unrelated histories)
Resolved conflicts by taking GitHub versions for:
- .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml

Kept deploy.sh updated to:
- Pull from GitHub (primary source)
- Push to Gitea (push-mirror)
- Build from site/ directory (GitHub structure)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-25 05:20:46 +02:00

51 lines
1.8 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "TurborepoAccessTraceResult", {
enumerable: true,
get: function() {
return TurborepoAccessTraceResult;
}
});
class TurborepoAccessTraceResult {
constructor(envVars = new Set([]), addresses = [], fsPaths = new Set([])){
this.envVars = envVars;
this.addresses = addresses;
this.fsPaths = fsPaths;
}
/**
* Merge another `TurborepoAccessTraceResult` into this one, mutating this `TurborepoAccessTraceResult`.
*/ merge(other) {
other.envVars.forEach((envVar)=>this.envVars.add(envVar));
other.fsPaths.forEach((path)=>this.fsPaths.add(path));
this.addresses.push(...other.addresses);
return this;
}
/**
* Serialize this `TurborepoAccessTraceResult` into a serializable object. Used for passing
* the `TurborepoAccessTraceResult` between workers where Sets are not serializable.
*/ serialize() {
return {
fs: Array.from(this.fsPaths).map(String),
addresses: this.addresses,
envVars: Array.from(this.envVars).map(String)
};
}
/**
* Squash this `TurborepoAccessTraceResult` into a public trace object that can be written to a file
*/ toPublicTrace() {
return {
network: this.addresses.length > 0,
envVarKeys: Array.from(this.envVars).map(String),
filePaths: Array.from(this.fsPaths).map(String)
};
}
/**
* Create an `TurborepoAccessTraceResult` from a serialized `SerializableTurborepoAccessTraceResult`
*/ static fromSerialized(serialized) {
return new TurborepoAccessTraceResult(new Set(serialized.envVars), serialized.addresses, new Set(serialized.fs));
}
}
//# sourceMappingURL=result.js.map