Skip to content

Commit

Permalink
Mark internal methods as such
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheid committed Jan 19, 2021
1 parent b9fb1cc commit b7e6371
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webpack-subresource-integrity/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ export class SubresourceIntegrityPlugin {
}
}

/**
* @internal
*/
private updateAssetIntegrity(assetKey: string, integrity: string) {
if (!this.assetIntegrity.has(assetKey)) {
this.assetIntegrity.set(assetKey, integrity);
Expand Down Expand Up @@ -457,6 +460,9 @@ export class SubresourceIntegrityPlugin {
compilation.compiler.options.output.crossOriginLoading || "anonymous";
};

/**
* @internal
*/
private isEnabled(compilation: Compilation): boolean {
if (this.options.enabled === "auto") {
return compilation.options.mode !== "development";
Expand Down

0 comments on commit b7e6371

Please sign in to comment.