UNPKG

webpack-subresource-integrity

Version:
25 lines 777 B
/** * 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