Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: npm/pacote
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0e3409170ab8b26e66e184f6190e22a6350e7c04
Choose a base ref
...
head repository: npm/pacote
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ed57e5c1c24113e045908eb99fbeb0df331177c3
Choose a head ref
Loading
Showing with 8,197 additions and 11,388 deletions.
  1. +0 −3 .github/FUNDING.yml
  2. +22 −3 .gitignore
  3. +8 −10 .travis.yml
  4. +0 −1,387 CHANGELOG.md
  5. +0 −154 CODE_OF_CONDUCT.md
  6. +0 −253 CONTRIBUTING.md
  7. +0 −7 ISSUE_TEMPLATE
  8. +12 −18 LICENSE
  9. +0 −7 PULL_REQUEST_TEMPLATE
  10. +197 −253 README.md
  11. +0 −25 appveyor.yml
  12. +0 −99 extract.js
  13. +0 −10 index.js
  14. +137 −0 lib/bin.js
  15. +98 −0 lib/dir.js
  16. +0 −89 lib/extract-stream.js
  17. +0 −82 lib/fetch.js
  18. +461 −0 lib/fetcher.js
  19. +0 −24 lib/fetchers/alias.js
  20. +0 −88 lib/fetchers/directory.js
  21. +0 −78 lib/fetchers/file.js
  22. +0 −178 lib/fetchers/git.js
  23. +0 −3 lib/fetchers/hosted.js
  24. +0 −3 lib/fetchers/range.js
  25. +0 −32 lib/fetchers/registry/index.js
  26. +0 −81 lib/fetchers/registry/manifest.js
  27. +0 −92 lib/fetchers/registry/packument.js
  28. +0 −102 lib/fetchers/registry/tarball.js
  29. +0 −34 lib/fetchers/remote.js
  30. +0 −3 lib/fetchers/tag.js
  31. +0 −3 lib/fetchers/version.js
  32. +93 −0 lib/file.js
  33. +0 −256 lib/finalize-manifest.js
  34. +241 −0 lib/git.js
  35. +12 −0 lib/index.js
  36. +140 −0 lib/registry.js
  37. +70 −0 lib/remote.js
  38. +12 −0 lib/util/cache-dir.js
  39. +0 −6 lib/util/cache-key.js
  40. +0 −17 lib/util/finished.js
  41. +0 −274 lib/util/git.js
  42. +138 −0 lib/util/git/clone.js
  43. +33 −0 lib/util/git/env.js
  44. +5 −0 lib/util/git/index.js
  45. +133 −0 lib/util/git/lines-to-revs.js
  46. +14 −0 lib/util/git/opts.js
  47. +24 −0 lib/util/git/revs.js
  48. +17 −0 lib/util/git/should-retry.js
  49. +34 −0 lib/util/git/spawn.js
  50. +11 −0 lib/util/git/which.js
  51. +24 −0 lib/util/is-package-bin.js
  52. +9 −0 lib/util/npm.js
  53. +0 −48 lib/util/opt-check.js
  54. +0 −44 lib/util/pack-dir.js
  55. +4 −6 lib/util/{proclog.js → proc-log.js}
  56. +0 −15 lib/util/read-json.js
  57. +36 −0 lib/util/spawn.js
  58. +0 −135 lib/with-tarball-stream.js
  59. +0 −38 manifest.js
  60. +1 −0 map.js
  61. +2,019 −4,136 package-lock.json
  62. +43 −69 package.json
  63. +0 −29 packument.js
  64. +0 −64 prefetch.js
  65. +260 −0 tap-snapshots/test-bin.js-TAP.test.js
  66. +246 −0 tap-snapshots/test-dir.js-TAP.test.js
  67. +14 −0 tap-snapshots/test-fetcher.js-TAP.test.js
  68. +14 −0 tap-snapshots/test-fetcher.js-fake-sudo-TAP.test.js
  69. +154 −0 tap-snapshots/test-file.js-TAP.test.js
  70. +158 −0 tap-snapshots/test-index.js-TAP.test.js
  71. +110 −0 tap-snapshots/test-remote.js-TAP.test.js
  72. +29 −0 tap-snapshots/test-util-npm.js-TAP.test.js
  73. +0 −67 tarball.js
  74. +122 −0 test/bin.js
  75. +69 −0 test/dir.js
  76. +0 −88 test/directory.js
  77. +0 −54 test/docs.js
  78. +0 −80 test/extract-stream.chown.js
  79. +0 −19 test/extract-stream.compute-mode.js
  80. +0 −290 test/extract-stream.js
  81. +0 −70 test/extract.js
  82. +406 −0 test/fetcher.js
  83. +53 −0 test/file.js
  84. +0 −38 test/file.tarball.js
  85. +0 −365 test/finalize-manifest.js
  86. +0 −9 test/fixtures/README.md
  87. BIN test/fixtures/abbrev-1.1.1.tgz
  88. +36 −0 test/fixtures/abbrev-manifest-file.json
  89. +61 −0 test/fixtures/abbrev-manifest-full.json
  90. +15 −0 test/fixtures/abbrev-manifest-min.json
  91. +48 −0 test/fixtures/abbrev-packument-file.json
  92. +459 −0 test/fixtures/abbrev-packument-full.json
  93. +99 −0 test/fixtures/abbrev-packument-min.json
  94. +46 −0 test/fixtures/abbrev/LICENSE
  95. +23 −0 test/fixtures/abbrev/README.md
  96. +61 −0 test/fixtures/abbrev/abbrev.js
  97. +21 −0 test/fixtures/abbrev/package.json
  98. BIN test/fixtures/bin-good.tgz
  99. +1 −0 test/fixtures/bin-good/package.json
  100. +5 −0 test/fixtures/bin-good/script.js
  101. BIN test/fixtures/bin-missing.tgz
  102. +1 −0 test/fixtures/bin-missing/package.json
  103. BIN test/fixtures/bin-object.tgz
  104. +1 −0 test/fixtures/bin-object/package.json
  105. +5 −0 test/fixtures/bin-object/script.js
  106. BIN test/fixtures/bin-string.tgz
  107. +1 −0 test/fixtures/bin-string/package.json
  108. +5 −0 test/fixtures/bin-string/script.js
  109. BIN test/fixtures/has-shrinkwrap.tgz
  110. BIN test/fixtures/no-shrinkwrap.tgz
  111. +1 −0 test/fixtures/prepare-script/.gitignore
  112. +2 −0 test/fixtures/prepare-script/.npmignore
  113. +46 −0 test/fixtures/prepare-script/node_modules/abbrev/LICENSE
  114. +23 −0 test/fixtures/prepare-script/node_modules/abbrev/README.md
  115. +61 −0 test/fixtures/prepare-script/node_modules/abbrev/abbrev.js
  116. +21 −0 test/fixtures/prepare-script/node_modules/abbrev/package.json
  117. +14 −0 test/fixtures/prepare-script/package-lock.json
  118. +12 −0 test/fixtures/prepare-script/package.json
  119. +14 −0 test/fixtures/prepare-script/prepare.js
  120. BIN test/fixtures/weird-pkg.tgz
  121. +0 −41 test/git.extract.js
  122. +405 −0 test/git.js
  123. +0 −58 test/git.manifest.js
  124. +0 −5 test/git.tarball.js
  125. +37 −0 test/index.js
  126. +0 −8 test/manifest.js
  127. +0 −44 test/pack-dir.js
  128. +0 −144 test/prefetch.js
  129. +0 −48 test/read-json.js
  130. +0 −5 test/registry.extract.js
  131. +129 −0 test/registry.js
  132. +0 −121 test/registry.manifest.cache.js
  133. +0 −438 test/registry.manifest.js
  134. +0 −69 test/registry.manifest.shrinkwrap.js
  135. +0 −269 test/registry.packument.js
  136. +0 −202 test/registry.tarball.js
  137. +135 −0 test/remote.js
  138. +0 −43 test/remote.tarball.js
  139. +0 −30 test/strict.js
  140. +0 −303 test/tarball.js
  141. +0 −27 test/util.git.js
  142. +32 −0 test/util/cache-dir.js
  143. +0 −13 test/util/from-string.js
  144. +0 −74 test/util/git.js
  145. +196 −0 test/util/git/clone.js
  146. +10 −0 test/util/git/env.js
  147. +7 −0 test/util/git/index.js
  148. +106 −0 test/util/git/lines-to-revs.js
  149. +19 −0 test/util/git/opts.js
  150. +102 −0 test/util/git/revs.js
  151. +6 −0 test/util/git/should-retry.js
  152. +76 −0 test/util/git/spawn.js
  153. +24 −0 test/util/git/which.js
  154. +8 −0 test/util/is-package-bin.js
  155. +0 −47 test/util/mock-tarball.js
  156. +24 −0 test/util/npm.js
  157. +11 −0 test/util/proc-log.js
  158. +105 −0 test/util/spawn.js
  159. +0 −47 test/util/test-dir.js
  160. +0 −14 test/util/tnock.js
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

25 changes: 22 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/node_modules
/.nyc_output
/test/cache
# ignore most things, include some others
/*
/.*

!bin/
!lib/
!docs/
!package.json
!package-lock.json
!README.md
!CONTRIBUTING.md
!LICENSE
!CHANGELOG.md
!example/
!scripts/
!tap-snapshots/
!test/
!.travis.yml
!.gitignore
!.gitattributes
!map.js
!index.js
18 changes: 8 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
language: node_js
before_install:
npm i -g npm@latest
install:
npm ci

script:
- npm test -- -t3600

node_js:
- "10"
- "9"
- "8"
- "6"
os:
- linux
- node
- 12
- 10
- 8
Loading