Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandbox Mode to instruct baapan not to 'require' modules outside workspace directory #29

Open
deepal opened this issue Mar 14, 2020 · 0 comments
Labels
Projects
Milestone

Comments

@deepal
Copy link
Owner

deepal commented Mar 14, 2020

The standard baapan REPL require resolves a required module path starting from the current directory's node_modules directory all the way up to the parent directories (and some additional directories) until the module is located. This behaviour is identical to the original Node REPL.

If baapan Sandbox mode is enabled, require will not try to resolve a 3rd party module's path outside the working directory. If the module is not installed in the workspace, it should try to install it to the workspace. However, this behaviour should not affect local modules (relative/absolute paths) or native modules

@deepal deepal added the feature label Mar 14, 2020
@deepal deepal added this to the v4.0.0 milestone Mar 14, 2020
@deepal deepal added this to To do in Baapan REPL via automation Mar 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Baapan REPL
  
To do
Development

No branches or pull requests

1 participant