Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
9.2 KiB

  1. <!doctype html>
  2. <html>
  3. <title>package-lock.json</title>
  4. <meta charset="utf-8">
  5. <link rel="stylesheet" type="text/css" href="../../static/style.css">
  6. <link rel="canonical" href="https://www.npmjs.org/doc/files/package-lock.json.html">
  7. <script async=true src="../../static/toc.js"></script>
  8. <body>
  9. <div id="wrapper">
  10. <h1><a href="../files/package-lock.json.html">package-lock.json</a></h1> <p>A manifestation of the manifest</p>
  11. <h2 id="description">DESCRIPTION</h2>
  12. <p><code>package-lock.json</code> is automatically generated for any operations where npm
  13. modifies either the <code>node_modules</code> tree, or <code>package.json</code>. It describes the
  14. exact tree that was generated, such that subsequent installs are able to
  15. generate identical trees, regardless of intermediate dependency updates.</p>
  16. <p>This file is intended to be committed into source repositories, and serves
  17. various purposes:</p>
  18. <ul>
  19. <li><p>Describe a single representation of a dependency tree such that teammates, deployments, and continuous integration are guaranteed to install exactly the same dependencies.</p>
  20. </li>
  21. <li><p>Provide a facility for users to &quot;time-travel&quot; to previous states of <code>node_modules</code> without having to commit the directory itself.</p>
  22. </li>
  23. <li><p>To facilitate greater visibility of tree changes through readable source control diffs.</p>
  24. </li>
  25. <li><p>And optimize the installation process by allowing npm to skip repeated metadata resolutions for previously-installed packages.</p>
  26. </li>
  27. </ul>
  28. <p>One key detail about <code>package-lock.json</code> is that it cannot be published, and it
  29. will be ignored if found in any place other than the toplevel package. It shares
  30. a format with <a href="../files/npm-shrinkwrap.json.html">npm-shrinkwrap.json(5)</a>, which is essentially the same file, but
  31. allows publication. This is not recommended unless deploying a CLI tool or
  32. otherwise using the publication process for producing production packages.</p>
  33. <p>If both <code>package-lock.json</code> and <code>npm-shrinkwrap.json</code> are present in the root of
  34. a package, <code>package-lock.json</code> will be completely ignored.</p>
  35. <h2 id="file-format">FILE FORMAT</h2>
  36. <h3 id="name">name</h3>
  37. <p>The name of the package this is a package-lock for. This must match what&#39;s in
  38. <code>package.json</code>.</p>
  39. <h3 id="version">version</h3>
  40. <p>The version of the package this is a package-lock for. This must match what&#39;s in
  41. <code>package.json</code>.</p>
  42. <h3 id="lockfileversion">lockfileVersion</h3>
  43. <p>An integer version, starting at <code>1</code> with the version number of this document
  44. whose semantics were used when generating this <code>package-lock.json</code>.</p>
  45. <h3 id="packageintegrity">packageIntegrity</h3>
  46. <p>This is a <a href="https://w3c.github.io/webappsec/specs/subresourceintegrity/">subresource
  47. integrity</a> value
  48. created from the <code>package.json</code>. No preprocessing of the <code>package.json</code> should
  49. be done. Subresource integrity strings can be produced by modules like
  50. <a href="https://www.npmjs.com/package/ssri"><code>ssri</code></a>.</p>
  51. <h3 id="preservesymlinks">preserveSymlinks</h3>
  52. <p>Indicates that the install was done with the environment variable
  53. <code>NODE_PRESERVE_SYMLINKS</code> enabled. The installer should insist that the value of
  54. this property match that environment variable.</p>
  55. <h3 id="dependencies">dependencies</h3>
  56. <p>A mapping of package name to dependency object. Dependency objects have the
  57. following properties:</p>
  58. <h4 id="version">version</h4>
  59. <p>This is a specifier that uniquely identifies this package and should be
  60. usable in fetching a new copy of it.</p>
  61. <ul>
  62. <li>bundled dependencies: Regardless of source, this is a version number that is purely for informational purposes.</li>
  63. <li>registry sources: This is a version number. (eg, <code>1.2.3</code>)</li>
  64. <li>git sources: This is a git specifier with resolved committish. (eg, <code>git+https://example.com/foo/bar#115311855adb0789a0466714ed48a1499ffea97e</code>)</li>
  65. <li>http tarball sources: This is the URL of the tarball. (eg, <code>https://example.com/example-1.3.0.tgz</code>)</li>
  66. <li>local tarball sources: This is the file URL of the tarball. (eg <code>file:///opt/storage/example-1.3.0.tgz</code>)</li>
  67. <li>local link sources: This is the file URL of the link. (eg <code>file:libs/our-module</code>)</li>
  68. </ul>
  69. <h4 id="integrity">integrity</h4>
  70. <p>This is a <a href="https://w3c.github.io/webappsec/specs/subresourceintegrity/">Standard Subresource
  71. Integrity</a> for this
  72. resource.</p>
  73. <ul>
  74. <li>For bundled dependencies this is not included, regardless of source.</li>
  75. <li>For registry sources, this is the <code>integrity</code> that the registry provided, or if one wasn&#39;t provided the SHA1 in <code>shasum</code>.</li>
  76. <li>For git sources this is the specific commit hash we cloned from.</li>
  77. <li>For remote tarball sources this is an integrity based on a SHA512 of
  78. the file.</li>
  79. <li>For local tarball sources: This is an integrity field based on the SHA512 of the file.</li>
  80. </ul>
  81. <h4 id="resolved">resolved</h4>
  82. <ul>
  83. <li>For bundled dependencies this is not included, regardless of source.</li>
  84. <li>For registry sources this is path of the tarball relative to the registry
  85. URL. If the tarball URL isn&#39;t on the same server as the registry URL then
  86. this is a complete URL.</li>
  87. </ul>
  88. <h4 id="bundled">bundled</h4>
  89. <p>If true, this is the bundled dependency and will be installed by the parent
  90. module. When installing, this module will be extracted from the parent
  91. module during the extract phase, not installed as a separate dependency.</p>
  92. <h4 id="dev">dev</h4>
  93. <p>If true then this dependency is either a development dependency ONLY of the
  94. top level module or a transitive dependency of one. This is false for
  95. dependencies that are both a development dependency of the top level and a
  96. transitive dependency of a non-development dependency of the top level.</p>
  97. <h4 id="optional">optional</h4>
  98. <p>If true then this dependency is either an optional dependency ONLY of the
  99. top level module or a transitive dependency of one. This is false for
  100. dependencies that are both an optional dependency of the top level and a
  101. transitive dependency of a non-optional dependency of the top level.</p>
  102. <p>All optional dependencies should be included even if they&#39;re uninstallable
  103. on the current platform.</p>
  104. <h4 id="requires">requires</h4>
  105. <p>This is a mapping of module name to version. This is a list of everything
  106. this module requires, regardless of where it will be installed. The version
  107. should match via normal matching rules a dependency either in our
  108. <code>dependencies</code> or in a level higher than us.</p>
  109. <h4 id="dependencies">dependencies</h4>
  110. <p>The dependencies of this dependency, exactly as at the top level.</p>
  111. <h2 id="see-also">SEE ALSO</h2>
  112. <ul>
  113. <li><a href="../cli/npm-shrinkwrap.html">npm-shrinkwrap(1)</a></li>
  114. <li><a href="../files/npm-shrinkwrap.json.html">npm-shrinkwrap.json(5)</a></li>
  115. <li><a href="../files/npm-package-locks.html">npm-package-locks(5)</a></li>
  116. <li><a href="../files/package.json.html">package.json(5)</a></li>
  117. <li><a href="../cli/npm-install.html">npm-install(1)</a></li>
  118. </ul>
  119. </div>
  120. <table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
  121. <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr>
  122. <tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td colspan=6 style="width:60px;height:10px;background:#fff">&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td></tr>
  123. <tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2>&nbsp;</td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td></tr>
  124. <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr>
  125. <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr>
  126. <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
  127. <tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
  128. </table>
  129. <p id="footer">package-lock.json &mdash; npm@6.4.1</p>