step-node-agent 3.17.2 → 3.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (466) hide show
  1. package/node_modules/asn1/Jenkinsfile +65 -0
  2. package/node_modules/asn1/package.json +5 -5
  3. package/node_modules/body-parser/HISTORY.md +15 -0
  4. package/node_modules/body-parser/README.md +25 -12
  5. package/node_modules/body-parser/package.json +23 -23
  6. package/node_modules/bytes/History.md +5 -0
  7. package/node_modules/bytes/Readme.md +42 -16
  8. package/node_modules/bytes/index.js +5 -1
  9. package/node_modules/bytes/package.json +9 -8
  10. package/node_modules/content-disposition/HISTORY.md +5 -0
  11. package/node_modules/content-disposition/README.md +3 -9
  12. package/node_modules/content-disposition/index.js +1 -1
  13. package/node_modules/content-disposition/package.json +16 -16
  14. package/node_modules/cookie/HISTORY.md +5 -0
  15. package/node_modules/cookie/README.md +4 -0
  16. package/node_modules/cookie/index.js +5 -1
  17. package/node_modules/cookie/package.json +11 -11
  18. package/node_modules/express/History.md +33 -0
  19. package/node_modules/express/Readme.md +8 -5
  20. package/node_modules/express/lib/application.js +1 -1
  21. package/node_modules/express/lib/request.js +1 -1
  22. package/node_modules/express/lib/response.js +16 -11
  23. package/node_modules/express/lib/router/index.js +6 -0
  24. package/node_modules/express/lib/utils.js +2 -6
  25. package/node_modules/express/package.json +26 -25
  26. package/node_modules/graceful-fs/package.json +4 -4
  27. package/node_modules/graceful-fs/polyfills.js +4 -2
  28. package/node_modules/http-errors/HISTORY.md +16 -0
  29. package/node_modules/http-errors/README.md +12 -6
  30. package/node_modules/http-errors/index.js +35 -2
  31. package/node_modules/http-errors/package.json +19 -19
  32. package/node_modules/inherits/inherits.js +2 -0
  33. package/node_modules/inherits/inherits_browser.js +18 -14
  34. package/node_modules/inherits/package.json +6 -6
  35. package/node_modules/is-core-module/.eslintrc +0 -1
  36. package/node_modules/is-core-module/CHANGELOG.md +18 -0
  37. package/node_modules/is-core-module/core.json +7 -5
  38. package/node_modules/is-core-module/package.json +10 -10
  39. package/node_modules/is-core-module/test/index.js +1 -1
  40. package/node_modules/json-schema/LICENSE +195 -0
  41. package/node_modules/json-schema/README.md +2 -4
  42. package/node_modules/json-schema/lib/links.js +1 -2
  43. package/node_modules/json-schema/lib/validate.js +7 -9
  44. package/node_modules/json-schema/package.json +8 -14
  45. package/node_modules/jsprim/CHANGES.md +4 -0
  46. package/node_modules/jsprim/package.json +8 -8
  47. package/node_modules/mime-db/HISTORY.md +7 -0
  48. package/node_modules/mime-db/db.json +18 -0
  49. package/node_modules/mime-db/package.json +7 -7
  50. package/node_modules/mime-types/HISTORY.md +6 -3
  51. package/node_modules/mime-types/package.json +8 -8
  52. package/node_modules/npm/.eslintrc +3 -0
  53. package/node_modules/npm/CHANGELOG.md +14 -0
  54. package/node_modules/npm/docs/public/cli-commands/npm/index.html +3 -3
  55. package/node_modules/npm/docs/public/cli-commands/npm-access/index.html +2 -2
  56. package/node_modules/npm/docs/public/cli-commands/npm-adduser/index.html +2 -2
  57. package/node_modules/npm/docs/public/cli-commands/npm-audit/index.html +2 -2
  58. package/node_modules/npm/docs/public/cli-commands/npm-bin/index.html +2 -2
  59. package/node_modules/npm/docs/public/cli-commands/npm-bugs/index.html +2 -2
  60. package/node_modules/npm/docs/public/cli-commands/npm-build/index.html +2 -2
  61. package/node_modules/npm/docs/public/cli-commands/npm-bundle/index.html +2 -2
  62. package/node_modules/npm/docs/public/cli-commands/npm-cache/index.html +2 -2
  63. package/node_modules/npm/docs/public/cli-commands/npm-ci/index.html +2 -2
  64. package/node_modules/npm/docs/public/cli-commands/npm-completion/index.html +2 -2
  65. package/node_modules/npm/docs/public/cli-commands/npm-config/index.html +2 -2
  66. package/node_modules/npm/docs/public/cli-commands/npm-dedupe/index.html +2 -2
  67. package/node_modules/npm/docs/public/cli-commands/npm-deprecate/index.html +2 -2
  68. package/node_modules/npm/docs/public/cli-commands/npm-dist-tag/index.html +2 -2
  69. package/node_modules/npm/docs/public/cli-commands/npm-docs/index.html +2 -2
  70. package/node_modules/npm/docs/public/cli-commands/npm-doctor/index.html +2 -2
  71. package/node_modules/npm/docs/public/cli-commands/npm-edit/index.html +2 -2
  72. package/node_modules/npm/docs/public/cli-commands/npm-explore/index.html +2 -2
  73. package/node_modules/npm/docs/public/cli-commands/npm-fund/index.html +2 -2
  74. package/node_modules/npm/docs/public/cli-commands/npm-help/index.html +2 -2
  75. package/node_modules/npm/docs/public/cli-commands/npm-help-search/index.html +2 -2
  76. package/node_modules/npm/docs/public/cli-commands/npm-hook/index.html +2 -2
  77. package/node_modules/npm/docs/public/cli-commands/npm-init/index.html +2 -2
  78. package/node_modules/npm/docs/public/cli-commands/npm-install/index.html +2 -2
  79. package/node_modules/npm/docs/public/cli-commands/npm-install-ci-test/index.html +2 -2
  80. package/node_modules/npm/docs/public/cli-commands/npm-install-test/index.html +2 -2
  81. package/node_modules/npm/docs/public/cli-commands/npm-link/index.html +2 -2
  82. package/node_modules/npm/docs/public/cli-commands/npm-logout/index.html +2 -2
  83. package/node_modules/npm/docs/public/cli-commands/npm-ls/index.html +3 -3
  84. package/node_modules/npm/docs/public/cli-commands/npm-org/index.html +2 -2
  85. package/node_modules/npm/docs/public/cli-commands/npm-outdated/index.html +2 -2
  86. package/node_modules/npm/docs/public/cli-commands/npm-owner/index.html +2 -2
  87. package/node_modules/npm/docs/public/cli-commands/npm-pack/index.html +2 -2
  88. package/node_modules/npm/docs/public/cli-commands/npm-ping/index.html +2 -2
  89. package/node_modules/npm/docs/public/cli-commands/npm-prefix/index.html +2 -2
  90. package/node_modules/npm/docs/public/cli-commands/npm-profile/index.html +2 -2
  91. package/node_modules/npm/docs/public/cli-commands/npm-prune/index.html +2 -2
  92. package/node_modules/npm/docs/public/cli-commands/npm-publish/index.html +2 -2
  93. package/node_modules/npm/docs/public/cli-commands/npm-rebuild/index.html +2 -2
  94. package/node_modules/npm/docs/public/cli-commands/npm-repo/index.html +2 -2
  95. package/node_modules/npm/docs/public/cli-commands/npm-restart/index.html +2 -2
  96. package/node_modules/npm/docs/public/cli-commands/npm-root/index.html +2 -2
  97. package/node_modules/npm/docs/public/cli-commands/npm-run-script/index.html +2 -2
  98. package/node_modules/npm/docs/public/cli-commands/npm-search/index.html +2 -2
  99. package/node_modules/npm/docs/public/cli-commands/npm-shrinkwrap/index.html +2 -2
  100. package/node_modules/npm/docs/public/cli-commands/npm-star/index.html +2 -2
  101. package/node_modules/npm/docs/public/cli-commands/npm-stars/index.html +2 -2
  102. package/node_modules/npm/docs/public/cli-commands/npm-start/index.html +2 -2
  103. package/node_modules/npm/docs/public/cli-commands/npm-stop/index.html +2 -2
  104. package/node_modules/npm/docs/public/cli-commands/npm-team/index.html +2 -2
  105. package/node_modules/npm/docs/public/cli-commands/npm-test/index.html +2 -2
  106. package/node_modules/npm/docs/public/cli-commands/npm-token/index.html +2 -2
  107. package/node_modules/npm/docs/public/cli-commands/npm-uninstall/index.html +2 -2
  108. package/node_modules/npm/docs/public/cli-commands/npm-unpublish/index.html +2 -2
  109. package/node_modules/npm/docs/public/cli-commands/npm-update/index.html +2 -2
  110. package/node_modules/npm/docs/public/cli-commands/npm-version/index.html +2 -2
  111. package/node_modules/npm/docs/public/cli-commands/npm-view/index.html +2 -2
  112. package/node_modules/npm/docs/public/cli-commands/npm-whoami/index.html +2 -2
  113. package/node_modules/npm/docs/public/configuring-npm/folders/index.html +2 -2
  114. package/node_modules/npm/docs/public/configuring-npm/install/index.html +2 -2
  115. package/node_modules/npm/docs/public/configuring-npm/npmrc/index.html +2 -2
  116. package/node_modules/npm/docs/public/configuring-npm/package-json/index.html +2 -2
  117. package/node_modules/npm/docs/public/configuring-npm/package-lock-json/index.html +2 -2
  118. package/node_modules/npm/docs/public/configuring-npm/package-locks/index.html +2 -2
  119. package/node_modules/npm/docs/public/configuring-npm/shrinkwrap-json/index.html +2 -2
  120. package/node_modules/npm/docs/public/index.html +1 -1
  121. package/node_modules/npm/docs/public/using-npm/config/index.html +2 -2
  122. package/node_modules/npm/docs/public/using-npm/developers/index.html +2 -2
  123. package/node_modules/npm/docs/public/using-npm/disputes/index.html +2 -2
  124. package/node_modules/npm/docs/public/using-npm/orgs/index.html +2 -2
  125. package/node_modules/npm/docs/public/using-npm/registry/index.html +2 -2
  126. package/node_modules/npm/docs/public/using-npm/removal/index.html +2 -2
  127. package/node_modules/npm/docs/public/using-npm/scope/index.html +2 -2
  128. package/node_modules/npm/docs/public/using-npm/scripts/index.html +2 -2
  129. package/node_modules/npm/docs/public/using-npm/semver/index.html +2 -2
  130. package/node_modules/npm/lib/auth/legacy.js +1 -1
  131. package/node_modules/npm/lib/profile.js +2 -2
  132. package/node_modules/npm/man/man1/npm-README.1 +1 -1
  133. package/node_modules/npm/man/man1/npm-access.1 +1 -1
  134. package/node_modules/npm/man/man1/npm-adduser.1 +1 -1
  135. package/node_modules/npm/man/man1/npm-audit.1 +1 -1
  136. package/node_modules/npm/man/man1/npm-bin.1 +1 -1
  137. package/node_modules/npm/man/man1/npm-bugs.1 +1 -1
  138. package/node_modules/npm/man/man1/npm-build.1 +1 -1
  139. package/node_modules/npm/man/man1/npm-bundle.1 +1 -1
  140. package/node_modules/npm/man/man1/npm-cache.1 +1 -1
  141. package/node_modules/npm/man/man1/npm-ci.1 +1 -1
  142. package/node_modules/npm/man/man1/npm-completion.1 +1 -1
  143. package/node_modules/npm/man/man1/npm-config.1 +1 -1
  144. package/node_modules/npm/man/man1/npm-dedupe.1 +1 -1
  145. package/node_modules/npm/man/man1/npm-deprecate.1 +1 -1
  146. package/node_modules/npm/man/man1/npm-dist-tag.1 +1 -1
  147. package/node_modules/npm/man/man1/npm-docs.1 +1 -1
  148. package/node_modules/npm/man/man1/npm-doctor.1 +1 -1
  149. package/node_modules/npm/man/man1/npm-edit.1 +1 -1
  150. package/node_modules/npm/man/man1/npm-explore.1 +1 -1
  151. package/node_modules/npm/man/man1/npm-fund.1 +1 -1
  152. package/node_modules/npm/man/man1/npm-help-search.1 +1 -1
  153. package/node_modules/npm/man/man1/npm-help.1 +1 -1
  154. package/node_modules/npm/man/man1/npm-hook.1 +1 -1
  155. package/node_modules/npm/man/man1/npm-init.1 +1 -1
  156. package/node_modules/npm/man/man1/npm-install-ci-test.1 +1 -1
  157. package/node_modules/npm/man/man1/npm-install-test.1 +1 -1
  158. package/node_modules/npm/man/man1/npm-install.1 +1 -1
  159. package/node_modules/npm/man/man1/npm-link.1 +1 -1
  160. package/node_modules/npm/man/man1/npm-logout.1 +1 -1
  161. package/node_modules/npm/man/man1/npm-ls.1 +2 -2
  162. package/node_modules/npm/man/man1/npm-org.1 +1 -1
  163. package/node_modules/npm/man/man1/npm-outdated.1 +1 -1
  164. package/node_modules/npm/man/man1/npm-owner.1 +1 -1
  165. package/node_modules/npm/man/man1/npm-pack.1 +1 -1
  166. package/node_modules/npm/man/man1/npm-ping.1 +1 -1
  167. package/node_modules/npm/man/man1/npm-prefix.1 +1 -1
  168. package/node_modules/npm/man/man1/npm-profile.1 +1 -1
  169. package/node_modules/npm/man/man1/npm-prune.1 +1 -1
  170. package/node_modules/npm/man/man1/npm-publish.1 +1 -1
  171. package/node_modules/npm/man/man1/npm-rebuild.1 +1 -1
  172. package/node_modules/npm/man/man1/npm-repo.1 +1 -1
  173. package/node_modules/npm/man/man1/npm-restart.1 +1 -1
  174. package/node_modules/npm/man/man1/npm-root.1 +1 -1
  175. package/node_modules/npm/man/man1/npm-run-script.1 +1 -1
  176. package/node_modules/npm/man/man1/npm-search.1 +1 -1
  177. package/node_modules/npm/man/man1/npm-shrinkwrap.1 +1 -1
  178. package/node_modules/npm/man/man1/npm-star.1 +1 -1
  179. package/node_modules/npm/man/man1/npm-stars.1 +1 -1
  180. package/node_modules/npm/man/man1/npm-start.1 +1 -1
  181. package/node_modules/npm/man/man1/npm-stop.1 +1 -1
  182. package/node_modules/npm/man/man1/npm-team.1 +1 -1
  183. package/node_modules/npm/man/man1/npm-test.1 +1 -1
  184. package/node_modules/npm/man/man1/npm-token.1 +1 -1
  185. package/node_modules/npm/man/man1/npm-uninstall.1 +1 -1
  186. package/node_modules/npm/man/man1/npm-unpublish.1 +1 -1
  187. package/node_modules/npm/man/man1/npm-update.1 +1 -1
  188. package/node_modules/npm/man/man1/npm-version.1 +1 -1
  189. package/node_modules/npm/man/man1/npm-view.1 +1 -1
  190. package/node_modules/npm/man/man1/npm-whoami.1 +1 -1
  191. package/node_modules/npm/man/man1/npm.1 +2 -2
  192. package/node_modules/npm/man/man5/folders.5 +1 -1
  193. package/node_modules/npm/man/man5/install.5 +1 -1
  194. package/node_modules/npm/man/man5/npmrc.5 +1 -1
  195. package/node_modules/npm/man/man5/package-json.5 +1 -1
  196. package/node_modules/npm/man/man5/package-lock-json.5 +1 -1
  197. package/node_modules/npm/man/man5/package-locks.5 +1 -1
  198. package/node_modules/npm/man/man5/shrinkwrap-json.5 +1 -1
  199. package/node_modules/npm/man/man7/config.7 +1 -1
  200. package/node_modules/npm/man/man7/developers.7 +1 -1
  201. package/node_modules/npm/man/man7/disputes.7 +1 -1
  202. package/node_modules/npm/man/man7/orgs.7 +1 -1
  203. package/node_modules/npm/man/man7/registry.7 +1 -1
  204. package/node_modules/npm/man/man7/removal.7 +1 -1
  205. package/node_modules/npm/man/man7/scope.7 +1 -1
  206. package/node_modules/npm/man/man7/scripts.7 +1 -1
  207. package/node_modules/npm/man/man7/semver.7 +1 -1
  208. package/node_modules/npm/node_modules/json-schema/LICENSE +195 -0
  209. package/node_modules/npm/node_modules/json-schema/README.md +2 -4
  210. package/node_modules/npm/node_modules/json-schema/lib/links.js +1 -2
  211. package/node_modules/npm/node_modules/json-schema/lib/validate.js +7 -9
  212. package/node_modules/npm/node_modules/json-schema/package.json +16 -22
  213. package/node_modules/npm/node_modules/jsprim/CHANGES.md +4 -0
  214. package/node_modules/npm/node_modules/jsprim/CONTRIBUTING.md +19 -0
  215. package/node_modules/npm/node_modules/jsprim/package.json +16 -16
  216. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.pyc +0 -0
  217. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.pyc +0 -0
  218. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.pyc +0 -0
  219. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.pyc +0 -0
  220. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.pyc +0 -0
  221. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.pyc +0 -0
  222. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.pyc +0 -0
  223. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.pyc +0 -0
  224. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.pyc +0 -0
  225. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.pyc +0 -0
  226. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.pyc +0 -0
  227. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.pyc +0 -0
  228. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.pyc +0 -0
  229. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.pyc +0 -0
  230. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.pyc +0 -0
  231. package/node_modules/npm/package.json +5 -4
  232. package/node_modules/qs/.editorconfig +9 -0
  233. package/node_modules/qs/.eslintignore +2 -1
  234. package/node_modules/qs/.eslintrc +15 -1
  235. package/node_modules/qs/.github/FUNDING.yml +12 -0
  236. package/node_modules/qs/.nycrc +13 -0
  237. package/node_modules/qs/CHANGELOG.md +103 -0
  238. package/node_modules/qs/LICENSE.md +29 -0
  239. package/node_modules/qs/README.md +34 -0
  240. package/node_modules/qs/dist/qs.js +117 -67
  241. package/node_modules/qs/lib/formats.js +9 -4
  242. package/node_modules/qs/lib/parse.js +29 -14
  243. package/node_modules/qs/lib/stringify.js +55 -46
  244. package/node_modules/qs/lib/utils.js +23 -2
  245. package/node_modules/qs/package.json +31 -20
  246. package/node_modules/qs/test/parse.js +97 -1
  247. package/node_modules/qs/test/stringify.js +115 -1
  248. package/node_modules/qs/test/utils.js +1 -1
  249. package/node_modules/raw-body/HISTORY.md +14 -0
  250. package/node_modules/raw-body/README.md +3 -5
  251. package/node_modules/raw-body/package.json +21 -21
  252. package/node_modules/request/node_modules/qs/.editorconfig +14 -1
  253. package/node_modules/request/node_modules/qs/.eslintrc +21 -3
  254. package/node_modules/request/node_modules/qs/.github/FUNDING.yml +12 -0
  255. package/node_modules/request/node_modules/qs/.nycrc +13 -0
  256. package/node_modules/request/node_modules/qs/CHANGELOG.md +24 -0
  257. package/node_modules/request/node_modules/qs/LICENSE.md +29 -0
  258. package/node_modules/request/node_modules/qs/README.md +54 -19
  259. package/node_modules/request/node_modules/qs/bower.json +21 -0
  260. package/node_modules/request/node_modules/qs/component.json +15 -0
  261. package/node_modules/request/node_modules/qs/dist/qs.js +35 -25
  262. package/node_modules/request/node_modules/qs/lib/formats.js +1 -1
  263. package/node_modules/request/node_modules/qs/lib/parse.js +6 -5
  264. package/node_modules/request/node_modules/qs/lib/stringify.js +21 -14
  265. package/node_modules/request/node_modules/qs/lib/utils.js +7 -5
  266. package/node_modules/request/node_modules/qs/package.json +21 -19
  267. package/node_modules/request/node_modules/qs/test/parse.js +79 -4
  268. package/node_modules/request/node_modules/qs/test/stringify.js +45 -0
  269. package/node_modules/request/node_modules/qs/test/utils.js +31 -0
  270. package/node_modules/resolve/.eslintrc +34 -8
  271. package/node_modules/resolve/.github/FUNDING.yml +12 -0
  272. package/node_modules/resolve/appveyor.yml +4 -2
  273. package/node_modules/resolve/async.js +3 -0
  274. package/node_modules/resolve/bin/resolve +50 -0
  275. package/node_modules/resolve/lib/async.js +10 -1
  276. package/node_modules/resolve/lib/core.js +1 -2
  277. package/node_modules/resolve/lib/core.json +85 -16
  278. package/node_modules/resolve/lib/homedir.js +24 -0
  279. package/node_modules/resolve/lib/node-modules-paths.js +1 -1
  280. package/node_modules/resolve/lib/sync.js +14 -5
  281. package/node_modules/resolve/package.json +26 -15
  282. package/node_modules/resolve/readme.markdown +35 -13
  283. package/node_modules/resolve/sync.js +3 -0
  284. package/node_modules/resolve/test/home_paths.js +127 -0
  285. package/node_modules/resolve/test/home_paths_sync.js +114 -0
  286. package/node_modules/resolve/test/mock_sync.js +2 -4
  287. package/node_modules/resolve/test/node_path.js +1 -1
  288. package/node_modules/resolve/test/resolver/invalid_main/package.json +1 -1
  289. package/node_modules/resolve/test/resolver/malformed_package_json/index.js +0 -0
  290. package/node_modules/resolve/test/resolver/malformed_package_json/package.json +1 -0
  291. package/node_modules/resolve/test/resolver.js +99 -3
  292. package/node_modules/resolve/test/resolver_sync.js +310 -23
  293. package/node_modules/safe-buffer/index.js +3 -0
  294. package/node_modules/safe-buffer/package.json +21 -7
  295. package/node_modules/send/HISTORY.md +10 -0
  296. package/node_modules/send/README.md +4 -6
  297. package/node_modules/send/index.js +7 -3
  298. package/node_modules/send/node_modules/ms/index.js +3 -3
  299. package/node_modules/send/node_modules/ms/license.md +1 -1
  300. package/node_modules/send/node_modules/ms/package.json +8 -7
  301. package/node_modules/send/node_modules/ms/readme.md +1 -2
  302. package/node_modules/send/package.json +19 -19
  303. package/node_modules/serve-static/HISTORY.md +8 -0
  304. package/node_modules/serve-static/README.md +9 -11
  305. package/node_modules/serve-static/package.json +19 -19
  306. package/node_modules/setprototypeof/README.md +1 -1
  307. package/node_modules/setprototypeof/index.js +1 -1
  308. package/node_modules/setprototypeof/package.json +9 -7
  309. package/node_modules/shelljs/package.json +4 -4
  310. package/node_modules/shelljs/src/exec.js +19 -1
  311. package/node_modules/signal-exit/index.js +30 -8
  312. package/node_modules/signal-exit/package.json +10 -8
  313. package/node_modules/sshpk/Jenkinsfile +86 -0
  314. package/node_modules/sshpk/lib/formats/putty.js +99 -4
  315. package/node_modules/sshpk/lib/private-key.js +1 -0
  316. package/node_modules/sshpk/package.json +4 -4
  317. package/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
  318. package/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
  319. package/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
  320. package/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
  321. package/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
  322. package/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
  323. package/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
  324. package/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
  325. package/node_modules/supports-preserve-symlinks-flag/package.json +74 -0
  326. package/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
  327. package/node_modules/toidentifier/HISTORY.md +9 -0
  328. package/node_modules/toidentifier/README.md +3 -3
  329. package/node_modules/toidentifier/index.js +2 -0
  330. package/node_modules/toidentifier/package.json +19 -15
  331. package/node_modules/underscore/amd/_collectNonEnumProps.js +1 -1
  332. package/node_modules/underscore/amd/_setup.js +1 -1
  333. package/node_modules/underscore/amd/sample.js +2 -2
  334. package/node_modules/underscore/cjs/_collectNonEnumProps.js +1 -1
  335. package/node_modules/underscore/cjs/_setup.js +1 -1
  336. package/node_modules/underscore/cjs/sample.js +2 -2
  337. package/node_modules/underscore/modules/_collectNonEnumProps.js +1 -1
  338. package/node_modules/underscore/modules/_setup.js +1 -1
  339. package/node_modules/underscore/modules/index.js +1 -1
  340. package/node_modules/underscore/modules/sample.js +2 -2
  341. package/node_modules/underscore/package.json +4 -4
  342. package/node_modules/underscore/underscore-esm-min.js +2 -2
  343. package/node_modules/underscore/underscore-esm-min.js.map +1 -1
  344. package/node_modules/underscore/underscore-esm.js +17 -17
  345. package/node_modules/underscore/underscore-esm.js.map +1 -1
  346. package/node_modules/underscore/underscore-min.js +2 -2
  347. package/node_modules/underscore/underscore-min.js.map +1 -1
  348. package/node_modules/underscore/underscore-node-f.cjs +17 -17
  349. package/node_modules/underscore/underscore-node-f.cjs.map +1 -1
  350. package/node_modules/underscore/underscore-node.cjs +1 -1
  351. package/node_modules/underscore/underscore-node.mjs +1 -1
  352. package/node_modules/underscore/underscore-umd-min.js +2 -2
  353. package/node_modules/underscore/underscore-umd-min.js.map +1 -1
  354. package/node_modules/underscore/underscore-umd.js +17 -17
  355. package/node_modules/underscore/underscore-umd.js.map +1 -1
  356. package/node_modules/underscore/underscore.js +17 -17
  357. package/package.json +9 -9
  358. package/node_modules/hosted-git-info/CHANGELOG.md +0 -151
  359. package/node_modules/hosted-git-info/LICENSE +0 -13
  360. package/node_modules/hosted-git-info/README.md +0 -133
  361. package/node_modules/hosted-git-info/git-host-info.js +0 -79
  362. package/node_modules/hosted-git-info/git-host.js +0 -156
  363. package/node_modules/hosted-git-info/index.js +0 -148
  364. package/node_modules/hosted-git-info/package.json +0 -44
  365. package/node_modules/is-core-module/.eslintignore +0 -1
  366. package/node_modules/json-parse-better-errors/CHANGELOG.md +0 -46
  367. package/node_modules/json-parse-better-errors/LICENSE.md +0 -7
  368. package/node_modules/json-parse-better-errors/README.md +0 -46
  369. package/node_modules/json-parse-better-errors/index.js +0 -38
  370. package/node_modules/json-parse-better-errors/package.json +0 -49
  371. package/node_modules/json-schema/draft-00/hyper-schema +0 -68
  372. package/node_modules/json-schema/draft-00/json-ref +0 -26
  373. package/node_modules/json-schema/draft-00/links +0 -33
  374. package/node_modules/json-schema/draft-00/schema +0 -155
  375. package/node_modules/json-schema/draft-01/hyper-schema +0 -68
  376. package/node_modules/json-schema/draft-01/json-ref +0 -26
  377. package/node_modules/json-schema/draft-01/links +0 -33
  378. package/node_modules/json-schema/draft-01/schema +0 -155
  379. package/node_modules/json-schema/draft-02/hyper-schema +0 -68
  380. package/node_modules/json-schema/draft-02/json-ref +0 -26
  381. package/node_modules/json-schema/draft-02/links +0 -35
  382. package/node_modules/json-schema/draft-02/schema +0 -166
  383. package/node_modules/json-schema/draft-03/examples/address +0 -20
  384. package/node_modules/json-schema/draft-03/examples/calendar +0 -53
  385. package/node_modules/json-schema/draft-03/examples/card +0 -105
  386. package/node_modules/json-schema/draft-03/examples/geo +0 -8
  387. package/node_modules/json-schema/draft-03/examples/interfaces +0 -23
  388. package/node_modules/json-schema/draft-03/hyper-schema +0 -60
  389. package/node_modules/json-schema/draft-03/json-ref +0 -26
  390. package/node_modules/json-schema/draft-03/links +0 -35
  391. package/node_modules/json-schema/draft-03/schema +0 -174
  392. package/node_modules/json-schema/draft-04/hyper-schema +0 -60
  393. package/node_modules/json-schema/draft-04/links +0 -41
  394. package/node_modules/json-schema/draft-04/schema +0 -189
  395. package/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
  396. package/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
  397. package/node_modules/json-schema/test/tests.js +0 -95
  398. package/node_modules/normalize-package-data/AUTHORS +0 -4
  399. package/node_modules/normalize-package-data/LICENSE +0 -30
  400. package/node_modules/normalize-package-data/README.md +0 -106
  401. package/node_modules/normalize-package-data/lib/extract_description.js +0 -14
  402. package/node_modules/normalize-package-data/lib/fixer.js +0 -418
  403. package/node_modules/normalize-package-data/lib/make_warning.js +0 -23
  404. package/node_modules/normalize-package-data/lib/normalize.js +0 -39
  405. package/node_modules/normalize-package-data/lib/safe_format.js +0 -9
  406. package/node_modules/normalize-package-data/lib/typos.json +0 -25
  407. package/node_modules/normalize-package-data/lib/warning_messages.json +0 -30
  408. package/node_modules/normalize-package-data/package.json +0 -35
  409. package/node_modules/npm/node_modules/json-schema/draft-00/hyper-schema +0 -68
  410. package/node_modules/npm/node_modules/json-schema/draft-00/json-ref +0 -26
  411. package/node_modules/npm/node_modules/json-schema/draft-00/links +0 -33
  412. package/node_modules/npm/node_modules/json-schema/draft-00/schema +0 -155
  413. package/node_modules/npm/node_modules/json-schema/draft-01/hyper-schema +0 -68
  414. package/node_modules/npm/node_modules/json-schema/draft-01/json-ref +0 -26
  415. package/node_modules/npm/node_modules/json-schema/draft-01/links +0 -33
  416. package/node_modules/npm/node_modules/json-schema/draft-01/schema +0 -155
  417. package/node_modules/npm/node_modules/json-schema/draft-02/hyper-schema +0 -68
  418. package/node_modules/npm/node_modules/json-schema/draft-02/json-ref +0 -26
  419. package/node_modules/npm/node_modules/json-schema/draft-02/links +0 -35
  420. package/node_modules/npm/node_modules/json-schema/draft-02/schema +0 -166
  421. package/node_modules/npm/node_modules/json-schema/draft-03/examples/address +0 -20
  422. package/node_modules/npm/node_modules/json-schema/draft-03/examples/calendar +0 -53
  423. package/node_modules/npm/node_modules/json-schema/draft-03/examples/card +0 -105
  424. package/node_modules/npm/node_modules/json-schema/draft-03/examples/geo +0 -8
  425. package/node_modules/npm/node_modules/json-schema/draft-03/examples/interfaces +0 -23
  426. package/node_modules/npm/node_modules/json-schema/draft-03/hyper-schema +0 -60
  427. package/node_modules/npm/node_modules/json-schema/draft-03/json-ref +0 -26
  428. package/node_modules/npm/node_modules/json-schema/draft-03/links +0 -35
  429. package/node_modules/npm/node_modules/json-schema/draft-03/schema +0 -174
  430. package/node_modules/npm/node_modules/json-schema/draft-04/hyper-schema +0 -60
  431. package/node_modules/npm/node_modules/json-schema/draft-04/links +0 -41
  432. package/node_modules/npm/node_modules/json-schema/draft-04/schema +0 -189
  433. package/node_modules/npm/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
  434. package/node_modules/npm/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
  435. package/node_modules/npm/node_modules/json-schema/test/tests.js +0 -95
  436. package/node_modules/qs/LICENSE +0 -28
  437. package/node_modules/qs/test/.eslintrc +0 -17
  438. package/node_modules/qs/test/index.js +0 -7
  439. package/node_modules/request/node_modules/qs/.eslintignore +0 -1
  440. package/node_modules/request/node_modules/qs/LICENSE +0 -28
  441. package/node_modules/request/node_modules/qs/test/.eslintrc +0 -15
  442. package/node_modules/resolve/.eslintignore +0 -1
  443. package/node_modules/resolve/test/.eslintrc +0 -5
  444. package/node_modules/spdx-correct/LICENSE +0 -202
  445. package/node_modules/spdx-correct/README.md +0 -14
  446. package/node_modules/spdx-correct/index.js +0 -364
  447. package/node_modules/spdx-correct/package.json +0 -43
  448. package/node_modules/spdx-exceptions/README.md +0 -36
  449. package/node_modules/spdx-exceptions/index.json +0 -40
  450. package/node_modules/spdx-exceptions/package.json +0 -21
  451. package/node_modules/spdx-expression-parse/AUTHORS +0 -4
  452. package/node_modules/spdx-expression-parse/LICENSE +0 -22
  453. package/node_modules/spdx-expression-parse/README.md +0 -91
  454. package/node_modules/spdx-expression-parse/index.js +0 -8
  455. package/node_modules/spdx-expression-parse/package.json +0 -43
  456. package/node_modules/spdx-expression-parse/parse.js +0 -138
  457. package/node_modules/spdx-expression-parse/scan.js +0 -131
  458. package/node_modules/spdx-license-ids/README.md +0 -52
  459. package/node_modules/spdx-license-ids/deprecated.json +0 -26
  460. package/node_modules/spdx-license-ids/index.json +0 -446
  461. package/node_modules/spdx-license-ids/package.json +0 -44
  462. package/node_modules/sshpk/.npmignore +0 -9
  463. package/node_modules/validate-npm-package-license/LICENSE +0 -202
  464. package/node_modules/validate-npm-package-license/README.md +0 -113
  465. package/node_modules/validate-npm-package-license/index.js +0 -86
  466. package/node_modules/validate-npm-package-license/package.json +0 -32
@@ -1,95 +0,0 @@
1
- var assert = require('assert');
2
- var vows = require('vows');
3
- var path = require('path');
4
- var fs = require('fs');
5
-
6
- var validate = require('../lib/validate').validate;
7
-
8
-
9
- var revision = 'draft-03';
10
- var schemaRoot = path.join(__dirname, '..', revision);
11
- var schemaNames = ['schema', 'hyper-schema', 'links', 'json-ref' ];
12
- var schemas = {};
13
-
14
- schemaNames.forEach(function(name) {
15
- var file = path.join(schemaRoot, name);
16
- schemas[name] = loadSchema(file);
17
- });
18
-
19
- schemaNames.forEach(function(name) {
20
- var s, n = name+'-nsd', f = path.join(schemaRoot, name);
21
- schemas[n] = loadSchema(f);
22
- s = schemas[n];
23
- delete s['$schema'];
24
- });
25
-
26
- function loadSchema(path) {
27
- var data = fs.readFileSync(path, 'utf-8');
28
- var schema = JSON.parse(data);
29
- return schema;
30
- }
31
-
32
- function resultIsValid() {
33
- return function(result) {
34
- assert.isObject(result);
35
- //assert.isBoolean(result.valid);
36
- assert.equal(typeof(result.valid), 'boolean');
37
- assert.isArray(result.errors);
38
- for (var i = 0; i < result.errors.length; i++) {
39
- assert.notEqual(result.errors[i], null, 'errors['+i+'] is null');
40
- }
41
- }
42
- }
43
-
44
- function assertValidates(doc, schema) {
45
- var context = {};
46
-
47
- context[': validate('+doc+', '+schema+')'] = {
48
- topic: validate(schemas[doc], schemas[schema]),
49
- 'returns valid result': resultIsValid(),
50
- 'with valid=true': function(result) { assert.equal(result.valid, true); },
51
- 'and no errors': function(result) {
52
- // XXX work-around for bug in vows: [null] chokes it
53
- if (result.errors[0] == null) assert.fail('(errors contains null)');
54
- assert.length(result.errors, 0);
55
- }
56
- };
57
-
58
- return context;
59
- }
60
-
61
- function assertSelfValidates(doc) {
62
- var context = {};
63
-
64
- context[': validate('+doc+')'] = {
65
- topic: validate(schemas[doc]),
66
- 'returns valid result': resultIsValid(),
67
- 'with valid=true': function(result) { assert.equal(result.valid, true); },
68
- 'and no errors': function(result) { assert.length(result.errors, 0); }
69
- };
70
-
71
- return context;
72
- }
73
-
74
- var suite = vows.describe('JSON Schema').addBatch({
75
- 'Core-NSD self-validates': assertSelfValidates('schema-nsd'),
76
- 'Core-NSD/Core-NSD': assertValidates('schema-nsd', 'schema-nsd'),
77
- 'Core-NSD/Core': assertValidates('schema-nsd', 'schema'),
78
-
79
- 'Core self-validates': assertSelfValidates('schema'),
80
- 'Core/Core': assertValidates('schema', 'schema'),
81
-
82
- 'Hyper-NSD self-validates': assertSelfValidates('hyper-schema-nsd'),
83
- 'Hyper self-validates': assertSelfValidates('hyper-schema'),
84
- 'Hyper/Hyper': assertValidates('hyper-schema', 'hyper-schema'),
85
- 'Hyper/Core': assertValidates('hyper-schema', 'schema'),
86
-
87
- 'Links-NSD self-validates': assertSelfValidates('links-nsd'),
88
- 'Links self-validates': assertSelfValidates('links'),
89
- 'Links/Hyper': assertValidates('links', 'hyper-schema'),
90
- 'Links/Core': assertValidates('links', 'schema'),
91
-
92
- 'Json-Ref self-validates': assertSelfValidates('json-ref'),
93
- 'Json-Ref/Hyper': assertValidates('json-ref', 'hyper-schema'),
94
- 'Json-Ref/Core': assertValidates('json-ref', 'schema')
95
- }).export(module);
@@ -1,4 +0,0 @@
1
- # Names sorted by how much code was originally theirs.
2
- Isaac Z. Schlueter <i@izs.me>
3
- Meryn Stol <merynstol@gmail.com>
4
- Robert Kowalski <rok@kowalski.gd>
@@ -1,30 +0,0 @@
1
- This package contains code originally written by Isaac Z. Schlueter.
2
- Used with permission.
3
-
4
- Copyright (c) Meryn Stol ("Author")
5
- All rights reserved.
6
-
7
- The BSD License
8
-
9
- Redistribution and use in source and binary forms, with or without
10
- modification, are permitted provided that the following conditions
11
- are met:
12
-
13
- 1. Redistributions of source code must retain the above copyright
14
- notice, this list of conditions and the following disclaimer.
15
-
16
- 2. Redistributions in binary form must reproduce the above copyright
17
- notice, this list of conditions and the following disclaimer in the
18
- documentation and/or other materials provided with the distribution.
19
-
20
- THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
21
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
24
- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
27
- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
29
- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
30
- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,106 +0,0 @@
1
- # normalize-package-data [![Build Status](https://travis-ci.org/npm/normalize-package-data.png?branch=master)](https://travis-ci.org/npm/normalize-package-data)
2
-
3
- normalize-package-data exports a function that normalizes package metadata. This data is typically found in a package.json file, but in principle could come from any source - for example the npm registry.
4
-
5
- normalize-package-data is used by [read-package-json](https://npmjs.org/package/read-package-json) to normalize the data it reads from a package.json file. In turn, read-package-json is used by [npm](https://npmjs.org/package/npm) and various npm-related tools.
6
-
7
- ## Installation
8
-
9
- ```
10
- npm install normalize-package-data
11
- ```
12
-
13
- ## Usage
14
-
15
- Basic usage is really simple. You call the function that normalize-package-data exports. Let's call it `normalizeData`.
16
-
17
- ```javascript
18
- normalizeData = require('normalize-package-data')
19
- packageData = require("./package.json")
20
- normalizeData(packageData)
21
- // packageData is now normalized
22
- ```
23
-
24
- #### Strict mode
25
-
26
- You may activate strict validation by passing true as the second argument.
27
-
28
- ```javascript
29
- normalizeData = require('normalize-package-data')
30
- packageData = require("./package.json")
31
- normalizeData(packageData, true)
32
- // packageData is now normalized
33
- ```
34
-
35
- If strict mode is activated, only Semver 2.0 version strings are accepted. Otherwise, Semver 1.0 strings are accepted as well. Packages must have a name, and the name field must not have contain leading or trailing whitespace.
36
-
37
- #### Warnings
38
-
39
- Optionally, you may pass a "warning" function. It gets called whenever the `normalizeData` function encounters something that doesn't look right. It indicates less than perfect input data.
40
-
41
- ```javascript
42
- normalizeData = require('normalize-package-data')
43
- packageData = require("./package.json")
44
- warnFn = function(msg) { console.error(msg) }
45
- normalizeData(packageData, warnFn)
46
- // packageData is now normalized. Any number of warnings may have been logged.
47
- ```
48
-
49
- You may combine strict validation with warnings by passing `true` as the second argument, and `warnFn` as third.
50
-
51
- When `private` field is set to `true`, warnings will be suppressed.
52
-
53
- ### Potential exceptions
54
-
55
- If the supplied data has an invalid name or version vield, `normalizeData` will throw an error. Depending on where you call `normalizeData`, you may want to catch these errors so can pass them to a callback.
56
-
57
- ## What normalization (currently) entails
58
-
59
- * The value of `name` field gets trimmed (unless in strict mode).
60
- * The value of the `version` field gets cleaned by `semver.clean`. See [documentation for the semver module](https://github.com/isaacs/node-semver).
61
- * If `name` and/or `version` fields are missing, they are set to empty strings.
62
- * If `files` field is not an array, it will be removed.
63
- * If `bin` field is a string, then `bin` field will become an object with `name` set to the value of the `name` field, and `bin` set to the original string value.
64
- * If `man` field is a string, it will become an array with the original string as its sole member.
65
- * If `keywords` field is string, it is considered to be a list of keywords separated by one or more white-space characters. It gets converted to an array by splitting on `\s+`.
66
- * All people fields (`author`, `maintainers`, `contributors`) get converted into objects with name, email and url properties.
67
- * If `bundledDependencies` field (a typo) exists and `bundleDependencies` field does not, `bundledDependencies` will get renamed to `bundleDependencies`.
68
- * If the value of any of the dependencies fields (`dependencies`, `devDependencies`, `optionalDependencies`) is a string, it gets converted into an object with familiar `name=>value` pairs.
69
- * The values in `optionalDependencies` get added to `dependencies`. The `optionalDependencies` array is left untouched.
70
- * As of v2: Dependencies that point at known hosted git providers (currently: github, bitbucket, gitlab) will have their URLs canonicalized, but protocols will be preserved.
71
- * As of v2: Dependencies that use shortcuts for hosted git providers (`org/proj`, `github:org/proj`, `bitbucket:org/proj`, `gitlab:org/proj`, `gist:docid`) will have the shortcut left in place. (In the case of github, the `org/proj` form will be expanded to `github:org/proj`.) THIS MARKS A BREAKING CHANGE FROM V1, where the shorcut was previously expanded to a URL.
72
- * If `description` field does not exist, but `readme` field does, then (more or less) the first paragraph of text that's found in the readme is taken as value for `description`.
73
- * If `repository` field is a string, it will become an object with `url` set to the original string value, and `type` set to `"git"`.
74
- * If `repository.url` is not a valid url, but in the style of "[owner-name]/[repo-name]", `repository.url` will be set to git+https://github.com/[owner-name]/[repo-name].git
75
- * If `bugs` field is a string, the value of `bugs` field is changed into an object with `url` set to the original string value.
76
- * If `bugs` field does not exist, but `repository` field points to a repository hosted on GitHub, the value of the `bugs` field gets set to an url in the form of https://github.com/[owner-name]/[repo-name]/issues . If the repository field points to a GitHub Gist repo url, the associated http url is chosen.
77
- * If `bugs` field is an object, the resulting value only has email and url properties. If email and url properties are not strings, they are ignored. If no valid values for either email or url is found, bugs field will be removed.
78
- * If `homepage` field is not a string, it will be removed.
79
- * If the url in the `homepage` field does not specify a protocol, then http is assumed. For example, `myproject.org` will be changed to `http://myproject.org`.
80
- * If `homepage` field does not exist, but `repository` field points to a repository hosted on GitHub, the value of the `homepage` field gets set to an url in the form of https://github.com/[owner-name]/[repo-name]#readme . If the repository field points to a GitHub Gist repo url, the associated http url is chosen.
81
-
82
- ### Rules for name field
83
-
84
- If `name` field is given, the value of the name field must be a string. The string may not:
85
-
86
- * start with a period.
87
- * contain the following characters: `/@\s+%`
88
- * contain any characters that would need to be encoded for use in urls.
89
- * resemble the word `node_modules` or `favicon.ico` (case doesn't matter).
90
-
91
- ### Rules for version field
92
-
93
- If `version` field is given, the value of the version field must be a valid *semver* string, as determined by the `semver.valid` method. See [documentation for the semver module](https://github.com/isaacs/node-semver).
94
-
95
- ### Rules for license field
96
-
97
- The `license` field should be a valid *SPDX license expression* or one of the special values allowed by [validate-npm-package-license](https://npmjs.com/package/validate-npm-package-license). See [documentation for the license field in package.json](https://docs.npmjs.com/files/package.json#license).
98
-
99
- ## Credits
100
-
101
- This package contains code based on read-package-json written by Isaac Z. Schlueter. Used with permisson.
102
-
103
- ## License
104
-
105
- normalize-package-data is released under the [BSD 2-Clause License](http://opensource.org/licenses/MIT).
106
- Copyright (c) 2013 Meryn Stol
@@ -1,14 +0,0 @@
1
- module.exports = extractDescription
2
-
3
- // Extracts description from contents of a readme file in markdown format
4
- function extractDescription (d) {
5
- if (!d) return;
6
- if (d === "ERROR: No README data found!") return;
7
- // the first block of text before the first heading
8
- // that isn't the first line heading
9
- d = d.trim().split('\n')
10
- for (var s = 0; d[s] && d[s].trim().match(/^(#|$)/); s ++);
11
- var l = d.length
12
- for (var e = s + 1; e < l && d[e].trim(); e ++);
13
- return d.slice(s, e).join(' ').trim()
14
- }
@@ -1,418 +0,0 @@
1
- var semver = require("semver")
2
- var validateLicense = require('validate-npm-package-license');
3
- var hostedGitInfo = require("hosted-git-info")
4
- var isBuiltinModule = require("resolve").isCore
5
- var depTypes = ["dependencies","devDependencies","optionalDependencies"]
6
- var extractDescription = require("./extract_description")
7
- var url = require("url")
8
- var typos = require("./typos.json")
9
-
10
- var fixer = module.exports = {
11
- // default warning function
12
- warn: function() {},
13
-
14
- fixRepositoryField: function(data) {
15
- if (data.repositories) {
16
- this.warn("repositories");
17
- data.repository = data.repositories[0]
18
- }
19
- if (!data.repository) return this.warn("missingRepository")
20
- if (typeof data.repository === "string") {
21
- data.repository = {
22
- type: "git",
23
- url: data.repository
24
- }
25
- }
26
- var r = data.repository.url || ""
27
- if (r) {
28
- var hosted = hostedGitInfo.fromUrl(r)
29
- if (hosted) {
30
- r = data.repository.url
31
- = hosted.getDefaultRepresentation() == "shortcut" ? hosted.https() : hosted.toString()
32
- }
33
- }
34
-
35
- if (r.match(/github.com\/[^\/]+\/[^\/]+\.git\.git$/)) {
36
- this.warn("brokenGitUrl", r)
37
- }
38
- }
39
-
40
- , fixTypos: function(data) {
41
- Object.keys(typos.topLevel).forEach(function (d) {
42
- if (data.hasOwnProperty(d)) {
43
- this.warn("typo", d, typos.topLevel[d])
44
- }
45
- }, this)
46
- }
47
-
48
- , fixScriptsField: function(data) {
49
- if (!data.scripts) return
50
- if (typeof data.scripts !== "object") {
51
- this.warn("nonObjectScripts")
52
- delete data.scripts
53
- return
54
- }
55
- Object.keys(data.scripts).forEach(function (k) {
56
- if (typeof data.scripts[k] !== "string") {
57
- this.warn("nonStringScript")
58
- delete data.scripts[k]
59
- } else if (typos.script[k] && !data.scripts[typos.script[k]]) {
60
- this.warn("typo", k, typos.script[k], "scripts")
61
- }
62
- }, this)
63
- }
64
-
65
- , fixFilesField: function(data) {
66
- var files = data.files
67
- if (files && !Array.isArray(files)) {
68
- this.warn("nonArrayFiles")
69
- delete data.files
70
- } else if (data.files) {
71
- data.files = data.files.filter(function(file) {
72
- if (!file || typeof file !== "string") {
73
- this.warn("invalidFilename", file)
74
- return false
75
- } else {
76
- return true
77
- }
78
- }, this)
79
- }
80
- }
81
-
82
- , fixBinField: function(data) {
83
- if (!data.bin) return;
84
- if (typeof data.bin === "string") {
85
- var b = {}
86
- var match
87
- if (match = data.name.match(/^@[^/]+[/](.*)$/)) {
88
- b[match[1]] = data.bin
89
- } else {
90
- b[data.name] = data.bin
91
- }
92
- data.bin = b
93
- }
94
- }
95
-
96
- , fixManField: function(data) {
97
- if (!data.man) return;
98
- if (typeof data.man === "string") {
99
- data.man = [ data.man ]
100
- }
101
- }
102
- , fixBundleDependenciesField: function(data) {
103
- var bdd = "bundledDependencies"
104
- var bd = "bundleDependencies"
105
- if (data[bdd] && !data[bd]) {
106
- data[bd] = data[bdd]
107
- delete data[bdd]
108
- }
109
- if (data[bd] && !Array.isArray(data[bd])) {
110
- this.warn("nonArrayBundleDependencies")
111
- delete data[bd]
112
- } else if (data[bd]) {
113
- data[bd] = data[bd].filter(function(bd) {
114
- if (!bd || typeof bd !== 'string') {
115
- this.warn("nonStringBundleDependency", bd)
116
- return false
117
- } else {
118
- if (!data.dependencies) {
119
- data.dependencies = {}
120
- }
121
- if (!data.dependencies.hasOwnProperty(bd)) {
122
- this.warn("nonDependencyBundleDependency", bd)
123
- data.dependencies[bd] = "*"
124
- }
125
- return true
126
- }
127
- }, this)
128
- }
129
- }
130
-
131
- , fixDependencies: function(data, strict) {
132
- var loose = !strict
133
- objectifyDeps(data, this.warn)
134
- addOptionalDepsToDeps(data, this.warn)
135
- this.fixBundleDependenciesField(data)
136
-
137
- ;['dependencies','devDependencies'].forEach(function(deps) {
138
- if (!(deps in data)) return
139
- if (!data[deps] || typeof data[deps] !== "object") {
140
- this.warn("nonObjectDependencies", deps)
141
- delete data[deps]
142
- return
143
- }
144
- Object.keys(data[deps]).forEach(function (d) {
145
- var r = data[deps][d]
146
- if (typeof r !== 'string') {
147
- this.warn("nonStringDependency", d, JSON.stringify(r))
148
- delete data[deps][d]
149
- }
150
- var hosted = hostedGitInfo.fromUrl(data[deps][d])
151
- if (hosted) data[deps][d] = hosted.toString()
152
- }, this)
153
- }, this)
154
- }
155
-
156
- , fixModulesField: function (data) {
157
- if (data.modules) {
158
- this.warn("deprecatedModules")
159
- delete data.modules
160
- }
161
- }
162
-
163
- , fixKeywordsField: function (data) {
164
- if (typeof data.keywords === "string") {
165
- data.keywords = data.keywords.split(/,\s+/)
166
- }
167
- if (data.keywords && !Array.isArray(data.keywords)) {
168
- delete data.keywords
169
- this.warn("nonArrayKeywords")
170
- } else if (data.keywords) {
171
- data.keywords = data.keywords.filter(function(kw) {
172
- if (typeof kw !== "string" || !kw) {
173
- this.warn("nonStringKeyword");
174
- return false
175
- } else {
176
- return true
177
- }
178
- }, this)
179
- }
180
- }
181
-
182
- , fixVersionField: function(data, strict) {
183
- // allow "loose" semver 1.0 versions in non-strict mode
184
- // enforce strict semver 2.0 compliance in strict mode
185
- var loose = !strict
186
- if (!data.version) {
187
- data.version = ""
188
- return true
189
- }
190
- if (!semver.valid(data.version, loose)) {
191
- throw new Error('Invalid version: "'+ data.version + '"')
192
- }
193
- data.version = semver.clean(data.version, loose)
194
- return true
195
- }
196
-
197
- , fixPeople: function(data) {
198
- modifyPeople(data, unParsePerson)
199
- modifyPeople(data, parsePerson)
200
- }
201
-
202
- , fixNameField: function(data, options) {
203
- if (typeof options === "boolean") options = {strict: options}
204
- else if (typeof options === "undefined") options = {}
205
- var strict = options.strict
206
- if (!data.name && !strict) {
207
- data.name = ""
208
- return
209
- }
210
- if (typeof data.name !== "string") {
211
- throw new Error("name field must be a string.")
212
- }
213
- if (!strict)
214
- data.name = data.name.trim()
215
- ensureValidName(data.name, strict, options.allowLegacyCase)
216
- if (isBuiltinModule(data.name))
217
- this.warn("conflictingName", data.name)
218
- }
219
-
220
-
221
- , fixDescriptionField: function (data) {
222
- if (data.description && typeof data.description !== 'string') {
223
- this.warn("nonStringDescription")
224
- delete data.description
225
- }
226
- if (data.readme && !data.description)
227
- data.description = extractDescription(data.readme)
228
- if(data.description === undefined) delete data.description;
229
- if (!data.description) this.warn("missingDescription")
230
- }
231
-
232
- , fixReadmeField: function (data) {
233
- if (!data.readme) {
234
- this.warn("missingReadme")
235
- data.readme = "ERROR: No README data found!"
236
- }
237
- }
238
-
239
- , fixBugsField: function(data) {
240
- if (!data.bugs && data.repository && data.repository.url) {
241
- var hosted = hostedGitInfo.fromUrl(data.repository.url)
242
- if(hosted && hosted.bugs()) {
243
- data.bugs = {url: hosted.bugs()}
244
- }
245
- }
246
- else if(data.bugs) {
247
- var emailRe = /^.+@.*\..+$/
248
- if(typeof data.bugs == "string") {
249
- if(emailRe.test(data.bugs))
250
- data.bugs = {email:data.bugs}
251
- else if(url.parse(data.bugs).protocol)
252
- data.bugs = {url: data.bugs}
253
- else
254
- this.warn("nonEmailUrlBugsString")
255
- }
256
- else {
257
- bugsTypos(data.bugs, this.warn)
258
- var oldBugs = data.bugs
259
- data.bugs = {}
260
- if(oldBugs.url) {
261
- if(typeof(oldBugs.url) == "string" && url.parse(oldBugs.url).protocol)
262
- data.bugs.url = oldBugs.url
263
- else
264
- this.warn("nonUrlBugsUrlField")
265
- }
266
- if(oldBugs.email) {
267
- if(typeof(oldBugs.email) == "string" && emailRe.test(oldBugs.email))
268
- data.bugs.email = oldBugs.email
269
- else
270
- this.warn("nonEmailBugsEmailField")
271
- }
272
- }
273
- if(!data.bugs.email && !data.bugs.url) {
274
- delete data.bugs
275
- this.warn("emptyNormalizedBugs")
276
- }
277
- }
278
- }
279
-
280
- , fixHomepageField: function(data) {
281
- if (!data.homepage && data.repository && data.repository.url) {
282
- var hosted = hostedGitInfo.fromUrl(data.repository.url)
283
- if (hosted && hosted.docs()) data.homepage = hosted.docs()
284
- }
285
- if (!data.homepage) return
286
-
287
- if(typeof data.homepage !== "string") {
288
- this.warn("nonUrlHomepage")
289
- return delete data.homepage
290
- }
291
- if(!url.parse(data.homepage).protocol) {
292
- data.homepage = "http://" + data.homepage
293
- }
294
- }
295
-
296
- , fixLicenseField: function(data) {
297
- if (!data.license) {
298
- return this.warn("missingLicense")
299
- } else{
300
- if (
301
- typeof(data.license) !== 'string' ||
302
- data.license.length < 1 ||
303
- data.license.trim() === ''
304
- ) {
305
- this.warn("invalidLicense")
306
- } else {
307
- if (!validateLicense(data.license).validForNewPackages)
308
- this.warn("invalidLicense")
309
- }
310
- }
311
- }
312
- }
313
-
314
- function isValidScopedPackageName(spec) {
315
- if (spec.charAt(0) !== '@') return false
316
-
317
- var rest = spec.slice(1).split('/')
318
- if (rest.length !== 2) return false
319
-
320
- return rest[0] && rest[1] &&
321
- rest[0] === encodeURIComponent(rest[0]) &&
322
- rest[1] === encodeURIComponent(rest[1])
323
- }
324
-
325
- function isCorrectlyEncodedName(spec) {
326
- return !spec.match(/[\/@\s\+%:]/) &&
327
- spec === encodeURIComponent(spec)
328
- }
329
-
330
- function ensureValidName (name, strict, allowLegacyCase) {
331
- if (name.charAt(0) === "." ||
332
- !(isValidScopedPackageName(name) || isCorrectlyEncodedName(name)) ||
333
- (strict && (!allowLegacyCase) && name !== name.toLowerCase()) ||
334
- name.toLowerCase() === "node_modules" ||
335
- name.toLowerCase() === "favicon.ico") {
336
- throw new Error("Invalid name: " + JSON.stringify(name))
337
- }
338
- }
339
-
340
- function modifyPeople (data, fn) {
341
- if (data.author) data.author = fn(data.author)
342
- ;["maintainers", "contributors"].forEach(function (set) {
343
- if (!Array.isArray(data[set])) return;
344
- data[set] = data[set].map(fn)
345
- })
346
- return data
347
- }
348
-
349
- function unParsePerson (person) {
350
- if (typeof person === "string") return person
351
- var name = person.name || ""
352
- var u = person.url || person.web
353
- var url = u ? (" ("+u+")") : ""
354
- var e = person.email || person.mail
355
- var email = e ? (" <"+e+">") : ""
356
- return name+email+url
357
- }
358
-
359
- function parsePerson (person) {
360
- if (typeof person !== "string") return person
361
- var name = person.match(/^([^\(<]+)/)
362
- var url = person.match(/\(([^\)]+)\)/)
363
- var email = person.match(/<([^>]+)>/)
364
- var obj = {}
365
- if (name && name[0].trim()) obj.name = name[0].trim()
366
- if (email) obj.email = email[1];
367
- if (url) obj.url = url[1];
368
- return obj
369
- }
370
-
371
- function addOptionalDepsToDeps (data, warn) {
372
- var o = data.optionalDependencies
373
- if (!o) return;
374
- var d = data.dependencies || {}
375
- Object.keys(o).forEach(function (k) {
376
- d[k] = o[k]
377
- })
378
- data.dependencies = d
379
- }
380
-
381
- function depObjectify (deps, type, warn) {
382
- if (!deps) return {}
383
- if (typeof deps === "string") {
384
- deps = deps.trim().split(/[\n\r\s\t ,]+/)
385
- }
386
- if (!Array.isArray(deps)) return deps
387
- warn("deprecatedArrayDependencies", type)
388
- var o = {}
389
- deps.filter(function (d) {
390
- return typeof d === "string"
391
- }).forEach(function(d) {
392
- d = d.trim().split(/(:?[@\s><=])/)
393
- var dn = d.shift()
394
- var dv = d.join("")
395
- dv = dv.trim()
396
- dv = dv.replace(/^@/, "")
397
- o[dn] = dv
398
- })
399
- return o
400
- }
401
-
402
- function objectifyDeps (data, warn) {
403
- depTypes.forEach(function (type) {
404
- if (!data[type]) return;
405
- data[type] = depObjectify(data[type], type, warn)
406
- })
407
- }
408
-
409
- function bugsTypos(bugs, warn) {
410
- if (!bugs) return
411
- Object.keys(bugs).forEach(function (k) {
412
- if (typos.bugs[k]) {
413
- warn("typo", k, typos.bugs[k], "bugs")
414
- bugs[typos.bugs[k]] = bugs[k]
415
- delete bugs[k]
416
- }
417
- })
418
- }
@@ -1,23 +0,0 @@
1
- var util = require("util")
2
- var messages = require("./warning_messages.json")
3
-
4
- module.exports = function() {
5
- var args = Array.prototype.slice.call(arguments, 0)
6
- var warningName = args.shift()
7
- if (warningName == "typo") {
8
- return makeTypoWarning.apply(null,args)
9
- }
10
- else {
11
- var msgTemplate = messages[warningName] ? messages[warningName] : warningName + ": '%s'"
12
- args.unshift(msgTemplate)
13
- return util.format.apply(null, args)
14
- }
15
- }
16
-
17
- function makeTypoWarning (providedName, probableName, field) {
18
- if (field) {
19
- providedName = field + "['" + providedName + "']"
20
- probableName = field + "['" + probableName + "']"
21
- }
22
- return util.format(messages.typo, providedName, probableName)
23
- }