javascript-solid-server 0.0.43 → 0.0.44

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.
@@ -137,7 +137,8 @@
137
137
  "Bash(git checkout:*)",
138
138
  "Bash(gh gist edit:*)",
139
139
  "Bash(gh gist view:*)",
140
- "Bash(./bin/git-credential-nostr acl:*)"
140
+ "Bash(./bin/git-credential-nostr acl:*)",
141
+ "Bash(DATA_ROOT=/tmp/jss-git-test/data node:*)"
141
142
  ]
142
143
  }
143
144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "javascript-solid-server",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "description": "A minimal, fast Solid server",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  import { spawn } from 'child_process';
2
2
  import { existsSync, statSync } from 'fs';
3
- import { join } from 'path';
3
+ import { join, resolve } from 'path';
4
4
 
5
5
  /**
6
6
  * Check if a URL path is a Git protocol request
@@ -85,7 +85,7 @@ export async function handleGit(request, reply) {
85
85
  dataRoot = join(dataRoot, request.podName);
86
86
  }
87
87
 
88
- const repoAbs = join(dataRoot, repoRelative);
88
+ const repoAbs = resolve(dataRoot, repoRelative);
89
89
 
90
90
  // Find git directory
91
91
  const gitInfo = findGitDir(repoAbs);
@@ -215,11 +215,6 @@ export async function handleGit(request, reply) {
215
215
  checkout.on('error', (err) => {
216
216
  console.error('Auto-checkout failed:', err.message);
217
217
  });
218
- checkout.on('close', (checkoutCode) => {
219
- if (checkoutCode !== 0) {
220
- console.error('Auto-checkout exited with code:', checkoutCode);
221
- }
222
- });
223
218
  }
224
219
 
225
220
  resolve();