(pattern: string, manifest: Manifest)
| 101 | } |
| 102 | |
| 103 | addPattern(pattern: string, manifest: Manifest) { |
| 104 | this.resolver.addPattern(pattern, manifest); |
| 105 | |
| 106 | this.patterns.push(pattern); |
| 107 | |
| 108 | const shrunk = this.lockfile.getLocked(pattern); |
| 109 | if (shrunk && shrunk.permissions) { |
| 110 | for (const [key, perm] of entries(shrunk.permissions)) { |
| 111 | this.setPermission(key, perm); |
| 112 | } |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | addOptional(optional: boolean) { |
| 117 | if (this.optional == null) { |
no test coverage detected