sandboxbox 3.0.23 → 3.0.24

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/package.json +1 -1
  2. package/utils/sandbox.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandboxbox",
3
- "version": "3.0.23",
3
+ "version": "3.0.24",
4
4
  "description": "Lightweight process containment sandbox for CLI tools - Playwright, Claude Code, and more. Pure Node.js, no dependencies.",
5
5
  "type": "module",
6
6
  "main": "cli.js",
package/utils/sandbox.js CHANGED
@@ -143,7 +143,7 @@ export function createSandbox(projectDir) {
143
143
  // Show hook information in verbose mode
144
144
  const settingsPath = join(hostClaudeDir, 'settings.json');
145
145
  if (existsSync(settingsPath)) {
146
- const settings = JSON.parse(require('fs').readFileSync(settingsPath, 'utf8'));
146
+ const settings = JSON.parse(readFileSync(settingsPath, 'utf8'));
147
147
  if (settings.hooks) {
148
148
  console.log('✅ Linked to host Claude settings directory');
149
149
  console.log('📋 Hooks configured:');
@@ -188,7 +188,7 @@ export function createSandbox(projectDir) {
188
188
  cpSync(hostFile, sandboxFile);
189
189
  if (VERBOSE_OUTPUT && file === 'settings.json') {
190
190
  // Show hook information for copied settings
191
- const settings = JSON.parse(require('fs').readFileSync(hostFile, 'utf8'));
191
+ const settings = JSON.parse(readFileSync(hostFile, 'utf8'));
192
192
  if (settings.hooks) {
193
193
  console.log('📋 Hooks configured in copied settings:');
194
194
  Object.keys(settings.hooks).forEach(hookType => {
@@ -207,7 +207,7 @@ export function createSandbox(projectDir) {
207
207
  }
208
208
  if (VERBOSE_OUTPUT && file === 'settings.json') {
209
209
  // Show hook information for existing settings
210
- const settings = JSON.parse(require('fs').readFileSync(hostFile, 'utf8'));
210
+ const settings = JSON.parse(readFileSync(hostFile, 'utf8'));
211
211
  if (settings.hooks) {
212
212
  console.log('📋 Hooks configured in existing settings:');
213
213
  Object.keys(settings.hooks).forEach(hookType => {