Skip to content

Commit

Permalink
fix init dependencyAutoWarning=false & update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tchapacan committed Jan 8, 2024
1 parent 9a8165a commit ec106f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/unsafe-import.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ We analyze and trace several ways to require in Node.js (with CJS):
- require.main.require
- require.mainModule.require
- require.resolve
- `const XX = eval('require')('XX');` (dangerous import using eval)

## Example

Expand Down
1 change: 1 addition & 0 deletions src/SourceFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class SourceFile {
inTryStatement = false;
hasDictionaryString = false;
hasPrefixedIdentifiers = false;
dependencyAutoWarning = false;
varkinds = { var: 0, let: 0, const: 0 };
idtypes = { assignExpr: 0, property: 0, variableDeclarator: 0, functionDeclaration: 0 };
counter = {
Expand Down

0 comments on commit ec106f2

Please sign in to comment.