Don't warn for loading a wrong version package more than once

This commit is contained in:
Grahame Grieve 2023-08-04 18:45:23 +10:00
parent 4727bc57ff
commit e237f289bd
1 changed files with 10 additions and 0 deletions

View File

@ -297,6 +297,7 @@ public class NpmPackage {
private Map<String, Object> userData;
private boolean minimalMemory;
private int size;
private boolean warned = false;
/**
* Constructor
@ -1375,4 +1376,13 @@ public class NpmPackage {
this.size = size;
}
public boolean isWarned() {
return warned;
}
public void setWarned(boolean warned) {
this.warned = warned;
}
}