What is the integrity property inside yarn.lock file?

14,975

the integrity was used to verify that versions and hashed values of the package contents in the project’s package.json match those in yarn’s or package's lock file. This helps to verify that the package dependencies have not been altered.

you can check this in yarn check --integrity

Share:
14,975

Related videos on Youtube

Stav Alfi
Author by

Stav Alfi

Streams In Depth Lambda Expressions In Depth Introduction to Git

Updated on June 04, 2022

Comments

  • Stav Alfi
    Stav Alfi almost 2 years

    For some reason, the command yarn is modifying the file yarn.lock with a new property to every dependency: integrity.

    Git diff:

    +integrity sha1-zgBCgEX7t9AxwWp7+DV4nxU2arI=

    I couldn't find documentation about it so my question is - What is it?