@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.
Files changed (2) hide show
  1. package/dist/index.js +10 -0
  2. 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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danforthh/aimprint-sync",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Sync Claude Code token logs to your Aimprint dashboard",
5
5
  "type": "commonjs",
6
6
  "bin": {