MCPcopy
hub / github.com/webpack/webpack / update

Method update

test/configCases/output/hash-function/webpack.config.js:20–29  ·  view source on GitHub ↗

* Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding} * @abstract * @param {string | Buffer} data data * @param {Encoding=} inputEncoding data encoding * @returns {this} updated hash

(data, inputEncoding)

Source from the content-addressed store, hash-verified

18 * @returns {this} updated hash
19 */
20 update(data, inputEncoding) {
21 this._hash.update(
22 /** @type {string} */
23 (data),
24 /** @type {Encoding} */
25 (inputEncoding)
26 );
27
28 return this;
29 }
30
31 /**
32 * Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}

Callers 10

testFunction · 0.45
unicodeTestFunction · 0.45
hFunction · 0.45
loader.jsFile · 0.45
index.jsFile · 0.45
toScriptTagMethod · 0.45
applyMethod · 0.45
import.jsFile · 0.45
require.jsFile · 0.45
validateFunction · 0.45

Calls

no outgoing calls

Tested by 1

testFunction · 0.36