webpack-subresource-integrity
Version:
Webpack plugin for enabling Subresource Integrity
25 lines • 777 B
TypeScript
/**
* Copyright (c) 2015-present, Waysact Pty Ltd
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/// <reference types="node" />
export declare class AssetIntegrity {
hashFuncNames: string[];
constructor(hashFuncNames: string[]);
/**
* @internal
*/
private assetIntegrity;
/**
* @internal
*/
private inverseAssetIntegrity;
update(assetKey: string, integrity: string): string;
updateHash(input: Buffer[], oldHash: string): string | undefined;
updateFromSource(assetKey: string, source: string | Buffer): string;
has(assetKey: string): boolean;
get(assetKey: string): string | undefined;
}
//# sourceMappingURL=integrity.d.ts.map