@danforthh/aimprint-sync 1.0.0 → 1.0.1
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.js +10 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -132,6 +132,16 @@ if (!WORKER_URL || !SYNC_TOKEN) {
|
|
|
132
132
|
console.error(" SYNC_TOKEN=your-sync-token");
|
|
133
133
|
process.exit(1);
|
|
134
134
|
}
|
|
135
|
+
try {
|
|
136
|
+
const u = new URL(WORKER_URL);
|
|
137
|
+
if (u.protocol !== "https:" && u.hostname !== "localhost" && u.hostname !== "127.0.0.1") {
|
|
138
|
+
console.error(`Error: WORKER_URL must use https:// (got ${u.protocol})`);
|
|
139
|
+
process.exit(1);
|
|
140
|
+
}
|
|
141
|
+
} catch {
|
|
142
|
+
console.error("Error: WORKER_URL is not a valid URL");
|
|
143
|
+
process.exit(1);
|
|
144
|
+
}
|
|
135
145
|
var CLAUDE_PROJECTS_DIR = import_node_path2.default.join(import_node_os2.default.homedir(), ".claude", "projects");
|
|
136
146
|
var REAL_PROJECTS_DIR = (() => {
|
|
137
147
|
try {
|