Skip to content

Conversation

@aetherwalker
Copy link

No description provided.

When requiring a file, if the filesystem doesn't have the file path
specified, a missing file error is thrown by "require-like". This adds
an option "ignoreMissing" that skips the error with a simple try/catch
to allow the sandboxing to continue.
@nomiddlename
Copy link

I extended this to work with modules that are required by sandboxed modules as well. Take a look at this commit for the details. Not sure of the best way to incorporate that into this PR, @aetherwalker . Anyway, my fork is published to NPM as @log4js-node/sandboxed-module, but I'd be happy to remove if this change is merged - in the meantime feel free to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants