step-node-agent 3.17.0 → 3.18.1

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 (519) hide show
  1. package/node_modules/accepts/HISTORY.md +7 -0
  2. package/node_modules/accepts/README.md +3 -5
  3. package/node_modules/accepts/package.json +18 -18
  4. package/node_modules/asn1/Jenkinsfile +65 -0
  5. package/node_modules/asn1/package.json +5 -5
  6. package/node_modules/body-parser/HISTORY.md +15 -0
  7. package/node_modules/body-parser/README.md +25 -12
  8. package/node_modules/body-parser/package.json +23 -23
  9. package/node_modules/bytes/History.md +5 -0
  10. package/node_modules/bytes/Readme.md +42 -16
  11. package/node_modules/bytes/index.js +5 -1
  12. package/node_modules/bytes/package.json +9 -8
  13. package/node_modules/content-disposition/HISTORY.md +5 -0
  14. package/node_modules/content-disposition/README.md +3 -9
  15. package/node_modules/content-disposition/index.js +1 -1
  16. package/node_modules/content-disposition/package.json +16 -16
  17. package/node_modules/cookie/HISTORY.md +5 -0
  18. package/node_modules/cookie/README.md +4 -0
  19. package/node_modules/cookie/index.js +5 -1
  20. package/node_modules/cookie/package.json +11 -11
  21. package/node_modules/express/History.md +33 -0
  22. package/node_modules/express/Readme.md +8 -5
  23. package/node_modules/express/lib/application.js +1 -1
  24. package/node_modules/express/lib/request.js +1 -1
  25. package/node_modules/express/lib/response.js +16 -11
  26. package/node_modules/express/lib/router/index.js +6 -0
  27. package/node_modules/express/lib/utils.js +2 -6
  28. package/node_modules/express/package.json +26 -25
  29. package/node_modules/glob/README.md +3 -0
  30. package/node_modules/glob/common.js +2 -0
  31. package/node_modules/glob/glob.js +4 -5
  32. package/node_modules/glob/package.json +5 -4
  33. package/node_modules/glob/sync.js +4 -5
  34. package/node_modules/graceful-fs/README.md +11 -1
  35. package/node_modules/graceful-fs/graceful-fs.js +105 -49
  36. package/node_modules/graceful-fs/package.json +4 -4
  37. package/node_modules/graceful-fs/polyfills.js +4 -2
  38. package/node_modules/http-errors/HISTORY.md +16 -0
  39. package/node_modules/http-errors/README.md +12 -6
  40. package/node_modules/http-errors/index.js +35 -2
  41. package/node_modules/http-errors/package.json +19 -19
  42. package/node_modules/inherits/inherits.js +2 -0
  43. package/node_modules/inherits/inherits_browser.js +18 -14
  44. package/node_modules/inherits/package.json +6 -6
  45. package/node_modules/is-callable/.editorconfig +5 -0
  46. package/node_modules/is-callable/.nycrc +0 -4
  47. package/node_modules/is-callable/CHANGELOG.md +14 -0
  48. package/node_modules/is-callable/README.md +14 -15
  49. package/node_modules/is-callable/index.js +1 -1
  50. package/node_modules/is-callable/package.json +20 -28
  51. package/node_modules/is-callable/test/index.js +22 -50
  52. package/node_modules/is-core-module/.eslintrc +0 -1
  53. package/node_modules/is-core-module/CHANGELOG.md +44 -0
  54. package/node_modules/is-core-module/core.json +67 -61
  55. package/node_modules/is-core-module/index.js +1 -1
  56. package/node_modules/is-core-module/package.json +12 -11
  57. package/node_modules/is-core-module/test/index.js +23 -1
  58. package/node_modules/json-schema/LICENSE +195 -0
  59. package/node_modules/json-schema/README.md +2 -4
  60. package/node_modules/json-schema/lib/links.js +1 -2
  61. package/node_modules/json-schema/lib/validate.js +7 -9
  62. package/node_modules/json-schema/package.json +8 -14
  63. package/node_modules/jsprim/CHANGES.md +4 -0
  64. package/node_modules/jsprim/package.json +8 -8
  65. package/node_modules/mime-db/HISTORY.md +19 -0
  66. package/node_modules/mime-db/db.json +93 -1
  67. package/node_modules/mime-db/package.json +10 -10
  68. package/node_modules/mime-types/HISTORY.md +20 -3
  69. package/node_modules/mime-types/package.json +10 -10
  70. package/node_modules/negotiator/HISTORY.md +5 -0
  71. package/node_modules/negotiator/README.md +3 -3
  72. package/node_modules/negotiator/index.js +4 -46
  73. package/node_modules/negotiator/lib/language.js +3 -3
  74. package/node_modules/negotiator/package.json +11 -11
  75. package/node_modules/npm/CHANGELOG.md +30 -0
  76. package/node_modules/npm/docs/public/cli-commands/npm/index.html +3 -3
  77. package/node_modules/npm/docs/public/cli-commands/npm-access/index.html +2 -2
  78. package/node_modules/npm/docs/public/cli-commands/npm-adduser/index.html +2 -2
  79. package/node_modules/npm/docs/public/cli-commands/npm-audit/index.html +2 -2
  80. package/node_modules/npm/docs/public/cli-commands/npm-bin/index.html +2 -2
  81. package/node_modules/npm/docs/public/cli-commands/npm-bugs/index.html +2 -2
  82. package/node_modules/npm/docs/public/cli-commands/npm-build/index.html +2 -2
  83. package/node_modules/npm/docs/public/cli-commands/npm-bundle/index.html +2 -2
  84. package/node_modules/npm/docs/public/cli-commands/npm-cache/index.html +2 -2
  85. package/node_modules/npm/docs/public/cli-commands/npm-ci/index.html +2 -2
  86. package/node_modules/npm/docs/public/cli-commands/npm-completion/index.html +2 -2
  87. package/node_modules/npm/docs/public/cli-commands/npm-config/index.html +2 -2
  88. package/node_modules/npm/docs/public/cli-commands/npm-dedupe/index.html +2 -2
  89. package/node_modules/npm/docs/public/cli-commands/npm-deprecate/index.html +2 -2
  90. package/node_modules/npm/docs/public/cli-commands/npm-dist-tag/index.html +2 -2
  91. package/node_modules/npm/docs/public/cli-commands/npm-docs/index.html +2 -2
  92. package/node_modules/npm/docs/public/cli-commands/npm-doctor/index.html +2 -2
  93. package/node_modules/npm/docs/public/cli-commands/npm-edit/index.html +2 -2
  94. package/node_modules/npm/docs/public/cli-commands/npm-explore/index.html +2 -2
  95. package/node_modules/npm/docs/public/cli-commands/npm-fund/index.html +2 -2
  96. package/node_modules/npm/docs/public/cli-commands/npm-help/index.html +2 -2
  97. package/node_modules/npm/docs/public/cli-commands/npm-help-search/index.html +2 -2
  98. package/node_modules/npm/docs/public/cli-commands/npm-hook/index.html +2 -2
  99. package/node_modules/npm/docs/public/cli-commands/npm-init/index.html +2 -2
  100. package/node_modules/npm/docs/public/cli-commands/npm-install/index.html +2 -2
  101. package/node_modules/npm/docs/public/cli-commands/npm-install-ci-test/index.html +2 -2
  102. package/node_modules/npm/docs/public/cli-commands/npm-install-test/index.html +2 -2
  103. package/node_modules/npm/docs/public/cli-commands/npm-link/index.html +2 -2
  104. package/node_modules/npm/docs/public/cli-commands/npm-logout/index.html +2 -2
  105. package/node_modules/npm/docs/public/cli-commands/npm-ls/index.html +3 -3
  106. package/node_modules/npm/docs/public/cli-commands/npm-org/index.html +2 -2
  107. package/node_modules/npm/docs/public/cli-commands/npm-outdated/index.html +2 -2
  108. package/node_modules/npm/docs/public/cli-commands/npm-owner/index.html +2 -2
  109. package/node_modules/npm/docs/public/cli-commands/npm-pack/index.html +2 -2
  110. package/node_modules/npm/docs/public/cli-commands/npm-ping/index.html +2 -2
  111. package/node_modules/npm/docs/public/cli-commands/npm-prefix/index.html +2 -2
  112. package/node_modules/npm/docs/public/cli-commands/npm-profile/index.html +2 -2
  113. package/node_modules/npm/docs/public/cli-commands/npm-prune/index.html +2 -2
  114. package/node_modules/npm/docs/public/cli-commands/npm-publish/index.html +2 -2
  115. package/node_modules/npm/docs/public/cli-commands/npm-rebuild/index.html +2 -2
  116. package/node_modules/npm/docs/public/cli-commands/npm-repo/index.html +2 -2
  117. package/node_modules/npm/docs/public/cli-commands/npm-restart/index.html +2 -2
  118. package/node_modules/npm/docs/public/cli-commands/npm-root/index.html +2 -2
  119. package/node_modules/npm/docs/public/cli-commands/npm-run-script/index.html +2 -2
  120. package/node_modules/npm/docs/public/cli-commands/npm-search/index.html +2 -2
  121. package/node_modules/npm/docs/public/cli-commands/npm-shrinkwrap/index.html +2 -2
  122. package/node_modules/npm/docs/public/cli-commands/npm-star/index.html +2 -2
  123. package/node_modules/npm/docs/public/cli-commands/npm-stars/index.html +2 -2
  124. package/node_modules/npm/docs/public/cli-commands/npm-start/index.html +2 -2
  125. package/node_modules/npm/docs/public/cli-commands/npm-stop/index.html +2 -2
  126. package/node_modules/npm/docs/public/cli-commands/npm-team/index.html +2 -2
  127. package/node_modules/npm/docs/public/cli-commands/npm-test/index.html +2 -2
  128. package/node_modules/npm/docs/public/cli-commands/npm-token/index.html +2 -2
  129. package/node_modules/npm/docs/public/cli-commands/npm-uninstall/index.html +2 -2
  130. package/node_modules/npm/docs/public/cli-commands/npm-unpublish/index.html +2 -2
  131. package/node_modules/npm/docs/public/cli-commands/npm-update/index.html +2 -2
  132. package/node_modules/npm/docs/public/cli-commands/npm-version/index.html +2 -2
  133. package/node_modules/npm/docs/public/cli-commands/npm-view/index.html +2 -2
  134. package/node_modules/npm/docs/public/cli-commands/npm-whoami/index.html +2 -2
  135. package/node_modules/npm/docs/public/configuring-npm/folders/index.html +2 -2
  136. package/node_modules/npm/docs/public/configuring-npm/install/index.html +2 -2
  137. package/node_modules/npm/docs/public/configuring-npm/npmrc/index.html +2 -2
  138. package/node_modules/npm/docs/public/configuring-npm/package-json/index.html +2 -2
  139. package/node_modules/npm/docs/public/configuring-npm/package-lock-json/index.html +2 -2
  140. package/node_modules/npm/docs/public/configuring-npm/package-locks/index.html +2 -2
  141. package/node_modules/npm/docs/public/configuring-npm/shrinkwrap-json/index.html +2 -2
  142. package/node_modules/npm/docs/public/index.html +1 -1
  143. package/node_modules/npm/docs/public/using-npm/config/index.html +2 -2
  144. package/node_modules/npm/docs/public/using-npm/developers/index.html +2 -2
  145. package/node_modules/npm/docs/public/using-npm/disputes/index.html +2 -2
  146. package/node_modules/npm/docs/public/using-npm/orgs/index.html +2 -2
  147. package/node_modules/npm/docs/public/using-npm/registry/index.html +2 -2
  148. package/node_modules/npm/docs/public/using-npm/removal/index.html +2 -2
  149. package/node_modules/npm/docs/public/using-npm/scope/index.html +2 -2
  150. package/node_modules/npm/docs/public/using-npm/scripts/index.html +2 -2
  151. package/node_modules/npm/docs/public/using-npm/semver/index.html +2 -2
  152. package/node_modules/npm/lib/auth/legacy.js +1 -1
  153. package/node_modules/npm/lib/profile.js +2 -2
  154. package/node_modules/npm/man/man1/npm-README.1 +1 -1
  155. package/node_modules/npm/man/man1/npm-access.1 +1 -1
  156. package/node_modules/npm/man/man1/npm-adduser.1 +1 -1
  157. package/node_modules/npm/man/man1/npm-audit.1 +1 -1
  158. package/node_modules/npm/man/man1/npm-bin.1 +1 -1
  159. package/node_modules/npm/man/man1/npm-bugs.1 +1 -1
  160. package/node_modules/npm/man/man1/npm-build.1 +1 -1
  161. package/node_modules/npm/man/man1/npm-bundle.1 +1 -1
  162. package/node_modules/npm/man/man1/npm-cache.1 +1 -1
  163. package/node_modules/npm/man/man1/npm-ci.1 +1 -1
  164. package/node_modules/npm/man/man1/npm-completion.1 +1 -1
  165. package/node_modules/npm/man/man1/npm-config.1 +1 -1
  166. package/node_modules/npm/man/man1/npm-dedupe.1 +1 -1
  167. package/node_modules/npm/man/man1/npm-deprecate.1 +1 -1
  168. package/node_modules/npm/man/man1/npm-dist-tag.1 +1 -1
  169. package/node_modules/npm/man/man1/npm-docs.1 +1 -1
  170. package/node_modules/npm/man/man1/npm-doctor.1 +1 -1
  171. package/node_modules/npm/man/man1/npm-edit.1 +1 -1
  172. package/node_modules/npm/man/man1/npm-explore.1 +1 -1
  173. package/node_modules/npm/man/man1/npm-fund.1 +1 -1
  174. package/node_modules/npm/man/man1/npm-help-search.1 +1 -1
  175. package/node_modules/npm/man/man1/npm-help.1 +1 -1
  176. package/node_modules/npm/man/man1/npm-hook.1 +1 -1
  177. package/node_modules/npm/man/man1/npm-init.1 +1 -1
  178. package/node_modules/npm/man/man1/npm-install-ci-test.1 +1 -1
  179. package/node_modules/npm/man/man1/npm-install-test.1 +1 -1
  180. package/node_modules/npm/man/man1/npm-install.1 +1 -1
  181. package/node_modules/npm/man/man1/npm-link.1 +1 -1
  182. package/node_modules/npm/man/man1/npm-logout.1 +1 -1
  183. package/node_modules/npm/man/man1/npm-ls.1 +2 -2
  184. package/node_modules/npm/man/man1/npm-org.1 +1 -1
  185. package/node_modules/npm/man/man1/npm-outdated.1 +1 -1
  186. package/node_modules/npm/man/man1/npm-owner.1 +1 -1
  187. package/node_modules/npm/man/man1/npm-pack.1 +1 -1
  188. package/node_modules/npm/man/man1/npm-ping.1 +1 -1
  189. package/node_modules/npm/man/man1/npm-prefix.1 +1 -1
  190. package/node_modules/npm/man/man1/npm-profile.1 +1 -1
  191. package/node_modules/npm/man/man1/npm-prune.1 +1 -1
  192. package/node_modules/npm/man/man1/npm-publish.1 +1 -1
  193. package/node_modules/npm/man/man1/npm-rebuild.1 +1 -1
  194. package/node_modules/npm/man/man1/npm-repo.1 +1 -1
  195. package/node_modules/npm/man/man1/npm-restart.1 +1 -1
  196. package/node_modules/npm/man/man1/npm-root.1 +1 -1
  197. package/node_modules/npm/man/man1/npm-run-script.1 +1 -1
  198. package/node_modules/npm/man/man1/npm-search.1 +1 -1
  199. package/node_modules/npm/man/man1/npm-shrinkwrap.1 +1 -1
  200. package/node_modules/npm/man/man1/npm-star.1 +1 -1
  201. package/node_modules/npm/man/man1/npm-stars.1 +1 -1
  202. package/node_modules/npm/man/man1/npm-start.1 +1 -1
  203. package/node_modules/npm/man/man1/npm-stop.1 +1 -1
  204. package/node_modules/npm/man/man1/npm-team.1 +1 -1
  205. package/node_modules/npm/man/man1/npm-test.1 +1 -1
  206. package/node_modules/npm/man/man1/npm-token.1 +1 -1
  207. package/node_modules/npm/man/man1/npm-uninstall.1 +1 -1
  208. package/node_modules/npm/man/man1/npm-unpublish.1 +1 -1
  209. package/node_modules/npm/man/man1/npm-update.1 +1 -1
  210. package/node_modules/npm/man/man1/npm-version.1 +1 -1
  211. package/node_modules/npm/man/man1/npm-view.1 +1 -1
  212. package/node_modules/npm/man/man1/npm-whoami.1 +1 -1
  213. package/node_modules/npm/man/man1/npm.1 +2 -2
  214. package/node_modules/npm/man/man5/folders.5 +1 -1
  215. package/node_modules/npm/man/man5/install.5 +1 -1
  216. package/node_modules/npm/man/man5/npmrc.5 +1 -1
  217. package/node_modules/npm/man/man5/package-json.5 +1 -1
  218. package/node_modules/npm/man/man5/package-lock-json.5 +1 -1
  219. package/node_modules/npm/man/man5/package-locks.5 +1 -1
  220. package/node_modules/npm/man/man5/shrinkwrap-json.5 +1 -1
  221. package/node_modules/npm/man/man7/config.7 +1 -1
  222. package/node_modules/npm/man/man7/developers.7 +1 -1
  223. package/node_modules/npm/man/man7/disputes.7 +1 -1
  224. package/node_modules/npm/man/man7/orgs.7 +1 -1
  225. package/node_modules/npm/man/man7/registry.7 +1 -1
  226. package/node_modules/npm/man/man7/removal.7 +1 -1
  227. package/node_modules/npm/man/man7/scope.7 +1 -1
  228. package/node_modules/npm/man/man7/scripts.7 +1 -1
  229. package/node_modules/npm/man/man7/semver.7 +1 -1
  230. package/node_modules/npm/node_modules/json-schema/LICENSE +195 -0
  231. package/node_modules/npm/node_modules/json-schema/README.md +2 -4
  232. package/node_modules/npm/node_modules/json-schema/lib/links.js +1 -2
  233. package/node_modules/npm/node_modules/json-schema/lib/validate.js +7 -9
  234. package/node_modules/npm/node_modules/json-schema/package.json +16 -22
  235. package/node_modules/npm/node_modules/jsprim/CHANGES.md +4 -0
  236. package/node_modules/npm/node_modules/jsprim/CONTRIBUTING.md +19 -0
  237. package/node_modules/npm/node_modules/jsprim/package.json +16 -16
  238. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.pyc +0 -0
  239. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.pyc +0 -0
  240. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.pyc +0 -0
  241. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.pyc +0 -0
  242. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.pyc +0 -0
  243. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.pyc +0 -0
  244. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.pyc +0 -0
  245. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.pyc +0 -0
  246. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.pyc +0 -0
  247. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.pyc +0 -0
  248. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.pyc +0 -0
  249. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.pyc +0 -0
  250. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.pyc +0 -0
  251. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.pyc +0 -0
  252. package/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.pyc +0 -0
  253. package/node_modules/npm/node_modules/path-parse/index.js +17 -35
  254. package/node_modules/npm/node_modules/path-parse/package.json +14 -17
  255. package/node_modules/npm/node_modules/tar/lib/extract.js +4 -3
  256. package/node_modules/npm/node_modules/tar/lib/list.js +4 -3
  257. package/node_modules/npm/node_modules/tar/lib/mkdir.js +55 -48
  258. package/node_modules/npm/node_modules/tar/lib/normalize-windows-path.js +8 -0
  259. package/node_modules/npm/node_modules/tar/lib/pack.js +8 -18
  260. package/node_modules/npm/node_modules/tar/lib/path-reservations.js +149 -0
  261. package/node_modules/npm/node_modules/tar/lib/read-entry.js +4 -3
  262. package/node_modules/npm/node_modules/tar/lib/replace.js +2 -1
  263. package/node_modules/npm/node_modules/tar/lib/strip-absolute-path.js +24 -0
  264. package/node_modules/npm/node_modules/tar/lib/strip-trailing-slashes.js +24 -0
  265. package/node_modules/npm/node_modules/tar/lib/unpack.js +321 -96
  266. package/node_modules/npm/node_modules/tar/lib/write-entry.js +178 -82
  267. package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/LICENSE +21 -0
  268. package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/README.md +584 -0
  269. package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/index.d.ts +187 -0
  270. package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/index.js +65 -0
  271. package/node_modules/npm/node_modules/tar/node_modules/safe-buffer/package.json +77 -0
  272. package/node_modules/npm/node_modules/tar/node_modules/yallist/LICENSE +15 -0
  273. package/node_modules/npm/node_modules/tar/node_modules/yallist/README.md +204 -0
  274. package/node_modules/npm/node_modules/tar/node_modules/yallist/iterator.js +8 -0
  275. package/node_modules/npm/node_modules/tar/node_modules/yallist/package.json +63 -0
  276. package/node_modules/npm/node_modules/tar/node_modules/yallist/yallist.js +426 -0
  277. package/node_modules/npm/node_modules/tar/package.json +29 -26
  278. package/node_modules/npm/package.json +6 -5
  279. package/node_modules/qs/.editorconfig +9 -0
  280. package/node_modules/qs/.eslintignore +2 -1
  281. package/node_modules/qs/.eslintrc +15 -1
  282. package/node_modules/qs/.github/FUNDING.yml +12 -0
  283. package/node_modules/qs/.nycrc +13 -0
  284. package/node_modules/qs/CHANGELOG.md +103 -0
  285. package/node_modules/qs/LICENSE.md +29 -0
  286. package/node_modules/qs/README.md +34 -0
  287. package/node_modules/qs/dist/qs.js +117 -67
  288. package/node_modules/qs/lib/formats.js +9 -4
  289. package/node_modules/qs/lib/parse.js +29 -14
  290. package/node_modules/qs/lib/stringify.js +55 -46
  291. package/node_modules/qs/lib/utils.js +23 -2
  292. package/node_modules/qs/package.json +31 -20
  293. package/node_modules/qs/test/parse.js +97 -1
  294. package/node_modules/qs/test/stringify.js +115 -1
  295. package/node_modules/qs/test/utils.js +1 -1
  296. package/node_modules/raw-body/HISTORY.md +14 -0
  297. package/node_modules/raw-body/README.md +3 -5
  298. package/node_modules/raw-body/package.json +21 -21
  299. package/node_modules/request/node_modules/qs/.editorconfig +14 -1
  300. package/node_modules/request/node_modules/qs/.eslintrc +21 -3
  301. package/node_modules/request/node_modules/qs/.github/FUNDING.yml +12 -0
  302. package/node_modules/request/node_modules/qs/.nycrc +13 -0
  303. package/node_modules/request/node_modules/qs/CHANGELOG.md +24 -0
  304. package/node_modules/request/node_modules/qs/LICENSE.md +29 -0
  305. package/node_modules/request/node_modules/qs/README.md +54 -19
  306. package/node_modules/request/node_modules/qs/bower.json +21 -0
  307. package/node_modules/request/node_modules/qs/component.json +15 -0
  308. package/node_modules/request/node_modules/qs/dist/qs.js +35 -25
  309. package/node_modules/request/node_modules/qs/lib/formats.js +1 -1
  310. package/node_modules/request/node_modules/qs/lib/parse.js +6 -5
  311. package/node_modules/request/node_modules/qs/lib/stringify.js +21 -14
  312. package/node_modules/request/node_modules/qs/lib/utils.js +7 -5
  313. package/node_modules/request/node_modules/qs/package.json +21 -19
  314. package/node_modules/request/node_modules/qs/test/parse.js +79 -4
  315. package/node_modules/request/node_modules/qs/test/stringify.js +45 -0
  316. package/node_modules/request/node_modules/qs/test/utils.js +31 -0
  317. package/node_modules/resolve/.eslintrc +34 -8
  318. package/node_modules/resolve/.github/FUNDING.yml +12 -0
  319. package/node_modules/resolve/appveyor.yml +4 -2
  320. package/node_modules/resolve/async.js +3 -0
  321. package/node_modules/resolve/bin/resolve +50 -0
  322. package/node_modules/resolve/lib/async.js +10 -1
  323. package/node_modules/resolve/lib/core.js +1 -2
  324. package/node_modules/resolve/lib/core.json +85 -16
  325. package/node_modules/resolve/lib/homedir.js +24 -0
  326. package/node_modules/resolve/lib/node-modules-paths.js +1 -1
  327. package/node_modules/resolve/lib/sync.js +14 -5
  328. package/node_modules/resolve/package.json +26 -15
  329. package/node_modules/resolve/readme.markdown +35 -13
  330. package/node_modules/resolve/sync.js +3 -0
  331. package/node_modules/resolve/test/home_paths.js +127 -0
  332. package/node_modules/resolve/test/home_paths_sync.js +114 -0
  333. package/node_modules/resolve/test/mock_sync.js +2 -4
  334. package/node_modules/resolve/test/node_path.js +1 -1
  335. package/node_modules/resolve/test/resolver/invalid_main/package.json +1 -1
  336. package/node_modules/resolve/test/resolver/malformed_package_json/index.js +0 -0
  337. package/node_modules/resolve/test/resolver/malformed_package_json/package.json +1 -0
  338. package/node_modules/resolve/test/resolver.js +99 -3
  339. package/node_modules/resolve/test/resolver_sync.js +310 -23
  340. package/node_modules/safe-buffer/index.js +3 -0
  341. package/node_modules/safe-buffer/package.json +21 -7
  342. package/node_modules/send/HISTORY.md +10 -0
  343. package/node_modules/send/README.md +4 -6
  344. package/node_modules/send/index.js +7 -3
  345. package/node_modules/send/node_modules/ms/index.js +3 -3
  346. package/node_modules/send/node_modules/ms/license.md +1 -1
  347. package/node_modules/send/node_modules/ms/package.json +8 -7
  348. package/node_modules/send/node_modules/ms/readme.md +1 -2
  349. package/node_modules/send/package.json +19 -19
  350. package/node_modules/serve-static/HISTORY.md +8 -0
  351. package/node_modules/serve-static/README.md +9 -11
  352. package/node_modules/serve-static/package.json +19 -19
  353. package/node_modules/setprototypeof/README.md +1 -1
  354. package/node_modules/setprototypeof/index.js +1 -1
  355. package/node_modules/setprototypeof/package.json +9 -7
  356. package/node_modules/shelljs/package.json +4 -4
  357. package/node_modules/shelljs/src/exec.js +19 -1
  358. package/node_modules/signal-exit/README.md +1 -1
  359. package/node_modules/signal-exit/index.js +169 -130
  360. package/node_modules/signal-exit/package.json +13 -13
  361. package/node_modules/sshpk/Jenkinsfile +86 -0
  362. package/node_modules/sshpk/lib/formats/putty.js +99 -4
  363. package/node_modules/sshpk/lib/private-key.js +1 -0
  364. package/node_modules/sshpk/package.json +4 -4
  365. package/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
  366. package/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
  367. package/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
  368. package/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
  369. package/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
  370. package/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
  371. package/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
  372. package/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
  373. package/node_modules/supports-preserve-symlinks-flag/package.json +74 -0
  374. package/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
  375. package/node_modules/toidentifier/HISTORY.md +9 -0
  376. package/node_modules/toidentifier/README.md +3 -3
  377. package/node_modules/toidentifier/index.js +2 -0
  378. package/node_modules/toidentifier/package.json +19 -15
  379. package/node_modules/underscore/amd/_collectNonEnumProps.js +1 -1
  380. package/node_modules/underscore/amd/_setup.js +1 -1
  381. package/node_modules/underscore/amd/sample.js +2 -2
  382. package/node_modules/underscore/cjs/_collectNonEnumProps.js +1 -1
  383. package/node_modules/underscore/cjs/_setup.js +1 -1
  384. package/node_modules/underscore/cjs/sample.js +2 -2
  385. package/node_modules/underscore/modules/_collectNonEnumProps.js +1 -1
  386. package/node_modules/underscore/modules/_setup.js +1 -1
  387. package/node_modules/underscore/modules/index.js +1 -1
  388. package/node_modules/underscore/modules/sample.js +2 -2
  389. package/node_modules/underscore/package.json +4 -4
  390. package/node_modules/underscore/underscore-esm-min.js +2 -2
  391. package/node_modules/underscore/underscore-esm-min.js.map +1 -1
  392. package/node_modules/underscore/underscore-esm.js +17 -17
  393. package/node_modules/underscore/underscore-esm.js.map +1 -1
  394. package/node_modules/underscore/underscore-min.js +2 -2
  395. package/node_modules/underscore/underscore-min.js.map +1 -1
  396. package/node_modules/underscore/underscore-node-f.cjs +17 -17
  397. package/node_modules/underscore/underscore-node-f.cjs.map +1 -1
  398. package/node_modules/underscore/underscore-node.cjs +1 -1
  399. package/node_modules/underscore/underscore-node.mjs +1 -1
  400. package/node_modules/underscore/underscore-umd-min.js +2 -2
  401. package/node_modules/underscore/underscore-umd-min.js.map +1 -1
  402. package/node_modules/underscore/underscore-umd.js +17 -17
  403. package/node_modules/underscore/underscore-umd.js.map +1 -1
  404. package/node_modules/underscore/underscore.js +17 -17
  405. package/package.json +9 -9
  406. package/node_modules/glob/changelog.md +0 -67
  407. package/node_modules/hosted-git-info/CHANGELOG.md +0 -151
  408. package/node_modules/hosted-git-info/LICENSE +0 -13
  409. package/node_modules/hosted-git-info/README.md +0 -133
  410. package/node_modules/hosted-git-info/git-host-info.js +0 -79
  411. package/node_modules/hosted-git-info/git-host.js +0 -156
  412. package/node_modules/hosted-git-info/index.js +0 -148
  413. package/node_modules/hosted-git-info/package.json +0 -44
  414. package/node_modules/is-callable/.github/main.workflow +0 -14
  415. package/node_modules/is-core-module/.eslintignore +0 -1
  416. package/node_modules/json-parse-better-errors/CHANGELOG.md +0 -46
  417. package/node_modules/json-parse-better-errors/LICENSE.md +0 -7
  418. package/node_modules/json-parse-better-errors/README.md +0 -46
  419. package/node_modules/json-parse-better-errors/index.js +0 -38
  420. package/node_modules/json-parse-better-errors/package.json +0 -49
  421. package/node_modules/json-schema/draft-00/hyper-schema +0 -68
  422. package/node_modules/json-schema/draft-00/json-ref +0 -26
  423. package/node_modules/json-schema/draft-00/links +0 -33
  424. package/node_modules/json-schema/draft-00/schema +0 -155
  425. package/node_modules/json-schema/draft-01/hyper-schema +0 -68
  426. package/node_modules/json-schema/draft-01/json-ref +0 -26
  427. package/node_modules/json-schema/draft-01/links +0 -33
  428. package/node_modules/json-schema/draft-01/schema +0 -155
  429. package/node_modules/json-schema/draft-02/hyper-schema +0 -68
  430. package/node_modules/json-schema/draft-02/json-ref +0 -26
  431. package/node_modules/json-schema/draft-02/links +0 -35
  432. package/node_modules/json-schema/draft-02/schema +0 -166
  433. package/node_modules/json-schema/draft-03/examples/address +0 -20
  434. package/node_modules/json-schema/draft-03/examples/calendar +0 -53
  435. package/node_modules/json-schema/draft-03/examples/card +0 -105
  436. package/node_modules/json-schema/draft-03/examples/geo +0 -8
  437. package/node_modules/json-schema/draft-03/examples/interfaces +0 -23
  438. package/node_modules/json-schema/draft-03/hyper-schema +0 -60
  439. package/node_modules/json-schema/draft-03/json-ref +0 -26
  440. package/node_modules/json-schema/draft-03/links +0 -35
  441. package/node_modules/json-schema/draft-03/schema +0 -174
  442. package/node_modules/json-schema/draft-04/hyper-schema +0 -60
  443. package/node_modules/json-schema/draft-04/links +0 -41
  444. package/node_modules/json-schema/draft-04/schema +0 -189
  445. package/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
  446. package/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
  447. package/node_modules/json-schema/test/tests.js +0 -95
  448. package/node_modules/normalize-package-data/AUTHORS +0 -4
  449. package/node_modules/normalize-package-data/LICENSE +0 -30
  450. package/node_modules/normalize-package-data/README.md +0 -106
  451. package/node_modules/normalize-package-data/lib/extract_description.js +0 -14
  452. package/node_modules/normalize-package-data/lib/fixer.js +0 -418
  453. package/node_modules/normalize-package-data/lib/make_warning.js +0 -23
  454. package/node_modules/normalize-package-data/lib/normalize.js +0 -39
  455. package/node_modules/normalize-package-data/lib/safe_format.js +0 -9
  456. package/node_modules/normalize-package-data/lib/typos.json +0 -25
  457. package/node_modules/normalize-package-data/lib/warning_messages.json +0 -30
  458. package/node_modules/normalize-package-data/package.json +0 -35
  459. package/node_modules/npm/node_modules/json-schema/draft-00/hyper-schema +0 -68
  460. package/node_modules/npm/node_modules/json-schema/draft-00/json-ref +0 -26
  461. package/node_modules/npm/node_modules/json-schema/draft-00/links +0 -33
  462. package/node_modules/npm/node_modules/json-schema/draft-00/schema +0 -155
  463. package/node_modules/npm/node_modules/json-schema/draft-01/hyper-schema +0 -68
  464. package/node_modules/npm/node_modules/json-schema/draft-01/json-ref +0 -26
  465. package/node_modules/npm/node_modules/json-schema/draft-01/links +0 -33
  466. package/node_modules/npm/node_modules/json-schema/draft-01/schema +0 -155
  467. package/node_modules/npm/node_modules/json-schema/draft-02/hyper-schema +0 -68
  468. package/node_modules/npm/node_modules/json-schema/draft-02/json-ref +0 -26
  469. package/node_modules/npm/node_modules/json-schema/draft-02/links +0 -35
  470. package/node_modules/npm/node_modules/json-schema/draft-02/schema +0 -166
  471. package/node_modules/npm/node_modules/json-schema/draft-03/examples/address +0 -20
  472. package/node_modules/npm/node_modules/json-schema/draft-03/examples/calendar +0 -53
  473. package/node_modules/npm/node_modules/json-schema/draft-03/examples/card +0 -105
  474. package/node_modules/npm/node_modules/json-schema/draft-03/examples/geo +0 -8
  475. package/node_modules/npm/node_modules/json-schema/draft-03/examples/interfaces +0 -23
  476. package/node_modules/npm/node_modules/json-schema/draft-03/hyper-schema +0 -60
  477. package/node_modules/npm/node_modules/json-schema/draft-03/json-ref +0 -26
  478. package/node_modules/npm/node_modules/json-schema/draft-03/links +0 -35
  479. package/node_modules/npm/node_modules/json-schema/draft-03/schema +0 -174
  480. package/node_modules/npm/node_modules/json-schema/draft-04/hyper-schema +0 -60
  481. package/node_modules/npm/node_modules/json-schema/draft-04/links +0 -41
  482. package/node_modules/npm/node_modules/json-schema/draft-04/schema +0 -189
  483. package/node_modules/npm/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
  484. package/node_modules/npm/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
  485. package/node_modules/npm/node_modules/json-schema/test/tests.js +0 -95
  486. package/node_modules/npm/node_modules/path-parse/.travis.yml +0 -9
  487. package/node_modules/npm/node_modules/path-parse/test.js +0 -77
  488. package/node_modules/qs/LICENSE +0 -28
  489. package/node_modules/qs/test/.eslintrc +0 -17
  490. package/node_modules/qs/test/index.js +0 -7
  491. package/node_modules/request/node_modules/qs/.eslintignore +0 -1
  492. package/node_modules/request/node_modules/qs/LICENSE +0 -28
  493. package/node_modules/request/node_modules/qs/test/.eslintrc +0 -15
  494. package/node_modules/resolve/.eslintignore +0 -1
  495. package/node_modules/resolve/test/.eslintrc +0 -5
  496. package/node_modules/signal-exit/CHANGELOG.md +0 -35
  497. package/node_modules/spdx-correct/LICENSE +0 -202
  498. package/node_modules/spdx-correct/README.md +0 -14
  499. package/node_modules/spdx-correct/index.js +0 -364
  500. package/node_modules/spdx-correct/package.json +0 -43
  501. package/node_modules/spdx-exceptions/README.md +0 -36
  502. package/node_modules/spdx-exceptions/index.json +0 -40
  503. package/node_modules/spdx-exceptions/package.json +0 -21
  504. package/node_modules/spdx-expression-parse/AUTHORS +0 -4
  505. package/node_modules/spdx-expression-parse/LICENSE +0 -22
  506. package/node_modules/spdx-expression-parse/README.md +0 -91
  507. package/node_modules/spdx-expression-parse/index.js +0 -8
  508. package/node_modules/spdx-expression-parse/package.json +0 -43
  509. package/node_modules/spdx-expression-parse/parse.js +0 -138
  510. package/node_modules/spdx-expression-parse/scan.js +0 -131
  511. package/node_modules/spdx-license-ids/README.md +0 -52
  512. package/node_modules/spdx-license-ids/deprecated.json +0 -26
  513. package/node_modules/spdx-license-ids/index.json +0 -432
  514. package/node_modules/spdx-license-ids/package.json +0 -44
  515. package/node_modules/sshpk/.npmignore +0 -9
  516. package/node_modules/validate-npm-package-license/LICENSE +0 -202
  517. package/node_modules/validate-npm-package-license/README.md +0 -113
  518. package/node_modules/validate-npm-package-license/index.js +0 -86
  519. package/node_modules/validate-npm-package-license/package.json +0 -32
@@ -1,163 +1,202 @@
1
1
  // Note: since nyc uses this module to output coverage, any lines
2
2
  // that are in the direct sync flow of nyc's outputCoverage are
3
3
  // ignored, since we can never get coverage for them.
4
- var assert = require('assert')
5
- var signals = require('./signals.js')
6
- var isWin = /^win/i.test(process.platform)
7
-
8
- var EE = require('events')
9
- /* istanbul ignore if */
10
- if (typeof EE !== 'function') {
11
- EE = EE.EventEmitter
4
+ // grab a reference to node's real process object right away
5
+ var process = global.process
6
+
7
+ const processOk = function (process) {
8
+ return process &&
9
+ typeof process === 'object' &&
10
+ typeof process.removeListener === 'function' &&
11
+ typeof process.emit === 'function' &&
12
+ typeof process.reallyExit === 'function' &&
13
+ typeof process.listeners === 'function' &&
14
+ typeof process.kill === 'function' &&
15
+ typeof process.pid === 'number' &&
16
+ typeof process.on === 'function'
12
17
  }
13
18
 
14
- var emitter
15
- if (process.__signal_exit_emitter__) {
16
- emitter = process.__signal_exit_emitter__
19
+ // some kind of non-node environment, just no-op
20
+ /* istanbul ignore if */
21
+ if (!processOk(process)) {
22
+ module.exports = function () {
23
+ return function () {}
24
+ }
17
25
  } else {
18
- emitter = process.__signal_exit_emitter__ = new EE()
19
- emitter.count = 0
20
- emitter.emitted = {}
21
- }
22
-
23
- // Because this emitter is a global, we have to check to see if a
24
- // previous version of this library failed to enable infinite listeners.
25
- // I know what you're about to say. But literally everything about
26
- // signal-exit is a compromise with evil. Get used to it.
27
- if (!emitter.infinite) {
28
- emitter.setMaxListeners(Infinity)
29
- emitter.infinite = true
30
- }
31
-
32
- module.exports = function (cb, opts) {
33
- assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')
26
+ var assert = require('assert')
27
+ var signals = require('./signals.js')
28
+ var isWin = /^win/i.test(process.platform)
29
+
30
+ var EE = require('events')
31
+ /* istanbul ignore if */
32
+ if (typeof EE !== 'function') {
33
+ EE = EE.EventEmitter
34
+ }
34
35
 
35
- if (loaded === false) {
36
- load()
36
+ var emitter
37
+ if (process.__signal_exit_emitter__) {
38
+ emitter = process.__signal_exit_emitter__
39
+ } else {
40
+ emitter = process.__signal_exit_emitter__ = new EE()
41
+ emitter.count = 0
42
+ emitter.emitted = {}
37
43
  }
38
44
 
39
- var ev = 'exit'
40
- if (opts && opts.alwaysLast) {
41
- ev = 'afterexit'
45
+ // Because this emitter is a global, we have to check to see if a
46
+ // previous version of this library failed to enable infinite listeners.
47
+ // I know what you're about to say. But literally everything about
48
+ // signal-exit is a compromise with evil. Get used to it.
49
+ if (!emitter.infinite) {
50
+ emitter.setMaxListeners(Infinity)
51
+ emitter.infinite = true
42
52
  }
43
53
 
44
- var remove = function () {
45
- emitter.removeListener(ev, cb)
46
- if (emitter.listeners('exit').length === 0 &&
47
- emitter.listeners('afterexit').length === 0) {
48
- unload()
54
+ module.exports = function (cb, opts) {
55
+ /* istanbul ignore if */
56
+ if (!processOk(global.process)) {
57
+ return function () {}
49
58
  }
50
- }
51
- emitter.on(ev, cb)
59
+ assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')
52
60
 
53
- return remove
54
- }
61
+ if (loaded === false) {
62
+ load()
63
+ }
55
64
 
56
- module.exports.unload = unload
57
- function unload () {
58
- if (!loaded) {
59
- return
60
- }
61
- loaded = false
65
+ var ev = 'exit'
66
+ if (opts && opts.alwaysLast) {
67
+ ev = 'afterexit'
68
+ }
62
69
 
63
- signals.forEach(function (sig) {
64
- try {
65
- process.removeListener(sig, sigListeners[sig])
66
- } catch (er) {}
67
- })
68
- process.emit = originalProcessEmit
69
- process.reallyExit = originalProcessReallyExit
70
- emitter.count -= 1
71
- }
70
+ var remove = function () {
71
+ emitter.removeListener(ev, cb)
72
+ if (emitter.listeners('exit').length === 0 &&
73
+ emitter.listeners('afterexit').length === 0) {
74
+ unload()
75
+ }
76
+ }
77
+ emitter.on(ev, cb)
72
78
 
73
- function emit (event, code, signal) {
74
- if (emitter.emitted[event]) {
75
- return
79
+ return remove
76
80
  }
77
- emitter.emitted[event] = true
78
- emitter.emit(event, code, signal)
79
- }
80
81
 
81
- // { <signal>: <listener fn>, ... }
82
- var sigListeners = {}
83
- signals.forEach(function (sig) {
84
- sigListeners[sig] = function listener () {
85
- // If there are no other listeners, an exit is coming!
86
- // Simplest way: remove us and then re-send the signal.
87
- // We know that this will kill the process, so we can
88
- // safely emit now.
89
- var listeners = process.listeners(sig)
90
- if (listeners.length === emitter.count) {
91
- unload()
92
- emit('exit', null, sig)
93
- /* istanbul ignore next */
94
- emit('afterexit', null, sig)
95
- /* istanbul ignore next */
96
- if (isWin && sig === 'SIGHUP') {
97
- // "SIGHUP" throws an `ENOSYS` error on Windows,
98
- // so use a supported signal instead
99
- sig = 'SIGINT'
100
- }
101
- process.kill(process.pid, sig)
82
+ var unload = function unload () {
83
+ if (!loaded || !processOk(global.process)) {
84
+ return
102
85
  }
86
+ loaded = false
87
+
88
+ signals.forEach(function (sig) {
89
+ try {
90
+ process.removeListener(sig, sigListeners[sig])
91
+ } catch (er) {}
92
+ })
93
+ process.emit = originalProcessEmit
94
+ process.reallyExit = originalProcessReallyExit
95
+ emitter.count -= 1
103
96
  }
104
- })
105
-
106
- module.exports.signals = function () {
107
- return signals
108
- }
109
-
110
- module.exports.load = load
97
+ module.exports.unload = unload
111
98
 
112
- var loaded = false
113
-
114
- function load () {
115
- if (loaded) {
116
- return
99
+ var emit = function emit (event, code, signal) {
100
+ /* istanbul ignore if */
101
+ if (emitter.emitted[event]) {
102
+ return
103
+ }
104
+ emitter.emitted[event] = true
105
+ emitter.emit(event, code, signal)
117
106
  }
118
- loaded = true
119
-
120
- // This is the number of onSignalExit's that are in play.
121
- // It's important so that we can count the correct number of
122
- // listeners on signals, and don't wait for the other one to
123
- // handle it instead of us.
124
- emitter.count += 1
125
-
126
- signals = signals.filter(function (sig) {
127
- try {
128
- process.on(sig, sigListeners[sig])
129
- return true
130
- } catch (er) {
131
- return false
107
+
108
+ // { <signal>: <listener fn>, ... }
109
+ var sigListeners = {}
110
+ signals.forEach(function (sig) {
111
+ sigListeners[sig] = function listener () {
112
+ /* istanbul ignore if */
113
+ if (!processOk(global.process)) {
114
+ return
115
+ }
116
+ // If there are no other listeners, an exit is coming!
117
+ // Simplest way: remove us and then re-send the signal.
118
+ // We know that this will kill the process, so we can
119
+ // safely emit now.
120
+ var listeners = process.listeners(sig)
121
+ if (listeners.length === emitter.count) {
122
+ unload()
123
+ emit('exit', null, sig)
124
+ /* istanbul ignore next */
125
+ emit('afterexit', null, sig)
126
+ /* istanbul ignore next */
127
+ if (isWin && sig === 'SIGHUP') {
128
+ // "SIGHUP" throws an `ENOSYS` error on Windows,
129
+ // so use a supported signal instead
130
+ sig = 'SIGINT'
131
+ }
132
+ /* istanbul ignore next */
133
+ process.kill(process.pid, sig)
134
+ }
132
135
  }
133
136
  })
134
137
 
135
- process.emit = processEmit
136
- process.reallyExit = processReallyExit
137
- }
138
+ module.exports.signals = function () {
139
+ return signals
140
+ }
138
141
 
139
- var originalProcessReallyExit = process.reallyExit
140
- function processReallyExit (code) {
141
- process.exitCode = code || 0
142
- emit('exit', process.exitCode, null)
143
- /* istanbul ignore next */
144
- emit('afterexit', process.exitCode, null)
145
- /* istanbul ignore next */
146
- originalProcessReallyExit.call(process, process.exitCode)
147
- }
142
+ var loaded = false
148
143
 
149
- var originalProcessEmit = process.emit
150
- function processEmit (ev, arg) {
151
- if (ev === 'exit') {
152
- if (arg !== undefined) {
153
- process.exitCode = arg
144
+ var load = function load () {
145
+ if (loaded || !processOk(global.process)) {
146
+ return
154
147
  }
155
- var ret = originalProcessEmit.apply(this, arguments)
148
+ loaded = true
149
+
150
+ // This is the number of onSignalExit's that are in play.
151
+ // It's important so that we can count the correct number of
152
+ // listeners on signals, and don't wait for the other one to
153
+ // handle it instead of us.
154
+ emitter.count += 1
155
+
156
+ signals = signals.filter(function (sig) {
157
+ try {
158
+ process.on(sig, sigListeners[sig])
159
+ return true
160
+ } catch (er) {
161
+ return false
162
+ }
163
+ })
164
+
165
+ process.emit = processEmit
166
+ process.reallyExit = processReallyExit
167
+ }
168
+ module.exports.load = load
169
+
170
+ var originalProcessReallyExit = process.reallyExit
171
+ var processReallyExit = function processReallyExit (code) {
172
+ /* istanbul ignore if */
173
+ if (!processOk(global.process)) {
174
+ return
175
+ }
176
+ process.exitCode = code || /* istanbul ignore next */ 0
156
177
  emit('exit', process.exitCode, null)
157
178
  /* istanbul ignore next */
158
179
  emit('afterexit', process.exitCode, null)
159
- return ret
160
- } else {
161
- return originalProcessEmit.apply(this, arguments)
180
+ /* istanbul ignore next */
181
+ originalProcessReallyExit.call(process, process.exitCode)
182
+ }
183
+
184
+ var originalProcessEmit = process.emit
185
+ var processEmit = function processEmit (ev, arg) {
186
+ if (ev === 'exit' && processOk(global.process)) {
187
+ /* istanbul ignore else */
188
+ if (arg !== undefined) {
189
+ process.exitCode = arg
190
+ }
191
+ var ret = originalProcessEmit.apply(this, arguments)
192
+ /* istanbul ignore next */
193
+ emit('exit', process.exitCode, null)
194
+ /* istanbul ignore next */
195
+ emit('afterexit', process.exitCode, null)
196
+ /* istanbul ignore next */
197
+ return ret
198
+ } else {
199
+ return originalProcessEmit.apply(this, arguments)
200
+ }
162
201
  }
163
202
  }
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "signal-exit",
3
- "version": "3.0.3",
3
+ "version": "3.0.7",
4
4
  "description": "when you want to fire an event no matter how a process exits.",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "pretest": "standard",
8
- "test": "tap --timeout=240 ./test/*.js --cov",
9
- "coverage": "nyc report --reporter=text-lcov | coveralls",
10
- "release": "standard-version"
7
+ "test": "tap",
8
+ "snap": "tap",
9
+ "preversion": "npm test",
10
+ "postversion": "npm publish",
11
+ "prepublishOnly": "git push origin --follow-tags"
11
12
  },
12
13
  "files": [
13
14
  "index.js",
@@ -29,14 +30,13 @@
29
30
  "homepage": "https://github.com/tapjs/signal-exit",
30
31
  "devDependencies": {
31
32
  "chai": "^3.5.0",
32
- "coveralls": "^2.11.10",
33
- "nyc": "^8.1.0",
34
- "standard": "^8.1.0",
35
- "standard-version": "^2.3.0",
36
- "tap": "^8.0.1"
33
+ "coveralls": "^3.1.1",
34
+ "nyc": "^15.1.0",
35
+ "standard-version": "^9.3.1",
36
+ "tap": "^15.1.1"
37
37
  }
38
38
 
39
- ,"_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz"
40
- ,"_integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA=="
41
- ,"_from": "signal-exit@3.0.3"
39
+ ,"_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz"
40
+ ,"_integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="
41
+ ,"_from": "signal-exit@3.0.7"
42
42
  }
@@ -0,0 +1,86 @@
1
+ @Library('jenkins-joylib@v1.0.8') _
2
+
3
+ pipeline {
4
+
5
+ agent none
6
+
7
+ options {
8
+ buildDiscarder(logRotator(numToKeepStr: '30'))
9
+ timestamps()
10
+ }
11
+
12
+ stages {
13
+ stage('top') {
14
+ parallel {
15
+ stage('v0.10.48-zone') {
16
+ agent {
17
+ label joyCommonLabels(image_ver: '15.4.1')
18
+ }
19
+ tools {
20
+ nodejs 'sdcnode-v0.10.48-zone'
21
+ }
22
+ stages {
23
+ stage('check') {
24
+ steps{
25
+ sh('make check')
26
+ }
27
+ }
28
+ stage('test') {
29
+ steps{
30
+ sh('make test')
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+ stage('v4-zone') {
37
+ agent {
38
+ label joyCommonLabels(image_ver: '15.4.1')
39
+ }
40
+ tools {
41
+ nodejs 'sdcnode-v4-zone'
42
+ }
43
+ stages {
44
+ stage('check') {
45
+ steps{
46
+ sh('make check')
47
+ }
48
+ }
49
+ stage('test') {
50
+ steps{
51
+ sh('make test')
52
+ }
53
+ }
54
+ }
55
+ }
56
+
57
+ stage('v6-zone64') {
58
+ agent {
59
+ label joyCommonLabels(image_ver: '18.4.0')
60
+ }
61
+ tools {
62
+ nodejs 'sdcnode-v6-zone64'
63
+ }
64
+ stages {
65
+ stage('check') {
66
+ steps{
67
+ sh('make check')
68
+ }
69
+ }
70
+ stage('test') {
71
+ steps{
72
+ sh('make test')
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+
81
+ post {
82
+ always {
83
+ joySlackNotifications()
84
+ }
85
+ }
86
+ }
@@ -9,20 +9,30 @@ var assert = require('assert-plus');
9
9
  var Buffer = require('safer-buffer').Buffer;
10
10
  var rfc4253 = require('./rfc4253');
11
11
  var Key = require('../key');
12
+ var SSHBuffer = require('../ssh-buffer');
13
+ var crypto = require('crypto');
14
+ var PrivateKey = require('../private-key');
12
15
 
13
16
  var errors = require('../errors');
14
17
 
18
+ // https://tartarus.org/~simon/putty-prerel-snapshots/htmldoc/AppendixC.html
15
19
  function read(buf, options) {
16
20
  var lines = buf.toString('ascii').split(/[\r\n]+/);
17
21
  var found = false;
18
22
  var parts;
19
23
  var si = 0;
24
+ var formatVersion;
20
25
  while (si < lines.length) {
21
26
  parts = splitHeader(lines[si++]);
22
- if (parts &&
23
- parts[0].toLowerCase() === 'putty-user-key-file-2') {
24
- found = true;
25
- break;
27
+ if (parts) {
28
+ formatVersion = {
29
+ 'putty-user-key-file-2': 2,
30
+ 'putty-user-key-file-3': 3
31
+ }[parts[0].toLowerCase()];
32
+ if (formatVersion) {
33
+ found = true;
34
+ break;
35
+ }
26
36
  }
27
37
  }
28
38
  if (!found) {
@@ -32,6 +42,7 @@ function read(buf, options) {
32
42
 
33
43
  parts = splitHeader(lines[si++]);
34
44
  assert.equal(parts[0].toLowerCase(), 'encryption');
45
+ var encryption = parts[1];
35
46
 
36
47
  parts = splitHeader(lines[si++]);
37
48
  assert.equal(parts[0].toLowerCase(), 'comment');
@@ -52,10 +63,94 @@ function read(buf, options) {
52
63
  if (key.type !== keyType) {
53
64
  throw (new Error('Outer key algorithm mismatch'));
54
65
  }
66
+
67
+ si += publicLines;
68
+ if (lines[si]) {
69
+ parts = splitHeader(lines[si++]);
70
+ assert.equal(parts[0].toLowerCase(), 'private-lines');
71
+ var privateLines = parseInt(parts[1], 10);
72
+ if (!isFinite(privateLines) || privateLines < 0 ||
73
+ privateLines > lines.length) {
74
+ throw (new Error('Invalid private-lines count'));
75
+ }
76
+
77
+ var privateBuf = Buffer.from(
78
+ lines.slice(si, si + privateLines).join(''), 'base64');
79
+
80
+ if (encryption !== 'none' && formatVersion === 3) {
81
+ throw new Error('Encrypted keys arenot supported for' +
82
+ ' PuTTY format version 3');
83
+ }
84
+
85
+ if (encryption === 'aes256-cbc') {
86
+ if (!options.passphrase) {
87
+ throw (new errors.KeyEncryptedError(
88
+ options.filename, 'PEM'));
89
+ }
90
+
91
+ var iv = Buffer.alloc(16, 0);
92
+ var decipher = crypto.createDecipheriv(
93
+ 'aes-256-cbc',
94
+ derivePPK2EncryptionKey(options.passphrase),
95
+ iv);
96
+ decipher.setAutoPadding(false);
97
+ privateBuf = Buffer.concat([
98
+ decipher.update(privateBuf), decipher.final()]);
99
+ }
100
+
101
+ key = new PrivateKey(key);
102
+ if (key.type !== keyType) {
103
+ throw (new Error('Outer key algorithm mismatch'));
104
+ }
105
+
106
+ var sshbuf = new SSHBuffer({buffer: privateBuf});
107
+ var privateKeyParts;
108
+ if (alg === 'ssh-dss') {
109
+ privateKeyParts = [ {
110
+ name: 'x',
111
+ data: sshbuf.readBuffer()
112
+ }];
113
+ } else if (alg === 'ssh-rsa') {
114
+ privateKeyParts = [
115
+ { name: 'd', data: sshbuf.readBuffer() },
116
+ { name: 'p', data: sshbuf.readBuffer() },
117
+ { name: 'q', data: sshbuf.readBuffer() },
118
+ { name: 'iqmp', data: sshbuf.readBuffer() }
119
+ ];
120
+ } else if (alg.match(/^ecdsa-sha2-nistp/)) {
121
+ privateKeyParts = [ {
122
+ name: 'd', data: sshbuf.readBuffer()
123
+ } ];
124
+ } else if (alg === 'ssh-ed25519') {
125
+ privateKeyParts = [ {
126
+ name: 'k', data: sshbuf.readBuffer()
127
+ } ];
128
+ } else {
129
+ throw new Error('Unsupported PPK key type: ' + alg);
130
+ }
131
+
132
+ key = new PrivateKey({
133
+ type: key.type,
134
+ parts: key.parts.concat(privateKeyParts)
135
+ });
136
+ }
137
+
55
138
  key.comment = comment;
56
139
  return (key);
57
140
  }
58
141
 
142
+ function derivePPK2EncryptionKey(passphrase) {
143
+ var hash1 = crypto.createHash('sha1').update(Buffer.concat([
144
+ Buffer.from([0, 0, 0, 0]),
145
+ Buffer.from(passphrase)
146
+ ])).digest();
147
+ var hash2 = crypto.createHash('sha1').update(Buffer.concat([
148
+ Buffer.from([0, 0, 0, 1]),
149
+ Buffer.from(passphrase)
150
+ ])).digest();
151
+ return (Buffer.concat([hash1, hash2]).slice(0, 32));
152
+ }
153
+
59
154
  function splitHeader(line) {
60
155
  var idx = line.indexOf(':');
61
156
  if (idx === -1)
@@ -33,6 +33,7 @@ formats['ssh-private'] = require('./formats/ssh-private');
33
33
  formats['openssh'] = formats['ssh-private'];
34
34
  formats['ssh'] = formats['ssh-private'];
35
35
  formats['dnssec'] = require('./formats/dnssec');
36
+ formats['putty'] = require('./formats/putty');
36
37
 
37
38
  function PrivateKey(opts) {
38
39
  assert.object(opts, 'options');
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sshpk",
3
- "version": "1.16.1",
3
+ "version": "1.17.0",
4
4
  "description": "A library for finding and using SSH public keys",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -58,7 +58,7 @@
58
58
  "temp": "^0.8.2"
59
59
  }
60
60
 
61
- ,"_resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz"
62
- ,"_integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg=="
63
- ,"_from": "sshpk@1.16.1"
61
+ ,"_resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz"
62
+ ,"_integrity": "sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ=="
63
+ ,"_from": "sshpk@1.17.0"
64
64
  }
@@ -0,0 +1,14 @@
1
+ {
2
+ "root": true,
3
+
4
+ "extends": "@ljharb",
5
+
6
+ "env": {
7
+ "browser": true,
8
+ "node": true,
9
+ },
10
+
11
+ "rules": {
12
+ "id-length": "off",
13
+ },
14
+ }
@@ -0,0 +1,12 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: [ljharb]
4
+ patreon: # Replace with a single Patreon username
5
+ open_collective: # Replace with a single Open Collective username
6
+ ko_fi: # Replace with a single Ko-fi username
7
+ tidelift: npm/supports-preserve-symlink-flag
8
+ community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
+ liberapay: # Replace with a single Liberapay username
10
+ issuehunt: # Replace with a single IssueHunt username
11
+ otechie: # Replace with a single Otechie username
12
+ custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -0,0 +1,9 @@
1
+ {
2
+ "all": true,
3
+ "check-coverage": false,
4
+ "reporter": ["text-summary", "text", "html", "json"],
5
+ "exclude": [
6
+ "coverage",
7
+ "test"
8
+ ]
9
+ }