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: 992a14e88b8ab6174cd3ea95a86eea64f07f479c
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 9,441 additions and 8,417 deletions.
  1. +22 −3 .gitignore
  2. +8 −4 .travis.yml
  3. +0 −723 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. +201 −127 README.md
  10. +0 −22 appveyor.yml
  11. +0 −87 extract.js
  12. +0 −8 index.js
  13. +137 −0 lib/bin.js
  14. +98 −0 lib/dir.js
  15. +0 −61 lib/extract-stream.js
  16. +0 −72 lib/fetch.js
  17. +461 −0 lib/fetcher.js
  18. +0 −71 lib/fetchers/directory.js
  19. +0 −49 lib/fetchers/file.js
  20. +0 −169 lib/fetchers/git.js
  21. +0 −3 lib/fetchers/hosted.js
  22. +0 −3 lib/fetchers/range.js
  23. +0 −39 lib/fetchers/registry/check-warning-header.js
  24. +0 −108 lib/fetchers/registry/fetch.js
  25. +0 −27 lib/fetchers/registry/index.js
  26. +0 −147 lib/fetchers/registry/manifest.js
  27. +0 −17 lib/fetchers/registry/pick-registry.js
  28. +0 −16 lib/fetchers/registry/registry-key.js
  29. +0 −85 lib/fetchers/registry/tarball.js
  30. +0 −30 lib/fetchers/remote.js
  31. +0 −3 lib/fetchers/tag.js
  32. +0 −3 lib/fetchers/version.js
  33. +93 −0 lib/file.js
  34. +0 −255 lib/finalize-manifest.js
  35. +241 −0 lib/git.js
  36. +12 −0 lib/index.js
  37. +140 −0 lib/registry.js
  38. +70 −0 lib/remote.js
  39. +12 −0 lib/util/cache-dir.js
  40. +0 −6 lib/util/cache-key.js
  41. +0 −213 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. +0 −24 lib/util/gunzip-maybe.js
  52. +24 −0 lib/util/is-package-bin.js
  53. +9 −0 lib/util/npm.js
  54. +0 −60 lib/util/opt-check.js
  55. +0 −43 lib/util/pack-dir.js
  56. +21 −0 lib/util/proc-log.js
  57. +0 −13 lib/util/silentlog.js
  58. +36 −0 lib/util/spawn.js
  59. +0 −38 manifest.js
  60. +1 −0 map.js
  61. +3,237 −3,255 package-lock.json
  62. +46 −65 package.json
  63. +0 −63 prefetch.js
  64. +260 −0 tap-snapshots/test-bin.js-TAP.test.js
  65. +246 −0 tap-snapshots/test-dir.js-TAP.test.js
  66. +14 −0 tap-snapshots/test-fetcher.js-TAP.test.js
  67. +14 −0 tap-snapshots/test-fetcher.js-fake-sudo-TAP.test.js
  68. +154 −0 tap-snapshots/test-file.js-TAP.test.js
  69. +158 −0 tap-snapshots/test-index.js-TAP.test.js
  70. +110 −0 tap-snapshots/test-remote.js-TAP.test.js
  71. +29 −0 tap-snapshots/test-util-npm.js-TAP.test.js
  72. +122 −0 test/bin.js
  73. +69 −0 test/dir.js
  74. +0 −87 test/directory.js
  75. +0 −54 test/docs.js
  76. +0 −65 test/extract-stream.chown.js
  77. +0 −283 test/extract-stream.js
  78. +0 −10 test/extract.js
  79. +406 −0 test/fetcher.js
  80. +53 −0 test/file.js
  81. +0 −43 test/file.tarball.js
  82. +0 −330 test/finalize-manifest.js
  83. +0 −10 test/fixtures/README.md
  84. BIN test/fixtures/abbrev-1.1.1.tgz
  85. +36 −0 test/fixtures/abbrev-manifest-file.json
  86. +61 −0 test/fixtures/abbrev-manifest-full.json
  87. +15 −0 test/fixtures/abbrev-manifest-min.json
  88. +48 −0 test/fixtures/abbrev-packument-file.json
  89. +459 −0 test/fixtures/abbrev-packument-full.json
  90. +99 −0 test/fixtures/abbrev-packument-min.json
  91. +46 −0 test/fixtures/abbrev/LICENSE
  92. +23 −0 test/fixtures/abbrev/README.md
  93. +61 −0 test/fixtures/abbrev/abbrev.js
  94. +21 −0 test/fixtures/abbrev/package.json
  95. BIN test/fixtures/bin-good.tgz
  96. +1 −0 test/fixtures/bin-good/package.json
  97. +5 −0 test/fixtures/bin-good/script.js
  98. BIN test/fixtures/bin-missing.tgz
  99. +1 −0 test/fixtures/bin-missing/package.json
  100. BIN test/fixtures/bin-object.tgz
  101. +1 −0 test/fixtures/bin-object/package.json
  102. +5 −0 test/fixtures/bin-object/script.js
  103. BIN test/fixtures/bin-string.tgz
  104. +1 −0 test/fixtures/bin-string/package.json
  105. +5 −0 test/fixtures/bin-string/script.js
  106. BIN test/fixtures/has-shrinkwrap.tgz
  107. BIN test/fixtures/no-shrinkwrap.tgz
  108. +1 −0 test/fixtures/prepare-script/.gitignore
  109. +2 −0 test/fixtures/prepare-script/.npmignore
  110. +46 −0 test/fixtures/prepare-script/node_modules/abbrev/LICENSE
  111. +23 −0 test/fixtures/prepare-script/node_modules/abbrev/README.md
  112. +61 −0 test/fixtures/prepare-script/node_modules/abbrev/abbrev.js
  113. +21 −0 test/fixtures/prepare-script/node_modules/abbrev/package.json
  114. +14 −0 test/fixtures/prepare-script/package-lock.json
  115. +12 −0 test/fixtures/prepare-script/package.json
  116. +14 −0 test/fixtures/prepare-script/prepare.js
  117. BIN test/fixtures/special-characters.tgz
  118. BIN test/fixtures/weird-pkg.tgz
  119. +405 −0 test/git.js
  120. +0 −7 test/git.tarball.js
  121. +37 −0 test/index.js
  122. +0 −8 test/manifest.js
  123. +0 −46 test/pack-dir.js
  124. +0 −144 test/prefetch.js
  125. +0 −7 test/registry-key.js
  126. +0 −5 test/registry.extract.js
  127. +129 −0 test/registry.js
  128. +0 −122 test/registry.manifest.cache.js
  129. +0 −396 test/registry.manifest.js
  130. +0 −69 test/registry.manifest.shrinkwrap.js
  131. +0 −130 test/registry.tarball.js
  132. +135 −0 test/remote.js
  133. +0 −47 test/remote.tarball.js
  134. +0 −28 test/strict.js
  135. +0 −21 test/util.git.js
  136. +32 −0 test/util/cache-dir.js
  137. +0 −13 test/util/from-string.js
  138. +0 −47 test/util/git.js
  139. +196 −0 test/util/git/clone.js
  140. +10 −0 test/util/git/env.js
  141. +7 −0 test/util/git/index.js
  142. +106 −0 test/util/git/lines-to-revs.js
  143. +19 −0 test/util/git/opts.js
  144. +102 −0 test/util/git/revs.js
  145. +6 −0 test/util/git/should-retry.js
  146. +76 −0 test/util/git/spawn.js
  147. +24 −0 test/util/git/which.js
  148. +8 −0 test/util/is-package-bin.js
  149. +0 −49 test/util/mock-tarball.js
  150. +24 −0 test/util/npm.js
  151. +11 −0 test/util/proc-log.js
  152. +105 −0 test/util/spawn.js
  153. +0 −47 test/util/test-dir.js
  154. +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