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: 6b7e790d08e3c444ea463149ff993c93f45b9bb6
Choose a base ref
...
head repository: npm/pacote
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 37f24b3620ffb79a4ea55016bd87d7cc4b864c36
Choose a head ref
Loading
Showing with 8,342 additions and 10,113 deletions.
  1. +22 −3 .gitignore
  2. +8 −4 .travis.yml
  3. +0 −852 CHANGELOG.md
  4. +0 −154 CODE_OF_CONDUCT.md
  5. +0 −253 CONTRIBUTING.md
  6. +0 −7 ISSUE_TEMPLATE
  7. +14 −2 LICENSE
  8. +0 −7 PULL_REQUEST_TEMPLATE
  9. +174 −140 README.md
  10. +0 −22 appveyor.yml
  11. +0 −100 extract.js
  12. +0 −8 index.js
  13. +97 −0 lib/dir.js
  14. +0 −50 lib/extract-stream.js
  15. +0 −72 lib/fetch.js
  16. +448 −0 lib/fetcher.js
  17. +0 −71 lib/fetchers/directory.js
  18. +0 −74 lib/fetchers/file.js
  19. +0 −169 lib/fetchers/git.js
  20. +0 −3 lib/fetchers/hosted.js
  21. +0 −3 lib/fetchers/range.js
  22. +0 −39 lib/fetchers/registry/check-warning-header.js
  23. +0 −109 lib/fetchers/registry/fetch.js
  24. +0 −27 lib/fetchers/registry/index.js
  25. +0 −147 lib/fetchers/registry/manifest.js
  26. +0 −17 lib/fetchers/registry/pick-registry.js
  27. +0 −16 lib/fetchers/registry/registry-key.js
  28. +0 −85 lib/fetchers/registry/tarball.js
  29. +0 −30 lib/fetchers/remote.js
  30. +0 −3 lib/fetchers/tag.js
  31. +0 −3 lib/fetchers/version.js
  32. +92 −0 lib/file.js
  33. +0 −250 lib/finalize-manifest.js
  34. +224 −0 lib/git.js
  35. +12 −0 lib/index.js
  36. +139 −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 −218 lib/util/git.js
  41. +138 −0 lib/util/git/clone.js
  42. +33 −0 lib/util/git/env.js
  43. +5 −0 lib/util/git/index.js
  44. +133 −0 lib/util/git/lines-to-revs.js
  45. +14 −0 lib/util/git/opts.js
  46. +24 −0 lib/util/git/revs.js
  47. +17 −0 lib/util/git/should-retry.js
  48. +34 −0 lib/util/git/spawn.js
  49. +11 −0 lib/util/git/which.js
  50. +0 −24 lib/util/gunzip-maybe.js
  51. +24 −0 lib/util/is-package-bin.js
  52. +9 −0 lib/util/npm.js
  53. +0 −60 lib/util/opt-check.js
  54. +0 −44 lib/util/pack-dir.js
  55. +21 −0 lib/util/proc-log.js
  56. +0 −13 lib/util/silentlog.js
  57. +36 −0 lib/util/spawn.js
  58. +0 −38 manifest.js
  59. +1 −0 map.js
  60. +2,806 −4,719 package-lock.json
  61. +40 −64 package.json
  62. +0 −63 prefetch.js
  63. +238 −0 tap-snapshots/test-dir.js-TAP.test.js
  64. +13 −0 tap-snapshots/test-fetcher.js-TAP.test.js
  65. +13 −0 tap-snapshots/test-fetcher.js-fake-sudo-TAP.test.js
  66. +148 −0 tap-snapshots/test-file.js-TAP.test.js
  67. +153 −0 tap-snapshots/test-index.js-TAP.test.js
  68. +108 −0 tap-snapshots/test-remote.js-TAP.test.js
  69. +29 −0 tap-snapshots/test-util-npm.js-TAP.test.js
  70. +69 −0 test/dir.js
  71. +0 −87 test/directory.js
  72. +0 −54 test/docs.js
  73. +0 −64 test/extract-stream.chown.js
  74. +0 −19 test/extract-stream.compute-mode.js
  75. +0 −300 test/extract-stream.js
  76. +0 −10 test/extract.js
  77. +406 −0 test/fetcher.js
  78. +53 −0 test/file.js
  79. +0 −43 test/file.tarball.js
  80. +0 −359 test/finalize-manifest.js
  81. +0 −10 test/fixtures/README.md
  82. BIN test/fixtures/abbrev-1.1.1.tgz
  83. +36 −0 test/fixtures/abbrev-manifest-file.json
  84. +61 −0 test/fixtures/abbrev-manifest-full.json
  85. +15 −0 test/fixtures/abbrev-manifest-min.json
  86. +48 −0 test/fixtures/abbrev-packument-file.json
  87. +459 −0 test/fixtures/abbrev-packument-full.json
  88. +99 −0 test/fixtures/abbrev-packument-min.json
  89. +46 −0 test/fixtures/abbrev/LICENSE
  90. +23 −0 test/fixtures/abbrev/README.md
  91. +61 −0 test/fixtures/abbrev/abbrev.js
  92. +21 −0 test/fixtures/abbrev/package.json
  93. BIN test/fixtures/bin-good.tgz
  94. +1 −0 test/fixtures/bin-good/package.json
  95. +5 −0 test/fixtures/bin-good/script.js
  96. BIN test/fixtures/bin-missing.tgz
  97. +1 −0 test/fixtures/bin-missing/package.json
  98. BIN test/fixtures/bin-object.tgz
  99. +1 −0 test/fixtures/bin-object/package.json
  100. +5 −0 test/fixtures/bin-object/script.js
  101. BIN test/fixtures/bin-string.tgz
  102. +1 −0 test/fixtures/bin-string/package.json
  103. +5 −0 test/fixtures/bin-string/script.js
  104. BIN test/fixtures/has-shrinkwrap.tgz
  105. BIN test/fixtures/no-shrinkwrap.tgz
  106. +1 −0 test/fixtures/prepare-script/.gitignore
  107. +2 −0 test/fixtures/prepare-script/.npmignore
  108. +46 −0 test/fixtures/prepare-script/node_modules/abbrev/LICENSE
  109. +23 −0 test/fixtures/prepare-script/node_modules/abbrev/README.md
  110. +61 −0 test/fixtures/prepare-script/node_modules/abbrev/abbrev.js
  111. +21 −0 test/fixtures/prepare-script/node_modules/abbrev/package.json
  112. +14 −0 test/fixtures/prepare-script/package-lock.json
  113. +12 −0 test/fixtures/prepare-script/package.json
  114. +14 −0 test/fixtures/prepare-script/prepare.js
  115. BIN test/fixtures/special-characters.tgz
  116. BIN test/fixtures/weird-pkg.tgz
  117. +362 −0 test/git.js
  118. +0 −7 test/git.tarball.js
  119. +37 −0 test/index.js
  120. +0 −8 test/manifest.js
  121. +0 −44 test/pack-dir.js
  122. +0 −144 test/prefetch.js
  123. +0 −7 test/registry-key.js
  124. +0 −5 test/registry.extract.js
  125. +126 −0 test/registry.js
  126. +0 −122 test/registry.manifest.cache.js
  127. +0 −396 test/registry.manifest.js
  128. +0 −69 test/registry.manifest.shrinkwrap.js
  129. +0 −130 test/registry.tarball.js
  130. +135 −0 test/remote.js
  131. +0 −47 test/remote.tarball.js
  132. +0 −28 test/strict.js
  133. +0 −21 test/util.git.js
  134. +32 −0 test/util/cache-dir.js
  135. +0 −13 test/util/from-string.js
  136. +0 −47 test/util/git.js
  137. +186 −0 test/util/git/clone.js
  138. +10 −0 test/util/git/env.js
  139. +7 −0 test/util/git/index.js
  140. +106 −0 test/util/git/lines-to-revs.js
  141. +19 −0 test/util/git/opts.js
  142. +97 −0 test/util/git/revs.js
  143. +6 −0 test/util/git/should-retry.js
  144. +76 −0 test/util/git/spawn.js
  145. +24 −0 test/util/git/which.js
  146. +8 −0 test/util/is-package-bin.js
  147. +0 −49 test/util/mock-tarball.js
  148. +24 −0 test/util/npm.js
  149. +11 −0 test/util/proc-log.js
  150. +106 −0 test/util/spawn.js
  151. +0 −47 test/util/test-dir.js
  152. +0 −14 test/util/tnock.js
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
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
language: node_js
sudo: false

script:
- npm test -- -t3600

node_js:
- "7"
- "6"
- "4"
- node
- 12
- 10
- 8
Loading